LitleOnline 8.12.0 → 8.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/CHANGELOG +28 -0
  2. data/Rakefile +2 -3
  3. data/lib/Communications.rb +14 -12
  4. data/lib/LitleOnline.rb +11 -2
  5. data/lib/LitleOnlineRequest.rb +435 -284
  6. data/lib/LitleXmlMapper.rb +1 -2
  7. data/lib/XMLFields.rb +900 -307
  8. data/lib/cacert.pem +3331 -0
  9. data/test/certification/certTest2_authenhanced.rb +7 -7
  10. data/test/certification/certTest5_token.rb +8 -8
  11. data/test/functional/test_auth.rb +106 -3
  12. data/test/functional/test_authReversal.rb +5 -6
  13. data/test/functional/test_capture.rb +12 -1
  14. data/test/functional/test_captureGivenAuth.rb +25 -5
  15. data/test/functional/test_credit.rb +1 -1
  16. data/test/functional/test_echeckRedeposit.rb +34 -0
  17. data/test/functional/test_echeckVerification.rb +33 -0
  18. data/test/functional/test_forceCapture.rb +35 -0
  19. data/test/functional/test_sale.rb +45 -13
  20. data/test/functional/test_xmlfields.rb +197 -10
  21. data/test/functional/ts_all.rb +2 -0
  22. data/test/unit/test_LitleOnlineRequest.rb +2 -59
  23. data/test/unit/test_auth.rb +2 -51
  24. data/test/unit/test_authReversal.rb +10 -5
  25. data/test/unit/test_capture.rb +5 -7
  26. data/test/unit/test_captureGivenAuth.rb +0 -19
  27. data/test/unit/test_credit.rb +1 -0
  28. data/test/unit/test_echeckCredit.rb +0 -2
  29. data/test/unit/test_echeckRedeposit.rb +0 -34
  30. data/test/unit/test_echeckSale.rb +0 -1
  31. data/test/unit/test_echeckVerification.rb +0 -33
  32. data/test/unit/test_forceCapture.rb +0 -35
  33. data/test/unit/test_sale.rb +20 -51
  34. data/test/unit/test_xmlfields.rb +44 -84
  35. data/test/unit/ts_unit.rb +1 -1
  36. metadata +13 -26
  37. data/index.html +0 -176
  38. data/index.html.1 +0 -176
  39. data/lib/Checker.rb +0 -56
  40. data/test/unit/test_Checker.rb +0 -58
data/test/unit/ts_unit.rb CHANGED
@@ -23,8 +23,8 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
25
  require 'test/unit'
26
+ require 'lib/LitleOnline'
26
27
  require_relative 'test_LitleOnlineRequest'
27
- require_relative 'test_Checker'
28
28
 
29
29
  require_relative 'test_xmlfields'
30
30
  require_relative 'test_sale'
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.12.0
4
+ version: 8.12.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-16 00:00:00.000000000 Z
12
+ date: 2012-05-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: i18n
16
- requirement: &244422760 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *244422760
25
- - !ruby/object:Gem::Dependency
26
- name: xml-simple
27
- requirement: &244422340 !ruby/object:Gem::Requirement
15
+ name: xml-object
16
+ requirement: &245828000 !ruby/object:Gem::Requirement
28
17
  none: false
29
18
  requirements:
30
19
  - - ! '>='
@@ -32,10 +21,10 @@ dependencies:
32
21
  version: '0'
33
22
  type: :runtime
34
23
  prerelease: false
35
- version_requirements: *244422340
24
+ version_requirements: *245828000
36
25
  - !ruby/object:Gem::Dependency
37
- name: xml-object
38
- requirement: &244421920 !ruby/object:Gem::Requirement
26
+ name: xml-mapping
27
+ requirement: &245826040 !ruby/object:Gem::Requirement
39
28
  none: false
40
29
  requirements:
41
30
  - - ! '>='
@@ -43,10 +32,10 @@ dependencies:
43
32
  version: '0'
44
33
  type: :runtime
45
34
  prerelease: false
46
- version_requirements: *244421920
35
+ version_requirements: *245826040
47
36
  - !ruby/object:Gem::Dependency
48
37
  name: mocha
49
- requirement: &244421500 !ruby/object:Gem::Requirement
38
+ requirement: &245825140 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
41
  - - ! '>='
@@ -54,7 +43,7 @@ dependencies:
54
43
  version: '0'
55
44
  type: :development
56
45
  prerelease: false
57
- version_requirements: *244421500
46
+ version_requirements: *245825140
58
47
  description: ! 'Litle Online Ruby SDK created for version 8.12 of Litle XML online
