diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 8b89620..910be2b 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -10,7 +10,6 @@ jobs: strategy: matrix: ruby: - - '3.0' - '3.1' - '3.2' - '3.3' diff --git a/.rubocop.yml b/.rubocop.yml index 36ceeb7..18c3e9b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,7 +3,7 @@ require: AllCops: NewCops: enable - TargetRubyVersion: 3.0 + TargetRubyVersion: 3.1 Layout/LineLength: Max: 120 diff --git a/conifer.gemspec b/conifer.gemspec index eed58b3..f640c7c 100644 --- a/conifer.gemspec +++ b/conifer.gemspec @@ -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. diff --git a/lib/conifer.rb b/lib/conifer.rb index b7b48a7..a3f9ca4 100644 --- a/lib/conifer.rb +++ b/lib/conifer.rb @@ -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) diff --git a/spec/conifer/file_spec.rb b/spec/conifer/file_spec.rb index 87c158c..271114a 100644 --- a/spec/conifer/file_spec.rb +++ b/spec/conifer/file_spec.rb @@ -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 }