affirm-ruby-api 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +14 -12
- data/README.md +7 -3
- data/affirm-ruby-api.gemspec +3 -5
- data/lib/affirm/structs/transaction/event.rb +0 -1
- data/lib/affirm/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0df8ada7075ef3babd97d1c61ab3995f4a0a3de3c4ac11d5829ed59d5881105
|
4
|
+
data.tar.gz: 8e1b68e21079f052125da6c5d668b06e8c616450181fb460990932fa60bab71a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfa097ad10c557a8a32644d0364d7337a9db4e9713cc4acadc2b6354007f5db3d07b089f396f62442b95b28fd4b634bdcce7c14b1ff2b13e4a2832cf177b510a
|
7
|
+
data.tar.gz: 493edcb74fd37a736ec6ce4a9b4b1e392aa9191c6ca482735b8c64a94955613c0c9f810092b3dc0d0ae4756c535301450e4c5b48c031e3bca4b1555f46c45c2a
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,14 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [1.0.2] - 2020-04-21
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
- Fix Gemfile.lock missing version bump
|
14
|
+
- Support Ruby >= 2.5 (https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/)
|
15
|
+
|
16
|
+
## [1.0.1] - 2020-04-13
|
17
|
+
|
10
18
|
### Added
|
11
19
|
- Introduce `TestingSupport::HttpResponses` for sharing the http and JSON fixtures
|
12
20
|
so we can share these in environments that use this gem.
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
affirm-ruby-api (1.0.
|
4
|
+
affirm-ruby-api (1.0.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -17,16 +17,17 @@ GEM
|
|
17
17
|
gem-release (2.1.1)
|
18
18
|
hashdiff (1.0.1)
|
19
19
|
jaro_winkler (1.5.4)
|
20
|
-
method_source (0.
|
20
|
+
method_source (1.0.0)
|
21
21
|
parallel (1.19.1)
|
22
|
-
parser (2.7.
|
22
|
+
parser (2.7.1.1)
|
23
23
|
ast (~> 2.4.0)
|
24
|
-
pry (0.
|
25
|
-
coderay (~> 1.1
|
26
|
-
method_source (~>
|
24
|
+
pry (0.13.1)
|
25
|
+
coderay (~> 1.1)
|
26
|
+
method_source (~> 1.0)
|
27
27
|
public_suffix (4.0.3)
|
28
28
|
rainbow (3.0.0)
|
29
|
-
rake (
|
29
|
+
rake (13.0.1)
|
30
|
+
rexml (3.2.4)
|
30
31
|
rspec (3.9.0)
|
31
32
|
rspec-core (~> 3.9.0)
|
32
33
|
rspec-expectations (~> 3.9.0)
|
@@ -40,11 +41,12 @@ GEM
|
|
40
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
42
|
rspec-support (~> 3.9.0)
|
42
43
|
rspec-support (3.9.2)
|
43
|
-
rubocop (0.
|
44
|
+
rubocop (0.80.1)
|
44
45
|
jaro_winkler (~> 1.5.1)
|
45
46
|
parallel (~> 1.10)
|
46
47
|
parser (>= 2.7.0.1)
|
47
48
|
rainbow (>= 2.2.2, < 4.0)
|
49
|
+
rexml
|
48
50
|
ruby-progressbar (~> 1.7)
|
49
51
|
unicode-display_width (>= 1.4.0, < 1.7)
|
50
52
|
rubocop-performance (1.5.2)
|
@@ -55,9 +57,9 @@ GEM
|
|
55
57
|
docile (~> 1.1)
|
56
58
|
simplecov-html (~> 0.11)
|
57
59
|
simplecov-html (0.12.2)
|
58
|
-
standard (0.2.
|
59
|
-
rubocop (~> 0.
|
60
|
-
rubocop-performance (~> 1.5.
|
60
|
+
standard (0.2.4)
|
61
|
+
rubocop (~> 0.80.1)
|
62
|
+
rubocop-performance (~> 1.5.2)
|
61
63
|
unicode-display_width (1.6.1)
|
62
64
|
webmock (3.8.3)
|
63
65
|
addressable (>= 2.3.6)
|
@@ -71,7 +73,7 @@ DEPENDENCIES
|
|
71
73
|
affirm-ruby-api!
|
72
74
|
gem-release
|
73
75
|
pry
|
74
|
-
rake (~>
|
76
|
+
rake (~> 13.0)
|
75
77
|
rspec (~> 3.0)
|
76
78
|
simplecov
|
77
79
|
standard
|
data/README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
# Affirm Ruby
|
1
|
+
# Affirm Ruby API
|
2
2
|
|
3
3
|
![Run Tests](https://github.com/peterberkenbosch/affirm-ruby-api/workflows/Run%20Tests/badge.svg)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/affirm-ruby-api.svg)](https://badge.fury.io/rb/affirm-ruby-api)
|
5
5
|
|
6
|
-
|
6
|
+
Clean, fast and pure Ruby implementation for the [Affirm API](https://docs.affirm.com/affirm-developers/reference)
|
7
7
|
|
8
|
+
This is using the new Transaction API and is not compatible with the Charge API.
|
9
|
+
Also see the [Affirm Changelog](https://docs.affirm.com/affirm-developers/changelog/transactions-api)
|
8
10
|
|
9
11
|
## Installation
|
10
12
|
|
@@ -25,6 +27,9 @@ Or install it yourself as:
|
|
25
27
|
## Usage
|
26
28
|
|
27
29
|
|
30
|
+
## Sponsorship
|
31
|
+
|
32
|
+
If you use this extension and like to support this work, please consider [being a sponsor](https://github.com/sponsors/peterberkenbosch).
|
28
33
|
|
29
34
|
## Development
|
30
35
|
|
@@ -52,7 +57,6 @@ For details on how to use this, take a look at the usage in the spec files here.
|
|
52
57
|
|
53
58
|
Bug reports and pull requests are welcome on GitHub at https://github.com/peterberkenbosch/affirm-ruby-api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/peterberkenbosch/affirm-ruby-api/blob/master/CODE_OF_CONDUCT.md).
|
54
59
|
|
55
|
-
|
56
60
|
## License
|
57
61
|
|
58
62
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/affirm-ruby-api.gemspec
CHANGED
@@ -6,13 +6,11 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.authors = ["Peter Berkenbosch"]
|
7
7
|
spec.email = ["info@peterberkenbosch.nl"]
|
8
8
|
|
9
|
-
spec.summary = "Affirm Ruby
|
10
|
-
spec.description =
|
9
|
+
spec.summary = "Affirm Ruby API implementation"
|
10
|
+
spec.description = "Affirm Ruby API for enabling Affirm Financing in your Ruby based projects."
|
11
11
|
spec.homepage = "https://github.com/peterberkenbosch/affirm-ruby-api"
|
12
12
|
spec.license = "MIT"
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
14
|
-
|
15
|
-
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
16
14
|
|
17
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
16
|
spec.metadata["source_code_uri"] = "https://github.com/peterberkenbosch/affirm-ruby-api"
|
data/lib/affirm/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: affirm-ruby-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Berkenbosch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Affirm Ruby
|
13
|
+
description: Affirm Ruby API for enabling Affirm Financing in your Ruby based projects.
|
14
14
|
email:
|
15
15
|
- info@peterberkenbosch.nl
|
16
16
|
executables: []
|
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
81
|
requirements:
|
82
82
|
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 2.
|
84
|
+
version: 2.5.0
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -91,5 +91,5 @@ requirements: []
|
|
91
91
|
rubygems_version: 3.0.3
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
|
-
summary: Affirm Ruby
|
94
|
+
summary: Affirm Ruby API implementation
|
95
95
|
test_files: []
|