diff --git a/.gitignore b/.gitignore index 11fa61c..5956dd9 100644 --- a/.gitignore +++ b/.gitignore @@ -46,7 +46,8 @@ build-iPhoneSimulator/ # for a library or gem, you might want to ignore these files since the code is # intended to run in multiple environments; otherwise, check them in: # Gemfile.lock -# .ruby-version +.ruby-version +.ruby_version # .ruby-gemset # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: @@ -56,6 +57,8 @@ build-iPhoneSimulator/ # .rubocop-https?--* # config -obs.toml +obs.yml # quick test -quick.rb \ No newline at end of file +quick.rb + +.vscode/ \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 9e54b94..8041a40 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - obsws (0.1.3) + obsws (0.2.0) observer (~> 0.1.1) waitutil (~> 0.2.1) websocket-driver (~> 0.7.5) @@ -9,10 +9,50 @@ PATH GEM remote: https://rubygems.org/ specs: + ast (2.4.2) + json (2.6.3) + language_server-protocol (3.17.0.3) + lint_roller (1.1.0) minitest (5.16.3) observer (0.1.1) - perfect_toml (0.9.0) + parallel (1.23.0) + parser (3.2.2.3) + ast (~> 2.4.1) + racc + racc (1.7.1) + rainbow (3.1.1) rake (11.3.0) + regexp_parser (2.8.1) + rexml (3.2.5) + rubocop (1.52.1) + json (~> 2.3) + parallel (~> 1.10) + parser (>= 3.2.2.3) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.29.0) + parser (>= 3.2.1.0) + rubocop-performance (1.18.0) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) + ruby-progressbar (1.13.0) + standard (1.30.1) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.0) + rubocop (~> 1.52.0) + standard-custom (~> 1.0.0) + standard-performance (~> 1.1.0) + standard-custom (1.0.2) + lint_roller (~> 1.0) + rubocop (~> 1.50) + standard-performance (1.1.2) + lint_roller (~> 1.1) + rubocop-performance (~> 1.18.0) + unicode-display_width (2.4.2) waitutil (0.2.1) websocket-driver (0.7.5) websocket-extensions (>= 0.1.0) @@ -24,8 +64,8 @@ PLATFORMS DEPENDENCIES minitest (~> 5.16, >= 5.16.3) obsws! - perfect_toml (~> 0.9.0) rake (~> 11.2, >= 11.2.2) + standard (~> 1.30) BUNDLED WITH 2.3.22 diff --git a/Rakefile b/Rakefile index 6174374..b337b7c 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,6 @@ require "minitest/test_task" -HERE = File.expand_path File.dirname(__FILE__) +HERE = __dir__ Minitest::TestTask.create(:test) do |t| t.libs << "test" diff --git a/lib/obsws/version.rb b/lib/obsws/version.rb index 013e000..90e44c2 100644 --- a/lib/obsws/version.rb +++ b/lib/obsws/version.rb @@ -7,11 +7,11 @@ module OBSWS end def minor - 1 + 2 end def patch - 3 + 0 end def to_a @@ -22,4 +22,6 @@ module OBSWS to_a.join(".") end end + + VERSION = Version.to_s end diff --git a/obsws.gemspec b/obsws.gemspec index 8456eb9..94ad9b9 100644 --- a/obsws.gemspec +++ b/obsws.gemspec @@ -1,10 +1,10 @@ # frozen_string_literal: true + require File.expand_path("lib/obsws/version", __dir__) -lib = File.expand_path("./lib") Gem::Specification.new do |spec| spec.name = "obsws" - spec.version = OBSWS::Version + spec.version = OBSWS::VERSION spec.summary = "OBS Websocket v5 wrapper" spec.description = "A Ruby wrapper around OBS Websocket v5" spec.authors = ["onyx_online"] @@ -16,11 +16,11 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency "observer", "~> 0.1.1" spec.add_runtime_dependency "websocket-driver", "~> 0.7.5" spec.add_runtime_dependency "waitutil", "~> 0.2.1" - spec.add_development_dependency "perfect_toml", "~> 0.9.0" + spec.add_development_dependency "standard", "~> 1.30" spec.add_development_dependency "minitest", "~> 5.16", ">= 5.16.3" spec.add_development_dependency "rake", "~> 11.2", ">= 11.2.2" spec.required_ruby_version = ">= 3.0" spec.metadata = { - "source_code_uri" => "https://github.com/onyx-and-iris/obsws.git" + "source_code_uri" => "https://github.com/onyx-and-iris/obsws-ruby" } end