Skip to content

Commit

Permalink
Change minimum ruby version to 3.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Apr 16, 2024
1 parent a55b26c commit 6f1f3a5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ inherit_gem:
rubocop-fnando: .rubocop.yml

AllCops:
TargetRubyVersion: 2.5
TargetRubyVersion: 3.0
Exclude:
- vendor/**/*
- gemfiles/**/*
Expand Down
2 changes: 1 addition & 1 deletion attr_keyring.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = spec.summary
spec.homepage = "https://github.com/fnando/attr_keyring"
spec.license = "MIT"
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")

spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`
Expand Down
2 changes: 1 addition & 1 deletion lib/attr_keyring/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def keyring_rotate!
def reload(options = nil)
instance = super

self.class.encrypted_attributes.each do |attribute, _options|
self.class.encrypted_attributes.each_key do |attribute|
clear_decrypted_column_cache(attribute)
end

Expand Down
2 changes: 1 addition & 1 deletion test/active_record_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class ActiveRecordTest < Minitest::Test
end

assert_equal :keyring_id, abstract_class.keyring_column_name
assert_equal({}, abstract_class.encrypted_attributes)
assert_empty(abstract_class.encrypted_attributes)
assert_instance_of Keyring::Base, abstract_class.keyring
end

Expand Down

0 comments on commit 6f1f3a5

Please sign in to comment.