Skip to content

Commit

Permalink
Drop support for Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari committed Apr 29, 2024
1 parent 6023cc5 commit 368273a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
strategy:
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
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: 3.0
TargetRubyVersion: 3.1

Layout/LineLength:
Max: 120
Expand Down
2 changes: 1 addition & 1 deletion conifer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/hasghari/conifer'
spec.license = 'MIT'

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

# Specify which files should be added to the gem when it is released.
Expand Down
4 changes: 2 additions & 2 deletions lib/conifer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def conifer(name, prefix: nil, dir: nil, format: :yml, method: ::File.basename(n
return instance_variable_get("@conifer_#{method}") if instance_variable_defined?("@conifer_#{method}")

instance_variable_set "@conifer_#{method}",
Conifer::File.new(name, prefix: prefix, format: format,
dir: dir, **options).tap(&:validate!)
Conifer::File.new(name, prefix:, format:,
dir:, **options).tap(&:validate!)
end

singleton ? define_singleton_method(method, &body) : define_method(method, &body)
Expand Down
2 changes: 1 addition & 1 deletion spec/conifer/file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

RSpec.describe Conifer::File do
subject(:file) do
described_class.new(name, dir: dir, format: format, prefix: prefix, permitted_classes: permitted_classes)
described_class.new(name, dir:, format:, prefix:, permitted_classes:)
end

let(:name) { :foo }
Expand Down

0 comments on commit 368273a

Please sign in to comment.