diff --git a/.cirrus.yaml b/.cirrus.yaml index 468d05a..6a5cf5b 100644 --- a/.cirrus.yaml +++ b/.cirrus.yaml @@ -53,9 +53,9 @@ rubocop_task: rspec_task: container: matrix: - - image: ruby:3.0 - - image: ruby:3.1 - image: ruby:3.2 + - image: ruby:3.3 + - image: ruby:3.4 <<: *bundle_cache diff --git a/.gitignore b/.gitignore index 55c6b8e..320bcca 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ Gemfile.lock .ruby-gemset package-lock.json /node_modules/ +yarn.lock diff --git a/.rubocop.yml b/.rubocop.yml index 3d394ba..62ced72 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,4 @@ -require: +plugins: - rubocop-performance - rubocop-rake - rubocop-rspec @@ -9,7 +9,7 @@ inherit_mode: - Exclude AllCops: - TargetRubyVersion: 3.0 + TargetRubyVersion: 3.2 NewCops: enable Layout/LineLength: diff --git a/Gemfile b/Gemfile index 61400e2..a8011c2 100644 --- a/Gemfile +++ b/Gemfile @@ -6,21 +6,21 @@ source 'https://rubygems.org' gemspec group :development do - gem 'bundler', '~> 2.1' - gem 'pry-byebug', '~> 3.9' - gem 'rake', '~> 13.0' + gem 'bundler', '~> 2.6' + gem 'pry-byebug', '~> 3.11' + gem 'rake', '~> 13.3' end group :test do - gem 'rspec', '~> 3.0' + gem 'rspec', '~> 3.13' gem 'simplecov', '~> 0.22.0' - gem 'simplecov-cobertura', '~> 2.1' - gem 'vcr', '~> 6.0' + gem 'simplecov-cobertura', '~> 3.0' + gem 'vcr', '~> 6.3' end group :lint do - gem 'rubocop', '~> 1.61.0' - gem 'rubocop-performance', '~> 1.20.1' - gem 'rubocop-rake', '~> 0.6.0' - gem 'rubocop-rspec', '~> 2.26.1' + gem 'rubocop', '~> 1.78.0' + gem 'rubocop-performance', '~> 1.25.0' + gem 'rubocop-rake', '~> 0.7.1' + gem 'rubocop-rspec', '~> 3.6.0' end diff --git a/lib/twitch/stream_metadata.rb b/lib/twitch/stream_metadata.rb index fafcaa6..549230e 100644 --- a/lib/twitch/stream_metadata.rb +++ b/lib/twitch/stream_metadata.rb @@ -37,7 +37,7 @@ def method_missing(name, *args) def respond_to_missing?(name) name = name.to_s - @attributes.key?(name) ? true : super + @attributes.key?(name) || super end end end diff --git a/package.json b/package.json index 0e74dc2..87c376f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "devDependencies": { "remark-cli": "^12.0.0", "remark-gfm": "^4.0.0", - "remark-lint-code-block-style": "^3.0.1", - "remark-preset-lint-recommended": "^6.0.1" + "remark-lint-code-block-style": "^4.0.1", + "remark-preset-lint-recommended": "^7.0.1" } } diff --git a/spec/twitch/client_spec.rb b/spec/twitch/client_spec.rb index 97b2d55..335642f 100644 --- a/spec/twitch/client_spec.rb +++ b/spec/twitch/client_spec.rb @@ -734,13 +734,13 @@ def make_request context 'when token type is application' do let(:token_type) { :application } - include_examples 'successful data' + it_behaves_like 'successful data' end context 'when token type is user' do let(:token_type) { :user } - include_examples 'successful data' + it_behaves_like 'successful data' end end end @@ -870,13 +870,13 @@ def make_request context 'when token type is application' do let(:token_type) { :application } - include_examples 'successful data' + it_behaves_like 'successful data' end context 'when token type is user' do let(:token_type) { :user } - include_examples 'successful data' + it_behaves_like 'successful data' end end @@ -890,13 +890,13 @@ def make_request context 'when token type is application' do let(:token_type) { :application } - include_examples 'successful data' + it_behaves_like 'successful data' end context 'when token type is user' do let(:token_type) { :user } - include_examples 'successful data' + it_behaves_like 'successful data' end end end diff --git a/twitch-api.gemspec b/twitch-api.gemspec index 074edac..0991646 100644 --- a/twitch-api.gemspec +++ b/twitch-api.gemspec @@ -22,12 +22,12 @@ Gem::Specification.new do |spec| 'source_code_uri' => github_uri } - spec.required_ruby_version = '>= 3.0', '< 4' + spec.required_ruby_version = '>= 3.2', '< 4' spec.files = Dir['lib/**/*.rb', 'README.md', 'LICENSE.txt'] - spec.add_dependency 'faraday', '~> 2.3' + spec.add_dependency 'faraday', '~> 2.13' spec.add_dependency 'faraday-parse_dates', '~> 0.1.1' - spec.add_dependency 'faraday-retry', '~> 2.0' + spec.add_dependency 'faraday-retry', '~> 2.3' spec.add_dependency 'twitch_oauth2', '~> 0.5.0' end