Skip to content

Commit

Permalink
Merge pull request #1 from feedforce/drop-support-for-ruby-before-3.1
Browse files Browse the repository at this point in the history
Drop support for ruby before 3.1
  • Loading branch information
kano-e authored Dec 26, 2023
2 parents c042b03 + 5e5f80b commit bff1d18
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu, macos]
ruby: [3.0, 2.7, 2.6]
ruby: [3.2]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 6 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require:
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: 3.2

NewCops: enable
SuggestExtensions: false
Expand Down Expand Up @@ -127,6 +127,11 @@ RSpec/ExpectChange:
RSpec/FilePath:
Enabled: false

# let の名前の末尾が数字だと怒られる
# ファイルの断片に意味ある名前を与えても仕方ない(連番以上に意味ある名前がない)のでやめる。
RSpec/IndexedLet:
Enabled: false

# `let!` を許可している
RSpec/LetSetup:
Enabled: false
Expand Down
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

# Specify your gem's dependencies in file_downloader.gemspec
gemspec

group :development, :test do
gem 'bundler'
gem 'pry'
gem 'rake'
gem 'rspec'
gem 'rubocop'
gem 'rubocop-rspec'
gem 'webmock'
end
89 changes: 50 additions & 39 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,62 +1,73 @@
PATH
remote: .
specs:
file_downloader (0.1.1)
file_downloader (0.1.2)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
coderay (1.1.3)
crack (0.4.5)
rexml
diff-lcs (1.4.4)
hashdiff (1.0.1)
diff-lcs (1.5.0)
hashdiff (1.1.0)
json (2.7.1)
language_server-protocol (3.17.0.3)
method_source (1.0.0)
parallel (1.20.1)
parser (3.0.2.0)
parallel (1.24.0)
parser (3.2.2.4)
ast (~> 2.4.1)
pry (0.13.1)
racc
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
rainbow (3.0.0)
rake (13.0.6)
regexp_parser (2.1.1)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
public_suffix (5.0.4)
racc (1.7.3)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.8.3)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)
rubocop (1.18.4)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rubocop (1.59.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.0.0.0)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.8.0, < 2.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.8.0)
parser (>= 3.0.1.1)
rubocop-rspec (2.4.0)
rubocop (~> 1.0)
rubocop-ast (>= 1.1.0)
ruby-progressbar (1.11.0)
unicode-display_width (2.0.0)
webmock (3.13.0)
addressable (>= 2.3.6)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.19.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.24.0)
rubocop (~> 1.33)
rubocop-rspec (2.25.0)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-progressbar (1.13.0)
unicode-display_width (2.5.0)
webmock (3.19.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)

Expand All @@ -74,4 +85,4 @@ DEPENDENCIES
webmock

BUNDLED WITH
1.17.3
2.3.25
10 changes: 2 additions & 8 deletions file_downloader.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@ Gem::Specification.new do |spec|
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.6'
spec.required_ruby_version = '>= 3.2'

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'rubocop-rspec'
spec.add_development_dependency 'webmock'
spec.metadata['rubygems_mfa_required'] = 'true'
end
2 changes: 1 addition & 1 deletion lib/file_downloader/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module FileDownloader
VERSION = '0.1.1'.freeze
VERSION = '0.1.2'.freeze
end

0 comments on commit bff1d18

Please sign in to comment.