diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 438dd93..79ba362 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['3.1.4', '3.3.0'] + ruby-version: ['3.3.10', '3.4.1', '3.4.9'] steps: - uses: actions/checkout@v3 diff --git a/.rubocop.yml b/.rubocop.yml index 226e81a..0fc8b2e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,12 +1,15 @@ inherit_from: .rubocop_todo.yml AllCops: - TargetRubyVersion: 3.1 + TargetRubyVersion: 3.3 NewCops: enable Exclude: - 'vendor/**/*' - '_ignore/**/*' +Gemspec/DevelopmentDependencies: + EnforcedStyle: gemspec + Gemspec/RequireMFA: Enabled: false diff --git a/.ruby-version b/.ruby-version index 15a2799..5f6fc5e 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.0 +3.3.10 diff --git a/encrypted_strings.gemspec b/encrypted_strings.gemspec index 8cdb9b7..b1f37fb 100644 --- a/encrypted_strings.gemspec +++ b/encrypted_strings.gemspec @@ -16,6 +16,6 @@ Gem::Specification.new do |s| s.add_development_dependency("maxitest") s.add_development_dependency("rake") - s.add_development_dependency "rubocop", '1.30.0' + s.add_development_dependency "rubocop", '1.59.0' s.add_development_dependency("shoulda-matchers") end diff --git a/lib/encrypted_strings/extensions/string.rb b/lib/encrypted_strings/extensions/string.rb index 43ea895..c76d5e5 100644 --- a/lib/encrypted_strings/extensions/string.rb +++ b/lib/encrypted_strings/extensions/string.rb @@ -41,8 +41,8 @@ def self.included(base) #:nodoc: # # password = 'shhhh' # password.encrypt(:sha, :salt => 'secret') # => "3b22cbe4acde873c3efc82681096f3ae69aff828" - def encrypt(*args) - cipher = cipher_from_args(*args) + def encrypt(*) + cipher = cipher_from_args(*) encrypted_string = cipher.encrypt(self) encrypted_string.cipher = cipher @@ -58,8 +58,8 @@ def encrypt(*args) # password = 'shhhh' # password.encrypt!(:symmetric, :password => 'secret') # => "qSg8vOo6QfU=\n" # password # => "qSg8vOo6QfU=\n" - def encrypt!(*args) - encrypted_string = encrypt(*args) + def encrypt!(*) + encrypted_string = encrypt(*) self.cipher = encrypted_string.cipher replace(encrypted_string) @@ -113,8 +113,8 @@ def decrypt(*args) # password = "qSg8vOo6QfU=\n" # password.decrypt!(:symmetric, :password => 'secret') # => "shhhh" # password # => "shhhh" - def decrypt!(*args) - value = replace(decrypt(*args)) + def decrypt!(*) + value = replace(decrypt(*)) self.cipher = nil value end @@ -201,6 +201,6 @@ def cipher_from_args(*args) #:nodoc: end end -::String.class_eval do +String.class_eval do include EncryptedStrings::Extensions::String end