59
48
  format, see the XSD schema for specific fields that are supported by this format.
60
49
 
@@ -74,20 +63,19 @@ extra_rdoc_files: []
74
63
  files:
75
64
  - README.md
76
65
  - Rakefile
77
- - index.html.1
78
66
  - lib/LitleOnlineRequest.rb
79
67
  - lib/LitleXmlMapper.rb
80
68
  - lib/XMLFields.rb
81
69
  - lib/Obj2xml.rb
82
70
  - lib/LitleOnline.rb
71
+ - lib/cacert.pem
83
72
  - lib/Communications.rb
84
73
  - lib/Configuration.rb
85
- - lib/Checker.rb
86
74
  - bin/Setup.rb
87
75
  - bin/sample_driver.rb
88
76
  - SETUP.md
89
77
  - DESCRIPTION
90
- - index.html
78
+ - CHANGELOG
91
79
  - test/unit/test_echeckVerification.rb
92
80
  - test/unit/test_token.rb
93
81
  - test/unit/test_capture.rb
@@ -97,7 +85,6 @@ files:
97
85
  - test/unit/test_echeckRedeposit.rb
98
86
  - test/unit/test_echeckSale.rb
99
87
  - test/unit/test_captureGivenAuth.rb
100
- - test/unit/test_Checker.rb
101
88
  - test/unit/test_authReversal.rb
102
89
  - test/unit/test_sale.rb
103
90
  - test/unit/test_forceCapture.rb
@@ -146,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
133
  requirements:
147
134
  - Contact sdksupport@litle.com for more information
148
135
  rubyforge_project:
149
- rubygems_version: 1.8.15
136
+ rubygems_version: 1.8.17
150
137
  signing_key:
151
138
  specification_version: 3
152
139
  summary: Ruby SDK produced by Litle & Co. for online transaction processing using
