Skip to content

Commit b4dc80f

Browse files
authored
Updates gems and working with ruby 3.4 (#30)
* Updates gems and working with ruby 3.4 * Update some Gemfile gems * Gem extractions * syntax fix * Rubcoop
1 parent bff3953 commit b4dc80f

File tree

8 files changed

+25
-18
lines changed

8 files changed

+25
-18
lines changed

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
ruby-version: ['3.1']
15+
ruby-version: ['3.4']
1616

1717
steps:
1818
- uses: actions/checkout@v4

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.6
1+
3.4.1

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
88
gemspec
99

1010
group :development do
11-
gem 'bundler', '~> 2.0'
12-
gem 'rake', '~> 12.0'
11+
gem 'bundler', '~> 2.6'
12+
gem 'rake', '~> 13.0'
1313
end

niftany.gemspec

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = 'niftany'
5-
spec.version = '0.11.0'
5+
spec.version = '0.12.0'
66
spec.metadata = { 'rubygems_mfa_required' => 'true' }
77
spec.authors = ['Adam Wead']
88
spec.email = ['amsterdamos@gmail.com']
@@ -14,13 +14,16 @@ Gem::Specification.new do |spec|
1414
spec.bindir = 'exe'
1515
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
1616

17-
spec.required_ruby_version = '>= 3.1'
17+
spec.required_ruby_version = '>= 3.4'
1818

19-
spec.add_dependency 'colorize', '~> 0.8.1'
20-
spec.add_dependency 'erb_lint', '~> 0.0.22'
21-
spec.add_dependency 'rubocop', '~> 1.3'
22-
spec.add_dependency 'rubocop-performance', '~> 1.1'
23-
spec.add_dependency 'rubocop-rails', '~> 2.3'
24-
spec.add_dependency 'rubocop-rspec', '~> 2'
25-
spec.add_dependency 'scss_lint', '~> 0.55'
19+
spec.add_dependency 'colorize', '~> 1.1.0'
20+
spec.add_dependency 'erb_lint', '~> 0.9.0'
21+
spec.add_dependency 'rubocop', '~> 1.72'
22+
spec.add_dependency 'rubocop-capybara', '~> 2.21'
23+
spec.add_dependency 'rubocop-factory_bot', '~> 2.26'
24+
spec.add_dependency 'rubocop-performance', '~> 1.24'
25+
spec.add_dependency 'rubocop-rails', '~> 2.30'
26+
spec.add_dependency 'rubocop-rspec', '~> 3.5'
27+
spec.add_dependency 'rubocop-rspec_rails', '~> 2.30'
28+
spec.add_dependency 'scss_lint', '~> 0.60'
2629
end

niftany_rubocop_rails.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
require: rubocop-rails
2+
plugins: rubocop-rails
33

44
Rails/Delegate:
55
Description: 'Prefer delegate method for delegations.'

niftany_rubocop_rspec.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
2-
require: rubocop-rspec
2+
plugins: rubocop-rspec
3+
require:
4+
- rubocop-rspec_rails
5+
- rubocop-factory_bot
6+
- rubocop-capybara
37

48
Layout/MultilineBlockLayout:
59
Exclude:
@@ -26,7 +30,7 @@ RSpec/ExampleWording:
2630
IgnoredWords:
2731
- only
2832

29-
RSpec/FilePath:
33+
Rails/FilePath:
3034
Enabled: false
3135

3236
RSpec/InstanceVariable:

niftany_rubocop_ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ inherit_from:
88
- rubocop/style.yml
99

1010
AllCops:
11-
TargetRubyVersion: 3.1
11+
TargetRubyVersion: 3.4
1212
DisplayCopNames: true
1313
NewCops: enable

rubocop/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
require: rubocop-performance
2+
plugins: rubocop-performance
33

44
Performance/CaseWhenSplat:
55
Description: >-

0 commit comments

Comments
 (0)