omni_kassa 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omni_kassa (1.0.0)
4
+ omni_kassa (1.1.0)
5
5
  activesupport
6
6
  httparty
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- activesupport (3.2.9)
11
+ activesupport (3.2.10)
12
12
  i18n (~> 0.6)
13
13
  multi_json (~> 1.0)
14
14
  httparty (0.9.0)
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2013 Pepijn Looije
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
data/app.rb CHANGED
@@ -10,6 +10,7 @@ get '/:amount' do
10
10
  omnikassa.order_id = rand(1337)
11
11
  omnikassa.amount = params[:amount]
12
12
  omnikassa.normal_return_url = request.url
13
+ omnikassa.automatic_response_url = request.url
13
14
  omnikassa.perform
14
15
  end
15
16
 
@@ -11,7 +11,7 @@ module OmniKassa
11
11
 
12
12
  attr_accessor :merchant_id, :currency_code, :transaction_reference,
13
13
  :order_id, :amount, :normal_return_url, :key_version,
14
- :automatic_return_url
14
+ :automatic_response_url
15
15
 
16
16
  def initialize
17
17
  self.key_version = KEY_VERSION
Binary file
data/omni_kassa.gemspec CHANGED
@@ -1,9 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'omni_kassa'
3
- s.version = '1.0.1'
3
+ s.version = '1.1.0'
4
4
  s.author = 'Pepijn Looije'
5
5
  s.email = 'pepijn@plict.nl'
6
- s.summary = 'Easier Rabobank OmniKassa payments'
6
+ s.description = s.summary = 'Easier Rabobank OmniKassa payments'
7
+ s.homepage = 'https://github.com/pepijn/omni_kassa'
7
8
 
8
9
  s.required_ruby_version = '>= 1.9'
9
10
 
data/test/request_test.rb CHANGED
@@ -9,6 +9,7 @@ class RequestTest < MiniTest::Unit::TestCase
9
9
  @request.order_id = ORDER_ID
10
10
  @request.amount = AMOUNT
11
11
  @request.normal_return_url = 'https://google.com'
12
+ @request.automatic_response_url = @request.normal_return_url
12
13
  end
13
14
 
14
15
  def test_attributes
@@ -22,6 +23,8 @@ class RequestTest < MiniTest::Unit::TestCase
22
23
  assert_equal AMOUNT, @request.amount
23
24
  assert_equal 'https://google.com',
24
25
  @request.normal_return_url
26
+ assert_equal 'https://google.com',
27
+ @request.automatic_response_url
25
28
  end
26
29
 
27
30
  def test_invalid_without_order_id
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omni_kassa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-16 00:00:00.000000000 Z
12
+ date: 2013-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -107,7 +107,7 @@ dependencies:
107
107
  - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
- description:
110
+ description: Easier Rabobank OmniKassa payments
111
111
  email: pepijn@plict.nl
112
112
  executables: []
113
113
  extensions: []
@@ -141,7 +141,9 @@ files:
141
141
  - ./lib/omni_kassa/request.rb
142
142
  - ./lib/omni_kassa/response.rb
143
143
  - ./lib/omni_kassa.rb
144
+ - ./LICENSE
144
145
  - ./omni_kassa-1.0.0.gem
146
+ - ./omni_kassa-1.0.1.gem
145
147
  - ./omni_kassa.gemspec
146
148
  - ./Rakefile
147
149
  - ./README.md
@@ -150,7 +152,7 @@ files:
150
152
  - ./test/request_test.rb
151
153
  - ./test/response_test.rb
152
154
  - ./test_settings.rb
153
- homepage:
155
+ homepage: https://github.com/pepijn/omni_kassa
154
156
  licenses: []
155
157
  post_install_message:
156
158
  rdoc_options: []
@@ -170,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
172
  version: '0'
171
173
  requirements: []
172
174
  rubyforge_project:
173
- rubygems_version: 1.8.23
175
+ rubygems_version: 1.8.24
174
176
  signing_key:
175
177
  specification_version: 3
176
178
  summary: Easier Rabobank OmniKassa payments