afterpay-sdk 2.0.3 → 2.0.4

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
  SHA256:
3
- metadata.gz: 325c2a76eecf818abf7f69996a923c45e91825611dafca101f45e89d6e5924a5
4
- data.tar.gz: 1ca4a22d685e325ebb9387eb2b8a41a1997e35a8f08bdd28353bd01b1798f61c
3
+ metadata.gz: eb292a6cb6b785f6740765d4ccf6b4cc7c2f85dce07cb600bba1e2bb022a1d6d
4
+ data.tar.gz: 62bf9d375026ae439655ba8e4b3acc2efbb4b875e24b0ee0e720c95e030a5eb3
5
5
  SHA512:
6
- metadata.gz: 146bf039bce2ea50954094f994cd52a43c48fc725c222a5dfb8621fc203bd736c226f9e8ef6ece669f026426f9e45a2925486982eaa11bda604dfd979222a190
7
- data.tar.gz: de35ebc3d3dd62ef795d6ab0008ae89b89d7967cb2047579215859670c18b4792c4bf36398dc8f940eaed1877849f4da4454cb4f7f51cd425ed08eaedeee35d2
6
+ metadata.gz: 599c360d5665eef5641188d2844a8b49aabeeb7e32a8a72fdab941f94213c1b86438c516ebb024baf72fe4b4481b873f4fbf94999672d446a6bb923b90f0b748
7
+ data.tar.gz: e673d5b3e0069ec7a4e4a18c53d9f13dbc88b7f01ba96777f06c0838fa5e230c6da3017c1482fab862bbd9f17772a81e5a4fcdf4be06de5c2caad12a7d4214ff
@@ -0,0 +1,54 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ working_directory: ~/YourMechanic/afterpay-sdk
5
+ parallelism: 1
6
+ shell: /bin/bash --login
7
+
8
+ environment:
9
+ CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
10
+ CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
11
+ docker:
12
+ - image: circleci/ruby:2.6.2
13
+ steps:
14
+ - checkout
15
+ - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
16
+ - restore_cache:
17
+ keys:
18
+ # This branch if available
19
+ - v2-dep-{{ .Branch }}-
20
+ # Default branch if not
21
+ - v2-dep-master-
22
+ # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
23
+ - v2-dep-
24
+ - run:
25
+ name: Install bundler for afterpay-sdk
26
+ working_directory: ~/YourMechanic/afterpay-sdk
27
+ command: gem install bundler:2.2.11
28
+ - run:
29
+ name: Install Gems for afterpay-sdk
30
+ working_directory: ~/YourMechanic/afterpay-sdk
31
+ command: bundle install
32
+ # Save dependency cache
33
+ - save_cache:
34
+ key: v2-dep-{{ .Branch }}-{{ epoch }}
35
+ paths:
36
+ - vendor/bundle
37
+ - ~/virtualenvs
38
+ - ~/.m2
39
+ - ~/.ivy2
40
+ - ~/.bundle
41
+ - run:
42
+ working_directory: ~/YourMechanic/afterpay-sdk
43
+ command: bundle exec rubocop
44
+ - run:
45
+ working_directory: ~/YourMechanic/afterpay-sdk
46
+ command: bundle exec rspec --colour --drb --profile -fd --format progress $(circleci tests glob "spec/*_spec.rb" | circleci tests split)
47
+ - store_test_results:
48
+ path: /tmp/circleci-test-results
49
+ - store_artifacts:
50
+ path: /tmp/circleci-artifacts
51
+ - store_artifacts:
52
+ path: /tmp/circleci-test-results
53
+ - store_artifacts:
54
+ path: afterpay-sdk/coverage
data/CHANGELOG.md CHANGED
@@ -23,4 +23,9 @@
23
23
  ### 2.0.3 - 2021-08-20
24
24
 
25
25
  * enhancement
26
- * Expose declined? method in payment object, this is primarily applicable only for authorization (by @siddyg)
26
+ * Expose declined? method in payment object, this is primarily applicable only for authorization (by @siddyg)
27
+
28
+ ### 2.0.4 - 2021-08-24
29
+
30
+ * enhancement
31
+ * added circleci support (by @sachinsaxena1996)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- afterpay-sdk (2.0.3)
4
+ afterpay-sdk (2.0.4)
5
5
  faraday (>= 0.8, < 1.0)
6
6
  faraday_middleware (~> 0.13.1)
7
7
  money (>= 6.7.1, < 7.0.0)
@@ -11,6 +11,7 @@ GEM
11
11
  specs:
12
12
  addressable (2.6.0)
13
13
  public_suffix (>= 2.0.2, < 4.0)
