mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-04-27 14:57:45 +00:00
Merge pull request #1 from samsonjs/fix-ruby-3.4-warning
Fix Ruby 3.4 warnings
This commit is contained in:
commit
6df44cae57
4 changed files with 11 additions and 4 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
require:
|
require:
|
||||||
- standard
|
- standard
|
||||||
|
|
||||||
|
plugins:
|
||||||
- standard-performance
|
- standard-performance
|
||||||
- rubocop-rspec
|
- rubocop-rspec
|
||||||
- rubocop-performance
|
- rubocop-performance
|
||||||
|
|
@ -53,7 +55,10 @@ RSpec/MessageSpies:
|
||||||
RSpec/PendingWithoutReason:
|
RSpec/PendingWithoutReason:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
RSpec/FilePath:
|
RSpec/SpecFilePathFormat:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
RSpec/SpecFilePathSuffix:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Style/Alias:
|
Style/Alias:
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ module SimpleOAuth
|
||||||
private
|
private
|
||||||
|
|
||||||
def uri_parser
|
def uri_parser
|
||||||
@uri_parser ||= URI.const_defined?(:Parser) ? URI::DEFAULT_PARSER : URI
|
@uri_parser ||= URI.const_defined?(:Parser) ? URI::RFC2396_PARSER : URI
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -89,7 +89,7 @@ module SimpleOAuth
|
||||||
extra_keys -= IGNORED_KEYS
|
extra_keys -= IGNORED_KEYS
|
||||||
raise "SimpleOAuth: Found extra option keys not matching ATTRIBUTE_KEYS:\n [#{extra_keys.collect(&:inspect).join(", ")}]" unless options[:ignore_extra_keys] || extra_keys.empty?
|
raise "SimpleOAuth: Found extra option keys not matching ATTRIBUTE_KEYS:\n [#{extra_keys.collect(&:inspect).join(", ")}]" unless options[:ignore_extra_keys] || extra_keys.empty?
|
||||||
|
|
||||||
options.select { |key, _| matching_keys.include?(key) }.transform_keys { |key| :"oauth_#{key}" }
|
options.slice(*matching_keys).transform_keys { |key| :"oauth_#{key}" }
|
||||||
end
|
end
|
||||||
|
|
||||||
def signature
|
def signature
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
module SimpleOauth
|
module SimpleOauth
|
||||||
VERSION = "0.1.0".freeze
|
VERSION = "0.3.1".freeze
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -30,4 +30,6 @@ Gem::Specification.new do |spec|
|
||||||
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
||||||
spec.require_paths = ["lib"]
|
spec.require_paths = ["lib"]
|
||||||
spec.metadata["rubygems_mfa_required"] = "true"
|
spec.metadata["rubygems_mfa_required"] = "true"
|
||||||
|
|
||||||
|
spec.add_dependency "base64"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue