mastercard_api_core 1.4.12 → 1.4.13

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: 26988b528ec261c6917a0867303d4cc8784f036eca98ebc942922b17e66c97fa
4
- data.tar.gz: 2f8401ae0bc6e3b4ca48c58250b1ce1c963824f1afda60170a65c987d3e0a714
3
+ metadata.gz: 7a5c94173d1709e2a98b8950559bf6f7b63cc3de28f988502990fc65b867bf06
4
+ data.tar.gz: 8ac043eef75d993d6018b9914f7896ac85d1081b56a7c4fb57ae66e7859a4b6b
5
5
  SHA512:
6
- metadata.gz: d3b76044158ed389656571c8d1468ce8d1b661c58890300c957403f88b88903f0219b3a23cb784d7f8140068aa0821b833347a69347d88aca2923bc566ae2c10
7
- data.tar.gz: 03f2c1af0132f7860b13e103c190a80699625e164b1b80e1bf09ef64287a87a890b09b763160a1d0a041d00b54d98b4bb1922e6f25b4fd281a347ed1c610fffd
6
+ metadata.gz: 9779ce220aa6dbfa0ed2e8e66ca06e238af06f874963ebcf692be7e5df8dd733db9b3312b60331cc1b28c73f1692509006cbebe34bd244f211d3403ba0246c62
7
+ data.tar.gz: 057b5379125a5195ac9a85b791b298b77adb652116056f2405a794bace38ca405a07fa3a2a0d5e71eed7722505747a066ac4b9b0adee63dbabfeeba2ed73ee6f
@@ -123,7 +123,7 @@ module MasterCard
123
123
  def signMessage(message)
124
124
  #
125
125
  #Signs the message using the private key with sha1 as digest
126
- privateKeyFile = File.read(@privateKey)
126
+ privateKeyFile = File.binread(@privateKey)
127
127
 
128
128
  p12 = OpenSSL::PKCS12.new(privateKeyFile, @password)
129
129
  sign = p12.key.sign OpenSSL::Digest::SHA256.new, message
@@ -26,12 +26,11 @@
26
26
  #
27
27
  Gem::Specification.new do |gem|
28
28
  gem.name = "mastercard_api_core"
29
- gem.authors = ["MasterCard Worldwide"]
30
- gem.email = ["APISupport@mastercard.com"]
31
- gem.summary = %q{MasterCard core SDK}
32
- gem.description = %q{This is the MasterCard OpenAPI core SDK. This provides the base functionality for all MasterCard APIs}
29
+ gem.authors = ["Mastercard"]
30
+ gem.summary = %q{Mastercard Core SDK}
31
+ gem.description = %q{Core component of Mastercard Ruby SDKs}
33
32
  gem.homepage = "https://developer.mastercard.com"
34
- gem.version = "1.4.12"
33
+ gem.version = "1.4.13"
35
34
  gem.license = "BSD-2-Clause"
36
35
 
37
36
  gem.files = Dir["{bin,spec,lib}/**/*"]+ Dir["data/*"] + ["mastercard_api_core.gemspec"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_api_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.12
4
+ version: 1.4.13
5
5
  platform: ruby
6
6
  authors:
7
- - MasterCard Worldwide
7
+ - Mastercard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-26 00:00:00.000000000 Z
11
+ date: 2019-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov
@@ -38,10 +38,8 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: This is the MasterCard OpenAPI core SDK. This provides the base functionality
42
- for all MasterCard APIs
43
- email:
44
- - APISupport@mastercard.com
41
+ description: Core component of Mastercard Ruby SDKs
42
+ email:
45
43
  executables: []
46
44
  extensions: []
47
45
  extra_rdoc_files: []
@@ -81,5 +79,5 @@ rubyforge_project:
81
79
  rubygems_version: 2.7.7
82
80
  signing_key:
83
81
  specification_version: 4
84
- summary: MasterCard core SDK
82
+ summary: Mastercard Core SDK
85
83
  test_files: []