14
+ ast (2.4.2)
14
15
  coderay (1.1.2)
15
16
  concurrent-ruby (1.1.9)
16
17
  coveralls (0.8.22)
@@ -29,18 +30,24 @@ GEM
29
30
  faraday_middleware (0.13.1)
30
31
  faraday (>= 0.7.4, < 1.0)
31
32
  hashdiff (0.3.8)
32
- i18n (1.8.9)
33
+ i18n (1.8.10)
33
34
  concurrent-ruby (~> 1.0)
34
35
  json (2.3.1)
35
36
  method_source (0.9.2)
36
37
  money (6.16.0)
37
38
  i18n (>= 0.6.4, <= 2)
38
39
  multipart-post (2.1.1)
40
+ parallel (1.20.1)
41
+ parser (3.0.2.0)
42
+ ast (~> 2.4.1)
39
43
  pry (0.12.2)
40
44
  coderay (~> 1.1.0)
41
45
  method_source (~> 0.9.0)
42
46
  public_suffix (3.0.3)
47
+ rainbow (3.0.0)
43
48
  rake (12.3.3)
49
+ regexp_parser (2.1.1)
50
+ rexml (3.2.5)
44
51
  rspec (3.8.0)
45
52
  rspec-core (~> 3.8.0)
46
53
  rspec-expectations (~> 3.8.0)
@@ -54,6 +61,18 @@ GEM
54
61
  diff-lcs (>= 1.2.0, < 2.0)
55
62
  rspec-support (~> 3.8.0)
56
63
  rspec-support (3.8.0)
64
+ rubocop (1.19.1)
65
+ parallel (~> 1.10)
66
+ parser (>= 3.0.0.0)
67
+ rainbow (>= 2.2.2, < 4.0)
68
+ regexp_parser (>= 1.8, < 3.0)
69
+ rexml
70
+ rubocop-ast (>= 1.9.1, < 2.0)
71
+ ruby-progressbar (~> 1.7)
72
+ unicode-display_width (>= 1.4.0, < 3.0)
73
+ rubocop-ast (1.11.0)
74
+ parser (>= 3.0.1.1)
75
+ ruby-progressbar (1.11.0)
57
76
  safe_yaml (1.0.5)
58
77
  simplecov (0.16.1)
59
78
  docile (~> 1.1)
@@ -64,6 +83,7 @@ GEM
64
83
  tins (~> 1.0)
65
84
  thor (0.19.4)
66
85
  tins (1.20.2)
86
+ unicode-display_width (2.0.0)
67
87
  vcr (4.0.0)
68
88
  webmock (3.5.1)
69
89
  addressable (>= 2.3.6)
@@ -81,6 +101,7 @@ DEPENDENCIES
81
101
  pry
82
102
  rake (~> 12.3, >= 12.3.3)
83
103
  rspec (~> 3.0)
104
+ rubocop (~> 1.7)
84
105
  simplecov
85
106
  vcr (~> 4.0)
86
107
  webmock (~> 3.5, >= 3.5.1)
data/afterpay-sdk.gemspec CHANGED
@@ -38,6 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency "pry"
39
39
  spec.add_development_dependency "rake", "~> 12.3", ">= 12.3.3"
40
40
  spec.add_development_dependency "rspec", "~> 3.0"
41
+ spec.add_development_dependency 'rubocop', '~> 1.7'
41
42
 
42
43
  spec.add_dependency "faraday", ">= 0.8", "< 1.0"
43
44
  spec.add_dependency "faraday_middleware", "~> 0.13.1"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Afterpay
4
- VERSION = "2.0.3"
4
+ VERSION = "2.0.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: afterpay-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sachin Saxena
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-20 00:00:00.000000000 Z
11
+ date: 2021-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,6 +92,20 @@ dependencies:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
94
  version: '3.0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubocop
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '1.7'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '1.7'
95
109
  - !ruby/object:Gem::Dependency
96
110
  name: faraday
97
111
  requirement: !ruby/object:Gem::Requirement
@@ -153,6 +167,7 @@ executables: []
153
167
  extensions: []
154
168
  extra_rdoc_files: []
155
169
  files:
170
+ - ".circleci/config.yml"
156
171
  - ".env.sample"
157
172
  - ".github/workflows/gempush.yml"
158
173
  - ".gitignore"
@@ -209,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
224
  - !ruby/object:Gem::Version
210
225
  version: '0'
211
226
  requirements: []
212
- rubygems_version: 3.0.8
227
+ rubygems_version: 3.0.3
213
228
  signing_key:
214
229
  specification_version: 4
215
230
  summary: Afterpay ruby wrapper