mock_braintree 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/lib/mock_braintree/transaction.rb +2 -8
- data/lib/mock_braintree/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9003517a0967b41c191a6bcc5fd99ae595aa34e5ec902afd46a76426c995a7d9
|
4
|
+
data.tar.gz: 861fea6fc652766bc327d5b77d62f99454707c99e75d44444eb8a08a6dfd94ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef8806e2b96f0e3beebd4a8f40a93e1708b81acd24382bf96a5eb19bf419ca5c36f32414a5cbdfbba831ca67c05c8ff04133636757baf3eca24e752477de8d75
|
7
|
+
data.tar.gz: 5be4305f38d88a9866b6981c4d1001fce23c05eedeed0f6d66fe250cd8b6d30faa602da961b16a4e34b58ac9acf6e869c11223501724f341c9cbdf9e4f2530a5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
+
# 0.2.1
|
2
|
+
* Fix bug where transaction object would return new ID value each time called
|
3
|
+
* Removed `nonce` attribute from transaction object to match actual Braintree response
|
4
|
+
|
1
5
|
# 0.2.0
|
2
|
-
* BREAKING CHANGE - separated transaction and result object. Depending on success, the result will now be either a `SuccessfulResult` or `UnsuccessfulResult` object that contains a transaction object. This was changed to better match an actual Braintree response
|
6
|
+
* BREAKING CHANGE - separated transaction and result object. Depending on success, the result will now be either a `SuccessfulResult` or `UnsuccessfulResult` object that contains a transaction object. This was changed to better match an actual Braintree response
|
3
7
|
|
4
8
|
# 0.1.0
|
5
9
|
* Add basic `transaction.sale` functionality with result object and `transaction` object
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
require 'securerandom'
|
2
2
|
|
3
3
|
class Transaction
|
4
|
-
attr_reader :
|
4
|
+
attr_reader :amount
|
5
5
|
|
6
6
|
def initialize(hash = {})
|
7
7
|
@amount = hash[:amount]
|
8
|
-
@nonce = hash[:nonce]
|
9
|
-
@id = id
|
10
8
|
@options = hash.fetch(:options, nil)
|
11
9
|
@submit_for_settlement = submit_for_settlement
|
12
10
|
end
|
@@ -25,12 +23,8 @@ class Transaction
|
|
25
23
|
end
|
26
24
|
end
|
27
25
|
|
28
|
-
# def transaction
|
29
|
-
# self
|
30
|
-
# end
|
31
|
-
|
32
26
|
def id
|
33
|
-
SecureRandom.hex(3)
|
27
|
+
@id ||= SecureRandom.hex(3)
|
34
28
|
end
|
35
29
|
|
36
30
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mock_braintree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brent Busby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|