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 +4 -4
- data/README.md +2 -0
- data/lib/mangopay/authorization_token.rb +1 -1
- data/lib/mangopay/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 423c179e18019cf3aefcecedd805b3fceb391f4b
|
4
|
+
data.tar.gz: 281642237df4cc0944592fa18af0188c18e5bc8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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'
|
data/lib/mangopay/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|