mollie-bank 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e462fc0f3743651dd3d3f49d4910cfc1a7af94b
4
- data.tar.gz: f1fdf9a28e7da8c14724c71967576111258a2d84
3
+ metadata.gz: d4053fbde489c646c77cf2aa403292609e026ef8
4
+ data.tar.gz: 2766a582639d541a6ab674aa6d4bd9395e4aca48
5
5
  SHA512:
6
- metadata.gz: 1f1063f3e1df266b53bdde17ab41ad16f5dda6ef8d12c87652ed33f4d21747dbc05d13aa4931e92f3520f1d9bd2e187cb470b4cc400b545c831e332abb6f6fb5
7
- data.tar.gz: 109587dd68addbaead2181d7b9f5fa202559d21f0d4ee68a6b329fc461f90d1fd83fcbe3ca1d8b30ee5946d865c3dc605094dfa8b155efe241919cbd07c89eeb
6
+ metadata.gz: 0d379e08a559d7e2b2461cd2d2121cf77e0fbafb84de75666ec4a205e261b05313871a28466ad4adc99b40162562eae22b0ae3c26c17ce70c6224323391e75db
7
+ data.tar.gz: 0054fd4c60609b8dc21447d156c34d33208115e67b6ed2e1a663bf715e178c059af547370a437e3cdcd8e582012864c91416e987270cc3176040e61186ff39d8
@@ -1,17 +1,11 @@
1
1
  language: ruby
2
- env:
3
- - JRUBY_OPTS="-Xcext.enabled=true"
4
2
  rvm:
5
- - 1.8.7
6
3
  - 1.9.2
7
4
  - 1.9.3
8
5
  - 2.0.0
9
- - jruby-18mode
6
+ - 2.1.0
10
7
  - ruby-head
11
- - jruby-head
12
- - ree
13
8
  matrix:
14
9
  allow_failures:
15
10
  - rvm: ruby-head
16
- - rvm: jruby-head
17
11
  script: "bundle exec rake spec"
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ - **21 September 2014**: version 0.0.5
4
+ - Fixed issue #6: Allow query strings to be present in report URLs by @rightfold
5
+
3
6
  - **14 May 2013**: version 0.0.4
4
7
  - Fixed issue #5: Support both GET and POST requests for `/xml/ideal`
5
8
  - Upgraded dependencies
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Manuel van Rijn, http://manuel.manuelles.nl/
1
+ Copyright (c) 2014 Manuel van Rijn, http://manuel.manuelles.nl/
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- # Mollie-Bank [![Gem Version](https://badge.fury.io/rb/mollie-bank.png)][gemversion] [![Build Status](https://secure.travis-ci.org/manuelvanrijn/mollie-bank.png?branch=master)][travis] [![Coverage Status](https://coveralls.io/repos/manuelvanrijn/mollie-bank/badge.png?branch=gems-coveralls)][coveralls]
1
+ # Mollie-Bank [![Gem Version](https://badge.fury.io/rb/mollie-bank.png)][gemversion] [![Build Status](https://secure.travis-ci.org/manuelvanrijn/mollie-bank.png?branch=master)][travis]
2
2
 
3
3
  [gemversion]: http://badge.fury.io/rb/mollie-bank
4
4
  [travis]: http://travis-ci.org/manuelvanrijn/mollie-bank
5
- [coveralls]: https://coveralls.io/r/manuelvanrijn/mollie-bank?branch=gems-coveralls
6
5
 
7
6
  A simple implementation of the "TM Bank" by [Mollie](http://www.mollie.nl), but without the portforward stuff to test your iDeal transactions localy.
8
7
 
@@ -73,7 +73,7 @@ module MollieBank
73
73
  settings.storage.set(transaction_id, transaction)
74
74
 
75
75
  begin
76
- reporturl = URI("#{reporturl}?transaction_id=#{transaction_id}")
76
+ reporturl = URI("#{reporturl}#{reporturl.include?('?') ? '&' : '?'}transaction_id=#{transaction_id}")
77
77
  Net::HTTP.get(reporturl)
78
78
  rescue
79
79
  end
@@ -1,4 +1,4 @@
1
1
  module MollieBank
2
2
  # Version number of MollieBank
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency "yard"
27
27
  s.add_development_dependency "yard-sinatra"
28
28
  s.add_development_dependency "simplecov"
29
- s.add_development_dependency "coveralls"
30
29
 
31
30
  s.add_dependency "rake", "~> 10.1.0"
32
31
  s.add_dependency "uuid", "~> 2.3.7"
@@ -38,6 +38,34 @@ describe "frontend" do
38
38
  last_response.body.should contain "http://example.org/return"
39
39
  last_response.body.should contain "987654"
40
40
  end
41
+ it "should allow the use of query strings in report URLs" do
42
+ session = {"987654" => {"paid" => false}}
43
+ MollieBank::Storage.set('987654', {
44
+ :paid => false
45
+ })
46
+ get '/ideal', {
47
+ :transaction_id => '987654',
48
+ :amount => '1000',
49
+ :reporturl => 'http://example.org/report?a=1&b=2',
50
+ :returnurl => 'http://example.org/return',
51
+ :description => 'a_description'
52
+ }
53
+ last_response.body.should contain "http://example.org/report?a=1&b=2"
54
+ end
55
+ it "should allow the use of query strings in return URLs" do
56
+ session = {"987654" => {"paid" => false}}
57
+ MollieBank::Storage.set('987654', {
58
+ :paid => false
59
+ })
60
+ get '/ideal', {
61
+ :transaction_id => '987654',
62
+ :amount => '1000',
63
+ :reporturl => 'http://example.org/report',
64
+ :returnurl => 'http://example.org/return?a=1&b=2',
65
+ :description => 'a_description'
66
+ }
67
+ last_response.body.should contain "http://example.org/return?a=1&b=2"
68
+ end
41
69
  it "should show an html error when not all parameter are supplied for /payment" do
42
70
  get '/payment'
43
71
  last_response.should be_ok
@@ -1,8 +1,6 @@
1
1
  require 'simplecov'
2
- require 'coveralls'
3
2
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
4
3
  SimpleCov::Formatter::HTMLFormatter,
5
- Coveralls::SimpleCov::Formatter
6
4
  ]
