Skip to content

Commit

Permalink
ci: Update supported ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari committed Jan 19, 2024
1 parent 93fcd12 commit 6023cc5
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 52 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
strategy:
matrix:
ruby:
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 2.6
TargetRubyVersion: 3.0

Layout/LineLength:
Max: 120
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
3.3.0
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.1.2
ruby 3.3.0
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

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

gem 'climate_control'
gem 'rake'
gem 'rspec'
gem 'rubocop'
gem 'rubocop-rspec'
gem 'simplecov'
82 changes: 47 additions & 35 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,68 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
climate_control (1.0.0)
diff-lcs (1.4.4)
docile (1.3.5)
parallel (1.21.0)
parser (3.0.3.2)
climate_control (1.2.0)
diff-lcs (1.5.0)
docile (1.4.0)
json (2.7.1)
language_server-protocol (3.17.0.3)
parallel (1.24.0)
parser (3.3.0.4)
ast (~> 2.4.1)
rainbow (3.0.0)
rake (13.0.3)
regexp_parser (2.2.0)
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)
racc
racc (1.7.3)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.9.0)
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.24.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rubocop (1.60.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.0.0.0)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.15.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.15.0)
parser (>= 3.0.1.1)
rubocop-rspec (2.3.0)
rubocop (~> 1.0)
rubocop-ast (>= 1.1.0)
ruby-progressbar (1.11.0)
simplecov (0.21.2)
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.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.2)
unicode-display_width (2.1.0)
simplecov_json_formatter (0.1.4)
unicode-display_width (2.5.0)

PLATFORMS
x86_64-darwin-19
x86_64-darwin-20
x86_64-darwin-21
x86_64-darwin-23
x86_64-linux

DEPENDENCIES
Expand All @@ -69,4 +81,4 @@ DEPENDENCIES
simplecov

BUNDLED WITH
2.3.3
2.5.4
10 changes: 2 additions & 8 deletions conifer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/hasghari/conifer'
spec.license = 'MIT'

spec.required_ruby_version = '>= 2.6'
spec.required_ruby_version = '>= 3.0'
spec.metadata['rubygems_mfa_required'] = 'true'

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
Expand All @@ -25,11 +26,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 'climate_control'
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 'simplecov'
end
4 changes: 2 additions & 2 deletions spec/conifer/file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
describe '#exists?' do
context 'when file exists' do
it 'returns true' do
expect(file.exists?).to eq true
expect(file.exists?).to be true
end
end

context 'when file does not exist' do
let(:name) { :missing }

it 'returns false' do
expect(file.exists?).to eq false
expect(file.exists?).to be false
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/conifer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

RSpec.describe Conifer do
it 'has a version number' do
expect(Conifer::VERSION).not_to be nil
expect(Conifer::VERSION).not_to be_nil
end

describe '::conifer' do
Expand Down

0 comments on commit 6023cc5

Please sign in to comment.