LitleOnline 8.16.0 → 8.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/CHANGELOG +7 -0
  2. data/DESCRIPTION +1 -1
  3. data/README.md +2 -2
  4. data/Rakefile +6 -3
  5. data/bin/Setup.rb +14 -0
  6. data/bin/sample_batch_driver.rb +122 -0
  7. data/lib/LitleBatchRequest.rb +466 -0
  8. data/lib/LitleListeners.rb +142 -0
  9. data/lib/LitleOnline.rb +4 -0
  10. data/lib/LitleOnlineRequest.rb +25 -144
  11. data/lib/LitleRequest.rb +513 -0
  12. data/lib/LitleTransaction.rb +295 -0
  13. data/lib/XMLFields.rb +114 -4
  14. data/test/certification/certTest_batchAll.rb +337 -0
  15. data/test/certification/ts_all.rb +2 -0
  16. data/test/functional/test_batch.rb +164 -0
  17. data/test/functional/test_credit.rb +0 -18
  18. data/test/functional/test_litle_requests.rb +355 -0
  19. data/test/functional/test_updateCardValidationNumOnToken.rb +1 -1
  20. data/test/functional/test_xmlfields.rb +0 -19
  21. data/test/functional/ts_all.rb +2 -0
  22. data/test/unit/test_LitleAUBatch.rb +217 -0
  23. data/test/unit/test_LitleBatchRequest.rb +599 -0
  24. data/test/unit/test_LitleOnlineRequest.rb +9 -57
  25. data/test/unit/test_LitleRequest.rb +320 -0
  26. data/test/unit/test_LitleTransaction.rb +398 -0
  27. data/test/unit/test_auth.rb +25 -2
  28. data/test/unit/test_authReversal.rb +28 -5
  29. data/test/unit/test_capture.rb +24 -1
  30. data/test/unit/test_captureGivenAuth.rb +23 -1
  31. data/test/unit/test_credit.rb +92 -19
  32. data/test/unit/test_echeckCredit.rb +1 -1
  33. data/test/unit/test_echeckRedeposit.rb +1 -1
  34. data/test/unit/test_echeckSale.rb +1 -1
  35. data/test/unit/test_echeckVerification.rb +1 -1
  36. data/test/unit/test_echeckVoid.rb +1 -1
  37. data/test/unit/test_forceCapture.rb +24 -1
  38. data/test/unit/test_sale.rb +25 -2
  39. data/test/unit/test_token.rb +1 -1
  40. data/test/unit/test_updateCardValidationNumOnToken.rb +1 -1
  41. data/test/unit/test_xmlfields.rb +1 -1
  42. data/test/unit/ts_unit.rb +4 -0
  43. metadata +59 -14
@@ -72,7 +72,7 @@ module LitleOnline
72
72
  'litleToken'=>'1233456789101112',
73
73
  'cardValidationNum'=>'123'
74
74
  }
75
- LitleXmlMapper.expects(:request).with(regexp_matches(/.*loggedInUser="gdake".*merchantSdk="Ruby;8.14.0".*/m), is_a(Hash))
75
+ LitleXmlMapper.expects(:request).with(regexp_matches(/.*(loggedInUser="gdake".*merchantSdk="Ruby;8.14.0")|(merchantSdk="Ruby;8.14.0".*loggedInUser="gdake").*/m), is_a(Hash))
76
76
  LitleOnlineRequest.new.update_card_validation_num_on_token(hash)
77
77
  end
78
78
  end
@@ -24,7 +24,7 @@ OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
25
  require 'lib/LitleOnline'
26
26
  require 'test/unit'
27
- require 'mocha'
27
+ require 'mocha/setup'
28
28
 
29
29
  module LitleOnline
30
30
  class TestXmlfields < Test::Unit::TestCase
data/test/unit/ts_unit.rb CHANGED
@@ -41,3 +41,7 @@ require_relative 'test_echeckCredit'
41
41
  require_relative 'test_echeckVerification'
42
42
  require_relative 'test_echeckVoid'
43
43
  require_relative 'test_updateCardValidationNumOnToken'
44
+ require_relative 'test_LitleRequest'
45
+ require_relative 'test_LitleTransaction'
46
+ require_relative 'test_LitleBatchRequest'
47
+ require_relative 'test_LitleAUBatch'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LitleOnline
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.16.0
4
+ version: 8.17.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-29 00:00:00.000000000Z
12
+ date: 2013-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-object
16
- requirement: &54838500 !ruby/object:Gem::Requirement
16
+ requirement: &132509660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *54838500
24
+ version_requirements: *132509660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: xml-mapping
27
- requirement: &54836740 !ruby/object:Gem::Requirement
27
+ requirement: &132509240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,43 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *54836740
35
+ version_requirements: *132509240
36
+ - !ruby/object:Gem::Dependency
37
+ name: net-sftp
38
+ requirement: &132508780 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *132508780
47
+ - !ruby/object:Gem::Dependency
48
+ name: libxml-ruby
49
+ requirement: &132508280 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *132508280
58
+ - !ruby/object:Gem::Dependency
59
+ name: crack
60
+ requirement: &132507860 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *132507860
36
69
  - !ruby/object:Gem::Dependency
