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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.0.3 / 2012-03-06
4
+
5
+ * `Connection#session_token` updates when the setter is called or when nil.
6
+
3
7
  ## 0.0.2 / 2012-03-05
4
8
 
5
9
  * `Connection#purchase` and `Connection#refund` takes an object instead of many arguments.
@@ -55,8 +55,10 @@ module TNSPayments
55
55
  end
56
56
 
57
57
  def session_token
58
- response = request :post, "/merchant/#{@merchant_id}/session"
59
- response.success?? response.response['session'] : raise(response.response.inspect)
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
@@ -1,3 +1,3 @@
1
1
  module TNSPayments
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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
- version: 0.0.2
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
- date: 2012-03-05 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
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
- requirement: &70340031250080 !ruby/object:Gem::Requirement
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
26
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
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
- version_requirements: *70340031250080
25
- - !ruby/object:Gem::Dependency
37
+ type: :runtime
26
38
  name: rest-client
27
- requirement: &70340031249380 !ruby/object:Gem::Requirement
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
28
40
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- type: :runtime
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
- version_requirements: *70340031249380
36
- - !ruby/object:Gem::Dependency
51
+ type: :development
37
52
  name: minitest
38
- requirement: &70340031248300 !ruby/object:Gem::Requirement
53
+ version_requirements: &id003 !ruby/object:Gem::Requirement
39
54
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :development
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
- version_requirements: *70340031248300
47
- - !ruby/object:Gem::Dependency
65
+ type: :development
48
66
  name: rake
49
- requirement: &70340031247520 !ruby/object:Gem::Requirement
67
+ version_requirements: &id004 !ruby/object:Gem::Requirement
50
68
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- type: :development
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
- version_requirements: *70340031247520
58
- - !ruby/object:Gem::Dependency
79
+ type: :development
59
80
  name: webmock
60
- requirement: &70340031246220 !ruby/object:Gem::Requirement
81
+ version_requirements: &id005 !ruby/object:Gem::Requirement
61
82
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
- type: :development
67
- prerelease: false
68
- version_requirements: *70340031246220
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
- files:
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
- homepage: ''
114
+ has_rdoc: true
115
+ homepage: ""
90
116
  licenses: []
117
+
91
118
  post_install_message:
92
119
  rdoc_options: []
93
- require_paths:
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
- version: '0'
101
- segments:
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ hash: 3
129
+ segments:
102
130
  - 0
103
- hash: 4524899234055894427
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
- version: '0'
110
- segments:
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ hash: 3
138
+ segments:
111
139
  - 0
112
- hash: 4524899234055894427
140
+ version: "0"
113
141
  requirements: []
142
+
114
143
  rubyforge_project:
115
- rubygems_version: 1.8.11
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