tns_payments 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/tns_payments/connection.rb +4 -2
- data/lib/tns_payments/version.rb +1 -1
- metadata +96 -67
data/CHANGELOG.md
CHANGED
@@ -55,8 +55,10 @@ module TNSPayments
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def session_token
|
58
|
-
|
59
|
-
|
58
|
+
@session_token ||= begin
|
59
|
+
response = request :post, "/merchant/#{@merchant_id}/session"
|
60
|
+
response.success?? response.response['session'] : raise(response.response.inspect)
|
61
|
+
end
|
60
62
|
end
|
61
63
|
|
62
64
|
private
|
data/lib/tns_payments/version.rb
CHANGED
metadata
CHANGED
@@ -1,78 +1,103 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tns_payments
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Tim Cooper
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-03-06 00:00:00 +10:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
type: :runtime
|
15
24
|
name: json
|
16
|
-
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
17
26
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
22
|
-
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
23
36
|
prerelease: false
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
37
|
+
type: :runtime
|
26
38
|
name: rest-client
|
27
|
-
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
28
40
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
33
|
-
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
requirement: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
34
50
|
prerelease: false
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
51
|
+
type: :development
|
37
52
|
name: minitest
|
38
|
-
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
39
54
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
requirement: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
45
64
|
prerelease: false
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
65
|
+
type: :development
|
48
66
|
name: rake
|
49
|
-
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
50
68
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
76
|
+
requirement: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
56
78
|
prerelease: false
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
79
|
+
type: :development
|
59
80
|
name: webmock
|
60
|
-
|
81
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
61
82
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
90
|
+
requirement: *id005
|
69
91
|
description: Integration with TNS Payments Gateway
|
70
|
-
email:
|
92
|
+
email:
|
71
93
|
- coop@latrobest.com
|
72
94
|
executables: []
|
95
|
+
|
73
96
|
extensions: []
|
97
|
+
|
74
98
|
extra_rdoc_files: []
|
75
|
-
|
99
|
+
|
100
|
+
files:
|
76
101
|
- .gitignore
|
77
102
|
- CHANGELOG.md
|
78
103
|
- Gemfile
|
@@ -86,37 +111,41 @@ files:
|
|
86
111
|
- test/unit/conntection_test.rb
|
87
112
|
- test/unit/response_test.rb
|
88
113
|
- tns_payments.gemspec
|
89
|
-
|
114
|
+
has_rdoc: true
|
115
|
+
homepage: ""
|
90
116
|
licenses: []
|
117
|
+
|
91
118
|
post_install_message:
|
92
119
|
rdoc_options: []
|
93
|
-
|
120
|
+
|
121
|
+
require_paths:
|
94
122
|
- lib
|
95
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
124
|
none: false
|
97
|
-
requirements:
|
98
|
-
- -
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
|
101
|
-
segments:
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
hash: 3
|
129
|
+
segments:
|
102
130
|
- 0
|
103
|
-
|
104
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
version: "0"
|
132
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
133
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
|
110
|
-
segments:
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
hash: 3
|
138
|
+
segments:
|
111
139
|
- 0
|
112
|
-
|
140
|
+
version: "0"
|
113
141
|
requirements: []
|
142
|
+
|
114
143
|
rubyforge_project:
|
115
|
-
rubygems_version: 1.
|
144
|
+
rubygems_version: 1.6.2
|
116
145
|
signing_key:
|
117
146
|
specification_version: 3
|
118
147
|
summary: Integration with TNS Payments Gateway
|
119
|
-
test_files:
|
148
|
+
test_files:
|
120
149
|
- test/helper.rb
|
121
150
|
- test/unit/conntection_test.rb
|
122
151
|
- test/unit/response_test.rb
|