data/index.html DELETED
@@ -1,176 +0,0 @@
1
- <!doctype html>
2
- <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
3
- <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
4
- <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
5
- <!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
6
- <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
7
- <head>
8
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
9
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
10
- <title>Welcome to Grails</title>
11
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
12
- <link rel="shortcut icon" href="/sandbox/static/images/favicon.ico" type="image/x-icon">
13
- <link rel="apple-touch-icon" href="/sandbox/static/images/apple-touch-icon.png">
14
- <link rel="apple-touch-icon" sizes="114x114" href="/sandbox/static/images/apple-touch-icon-retina.png">
15
- <link rel="stylesheet" href="/sandbox/static/css/main.css" type="text/css">
16
- <link rel="stylesheet" href="/sandbox/static/css/mobile.css" type="text/css">
17
-
18
- <meta name="layout" content="main"/>
19
-
20
- <style type="text/css" media="screen">
21
- #status {
22
- background-color: #eee;
23
- border: .2em solid #fff;
24
- margin: 2em 2em 1em;
25
- padding: 1em;
26
- width: 12em;
27
- float: left;
28
- -moz-box-shadow: 0px 0px 1.25em #ccc;
29
- -webkit-box-shadow: 0px 0px 1.25em #ccc;
30
- box-shadow: 0px 0px 1.25em #ccc;
31
- -moz-border-radius: 0.6em;
32
- -webkit-border-radius: 0.6em;
33
- border-radius: 0.6em;
34
- }
35
-
36
- .ie6 #status {
37
- display: inline; /* float double margin fix http://www.positioniseverything.net/explorer/doubled-margin.html */
38
- }
39
-
40
- #status ul {
41
- font-size: 0.9em;
42
- list-style-type: none;
43
- margin-bottom: 0.6em;
44
- padding: 0;
45
- }
46
-
47
- #status h1 {
48
- text-transform: uppercase;
49
- font-size: 1.1em;
50
- margin: 0 0 0.3em;
51
- }
52
-
53
- #page-body {
54
- margin: 2em 1em 1.25em 18em;
55
- }
56
-
57
- h2 {
58
- margin-top: 1em;
59
- margin-bottom: 0.3em;
60
- font-size: 1em;
61
- }
62
-
63
- p {
64
- margin: 0.25em 0;
65
- }
66
-
67
- #controller-list ul {
68
- list-style-position: inside;
69
- }
70
-
71
- #controller-list li {
72
- list-style-position: inside;
73
- margin: 0.25em 0;
74
- }
75
-
76
- @media screen and (max-width: 480px) {
77
- #status {
78
- display: none;
79
- }
80
-
81
- #page-body {
82
- margin: 0 1em 1em;
83
- }
84
-
85
- #page-body h1 {
86
- margin-top: 0;
87
- }
88
- }
89
- </style>
90
-
91
-
92
- </head>
93
- <body>
94
- <div id="grailsLogo" role="banner"><a href="http://grails.org"><img src="/sandbox/static/images/grails_logo.png" alt="Grails"/></a></div>
95
-
96
- <a href="#page-body" class="skip">Skip to content&hellip;</a>
97
- <div id="status" role="complementary">
98
- <h1>Application Status</h1>
99
- <ul>
100
- <li>App version: 0.1</li>
101
- <li>Grails version: 2.0.0</li>
102
- <li>Groovy version: 1.8.4</li>
103
- <li>JVM version: 1.6.0_10</li>
104
- <li>Reloading active: false</li>
105
- <li>Controllers: 1</li>
106
- <li>Domains: 8</li>
107
- <li>Services: 2</li>
108
- <li>Tag Libraries: 12</li>
109
- </ul>
110
- <h1>Installed Plugins</h1>
111
- <ul>
112
-
113
- <li>logging - 2.0.0</li>
114
-
115
- <li>core - 2.0.0</li>
116
-
117
- <li>i18n - 2.0.0</li>
118
-
119
- <li>urlMappings - 2.0.0</li>
120
-
121
- <li>groovyPages - 2.0.0</li>
122
-
123
- <li>codecs - 2.0.0</li>
124
-
125
- <li>servlets - 2.0.0</li>
126
-
127
- <li>dataSource - 2.0.0</li>
128
-
129
- <li>jquery - 1.7.1</li>
130
-
131
- <li>resources - 1.1.5</li>
132
-
133
- <li>controllers - 2.0.0</li>
134
-
135
- <li>domainClass - 2.0.0</li>
136
-
137
- <li>mimeTypes - 2.0.0</li>
138
-
139
- <li>scaffolding - 2.0.0</li>
140
-
141
- <li>hibernate - 2.0.0</li>
142
-
143
- <li>filters - 2.0.0</li>
144
-
145
- <li>validation - 2.0.0</li>
146
-
147
- <li>converters - 2.0.0</li>
148
-
149
- <li>services - 2.0.0</li>
150
-
151
- </ul>
152
- </div>
153
- <div id="page-body" role="main">
154
- <h1>Welcome to Grails</h1>
155
- <p>Congratulations, you have successfully started your first Grails application! At the moment
156
- this is the default page, feel free to modify it to either redirect to a controller or display whatever
157
- content you may choose. Below is a list of controllers that are currently deployed in this application,
158
- click on each to execute its default action:</p>
159
-
160
- <div id="controller-list" role="navigation">
161
- <h2>Available Controllers:</h2>
162
- <ul>
163
-
164
- <li class="controller"><a href="/sandbox/communicator/index">com.litle.sandbox.CommunicatorController</a></li>
165
-
166
- </ul>
167
- </div>
168
- </div>
169
-
170
- <div class="footer" role="contentinfo"></div>
171
- <div id="spinner" class="spinner" style="display:none;">Loading&hellip;</div>
172
-
173
- <script src="/sandbox/static/js/application.js" type="text/javascript" ></script>
174
-
175
- </body>
176
- </html>
data/index.html.1 DELETED
@@ -1,176 +0,0 @@
1
- <!doctype html>
2
- <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
3
- <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
4
- <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
5
- <!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
6
- <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
7
- <head>
8
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
9
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
10
- <title>Welcome to Grails</title>
11
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
12
- <link rel="shortcut icon" href="/sandbox/static/images/favicon.ico" type="image/x-icon">
13
- <link rel="apple-touch-icon" href="/sandbox/static/images/apple-touch-icon.png">
14
- <link rel="apple-touch-icon" sizes="114x114" href="/sandbox/static/images/apple-touch-icon-retina.png">
15
- <link rel="stylesheet" href="/sandbox/static/css/main.css" type="text/css">
16
- <link rel="stylesheet" href="/sandbox/static/css/mobile.css" type="text/css">
17
-
18
- <meta name="layout" content="main"/>
19
-
20
- <style type="text/css" media="screen">
21
- #status {
22
- background-color: #eee;
23
- border: .2em solid #fff;
24
- margin: 2em 2em 1em;
25
- padding: 1em;
26
- width: 12em;
27
- float: left;
28
- -moz-box-shadow: 0px 0px 1.25em #ccc;
29
- -webkit-box-shadow: 0px 0px 1.25em #ccc;
30
- box-shadow: 0px 0px 1.25em #ccc;
31
- -moz-border-radius: 0.6em;
32
- -webkit-border-radius: 0.6em;
33
- border-radius: 0.6em;
34
- }
35
-
36
- .ie6 #status {
37
- display: inline; /* float double margin fix http://www.positioniseverything.net/explorer/doubled-margin.html */
38
- }
39
-
40
- #status ul {
41
- font-size: 0.9em;
42
- list-style-type: none;
43
- margin-bottom: 0.6em;
44
- padding: 0;
45
- }
46
-
47
- #status h1 {
48
- text-transform: uppercase;
49
- font-size: 1.1em;
50
- margin: 0 0 0.3em;
51
- }
52
-
53
- #page-body {
54
- margin: 2em 1em 1.25em 18em;
55
- }
56
-
57
- h2 {
58
- margin-top: 1em;
59
- margin-bottom: 0.3em;
60
- font-size: 1em;
61
- }
62
-
63
- p {
64
- margin: 0.25em 0;
65
- }
66
-
67
- #controller-list ul {
68
- list-style-position: inside;
69
- }
70
-
71
- #controller-list li {
72
- list-style-position: inside;
73
- margin: 0.25em 0;
74
- }
75
-
76
- @media screen and (max-width: 480px) {
77
- #status {
78
- display: none;
79
- }
80
-
81
- #page-body {
82
- margin: 0 1em 1em;
83
- }
84
-
85
- #page-body h1 {
86
- margin-top: 0;
87
- }
88
- }
89
- </style>
90
-
91
-
92
- </head>
93
- <body>
94
- <div id="grailsLogo" role="banner"><a href="http://grails.org"><img src="/sandbox/static/images/grails_logo.png" alt="Grails"/></a></div>
95
-
96
- <a href="#page-body" class="skip">Skip to content&hellip;</a>
97
- <div id="status" role="complementary">
98
- <h1>Application Status</h1>
99
- <ul>
100
- <li>App version: 0.1</li>
101
- <li>Grails version: 2.0.0</li>
102
- <li>Groovy version: 1.8.4</li>
103
- <li>JVM version: 1.6.0_10</li>
104
- <li>Reloading active: false</li>
105
- <li>Controllers: 1</li>
106
- <li>Domains: 8</li>
107
- <li>Services: 2</li>
108
- <li>Tag Libraries: 12</li>
109
- </ul>
110
- <h1>Installed Plugins</h1>
111
- <ul>
112
-
113
- <li>logging - 2.0.0</li>
114
-
115
- <li>core - 2.0.0</li>
116
-
117
- <li>i18n - 2.0.0</li>
118
-
119
- <li>urlMappings - 2.0.0</li>
120
-
121
- <li>groovyPages - 2.0.0</li>
122
-
123
- <li>codecs - 2.0.0</li>
124
-
125
- <li>servlets - 2.0.0</li>
126
-
127
- <li>dataSource - 2.0.0</li>
128
-
129
- <li>jquery - 1.7.1</li>
130
-
131
- <li>resources - 1.1.5</li>
132
-
133
- <li>controllers - 2.0.0</li>
134
-
135
- <li>domainClass - 2.0.0</li>
136
-
137
- <li>mimeTypes - 2.0.0</li>
138
-
139
- <li>scaffolding - 2.0.0</li>
140
-
141
- <li>hibernate - 2.0.0</li>
142
-
143
- <li>filters - 2.0.0</li>
144
-
145
- <li>validation - 2.0.0</li>
146
-
147
- <li>converters - 2.0.0</li>
148
-
149
- <li>services - 2.0.0</li>
150
-
151
- </ul>
152
- </div>
153
- <div id="page-body" role="main">
154
- <h1>Welcome to Grails</h1>
155
- <p>Congratulations, you have successfully started your first Grails application! At the moment
156
- this is the default page, feel free to modify it to either redirect to a controller or display whatever
157
- content you may choose. Below is a list of controllers that are currently deployed in this application,
158
- click on each to execute its default action:</p>
159
-
160
- <div id="controller-list" role="navigation">
161
- <h2>Available Controllers:</h2>
162
- <ul>
163
-
164
- <li class="controller"><a href="/sandbox/communicator/index">com.litle.sandbox.CommunicatorController</a></li>
165
-
166
- </ul>
167
- </div>
168
- </div>
169
-
170
- <div class="footer" role="contentinfo"></div>
171
- <div id="spinner" class="spinner" style="display:none;">Loading&hellip;</div>
172
-
173
- <script src="/sandbox/static/js/application.js" type="text/javascript" ></script>
174
-
175
- </body>
176
- </html>