amex_tokenization_client 0.2.0 → 0.3.0
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/.github/workflows/ci.yaml +30 -0
- data/README.md +5 -2
- data/amex_tokenization_client.gemspec +0 -1
- data/lib/amex_tokenization_client/version.rb +1 -1
- data/lib/amex_tokenization_client.rb +2 -2
- metadata +4 -19
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24251fb3b1e03df879a5b952e1b06e3da4172cae6a9de57cb23245141720987d
|
|
4
|
+
data.tar.gz: 8db1b2120594ec3b79326ec9370ce78afc7c0b3c424d27e61421290c28626d3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eed0f967cef118de7a0e4498e694a7c9086f949488d5ffca4826fd2783dc13e634dbe91e142dcadee5ad5acc12d2ba497391b544ceeb1b7c9601c99c3e7ce57b
|
|
7
|
+
data.tar.gz: 0fd116927a10484ea29290c320ac815716ad337f731dc2f0d382939e3715e1c65093ce2b01b58fa842e1fdb8f8265c1325565bf359f4957bbfeaac1de1d74e86
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
name: ci
|
|
4
|
+
|
|
5
|
+
on: [push]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
ruby-version: ['2.7', '3.0']
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v2
|
|
17
|
+
- name: Set up Ruby
|
|
18
|
+
uses: ruby/setup-ruby@v1
|
|
19
|
+
with:
|
|
20
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
21
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
22
|
+
- name: Run tests
|
|
23
|
+
env:
|
|
24
|
+
AETS_TOKEN_REQUESTER_ID: ${{ secrets.AETS_TOKEN_REQUESTER_ID }}
|
|
25
|
+
AETS_CLIENT_ID: ${{ secrets.AETS_CLIENT_ID }}
|
|
26
|
+
AETS_CLIENT_SECRET: ${{ secrets.AETS_CLIENT_SECRET }}
|
|
27
|
+
AETS_ENC_KEY_ID: ${{ secrets.AETS_ENC_KEY_ID }}
|
|
28
|
+
AETS_ENC_KEY: ${{ secrets.AETS_ENC_KEY }}
|
|
29
|
+
|
|
30
|
+
run: bundle exec rake
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# AmexTokenizationClient
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/amex_tokenization_client)
|
|
4
|
-
[![
|
|
4
|
+
[![Github Actions ][actions_badge]][actions]
|
|
5
5
|
|
|
6
6
|
Unofficial Ruby wrapper for the American Express Tokenization Service (AETS)
|
|
7
7
|
published via the [amex developer portal](https://developer.americanexpress.com/products/amex-token-service/overview),
|
|
@@ -33,4 +33,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
33
33
|
|
|
34
34
|
Read the [LICENSE](LICENSE.md) for details.
|
|
35
35
|
|
|
36
|
-
Copyright (c) 2018-
|
|
36
|
+
Copyright (c) 2018-2021 [Varyonic](https://www.varyonic.com).
|
|
37
|
+
|
|
38
|
+
[actions_badge]: https://github.com/varyonic/amex_tokenization_client/workflows/ci/badge.svg
|
|
39
|
+
[actions]: https://github.com/varyonic/amex_tokenization_client/actions
|
|
@@ -57,11 +57,11 @@ class AmexTokenizationClient
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
def provisioning_payload(kargs)
|
|
60
|
-
ProvisioningPayload.new(kargs).to_json(encryption_key_id, encryption_key)
|
|
60
|
+
ProvisioningPayload.new(**kargs).to_json(encryption_key_id, encryption_key)
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def notifications_payload(kargs)
|
|
64
|
-
NotificationsPayload.new(kargs).to_json(encryption_key_id, encryption_key)
|
|
64
|
+
NotificationsPayload.new(**kargs).to_json(encryption_key_id, encryption_key)
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
def jwe_decrypt(data)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: amex_tokenization_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piers Chambers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwe
|
|
@@ -24,20 +24,6 @@ dependencies:
|
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 0.4.0
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: bundler
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.16'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.16'
|
|
41
27
|
- !ruby/object:Gem::Dependency
|
|
42
28
|
name: rake
|
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -73,9 +59,9 @@ executables: []
|
|
|
73
59
|
extensions: []
|
|
74
60
|
extra_rdoc_files: []
|
|
75
61
|
files:
|
|
62
|
+
- ".github/workflows/ci.yaml"
|
|
76
63
|
- ".gitignore"
|
|
77
64
|
- ".rspec"
|
|
78
|
-
- ".travis.yml"
|
|
79
65
|
- CONTRIBUTING.md
|
|
80
66
|
- Gemfile
|
|
81
67
|
- LICENSE.txt
|
|
@@ -108,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
94
|
- !ruby/object:Gem::Version
|
|
109
95
|
version: '0'
|
|
110
96
|
requirements: []
|
|
111
|
-
|
|
112
|
-
rubygems_version: 2.7.10
|
|
97
|
+
rubygems_version: 3.2.15
|
|
113
98
|
signing_key:
|
|
114
99
|
specification_version: 4
|
|
115
100
|
summary: Unofficial Ruby wrapper for the American Express Tokenization Service (AETS).
|