global_collect 0.1.3 → 0.1.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.
data/HISTORY
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
v0.1.4 (2010-04-30)
|
2
|
+
===================
|
3
|
+
* move spec/support/support_helper.rb to lib/global_collect/test_helper.rb so that apps that use the gem can use those helper methods to test their app using the canned responses.
|
4
|
+
|
5
|
+
v0.1.3 (2010-04-30)
|
6
|
+
===================
|
7
|
+
* add more canned responses
|
8
|
+
|
9
|
+
v0.1.2 (2010-04-29)
|
10
|
+
===================
|
11
|
+
* add a fakeweb helper to set up canned responses
|
12
|
+
|
1
13
|
v0.1.1 (2010-04-28)
|
2
14
|
===================
|
3
15
|
* Bug fixes
|
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ END
|
|
22
22
|
gemspec.email = "timon.karnezos@gmail.com"
|
23
23
|
gemspec.homepage = "http://github.com/timonk/global_collect"
|
24
24
|
gemspec.authors = ["Timon Karnezos"]
|
25
|
-
gemspec.version = "0.1.
|
25
|
+
gemspec.version = "0.1.4"
|
26
26
|
gemspec.add_dependency('httparty', '>= 0.5.2')
|
27
27
|
gemspec.add_dependency('builder', '>= 2.0')
|
28
28
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require File.join(File.dirname(__FILE__), '..', "lib", "global_collect")
|
3
3
|
|
4
4
|
|
5
|
-
require
|
5
|
+
require 'global_collect/test_helper'
|
6
6
|
env = :test
|
7
7
|
auth = :ip_check
|
8
8
|
install_canned_response(:merchant_link, env, auth, :successful, :get_order_status, :v2)
|
data/global_collect.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{global_collect}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Timon Karnezos"]
|
@@ -31,7 +31,6 @@ extensibility in mind.
|
|
31
31
|
"examples/insert_order_with_payment.rb",
|
32
32
|
"examples/process_challenged.rb",
|
33
33
|
"examples/set_payment.rb",
|
34
|
-
"examples/support_helper_ex.rb",
|
35
34
|
"examples/test_connection.rb",
|
36
35
|
"global_collect.gemspec",
|
37
36
|
"lib/global_collect.rb",
|
@@ -73,6 +72,7 @@ extensibility in mind.
|
|
73
72
|
"lib/global_collect/responses/insert_order_with_payment/credit_card_online_payment_response_methods.rb",
|
74
73
|
"lib/global_collect/responses/insert_order_with_payment/hosted_merchant_link_payment_response_methods.rb",
|
75
74
|
"lib/global_collect/responses/success_row.rb",
|
75
|
+
"lib/global_collect/test_helper.rb",
|
76
76
|
"spec/api_client_spec.rb",
|
77
77
|
"spec/builders/do_refund/credit_card_payment_spec.rb",
|
78
78
|
"spec/builders/do_refund/payment_spec.rb",
|
@@ -112,7 +112,6 @@ extensibility in mind.
|
|
112
112
|
"spec/support/successful_iowp_v1_response.xml",
|
113
113
|
"spec/support/successful_process_challenged_response.xml",
|
114
114
|
"spec/support/successful_set_payment_v1_response.xml",
|
115
|
-
"spec/support/support_helper.rb",
|
116
115
|
"spec/support/unsuccessful_do_refund_v1_response.xml",
|
117
116
|
"spec/support/unsuccessful_iowp_v1_response.xml",
|
118
117
|
"spec/support/unsuccessful_process_challenged_v1_response.xml"
|
@@ -152,15 +151,14 @@ extensibility in mind.
|
|
152
151
|
"spec/responses/insert_order_with_payment/hosted_merchant_link_payment_response_methods_spec.rb",
|
153
152
|
"spec/responses/succcess_row_spec.rb",
|
154
153
|
"spec/spec_helper.rb",
|
155
|
-
"spec/support/support_helper.rb",
|
156
154
|
"examples/cancel_payment.rb",
|
157
155
|
"examples/convert_amount.rb",
|
158
156
|
"examples/get_order_status.rb",
|
159
157
|
"examples/insert_order_with_payment.rb",
|
160
158
|
"examples/process_challenged.rb",
|
161
159
|
"examples/set_payment.rb",
|
162
|
-
"examples/
|
163
|
-
"examples/
|
160
|
+
"examples/test_connection.rb",
|
161
|
+
"examples/using_test_helper.rb"
|
164
162
|
]
|
165
163
|
|
166
164
|
if s.respond_to? :specification_version then
|
data/spec/spec_helper.rb
CHANGED
@@ -5,7 +5,7 @@ require 'global_collect'
|
|
5
5
|
# initialiaze the logger and silence it for the tests
|
6
6
|
GlobalCollect.wire_logger.level = 4
|
7
7
|
|
8
|
-
require
|
8
|
+
require 'global_collect/test_helper'
|
9
9
|
|
10
10
|
FakeWeb.allow_net_connect = false
|
11
11
|
def wire_up_response(success, action, version)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 4
|
9
|
+
version: 0.1.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Timon Karnezos
|
@@ -83,7 +83,6 @@ files:
|
|
83
83
|
- examples/insert_order_with_payment.rb
|
84
84
|
- examples/process_challenged.rb
|
85
85
|
- examples/set_payment.rb
|
86
|
-
- examples/support_helper_ex.rb
|
87
86
|
- examples/test_connection.rb
|
88
87
|
- global_collect.gemspec
|
89
88
|
- lib/global_collect.rb
|
@@ -125,6 +124,7 @@ files:
|
|
125
124
|
- lib/global_collect/responses/insert_order_with_payment/credit_card_online_payment_response_methods.rb
|
126
125
|
- lib/global_collect/responses/insert_order_with_payment/hosted_merchant_link_payment_response_methods.rb
|
127
126
|
- lib/global_collect/responses/success_row.rb
|
127
|
+
- lib/global_collect/test_helper.rb
|
128
128
|
- spec/api_client_spec.rb
|
129
129
|
- spec/builders/do_refund/credit_card_payment_spec.rb
|
130
130
|
- spec/builders/do_refund/payment_spec.rb
|
@@ -164,7 +164,6 @@ files:
|
|
164
164
|
- spec/support/successful_iowp_v1_response.xml
|
165
165
|
- spec/support/successful_process_challenged_response.xml
|
166
166
|
- spec/support/successful_set_payment_v1_response.xml
|
167
|
-
- spec/support/support_helper.rb
|
168
167
|
- spec/support/unsuccessful_do_refund_v1_response.xml
|
169
168
|
- spec/support/unsuccessful_iowp_v1_response.xml
|
170
169
|
- spec/support/unsuccessful_process_challenged_v1_response.xml
|
@@ -228,12 +227,11 @@ test_files:
|
|
228
227
|
- spec/responses/insert_order_with_payment/hosted_merchant_link_payment_response_methods_spec.rb
|
229
228
|
- spec/responses/succcess_row_spec.rb
|
230
229
|
- spec/spec_helper.rb
|
231
|
-
- spec/support/support_helper.rb
|
232
230
|
- examples/cancel_payment.rb
|
233
231
|
- examples/convert_amount.rb
|
234
232
|
- examples/get_order_status.rb
|
235
233
|
- examples/insert_order_with_payment.rb
|
236
234
|
- examples/process_challenged.rb
|
237
235
|
- examples/set_payment.rb
|
238
|
-
- examples/support_helper_ex.rb
|
239
236
|
- examples/test_connection.rb
|
237
|
+
- examples/using_test_helper.rb
|