37
70
  name: mocha
38
- requirement: &54404280 !ruby/object:Gem::Requirement
71
+ requirement: &132507440 !ruby/object:Gem::Requirement
39
72
  none: false
40
73
  requirements:
41
74
  - - ! '>='
@@ -43,9 +76,9 @@ dependencies:
43
76
  version: '0'
44
77
  type: :development
45
78
  prerelease: false
46
- version_requirements: *54404280
47
- description: ! 'Litle Online Ruby SDK created for version 8.16 of Litle XML online
48
- format, see the XSD schema for specific fields that are supported by this format.
79
+ version_requirements: *132507440
80
+ description: ! 'Litle Online Ruby SDK created for version 8.17 of Litle XML format,
81
+ see the XSD schema for specific fields that are supported by this format.
49
82
 
50
83
 
51
84
  This gem contains an application interface in the Ruby programming language created
@@ -64,20 +97,28 @@ files:
64
97
  - README.md
65
98
  - CONTRIBUTORS
66
99
  - Rakefile
100
+ - lib/LitleTransaction.rb
67
101
  - lib/LitleOnlineRequest.rb
68
102
  - lib/LitleXmlMapper.rb
69
103
  - lib/XMLFields.rb
104
+ - lib/LitleListeners.rb
70
105
  - lib/LitleOnline.rb
106
+ - lib/LitleBatchRequest.rb
107
+ - lib/LitleRequest.rb
71
108
  - lib/cacert.pem
72
109
  - lib/Communications.rb
73
110
  - lib/Configuration.rb
74
111
  - bin/Setup.rb
75
112
  - bin/sample_driver.rb
113
+ - bin/sample_batch_driver.rb
76
114
  - SETUP.md
77
115
  - DESCRIPTION
78
116
  - CHANGELOG
117
+ - test/unit/test_LitleRequest.rb
79
118
  - test/unit/test_echeckVerification.rb
119
+ - test/unit/test_LitleBatchRequest.rb
80
120
  - test/unit/test_echeckVoid.rb
121
+ - test/unit/test_LitleAUBatch.rb
81
122
  - test/unit/test_token.rb
82
123
  - test/unit/test_capture.rb
83
124
  - test/unit/test_xmlfields.rb
@@ -88,13 +129,16 @@ files:
88
129
  - test/unit/test_echeckSale.rb
89
130
  - test/unit/test_captureGivenAuth.rb
90
131
  - test/unit/test_authReversal.rb
132
+ - test/unit/test_LitleTransaction.rb
91
133
  - test/unit/test_sale.rb
92
134
  - test/unit/test_forceCapture.rb
93
135
  - test/unit/test_LitleOnlineRequest.rb
94
136
  - test/unit/test_credit.rb
95
137
  - test/unit/test_echeckCredit.rb
138
+ - test/functional/test_litle_requests.rb
96
139
  - test/functional/test_echeckVerification.rb
97
140
  - test/functional/test_echeckVoid.rb
141
+ - test/functional/test_batch.rb
98
142
  - test/functional/test_token.rb
99
143
  - test/functional/test_capture.rb
100
144
  - test/functional/ts_all.rb
@@ -114,6 +158,7 @@ files:
114
158
  - test/certification/ts_all.rb
115
159
  - test/certification/certTest3_authreversal.rb
116
160
  - test/certification/certTest2_authenhanced.rb
161
+ - test/certification/certTest_batchAll.rb
117
162
  - test/certification/certTest5_token.rb
118
163
  - LICENSE
119
164
  homepage: http://www.litle.com/developers
@@ -127,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
172
  requirements:
128
173
  - - ! '>='
129
174
  - !ruby/object:Gem::Version
130
- version: 1.8.6
175
+ version: 1.8.7
131
176
  required_rubygems_version: !ruby/object:Gem::Requirement
132
177
  none: false
133
178
  requirements:
@@ -137,10 +182,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
182
  requirements:
138
183
  - Contact sdksupport@litle.com for more information
139
184
  rubyforge_project:
140
- rubygems_version: 1.8.17
185
+ rubygems_version: 1.8.15
141
186
  signing_key:
142
187
  specification_version: 3
143
- summary: Ruby SDK produced by Litle & Co. for online transaction processing using
144
- Litle XML format v8.16
188
+ summary: Ruby SDK produced by Litle & Co. for transaction processing using Litle XML
189
+ format v8.17
145
190
  test_files:
146
191
  - test/unit/ts_unit.rb