braintree-rails 0.0.2 → 0.1.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.
- data/Gemfile +3 -3
- data/Gemfile.lock +4 -4
- data/README.md +6 -6
- data/braintree-rails.gemspec +4 -4
- data/lib/braintree-rails.rb +2 -0
- data/lib/braintree_rails/credit_card.rb +8 -0
- data/lib/braintree_rails/customer.rb +5 -9
- data/lib/braintree_rails/exceptions.rb +1 -1
- data/lib/braintree_rails/model.rb +14 -14
- data/lib/braintree_rails/transaction.rb +90 -0
- data/lib/braintree_rails/transactions.rb +29 -0
- data/log/braintree_test.log +164706 -136200
- data/test/fixtures/address.xml +1 -1
- data/test/fixtures/customer.xml +1 -1
- data/test/fixtures/transaction.xml +100 -0
- data/test/fixtures/transaction_error.xml +25 -0
- data/test/integration/braintree_rails/address_integration_test.rb +0 -33
- data/test/integration/braintree_rails/credit_card_integration_test.rb +1 -93
- data/test/integration/braintree_rails/transaction_integration_test.rb +50 -0
- data/test/test_helper.rb +26 -0
- data/test/unit/braintree_rails/transaction_test.rb +132 -0
- metadata +16 -10
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: braintree-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,30 +9,30 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: braintree
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
21
|
+
version: 2.16.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
29
|
+
version: 2.16.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: activemodel
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: '3.0'
|
38
38
|
type: :runtime
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '3.0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
@@ -48,7 +48,7 @@ dependencies:
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '3.0'
|
54
54
|
type: :runtime
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '3.0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
@@ -124,6 +124,8 @@ files:
|
|
124
124
|
- lib/braintree_rails/customer.rb
|
125
125
|
- lib/braintree_rails/exceptions.rb
|
126
126
|
- lib/braintree_rails/model.rb
|
127
|
+
- lib/braintree_rails/transaction.rb
|
128
|
+
- lib/braintree_rails/transactions.rb
|
127
129
|
- lib/env.rb
|
128
130
|
- lib/tasks/test.rake
|
129
131
|
- lib/test_env.rb
|
@@ -137,9 +139,12 @@ files:
|
|
137
139
|
- test/fixtures/credit_card.xml
|
138
140
|
- test/fixtures/credit_card_validation_error.xml
|
139
141
|
- test/fixtures/customer.xml
|
142
|
+
- test/fixtures/transaction.xml
|
143
|
+
- test/fixtures/transaction_error.xml
|
140
144
|
- test/integration/braintree_rails/address_integration_test.rb
|
141
145
|
- test/integration/braintree_rails/credit_card_integration_test.rb
|
142
146
|
- test/integration/braintree_rails/customer_integration_test.rb
|
147
|
+
- test/integration/braintree_rails/transaction_integration_test.rb
|
143
148
|
- test/integration/integration_test_helper.rb
|
144
149
|
- test/test_helper.rb
|
145
150
|
- test/unit/braintree_rails/address_test.rb
|
@@ -147,6 +152,7 @@ files:
|
|
147
152
|
- test/unit/braintree_rails/credit_card_test.rb
|
148
153
|
- test/unit/braintree_rails/credit_cards_test.rb
|
149
154
|
- test/unit/braintree_rails/customer_test.rb
|
155
|
+
- test/unit/braintree_rails/transaction_test.rb
|
150
156
|
- test/unit/unit_test_helper.rb
|
151
157
|
homepage: https://github.com/lyang/braintree-rails
|
152
158
|
licenses:
|