7
5
  SimpleCov.start
8
6
 
metadata CHANGED
@@ -1,195 +1,181 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mollie-bank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel van Rijn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-07 00:00:00.000000000 Z
11
+ date: 2014-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: webrat
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: redcarpet
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: yard-sinatra
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: coveralls
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '>='
108
+ - - ">="
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: rake
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - ~>
115
+ - - "~>"
130
116
  - !ruby/object:Gem::Version
131
117
  version: 10.1.0
132
118
  type: :runtime
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - ~>
122
+ - - "~>"
137
123
  - !ruby/object:Gem::Version
138
124
  version: 10.1.0
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: uuid
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - ~>
129
+ - - "~>"
144
130
  - !ruby/object:Gem::Version
145
131
  version: 2.3.7
146
132
  type: :runtime
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - ~>
136
+ - - "~>"
151
137
  - !ruby/object:Gem::Version
152
138
  version: 2.3.7
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: haml
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
- - - ~>
143
+ - - "~>"
158
144
  - !ruby/object:Gem::Version
159
145
  version: 4.0.4
160
146
  type: :runtime
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
- - - ~>
150
+ - - "~>"
165
151
  - !ruby/object:Gem::Version
166
152
  version: 4.0.4
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: sinatra
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
- - - ~>
157
+ - - "~>"
172
158
  - !ruby/object:Gem::Version
173
159
  version: 1.4.0
174
160
  type: :runtime
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
- - - ~>
164
+ - - "~>"
179
165
  - !ruby/object:Gem::Version
180
166
  version: 1.4.0
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: sinatra-contrib
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
- - - ~>
171
+ - - "~>"
186
172
  - !ruby/object:Gem::Version
187
173
  version: 1.4.0
188
174
  type: :runtime
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
- - - ~>
178
+ - - "~>"
193
179
  - !ruby/object:Gem::Version
194
180
  version: 1.4.0
195
181
  description: A small sinatra server that supports all the actions Mollie iDeal API
@@ -202,12 +188,10 @@ executables:
202
188
  extensions: []
203
189
  extra_rdoc_files: []
204
190
  files:
205
- - .gitignore
206
- - .rspec
207
- - .ruby-gemset
208
- - .ruby-version
209
- - .travis.yml
210
- - .yardopts
191
+ - ".gitignore"
192
+ - ".rspec"
193
+ - ".travis.yml"
194
+ - ".yardopts"
211
195
  - CHANGELOG.md
212
196
  - Gemfile
213
197
  - LICENSE.md
@@ -250,17 +234,17 @@ require_paths:
250
234
  - lib
251
235
  required_ruby_version: !ruby/object:Gem::Requirement
252
236
  requirements:
253
- - - '>='
237
+ - - ">="
254
238
  - !ruby/object:Gem::Version
255
239
  version: '0'
256
240
  required_rubygems_version: !ruby/object:Gem::Requirement
257
241
  requirements:
258
- - - '>='
242
+ - - ">="
259
243
  - !ruby/object:Gem::Version
260
244
  version: '0'
261
245
  requirements: []
262
246
  rubyforge_project: mollie-bank
263
- rubygems_version: 2.1.11
247
+ rubygems_version: 2.2.2
264
248
  signing_key:
265
249
  specification_version: 4
266
250
  summary: Mollie Bank server to make Mollie iDeal payments on your local machine
@@ -1 +0,0 @@
1
- mollie-bank
@@ -1 +0,0 @@
1
- 2.0.0