Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cirrus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Gemfile.lock
.ruby-gemset
package-lock.json
/node_modules/
yarn.lock
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require:
plugins:
- rubocop-performance
- rubocop-rake
- rubocop-rspec
Expand All @@ -9,7 +9,7 @@ inherit_mode:
- Exclude

AllCops:
TargetRubyVersion: 3.0
TargetRubyVersion: 3.2
NewCops: enable

Layout/LineLength:
Expand Down
20 changes: 10 additions & 10 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/twitch/stream_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
12 changes: 6 additions & 6 deletions spec/twitch/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions twitch-api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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