mangopay 3.0.17 → 3.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5edb132b0e20234d67f9e32b0c85488a6c28a205
4
- data.tar.gz: e7412f580e18556fde75accb580a04f08fddcccf
3
+ metadata.gz: 423c179e18019cf3aefcecedd805b3fceb391f4b
4
+ data.tar.gz: 281642237df4cc0944592fa18af0188c18e5bc8e
5
5
  SHA512:
6
- metadata.gz: 6c3d45cdf81227d577d0b7f3c386053f955566ab9fc5fc0b1ba958ef5aaa5e55d3266d8066874dcff7b02233ec44b81a0428a27df2edfd5e7336027789b9b40a
7
- data.tar.gz: 1c2955282c1133097eefdc8180e8033b4642d5b07b90a0c6772d821da02a2f020c0802170de531acffe27ddba1a49fcbf55ff6d408c188e2b43c17c6bf5ce9a4
6
+ metadata.gz: 19a7d3665863f82d12766b1b590304cbfbb16ab3e1f2102ad22a34858e8784f08d5782c8177b93a3cce7610f1ce7e6251cc0a4737c43152bd10eacd9e2250858
7
+ data.tar.gz: c8bf7f070bcc27d9179d813d360346fafeeff0452461a5d0328153f3f0af39c6e025a15a3a27f2d1c49de266673403dfe368f258ec4c0e4dd3926a831786ee16
data/README.md CHANGED
@@ -14,6 +14,8 @@ This version (3.*) of the gem is targeting the Mangopay API Version 2.
14
14
  It has a brand new structure to make the api calls easier to use
15
15
  and is not backward compatible with 2.* series.
16
16
 
17
+ Since [v3.0.17](https://github.com/Mangopay/mangopay2-ruby-sdk/releases/tag/v3.0.17) of the SDK, you must be using at least v2.01 of the API (more information about the changes required [here](https://docs.mangopay.com/api-v2-01-overview/))
18
+
17
19
  ## Usage
18
20
 
19
21
  ### Install
@@ -16,7 +16,7 @@ module MangoPay
16
16
  def get_token
17
17
  token = storage.get
18
18
  if token.nil? || token['timestamp'].nil? || token['timestamp'] <= Time.now
19
- token = MangoPay.request(:post, '/v2/oauth/token', {}, {}, {}, Proc.new do |req|
19
+ token = MangoPay.request(:post, "/#{MangoPay.version_code}/oauth/token", {}, {}, {}, Proc.new do |req|
20
20
  cfg = MangoPay.configuration
21
21
  req.basic_auth cfg.client_id, cfg.client_passphrase
22
22
  req.body = 'grant_type=client_credentials'
@@ -1,3 +1,3 @@
1
1
  module MangoPay
2
- VERSION = '3.0.17'
2
+ VERSION = '3.0.18'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangopay
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.17
4
+ version: 3.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoffroy Lorieux
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-29 00:00:00.000000000 Z
12
+ date: 2015-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json