gemspec, version file added

This commit is contained in:
onyx-and-iris 2023-07-07 02:38:13 +01:00
parent 48a56f9db6
commit 40d94033c5
5 changed files with 59 additions and 0 deletions

3
.gitignore vendored
View File

@ -55,3 +55,6 @@ Gemfile.lock
# Used by RuboCop. Remote config files pulled in from inherit_from directive. # Used by RuboCop. Remote config files pulled in from inherit_from directive.
# .rubocop-https?--* # .rubocop-https?--*
# test
quick.rb

View File

@ -3,3 +3,5 @@
source "https://rubygems.org" source "https://rubygems.org"
# gem "rails" # gem "rails"
gemspec

4
lib/voicemeeter.rb Normal file
View File

@ -0,0 +1,4 @@
require_relative "voicemeeter/remote"
module Voicemeeter
end

View File

@ -0,0 +1,25 @@
module Voicemeeter
module Version
module_function
def major
0
end
def minor
0
end
def patch
1
end
def to_a
[major, minor, patch]
end
def to_s
to_a.join(".")
end
end
end

25
voicemeeter.gemspec Normal file
View File

@ -0,0 +1,25 @@
# frozen_string_literal: true
require File.expand_path("lib/voicemeeter/version", __dir__)
lib = File.expand_path("./lib")
Gem::Specification.new do |spec|
spec.name = "voicemeeter"
spec.version = Voicemeeter::Version
spec.summary = "Voicemeeter API wrapper for Ruby"
spec.description = "A Ruby wrapper around Voicemeeter Remote API"
spec.authors = ["onyx_online"]
spec.email = "code@onyxandiris.online"
spec.files = Dir["lib/**/*.rb"]
spec.extra_rdoc_files = Dir["README.md", "CHANGELOG.md", "LICENSE"]
spec.homepage = "https://rubygems.org/gems/voicemeeter"
spec.license = "MIT"
spec.add_runtime_dependency "ffi", "~> 1.9", ">= 1.9.10"
spec.add_runtime_dependency "perfect_toml", "~> 0.9.0"
spec.add_runtime_dependency "observer", "~> 0.1.1"
spec.add_runtime_dependency "logger", "~> 1.5", ">= 1.5.1"
spec.add_development_dependency "rspec", "~> 3.4"
spec.required_ruby_version = ">= 3.0"
spec.metadata = {
"source_code_uri" => "https://github.com/onyx-and-iris/voicemeeter-rb.git"
}
end