mobilepay 1.1.2 → 1.1.3

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
  SHA1:
3
- metadata.gz: 5f5fac960f2e73226c07e5686d5d58322424070e
4
- data.tar.gz: fb432f96a5f1828d5cedd596800a78dbe15b3135
3
+ metadata.gz: 05ee373ec4248f18c0dd7d5ce91f9c94bd612e78
4
+ data.tar.gz: f803eefec6e1aaf711cc3c2be1cad9328ae42138
5
5
  SHA512:
6
- metadata.gz: 61dcbee66eae30fd03b9f220d88ab8733321953816a4ed3f214e9ebf7ce15ec54ed13a120267c8bcc058882b4e0b5a6e989b0cf84c759d095babf2d7bdf06ddb
7
- data.tar.gz: d16fc7e6cbe1615896703a892ca04784f40390e55c567d22097bdff43ccef4b4df38fd76313626ccd06943dbffd73e0410b4329ae69885ffc001b0a95b72ec13
6
+ metadata.gz: bba178953ad4c70f8f60190f483809f303581942f3a5e4b050c5c4b60907bf74f887d7689e45a551628c41f60f7c65524eb6fdee26aaebf35fc769d8a327e15b
7
+ data.tar.gz: fc0fb6ae892ad98a0c7d5397835cce0b03c8e7acf89968e6525dcb420b83294c8330ef8e8d036c11aa6cadcf9ecd2f05d8b67bdc186ad76f51527c8500b948e8
data/README.md CHANGED
@@ -7,6 +7,7 @@ Actions with payments in MobilePay system.
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
+ gem 'jose'
10
11
  gem 'mobilepay'
11
12
  ```
12
13
 
@@ -37,7 +38,7 @@ Or install it yourself as:
37
38
  ```
38
39
  subscription_key - Subscription Key for MobilePay, required
39
40
  merchant_id - Merchant ID, required
40
- privatekey - Secret key for creating signature for requests, required
41
+ privatekey - File with secret key for creating signature for requests, required
41
42
 
42
43
  ### Public Key
43
44
 
@@ -41,14 +41,14 @@ module Mobilepay
41
41
 
42
42
  def check_response(response)
43
43
  if response.code != '200'
44
- error_message = response.body.empty? ? response.code : JSON.parse(response.body)['message']
44
+ error_message = response.body.empty? ? response.code : response.body
45
45
  raise Failure, error_message
46
46
  end
47
47
  end
48
48
 
49
49
  def check_args(args)
50
50
  args.each do |arg_name, value|
51
- if value.nil? || !value.is_a?(String)
51
+ if value.nil?
52
52
  raise Failure, "Invalid argument '#{arg_name}', must be string"
53
53
  end
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module Mobilepay
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilepay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Bogdanov