LitleOnline 8.19.0 → 8.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/CHANGELOG +34 -0
- data/README.md +1 -1
- data/Rakefile +2 -2
- data/bin/Setup.rb +16 -6
- data/lib/LitleBatchRequest.rb +85 -2
- data/lib/LitleOnlineRequest.rb +108 -5
- data/lib/LitleRequest.rb +14 -9
- data/lib/LitleTransaction.rb +152 -3
- data/lib/XMLFields.rb +441 -7
- data/test/functional/test_activate.rb +100 -0
- data/test/functional/test_activateReversal.rb +56 -0
- data/test/functional/test_auth.rb +38 -1
- data/test/functional/test_balanceInquiry.rb +80 -0
- data/test/functional/test_batchStream.rb +145 -0
- data/test/functional/test_cancelSubscription.rb +55 -0
- data/test/functional/test_captureGivenAuth.rb +32 -2
- data/test/functional/test_createPlan.rb +85 -0
- data/test/functional/test_credit.rb +22 -1
- data/test/functional/test_deactivate.rb +80 -0
- data/test/functional/test_deactivateReversal.rb +56 -0
- data/test/functional/test_depositReversal.rb +56 -0
- data/test/functional/test_forceCapture.rb +23 -1
- data/test/functional/test_litle_requests.rb +3 -2
- data/test/functional/test_load.rb +82 -0
- data/test/functional/test_loadReversal.rb +56 -0
- data/test/functional/test_refundReversal.rb +56 -0
- data/test/functional/test_sale.rb +23 -1
- data/test/functional/test_unload.rb +82 -0
- data/test/functional/test_unloadReversal.rb +56 -0
- data/test/functional/test_updatePlan.rb +58 -0
- data/test/functional/test_updateSubscription.rb +76 -0
- data/test/functional/ts_all.rb +21 -2
- data/test/unit/test_LitleBatchRequest.rb +47 -2
- data/test/unit/test_LitleOnlineRequest.rb +2 -2
- data/test/unit/test_activate.rb +92 -0
- data/test/{functional/ts_all.rb~ → unit/test_activateReversal.rb} +17 -17
- data/test/unit/test_auth.rb +37 -3
- data/test/unit/test_balanceInquiry.rb +52 -0
- data/test/unit/test_cancelSubscription.rb +43 -0
- data/test/unit/test_captureGivenAuth.rb +44 -2
- data/test/unit/test_createPlan.rb +52 -0
- data/test/unit/test_credit.rb +3 -2
- data/test/unit/test_deactivate.rb +52 -0
- data/test/unit/test_deactivateReversal.rb +44 -0
- data/test/unit/test_depositReversal.rb +44 -0
- data/test/unit/test_load.rb +53 -0
- data/test/unit/test_loadReversal.rb +44 -0
- data/test/unit/test_refundReversal.rb +44 -0
- data/test/unit/test_sale.rb +18 -1
- data/test/unit/test_unload.rb +53 -0
- data/test/unit/test_unloadReversal.rb +44 -0
- data/test/unit/test_updatePlan.rb +45 -0
- data/test/unit/test_updateSubscription.rb +172 -0
- data/test/unit/test_xmlfields.rb +395 -0
- data/test/unit/ts_unit.rb +19 -2
- metadata +51 -34
- data/CHANGELOG~ +0 -81
- data/Rakefile~ +0 -93
- data/lib/LitleOnlineRequest.rb~ +0 -198
- data/lib/LitleRequest.rb~ +0 -513
- data/lib/LitleTransaction.rb~ +0 -297
- data/lib/XMLFields.rb~ +0 -1380
- data/test/unit/test_LitleOnlineRequest.rb~ +0 -296
- data/test/unit/test_sale.rb~ +0 -390
- data/test/unit/test_xmlfields.rb~ +0 -2515
data/test/unit/ts_unit.rb
CHANGED
@@ -24,17 +24,20 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|
24
24
|
=end
|
25
25
|
require 'test/unit'
|
26
26
|
require 'lib/LitleOnline'
|
27
|
-
|
27
|
+
|
28
28
|
|
29
29
|
require_relative 'test_xmlfields'
|
30
|
+
require_relative 'test_captureGivenAuth'
|
30
31
|
require_relative 'test_sale'
|
32
|
+
require_relative 'test_LitleOnlineRequest'
|
33
|
+
require_relative 'test_updateSubscription'
|
31
34
|
require_relative 'test_auth'
|
32
35
|
require_relative 'test_authReversal'
|
33
36
|
require_relative 'test_credit'
|
34
37
|
require_relative 'test_token'
|
35
38
|
require_relative 'test_forceCapture'
|
36
39
|
require_relative 'test_capture'
|
37
|
-
require_relative '
|
40
|
+
require_relative 'test_auth'
|
38
41
|
require_relative 'test_echeckRedeposit'
|
39
42
|
require_relative 'test_echeckSale'
|
40
43
|
require_relative 'test_echeckCredit'
|
@@ -45,3 +48,17 @@ require_relative 'test_LitleRequest'
|
|
45
48
|
require_relative 'test_LitleTransaction'
|
46
49
|
require_relative 'test_LitleBatchRequest'
|
47
50
|
require_relative 'test_LitleAUBatch'
|
51
|
+
require_relative 'test_cancelSubscription'
|
52
|
+
require_relative 'test_deactivate'
|
53
|
+
require_relative 'test_load'
|
54
|
+
require_relative 'test_unload'
|
55
|
+
require_relative 'test_balanceInquiry'
|
56
|
+
require_relative 'test_createPlan'
|
57
|
+
require_relative 'test_updatePlan'
|
58
|
+
require_relative 'test_activate'
|
59
|
+
require_relative 'test_activateReversal'
|
60
|
+
require_relative 'test_depositReversal'
|
61
|
+
require_relative 'test_refundReversal'
|
62
|
+
require_relative 'test_loadReversal'
|
63
|
+
require_relative 'test_unloadReversal'
|
64
|
+
require_relative 'test_deactivateReversal'
|
metadata
CHANGED
@@ -1,109 +1,105 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: LitleOnline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Litle & Co
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-object
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: xml-mapping
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: net-sftp
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: libxml-ruby
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: crack
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: mocha
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
description:
|
98
|
-
see the XSD schema for specific fields that are supported by this format.
|
97
|
+
description: |+
|
98
|
+
Litle Online Ruby SDK created for version 8.18 of Litle XML format, see the XSD schema for specific fields that are supported by this format.
|
99
99
|
|
100
|
+
This gem contains an application interface in the Ruby programming language created by Litle & Co.
|
100
101
|
|
101
|
-
This gem contains an application interface in the Ruby programming language created
|
102
|
-
by Litle & Co.
|
103
102
|
|
104
|
-
|
105
|
-
|
106
|
-
'
|
107
103
|
email: sdksupport@litle.com
|
108
104
|
executables:
|
109
105
|
- sample_driver.rb
|
@@ -112,13 +108,11 @@ extensions: []
|
|
112
108
|
extra_rdoc_files: []
|
113
109
|
files:
|
114
110
|
- CHANGELOG
|
115
|
-
- CHANGELOG~
|
116
111
|
- CONTRIBUTORS
|
117
112
|
- DESCRIPTION
|
118
113
|
- LICENSE
|
119
114
|
- README.md
|
120
115
|
- Rakefile
|
121
|
-
- Rakefile~
|
122
116
|
- SETUP.md
|
123
117
|
- bin/Setup.rb
|
124
118
|
- bin/sample_batch_driver.rb
|
@@ -129,14 +123,10 @@ files:
|
|
129
123
|
- lib/LitleListeners.rb
|
130
124
|
- lib/LitleOnline.rb
|
131
125
|
- lib/LitleOnlineRequest.rb
|
132
|
-
- lib/LitleOnlineRequest.rb~
|
133
126
|
- lib/LitleRequest.rb
|
134
|
-
- lib/LitleRequest.rb~
|
135
127
|
- lib/LitleTransaction.rb
|
136
|
-
- lib/LitleTransaction.rb~
|
137
128
|
- lib/LitleXmlMapper.rb
|
138
129
|
- lib/XMLFields.rb
|
139
|
-
- lib/XMLFields.rb~
|
140
130
|
- lib/cacert.pem
|
141
131
|
- test/certification/certTest1_base.rb
|
142
132
|
- test/certification/certTest2_authenhanced.rb
|
@@ -145,12 +135,21 @@ files:
|
|
145
135
|
- test/certification/certTest5_token.rb
|
146
136
|
- test/certification/certTest_batchAll.rb
|
147
137
|
- test/certification/ts_all.rb
|
138
|
+
- test/functional/test_activate.rb
|
139
|
+
- test/functional/test_activateReversal.rb
|
148
140
|
- test/functional/test_auth.rb
|
149
141
|
- test/functional/test_authReversal.rb
|
142
|
+
- test/functional/test_balanceInquiry.rb
|
150
143
|
- test/functional/test_batch.rb
|
144
|
+
- test/functional/test_batchStream.rb
|
145
|
+
- test/functional/test_cancelSubscription.rb
|
151
146
|
- test/functional/test_capture.rb
|
152
147
|
- test/functional/test_captureGivenAuth.rb
|
148
|
+
- test/functional/test_createPlan.rb
|
153
149
|
- test/functional/test_credit.rb
|
150
|
+
- test/functional/test_deactivate.rb
|
151
|
+
- test/functional/test_deactivateReversal.rb
|
152
|
+
- test/functional/test_depositReversal.rb
|
154
153
|
- test/functional/test_echeckCredit.rb
|
155
154
|
- test/functional/test_echeckRedeposit.rb
|
156
155
|
- test/functional/test_echeckSale.rb
|
@@ -158,35 +157,53 @@ files:
|
|
158
157
|
- test/functional/test_echeckVoid.rb
|
159
158
|
- test/functional/test_forceCapture.rb
|
160
159
|
- test/functional/test_litle_requests.rb
|
160
|
+
- test/functional/test_load.rb
|
161
|
+
- test/functional/test_loadReversal.rb
|
162
|
+
- test/functional/test_refundReversal.rb
|
161
163
|
- test/functional/test_sale.rb
|
162
164
|
- test/functional/test_token.rb
|
165
|
+
- test/functional/test_unload.rb
|
166
|
+
- test/functional/test_unloadReversal.rb
|
163
167
|
- test/functional/test_updateCardValidationNumOnToken.rb
|
168
|
+
- test/functional/test_updatePlan.rb
|
169
|
+
- test/functional/test_updateSubscription.rb
|
164
170
|
- test/functional/test_xmlfields.rb
|
165
171
|
- test/functional/ts_all.rb
|
166
|
-
- test/functional/ts_all.rb~
|
167
172
|
- test/unit/test_LitleAUBatch.rb
|
168
173
|
- test/unit/test_LitleBatchRequest.rb
|
169
174
|
- test/unit/test_LitleOnlineRequest.rb
|
170
|
-
- test/unit/test_LitleOnlineRequest.rb~
|
171
175
|
- test/unit/test_LitleRequest.rb
|
172
176
|
- test/unit/test_LitleTransaction.rb
|
177
|
+
- test/unit/test_activate.rb
|
178
|
+
- test/unit/test_activateReversal.rb
|
173
179
|
- test/unit/test_auth.rb
|
174
180
|
- test/unit/test_authReversal.rb
|
181
|
+
- test/unit/test_balanceInquiry.rb
|
182
|
+
- test/unit/test_cancelSubscription.rb
|
175
183
|
- test/unit/test_capture.rb
|
176
184
|
- test/unit/test_captureGivenAuth.rb
|
185
|
+
- test/unit/test_createPlan.rb
|
177
186
|
- test/unit/test_credit.rb
|
187
|
+
- test/unit/test_deactivate.rb
|
188
|
+
- test/unit/test_deactivateReversal.rb
|
189
|
+
- test/unit/test_depositReversal.rb
|
178
190
|
- test/unit/test_echeckCredit.rb
|
179
191
|
- test/unit/test_echeckRedeposit.rb
|
180
192
|
- test/unit/test_echeckSale.rb
|
181
193
|
- test/unit/test_echeckVerification.rb
|
182
194
|
- test/unit/test_echeckVoid.rb
|
183
195
|
- test/unit/test_forceCapture.rb
|
196
|
+
- test/unit/test_load.rb
|
197
|
+
- test/unit/test_loadReversal.rb
|
198
|
+
- test/unit/test_refundReversal.rb
|
184
199
|
- test/unit/test_sale.rb
|
185
|
-
- test/unit/test_sale.rb~
|
186
200
|
- test/unit/test_token.rb
|
201
|
+
- test/unit/test_unload.rb
|
202
|
+
- test/unit/test_unloadReversal.rb
|
187
203
|
- test/unit/test_updateCardValidationNumOnToken.rb
|
204
|
+
- test/unit/test_updatePlan.rb
|
205
|
+
- test/unit/test_updateSubscription.rb
|
188
206
|
- test/unit/test_xmlfields.rb
|
189
|
-
- test/unit/test_xmlfields.rb~
|
190
207
|
- test/unit/ts_unit.rb
|
191
208
|
homepage: http://www.litle.com/developers
|
192
209
|
licenses: []
|
@@ -197,12 +214,12 @@ require_paths:
|
|
197
214
|
- lib
|
198
215
|
required_ruby_version: !ruby/object:Gem::Requirement
|
199
216
|
requirements:
|
200
|
-
- -
|
217
|
+
- - ">="
|
201
218
|
- !ruby/object:Gem::Version
|
202
219
|
version: 1.8.7
|
203
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
221
|
requirements:
|
205
|
-
- -
|
222
|
+
- - ">="
|
206
223
|
- !ruby/object:Gem::Version
|
207
224
|
version: '0'
|
208
225
|
requirements:
|
@@ -212,6 +229,6 @@ rubygems_version: 2.2.2
|
|
212
229
|
signing_key:
|
213
230
|
specification_version: 4
|
214
231
|
summary: Ruby SDK produced by Litle & Co. for transaction processing using Litle XML
|
215
|
-
format v8.
|
232
|
+
format v8.25
|
216
233
|
test_files:
|
217
234
|
- test/unit/ts_unit.rb
|
data/CHANGELOG~
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
= LitleOnline CHANGELOG
|
2
|
-
|
3
|
-
== Version 8.18.0 (July 31, 2013)
|
4
|
-
* Feature: Add initial support for Recurring
|
5
|
-
* Feature: Add support for Gift Card as a card type (GC)
|
6
|
-
|
7
|
-
== Version 8.17.0 (June 13, 2013)
|
8
|
-
* Feature: Batch support - see https://gist.github.com/litleSDK/5687345, https://gist.github.com/litleSDK/5714803 and https://gist.github.com/litleSDK/5714847
|
9
|
-
* Feature: Add support for surcharging credit card transactions
|
10
|
-
* Feature: Add support for specifying the terminalId on a pos transaction
|
11
|
-
* Feature: Add support for pos transactions on tied refunds
|
12
|
-
* Cleanup: Drop support for 1.8.6
|
13
|
-
|
14
|
-
== Version 8.16.0 (March 29, 2013)
|
15
|
-
|
16
|
-
* Feature: Merged pull request #7 from pierre to add external logging support
|
17
|
-
* Feature: Add recyling to voidResponse
|
18
|
-
* Bugfix: Force the "version" attribute of a LitleOnlineRequest to be the major and minor version of the sdk submitting the transaction instead of using the value from the configuration file
|
19
|
-
* Bugfix: Add Connection: close header to reduce the chance of 403s from reaching the ip connection limit
|
20
|
-
* Bugfix: Merged pull request #5 from simeonwillbanks to fix a typo in sale when payPalOrderComplete is specified
|
21
|
-
|
22
|
-
== Version 8.15.0 (January 31, 2013)
|
23
|
-
|
24
|
-
* Feature: Add merchantData to echeck verifications and echeck redeposits
|
25
|
-
|
26
|
-
== Version 8.14.0 (January 31, 2013)
|
27
|
-
|
28
|
-
* Feature: Temporary storage of card validation num on tokens
|
29
|
-
* Feature: Updating card validation numbers on tokens
|
30
|
-
|
31
|
-
== Version 8.13.2 (June 28, 2012)
|
32
|
-
|
33
|
-
* Feature: Most schema validations are now handled by ruby code and throw errors.
|
34
|
-
* Bugfix: Remove hardcoded username/password fields
|
35
|
-
|
36
|
-
== Version 8.13.1 (May 22, 2012)
|
37
|
-
|
38
|
-
* Feature: Echeck Void now supported
|
39
|
-
|
40
|
-
== Version 8.13.0 (May 18, 2012)
|
41
|
-
|
42
|
-
* Feature: Authorizations and Sales can accept an optional fraudFilterOverride parameter
|
43
|
-
|
44
|
-
== Version 8.12.4 (May 17, 2012)
|
45
|
-
|
46
|
-
* Bugfix: Use modules so that we are not polluting the global namespace
|
47
|
-
|
48
|
-
== Version 8.12.3 (May 17, 2012)
|
49
|
-
|
50
|
-
* Bugfix: Allow use without the configuration file
|
51
|
-
|
52
|
-
== Version 8.12.2 (May 16, 2012)
|
53
|
-
|
54
|
-
* Bugfix: Fix bug where rails "capture" method was interfering with Litle's "capture"
|
55
|
-
|
56
|
-
== Version 8.12.1 (May 15, 2012)
|
57
|
-
|
58
|
-
* Feature: Support Ruby 1.8.7
|
59
|
-
* Bugfix: Add support for line item data and tax detail to enhanced auth
|
60
|
-
|
61
|
-
== Version 8.12.0 (April 16, 2012)
|
62
|
-
|
63
|
-
* Feature: Add support for actionReason on credit
|
64
|
-
* Feature: Track SDK Usage
|
65
|
-
* Bugfix: Add support for MerchantData on auth and sale
|
66
|
-
|
67
|
-
== Version 8.10.3 (April 16, 2012)
|
68
|
-
|
69
|
-
* Feature: Support Ruby 1.8.6
|
70
|
-
* Bugfix: Setup sandbox url was incorrect
|
71
|
-
* Cleanup: Support newest sandbox conventions
|
72
|
-
|
73
|
-
== Version 8.10.1 (March 2, 2012)
|
74
|
-
|
75
|
-
* Feature: Allow use without the configuration file
|
76
|
-
* Bugfix: Reauth works
|
77
|
-
* Cleanup: Use ruby conventions
|
78
|
-
|
79
|
-
== Version 8.10.0 (February 17, 2012)
|
80
|
-
|
81
|
-
* Initial release
|
data/Rakefile~
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Copyright (c) 2011 Litle & Co.
|
3
|
-
|
4
|
-
Permission is hereby granted, free of charge, to any person
|
5
|
-
obtaining a copy of this software and associated documentation
|
6
|
-
files (the "Software"), to deal in the Software without
|
7
|
-
restriction, including without limitation the rights to use,
|
8
|
-
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the
|
10
|
-
Software is furnished to do so, subject to the following
|
11
|
-
conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
18
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
20
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
21
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
23
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
24
|
-
=end
|
25
|
-
require 'rubygems'
|
26
|
-
require 'rubygems/package_task'
|
27
|
-
require 'rake/testtask'
|
28
|
-
require 'rake/clean'
|
29
|
-
|
30
|
-
spec = Gem::Specification.new do |s|
|
31
|
-
FileUtils.rm_rf('pkg')
|
32
|
-
s.name = "LitleOnline"
|
33
|
-
s.summary = "Ruby SDK produced by Litle & Co. for transaction processing using Litle XML format v8.18"
|
34
|
-
s.description = File.read(File.join(File.dirname(__FILE__), 'DESCRIPTION'))
|
35
|
-
s.requirements =
|
36
|
-
[ 'Contact sdksupport@litle.com for more information' ]
|
37
|
-
s.version = "8.18.0"
|
38
|
-
s.author = "Litle & Co"
|
39
|
-
s.email = "sdksupport@litle.com"
|
40
|
-
s.homepage = "http://www.litle.com/developers"
|
41
|
-
s.platform = Gem::Platform::RUBY
|
42
|
-
s.required_ruby_version = '>=1.8.7'
|
43
|
-
s.files = Dir['**/**']
|
44
|
-
s.executables = [ 'sample_driver.rb', 'Setup.rb' ]
|
45
|
-
s.test_files = Dir["test/unit/ts_unit.rb"]
|
46
|
-
s.has_rdoc = true
|
47
|
-
s.add_dependency('xml-object')
|
48
|
-
s.add_dependency('xml-mapping')
|
49
|
-
s.add_dependency('net-sftp')
|
50
|
-
s.add_dependency('libxml-ruby')
|
51
|
-
s.add_dependency('crack')
|
52
|
-
s.add_development_dependency('mocha')
|
53
|
-
end
|
54
|
-
|
55
|
-
Gem::PackageTask.new(spec) do |pkg|
|
56
|
-
pkg.gem_spec = spec
|
57
|
-
pkg.need_zip = true
|
58
|
-
pkg.need_tar = true
|
59
|
-
end
|
60
|
-
|
61
|
-
namespace :test do
|
62
|
-
|
63
|
-
Rake::TestTask.new do |t|
|
64
|
-
t.libs << '.'
|
65
|
-
t.name = 'unit'
|
66
|
-
t.test_files = FileList['test/unit/ts_unit.rb']
|
67
|
-
t.verbose = true
|
68
|
-
end
|
69
|
-
|
70
|
-
Rake::TestTask.new do |t|
|
71
|
-
t.libs << '.'
|
72
|
-
t.name = 'functional'
|
73
|
-
t.test_files = FileList['test/functional/ts_all.rb']
|
74
|
-
t.verbose = true
|
75
|
-
end
|
76
|
-
|
77
|
-
Rake::TestTask.new do |t|
|
78
|
-
t.libs << '.'
|
79
|
-
t.name = 'certification'
|
80
|
-
t.test_files = FileList['test/certification/certTest*.rb']
|
81
|
-
t.verbose = true
|
82
|
-
end
|
83
|
-
|
84
|
-
Rake::TestTask.new do |t|
|
85
|
-
t.libs << '.'
|
86
|
-
t.name = 'all'
|
87
|
-
t.test_files = FileList['test/**/*.rb']
|
88
|
-
t.verbose = true
|
89
|
-
end
|
90
|
-
|
91
|
-
end
|
92
|
-
|
93
|
-
task :default =>'gem'
|