Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Support to Ruby 2 and add Support to Ruby 3.2+ #46

Merged
merged 3 commits into from
Feb 6, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/tests-and-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.6, 2.7, 3.0, 3.1]
ruby: [3.0, 3.1, 3.2, 3.3]

steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ require:
- rubocop-rspec

AllCops:
TargetRubyVersion: 3.0.0
NewCops: enable

Layout/LineLength:
Expand Down Expand Up @@ -31,3 +32,7 @@ RSpec/ExampleLength:

RSpec/NestedGroups:
Enabled: false

##### RUBYGEMS #####
Gemspec/RequireMFA:
Enabled: false
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- ### Changed -->
<!-- ### Removed -->
---
### Added
- Drop Support to Ruby 2.6 and 2.7
- Add Support to Ruby 3.2 and 3.3

## 0.3.0
### Added
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ group :development, :test do
gem 'pry'
gem 'pry-nav'
gem 'rake', '~> 13.0.0'
gem 'rubocop', '~> 0.82.0', require: false
gem 'rubocop', '~> 1.60.2', require: false
gem 'rubocop-rspec', require: false
end

Expand Down
89 changes: 53 additions & 36 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,41 @@ PATH
GEM
remote: https://rubygems.org/
specs:
ast (2.4.0)
backport (1.1.2)
benchmark (0.1.0)
ast (2.4.2)
backport (1.2.0)
benchmark (0.3.0)
coderay (1.1.3)
diff-lcs (1.3)
docile (1.3.5)
e2mmap (0.1.0)
jaro_winkler (1.5.4)
maruku (0.7.3)
jaro_winkler (1.5.6)
json (2.7.1)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
language_server-protocol (3.17.0.3)
method_source (1.0.0)
mini_portile2 (2.8.1)
nokogiri (1.14.3)
mini_portile2 (~> 2.8.0)
mini_portile2 (2.8.5)
nokogiri (1.16.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
parallel (1.19.1)
parser (2.7.1.1)
ast (~> 2.4.0)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
pry-nav (1.0.0)
pry (>= 0.9.10, < 0.15)
racc (1.6.2)
rainbow (3.0.0)
racc (1.7.3)
rainbow (3.1.1)
rake (13.0.1)
reverse_markdown (1.4.0)
regexp_parser (2.9.0)
reverse_markdown (2.1.1)
nokogiri
rexml (3.2.5)
rexml (3.2.6)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
Expand All @@ -47,53 +54,63 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.2)
rubocop (0.82.0)
jaro_winkler (~> 1.5.1)
rubocop (1.60.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 2.7.0.1)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
rexml
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-rspec (1.38.1)
rubocop (>= 0.68.1)
ruby-progressbar (1.10.1)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-rspec (2.26.1)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-progressbar (1.13.0)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.2)
solargraph (0.38.6)
solargraph (0.41.2)
backport (~> 1.1)
benchmark
bundler (>= 1.17.2)
e2mmap
jaro_winkler (~> 1.5)
maruku (~> 0.7, >= 0.7.3)
nokogiri (~> 1.9, >= 1.9.1)
parser (~> 2.3)
reverse_markdown (~> 1.0, >= 1.0.5)
rubocop (~> 0.52)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.1)
parser (~> 3.0)
reverse_markdown (>= 1.0.5, < 3)
rubocop (>= 0.52)
thor (~> 1.0)
tilt (~> 2.0)
yard (~> 0.9)
thor (1.0.1)
tilt (2.0.10)
unicode-display_width (1.7.0)
yard (0.9.24)
yard (~> 0.9, >= 0.9.24)
thor (1.3.0)
tilt (2.3.0)
unicode-display_width (2.5.0)
yard (0.9.34)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 2.0)
f_service!
pry
pry-nav
rake (~> 13.0.0)
rspec (~> 3.0)
rubocop (~> 0.82.0)
rubocop (~> 1.60.2)
rubocop-rspec
simplecov
solargraph
Expand Down
3 changes: 1 addition & 2 deletions f_service.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Gem::Specification.new do |spec|

spec.homepage = 'https://github.com/Fretadao/f_service'
spec.license = 'MIT'
spec.required_ruby_version = '>= 3.0.0'

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/Fretadao/f_service'
Expand All @@ -33,6 +34,4 @@ Gem::Specification.new do |spec|
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_development_dependency 'bundler', '~> 2.0'
end
1 change: 1 addition & 0 deletions spec/f_service/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
let(:double_number) do
Class.new(described_class) do
def initialize(number:)
super()
@number = number
end

Expand Down
2 changes: 2 additions & 0 deletions spec/f_service/result/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
let(:test_class) do
Class.new(described_class) do
def initialize
super
@types = %i[success]
end
end
Expand All @@ -39,6 +40,7 @@ def initialize
let(:test_class) do
Class.new(described_class) do
def initialize
super
@types = %i[ok success http_response]
@matching_types = %i[ok success]
end
Expand Down
Loading