mastercard_oauth1_signer 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d20048eaee4cc7be28f6a23e7d003dbb7882ffc28c00a0170c5320de3aa464c6
4
- data.tar.gz: eace44726b206ba8aeb1546ff583d4852e5c6e85ae569781c987f18d07e8c6b5
3
+ metadata.gz: 3e52e7a13c81a01dea40d2fa0319d56621a4c1d5966bc96b386b1b09c766cfbb
4
+ data.tar.gz: f5073154eda820ace6641ca7362b3e1db91a62c0bb478751c4850ecc3f179c65
5
5
  SHA512:
6
- metadata.gz: '078fc65e69a50f2b3533d32c812317df1e2edb6bbfb3af0ff9372247d90fe98932debdfa9887360efa31caef8c08dc5be0394a47ea4a1458e3788949460c5994'
7
- data.tar.gz: 6f184dbba62f270308dc3832cc626b180e1ab328ef1ae11769ee7b95615cda1af483e16216916599e36078e35a555dc63f75d9e44daca62b3e83e3347888d1d8
6
+ metadata.gz: b5c077259309f75298276fd57538de40126b20be38514e1de00ce34e8c86e8b833133b17c7c08c1edb96f174f68d3431c8fc3079b73570d7ad4a7525664f8be5
7
+ data.tar.gz: ffbdb6961f7b8b08e7a639c3e57cac9d64c9732498298e94350e7bd2417c5c143b30a4205a6467dd10528b61a9411ac69bb43e1215acbdf61a9fb454460750b3
data/lib/oauth.rb CHANGED
@@ -98,7 +98,7 @@ class OAuth
98
98
  oauth_params.each {|entry|
99
99
  entry_key = entry[0]
100
100
  entry_val = entry[1]
101
- header = "#{header}#{entry_key} = '#{entry_val}',"
101
+ header = "#{header}#{entry_key}=\"#{entry_val}\","
102
102
  }
103
103
  # Remove trailing ,
104
104
  header.slice(0, header.length - 1)
@@ -115,7 +115,7 @@ class OAuth
115
115
  url = URI.parse(uri)
116
116
  # Lowercase scheme and authority
117
117
  # Remove query and fragment
118
- "#{url.scheme.downcase}://#{url.host.downcase}#{url.path.downcase}"
118
+ "#{url.scheme.downcase}://#{url.host.downcase}#{url.path}"
119
119
  end
120
120
 
121
121
  #
@@ -3,7 +3,7 @@ Gem::Specification.new do |gem|
3
3
  gem.authors = ["Mastercard"]
4
4
  gem.summary = %q{OAuth signature SDK}
5
5
  gem.description = %q{Zero dependency library for generating a Mastercard API compliant OAuth signature}
6
- gem.version = "1.0.1"
6
+ gem.version = "1.1.0"
7
7
  gem.license = "MIT"
8
8
  gem.homepage = "https://github.com/Mastercard/oauth1-signer-ruby"
9
9
  gem.files = Dir["{bin,spec,lib}/**/*"]+ Dir["data/*"] + ["oauth1_signer_ruby.gemspec"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_oauth1_signer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mastercard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-04 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler