ideal-mollie 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.rbenv-version ADDED
@@ -0,0 +1 @@
1
+ 1.9.3-p194
data/.rvmrc ADDED
@@ -0,0 +1,48 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
+ # development environment upon cd'ing into the directory
5
+
6
+ # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
7
+ # Only full ruby name is supported here, for short names use:
8
+ # echo "rvm use 1.9.3" > .rvmrc
9
+ environment_id="ruby-1.9.3-p125@ideal-mollie"
10
+
11
+ # Uncomment the following lines if you want to verify rvm version per project
12
+ # rvmrc_rvm_version="1.10.3" # 1.10.1 seams as a safe start
13
+ # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
14
+ # echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
15
+ # return 1
16
+ # }
17
+
18
+ # First we attempt to load the desired environment directly from the environment
19
+ # file. This is very fast and efficient compared to running through the entire
20
+ # CLI and selector. If you want feedback on which environment was used then
21
+ # insert the word 'use' after --create as this triggers verbose mode.
22
+ if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
23
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
24
+ then
25
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
26
+ [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
27
+ \. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
28
+ else
29
+ # If the environment file has not yet been created, use the RVM CLI to select.
30
+ rvm --create "$environment_id" || {
31
+ echo "Failed to create RVM environment '${environment_id}'."
32
+ return 1
33
+ }
34
+ fi
35
+
36
+ # If you use bundler, this might be useful to you:
37
+ # if [[ -s Gemfile ]] && {
38
+ # ! builtin command -v bundle >/dev/null ||
39
+ # builtin command -v bundle | grep $rvm_path/bin/bundle >/dev/null
40
+ # }
41
+ # then
42
+ # printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
43
+ # gem install bundler
44
+ # fi
45
+ # if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
46
+ # then
47
+ # bundle install | grep -vE '^Using|Your bundle is complete'
48
+ # fi
data/.travis.yml CHANGED
@@ -1,11 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
3
  - 1.9.2
5
4
  - 1.9.3
6
- - ree
7
- - jruby
5
+ - ruby-head
6
+ env:
7
+ - TRAVIS_BUILD=true
8
8
  script: "bundle exec rake spec"
9
9
  notifications:
10
10
  recipients:
11
11
  - manuel@manuelles.nl
12
+
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ - ** TBA **: version 0.0.7
4
+
5
+ - **26 April 2012**: version 0.0.7
6
+ - Upgraded faraday to 0.8
7
+ - Upgraded vcr to 2.1
8
+ - Recorded the vcr cassettes to match the 2.1 format
9
+ - Removed jruby dependency
10
+
3
11
  - **30 January 2012**: version 0.0.6
4
12
  - Changed the URL to a CONST for testing on local sinatra server (coming soon)
5
13
 
data/README.md CHANGED
@@ -127,7 +127,7 @@ end
127
127
 
128
128
  ## Changelog
129
129
 
130
- A detailed overview of can be found in the [CHANGELOG](https://github.com/manuelvanrijn/ideal-mollie/blob/master/CHANGELOG.md).
130
+ A detailed overview can be found in the [CHANGELOG](https://github.com/manuelvanrijn/ideal-mollie/blob/master/CHANGELOG.md).
131
131
 
132
132
  ## Copyright
133
133
 
data/ideal-mollie.gemspec CHANGED
@@ -23,12 +23,13 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency "fakeweb"
24
24
  s.add_development_dependency "yard"
25
25
  s.add_development_dependency "redcarpet"
26
- s.add_development_dependency "simplecov"
27
-
26
+
27
+ # skip simplecov for travis-ci
28
+ s.add_development_dependency "simplecov" if ENV['TRAVIS_BUILD'].nil?
29
+
28
30
  s.add_dependency "rake", "~> 0.9.0"
29
- s.add_dependency "faraday", "~> 0.7.6"
31
+ s.add_dependency "faraday", "~> 0.8.0"
30
32
  s.add_dependency "faraday_middleware", "~> 0.8.1"
31
33
  s.add_dependency "multi_xml", "~> 0.4.1"
32
34
  s.add_dependency "nokogiri", "~> 1.5.0"
33
- s.add_dependency "jruby-openssl" if RUBY_PLATFORM == 'java'
34
35
  end
@@ -1,4 +1,4 @@
1
1
  module IdealMollie
2
2
  # Version number of IdealMollie
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
data/spec/spec_helper.rb CHANGED
@@ -1,14 +1,16 @@
1
- require 'simplecov'
2
- SimpleCov.start
1
+ if ENV['TRAVIS_BUILD'].nil?
2
+ require 'simplecov'
3
+ SimpleCov.start
4
+ end
3
5
 
4
6
  require 'rubygems'
5
7
  require 'bundler/setup'
6
8
  require 'vcr'
7
9
  require 'ideal-mollie'
8
10
 
9
- VCR.config do |c|
11
+ VCR.configure do |c|
10
12
  c.cassette_library_dir = 'spec/vcr_cassettes'
11
- c.stub_with :fakeweb
13
+ c.hook_into :fakeweb
12
14
  end
13
15
 
14
16
  RSpec.configure
@@ -1,35 +1,47 @@
1
1
  ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://secure.mollie.nl:443/xml/ideal?a=banklist&testmode=false
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://secure.mollie.nl/xml/ideal?a=banklist&testmode=false
6
6
  body:
7
+ encoding: US-ASCII
8
+ string: ''
7
9
  headers:
8
10
  user-agent:
9
11
  - Ruby-IdealMollie
10
12
  content-length:
11
13
  - '0'
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
14
+ accept:
15
+ - ! '*/*'
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
22
  headers:
17
23
  server:
18
24
  - nginx/0.7.67
19
25
  date:
20
- - Tue, 24 Jan 2012 12:44:39 GMT
26
+ - Wed, 28 Mar 2012 11:58:55 GMT
21
27
  content-type:
22
28
  - text/xml
29
+ connection:
30
+ - close
23
31
  x-powered-by:
24
- - PHP/5.2.6-1+lenny13
32
+ - PHP/5.2.6-1+lenny16
25
33
  content-length:
26
34
  - '854'
27
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<bank>\n\t\t<bank_id>0031</bank_id>\n\t\t<bank_name>ABN
28
- AMRO</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0761</bank_id>\n\t\t<bank_name>ASN
29
- Bank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0091</bank_id>\n\t\t<bank_name>Friesland
30
- Bank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0721</bank_id>\n\t\t<bank_name>ING</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0021</bank_id>\n\t\t<bank_name>Rabobank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0771</bank_id>\n\t\t<bank_name>RegioBank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0751</bank_id>\n\t\t<bank_name>SNS
31
- Bank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0511</bank_id>\n\t\t<bank_name>Triodos
32
- Bank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0161</bank_id>\n\t\t<bank_name>van
33
- Lanschot</bank_name>\n\t</bank>\n<message>This is the current list of banks
34
- and their ID's that currently support iDEAL-payments</message>\n</response>"
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<bank>\n\t\t<bank_id>0031</bank_id>\n\t\t<bank_name>ABN
38
+ AMRO</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0761</bank_id>\n\t\t<bank_name>ASN
39
+ Bank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0091</bank_id>\n\t\t<bank_name>Friesland
40
+ Bank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0721</bank_id>\n\t\t<bank_name>ING</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0021</bank_id>\n\t\t<bank_name>Rabobank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0771</bank_id>\n\t\t<bank_name>RegioBank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0751</bank_id>\n\t\t<bank_name>SNS
41
+ Bank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0511</bank_id>\n\t\t<bank_name>Triodos
42
+ Bank</bank_name>\n\t</bank>\n\t<bank>\n\t\t<bank_id>0161</bank_id>\n\t\t<bank_name>van
43
+ Lanschot</bank_name>\n\t</bank>\n<message>This is the current list of banks
44
+ and their ID's that currently support iDEAL-payments</message>\n</response>"
35
45
  http_version: '1.1'
46
+ recorded_at: Wed, 28 Mar 2012 11:58:54 GMT
47
+ recorded_with: VCR 2.0.0
@@ -1,114 +1,120 @@
1
1
  ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://secure.mollie.nl:443/xml/ideal?partnerid=987654&transaction_id=c9f93e5c2bd6c1e7c5bee5c5580c6f83&a=check&testmode=false
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://secure.mollie.nl/xml/ideal?partnerid=987654&transaction_id=c9f93e5c2bd6c1e7c5bee5c5580c6f83&a=check&testmode=false
6
6
  body:
7
+ encoding: US-ASCII
8
+ string: ''
7
9
  headers:
8
10
  user-agent:
9
11
  - Ruby-IdealMollie
10
12
  content-length:
11
13
  - '0'
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
14
+ accept:
15
+ - ! '*/*'
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
22
  headers:
17
23
  server:
18
24
  - nginx/0.7.67
19
25
  date:
20
- - Wed, 25 Jan 2012 11:07:35 GMT
26
+ - Wed, 28 Mar 2012 11:49:24 GMT
21
27
  content-type:
22
28
  - text/xml
29
+ connection:
30
+ - close
23
31
  x-powered-by:
24
- - PHP/5.2.6-1+lenny13
32
+ - PHP/5.2.6-1+lenny16
25
33
  content-length:
26
- - '151'
27
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<order>\n\t\t<transaction_id>c9f93e5c2bd6c1e7c5bee5c5580c6f83</transaction_id>\n\t\t<amount>1000</amount>\n\t\t<currency>EUR</currency>\n\t\t<payed>false</payed>\n\t\t<message>This
28
- iDEAL-order wasn't payed for, or was already checked by you. (We give payed=true
29
- only once, for your protection)</message>\n\t\t<status>CheckedBefore</status>\n\t</order>\n\n</response>"
34
+ - '370'
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<order>\n\t\t<transaction_id>c9f93e5c2bd6c1e7c5bee5c5580c6f83</transaction_id>\n\t\t<amount>1000</amount>\n\t\t<currency>EUR</currency>\n\t\t<payed>false</payed>\n\t\t<message>This
38
+ iDEAL-order wasn't payed for, or was already checked by you. (We give payed=true
39
+ only once, for your protection)</message>\n\t\t<status>CheckedBefore</status>\n\t</order>\n\n</response>"
30
40
  http_version: '1.1'
31
- - !ruby/struct:VCR::HTTPInteraction
32
- request: !ruby/struct:VCR::Request
33
- method: :post
34
- uri: https://secure.mollie.nl:443/xml/ideal?partnerid=987654&transaction_id=482d599bbcc7795727650330ad65fe9b&a=check&testmode=false
41
+ recorded_at: Wed, 28 Mar 2012 11:49:24 GMT
42
+ - request:
43
+ method: post
44
+ uri: https://secure.mollie.nl/xml/ideal?partnerid=987654&transaction_id=482d599bbcc7795727650330ad65fe9b&a=check&testmode=false
35
45
  body:
46
+ encoding: US-ASCII
47
+ string: ''
36
48
  headers:
37
49
  user-agent:
38
50
  - Ruby-IdealMollie
39
51
  content-length:
40
52
  - '0'
41
- response: !ruby/struct:VCR::Response
42
- status: !ruby/struct:VCR::ResponseStatus
53
+ accept:
54
+ - ! '*/*'
55
+ connection:
56
+ - close
57
+ response:
58
+ status:
43
59
  code: 200
44
60
  message: OK
45
61
  headers:
46
62
  server:
47
63
  - nginx/0.7.67
48
64
  date:
49
- - Wed, 25 Jan 2012 11:10:11 GMT
65
+ - Wed, 28 Mar 2012 11:52:09 GMT
50
66
  content-type:
51
67
  - text/xml
68
+ connection:
69
+ - close
52
70
  x-powered-by:
53
- - PHP/5.2.6-1+lenny13
71
+ - PHP/5.2.6-1+lenny16
54
72
  content-length:
55
- - '151'
56
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<order>\n\t\t<transaction_id>482d599bbcc7795727650330ad65fe9b</transaction_id>\n\t\t<amount>1000</amount>\n\t\t<currency>EUR</currency>\n\t\t<payed>true</payed>\n\t\t<consumer>\n\t\t\t<consumerName>Hr
57
- J Janssen</consumerName>\n\t\t\t<consumerAccount>P001234567</consumerAccount>\n\t\t\t<consumerCity>Amsterdam</consumerCity>\n\t\t</consumer>\n\t\t<message>This
58
- iDEAL-order has successfuly been payed for, and this is the first time you check
59
- it.</message>\n\t</order>\n\n</response>"
60
- http_version: '1.1'
61
- - !ruby/struct:VCR::HTTPInteraction
62
- request: !ruby/struct:VCR::Request
63
- method: :post
64
- uri: https://secure.mollie.nl:443/xml/ideal/?partnerid=654321&transaction_id=482d599bbcc7795727650330ad65fe9b&a=check&testmode=false
73
+ - '379'
65
74
  body:
66
- headers:
67
- user-agent:
68
- - Ruby-IdealMollie
69
- response: !ruby/struct:VCR::Response
70
- status: !ruby/struct:VCR::ResponseStatus
71
- code: 200
72
- message: OK
73
- headers:
74
- server:
75
- - nginx/0.7.67
76
- date:
77
- - Tue, 24 Jan 2012 13:26:15 GMT
78
- content-type:
79
- - text/xml
80
- x-powered-by:
81
- - PHP/5.2.6-1+lenny13
82
- content-length:
83
- - '151'
84
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<item type=\"error\">\n\t\t<errorcode>-10</errorcode>\n\t\t<message>This
85
- is an unknown order.</message>\n\t</item>\n</response>"
75
+ encoding: US-ASCII
76
+ string: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<order>\n\t\t<transaction_id>482d599bbcc7795727650330ad65fe9b</transaction_id>\n\t\t<amount>1000</amount>\n\t\t<currency>EUR</currency>\n\t\t<payed>true</payed>\n\t\t<consumer>\n\t\t\t<consumerName>Hr
77
+ J Janssen</consumerName>\n\t\t\t<consumerAccount>P001234567</consumerAccount>\n\t\t\t<consumerCity>Amsterdam</consumerCity>\n\t\t</consumer>\n\t\t<message>This
78
+ iDEAL-order has successfuly been payed for, and this is the first time you
79
+ check it.</message>\n\t</order>\n\n</response>"
86
80
  http_version: '1.1'
87
- - !ruby/struct:VCR::HTTPInteraction
88
- request: !ruby/struct:VCR::Request
89
- method: :post
90
- uri: https://secure.mollie.nl:443/xml/ideal?partnerid=654321&transaction_id=482d599bbcc7795727650330ad65fe9b&a=check&testmode=false
81
+ recorded_at: Wed, 28 Mar 2012 11:52:09 GMT
82
+ - request:
83
+ method: post
84
+ uri: https://secure.mollie.nl/xml/ideal?partnerid=654321&transaction_id=482d599bbcc7795727650330ad65fe9b&a=check&testmode=false
91
85
  body:
86
+ encoding: US-ASCII
87
+ string: ''
92
88
  headers:
93
89
  user-agent:
94
90
  - Ruby-IdealMollie
95
91
  content-length:
96
92
  - '0'
97
- response: !ruby/struct:VCR::Response
98
- status: !ruby/struct:VCR::ResponseStatus
93
+ accept:
94
+ - ! '*/*'
95
+ connection:
96
+ - close
97
+ response:
98
+ status:
99
99
  code: 200
100
100
  message: OK
101
101
  headers:
102
102
  server:
103
103
  - nginx/0.7.67
104
104
  date:
105
- - Wed, 25 Jan 2012 11:00:53 GMT
105
+ - Wed, 28 Mar 2012 11:54:11 GMT
106
106
  content-type:
107
107
  - text/xml
108
+ connection:
109
+ - close
108
110
  x-powered-by:
109
- - PHP/5.2.6-1+lenny13
111
+ - PHP/5.2.6-1+lenny16
110
112
  content-length:
111
113
  - '151'
112
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<item type=\"error\">\n\t\t<errorcode>-10</errorcode>\n\t\t<message>This
113
- is an unknown order.</message>\n\t</item>\n</response>"
114
+ body:
115
+ encoding: US-ASCII
116
+ string: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<item type=\"error\">\n\t\t<errorcode>-10</errorcode>\n\t\t<message>This
117
+ is an unknown order.</message>\n\t</item>\n</response>"
114
118
  http_version: '1.1'
119
+ recorded_at: Wed, 28 Mar 2012 11:54:11 GMT
120
+ recorded_with: VCR 2.0.0
@@ -1,144 +1,195 @@
1
1
  ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://secure.mollie.nl:443/xml/ideal?partnerid&reporturl&returnurl&description=exception%20test&amount=1234&bank_id=0031&a=fetch&testmode=false
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://secure.mollie.nl/xml/ideal?partnerid=987654&reporturl=http%3A%2F%2Fexample.org%2Freport&returnurl=http%3A%2F%2Fexample.org%2Freturn&description=test&amount=1000&bank_id=0031&a=fetch&testmode=false
6
6
  body:
7
+ encoding: US-ASCII
8
+ string: ''
7
9
  headers:
8
10
  user-agent:
9
11
  - Ruby-IdealMollie
10
12
  content-length:
11
13
  - '0'
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
14
+ accept:
15
+ - ! '*/*'
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
22
  headers:
17
23
  server:
18
24
  - nginx/0.7.67
19
25
  date:
20
- - Wed, 25 Jan 2012 11:15:39 GMT
26
+ - Wed, 28 Mar 2012 11:43:50 GMT
21
27
  content-type:
22
28
  - text/xml
29
+ connection:
30
+ - close
23
31
  x-powered-by:
24
- - PHP/5.2.6-1+lenny13
32
+ - PHP/5.2.6-1+lenny16
25
33
  content-length:
26
- - '181'
27
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<item type=\"error\">\n\t\t<errorcode>-2</errorcode>\n\t\t<message>A
28
- fetch was issued without specification of 'partnerid'.</message>\n\t</item>\n</response>"
34
+ - '429'
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<order>\n\t\t<transaction_id>c9f93e5c2bd6c1e7c5bee5c5580c6f83</transaction_id>\n\t\t<amount>1000</amount>\n\t\t<currency>EUR</currency>\n\t\t<URL>https://www.abnamro.nl/nl/ideal/identification.do?randomizedstring=8433910909&amp;trxid=30000217841224</URL>\n\t\t<message>Your
38
+ iDEAL-payment has successfully been setup. Your customer should visit the
39
+ given URL to make the payment</message>\n\t</order>\n</response>"
29
40
  http_version: '1.1'
30
- - !ruby/struct:VCR::HTTPInteraction
31
- request: !ruby/struct:VCR::Request
32
- method: :post
33
- uri: https://secure.mollie.nl:443/xml/ideal?partnerid=123465&reporturl=http%3A%2F%2Fexample.org%2Freport&returnurl=http%3A%2F%2Fexample.org%2Freturn&description=exception%20test&amount=1234&bank_id=0031&a=fetch&testmode=false
41
+ recorded_at: Wed, 28 Mar 2012 11:43:50 GMT
42
+ - request:
43
+ method: post
44
+ uri: https://secure.mollie.nl/xml/ideal?partnerid=987654&reporturl=http%3A%2F%2Fexample.org%2Freport&returnurl=http%3A%2F%2Fexample.org%2Freturn&description=test&amount=1000&bank_id=0031&profile_key=123abc45&a=fetch&testmode=false
34
45
  body:
46
+ encoding: US-ASCII
47
+ string: ''
35
48
  headers:
36
49
  user-agent:
37
50
  - Ruby-IdealMollie
38
51
  content-length:
39
52
  - '0'
40
- response: !ruby/struct:VCR::Response
41
- status: !ruby/struct:VCR::ResponseStatus
53
+ accept:
54
+ - ! '*/*'
55
+ connection:
56
+ - close
57
+ response:
58
+ status:
42
59
  code: 200
43
60
  message: OK
44
61
  headers:
45
62
  server:
46
63
  - nginx/0.7.67
47
64
  date:
48
- - Wed, 25 Jan 2012 11:00:20 GMT
65
+ - Wed, 28 Mar 2012 11:47:09 GMT
49
66
  content-type:
50
67
  - text/xml
68
+ connection:
69
+ - close
51
70
  x-powered-by:
52
- - PHP/5.2.6-1+lenny13
71
+ - PHP/5.2.6-1+lenny16
53
72
  content-length:
54
- - '169'
55
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<item type=\"error\">\n\t\t<errorcode>-2</errorcode>\n\t\t<message>This
56
- account does not exist or is suspended.</message>\n\t</item>\n</response>"
73
+ - '429'
74
+ body:
75
+ encoding: US-ASCII
76
+ string: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<order>\n\t\t<transaction_id>474ed7b2735cbe4d1f4fd4da23269263</transaction_id>\n\t\t<amount>1000</amount>\n\t\t<currency>EUR</currency>\n\t\t<URL>https://www.abnamro.nl/nl/ideal/identification.do?randomizedstring=6616737002&amp;trxid=30000226032385</URL>\n\t\t<message>Your
77
+ iDEAL-payment has successfully been setup. Your customer should visit the
78
+ given URL to make the payment</message>\n\t</order>\n</response>"
57
79
  http_version: '1.1'
58
- - !ruby/struct:VCR::HTTPInteraction
59
- request: !ruby/struct:VCR::Request
60
- method: :post
61
- uri: https://secure.mollie.nl:443/xml/ideal?partnerid=123456&reporturl=http%3A%2F%2Fexample.org%2Freport&returnurl=http%3A%2F%2Fexample.org%2Freturn&description=exception%20test&amount=1234&bank_id=0031&profile_key=00000000&a=fetch&testmode=false
80
+ recorded_at: Wed, 28 Mar 2012 11:47:09 GMT
81
+ - request:
82
+ method: post
83
+ uri: https://secure.mollie.nl/xml/ideal?partnerid&reporturl&returnurl&description=exception+test&amount=1234&bank_id=0031&a=fetch&testmode=false
62
84
  body:
85
+ encoding: US-ASCII
86
+ string: ''
63
87
  headers:
64
88
  user-agent:
65
89
  - Ruby-IdealMollie
66
90
  content-length:
67
91
  - '0'
68
- response: !ruby/struct:VCR::Response
69
- status: !ruby/struct:VCR::ResponseStatus
92
+ accept:
93
+ - ! '*/*'
94
+ connection:
95
+ - close
96
+ response:
97
+ status:
70
98
  code: 200
71
99
  message: OK
72
100
  headers:
73
101
  server:
74
102
  - nginx/0.7.67
75
103
  date:
76
- - Mon, 30 Jan 2012 11:30:43 GMT
104
+ - Wed, 28 Mar 2012 11:54:10 GMT
77
105
  content-type:
78
106
  - text/xml
107
+ connection:
108
+ - close
79
109
  x-powered-by:
80
- - PHP/5.2.6-1+lenny13
110
+ - PHP/5.2.6-1+lenny16
81
111
  content-length:
82
- - '180'
83
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<item type=\"error\">\n\t\t<errorcode>-16</errorcode>\n\t\t<message>A
84
- fetch was issued for an unknown or inactive profile.</message>\n\t</item>\n</response>"
112
+ - '181'
113
+ body:
114
+ encoding: US-ASCII
115
+ string: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<item type=\"error\">\n\t\t<errorcode>-2</errorcode>\n\t\t<message>A
116
+ fetch was issued without specification of 'partnerid'.</message>\n\t</item>\n</response>"
85
117
  http_version: '1.1'
86
-
87
- - !ruby/struct:VCR::HTTPInteraction
88
- request: !ruby/struct:VCR::Request
89
- method: :post
90
- uri: https://secure.mollie.nl:443/xml/ideal?partnerid=987654&reporturl=http%3A%2F%2Fexample.org%2Freport&returnurl=http%3A%2F%2Fexample.org%2Freturn&description=test&amount=1000&bank_id=0031&a=fetch&testmode=false
118
+ recorded_at: Wed, 28 Mar 2012 11:54:10 GMT
119
+ - request:
120
+ method: post
121
+ uri: https://secure.mollie.nl/xml/ideal?partnerid=123465&reporturl=http%3A%2F%2Fexample.org%2Freport&returnurl=http%3A%2F%2Fexample.org%2Freturn&description=exception+test&amount=1234&bank_id=0031&a=fetch&testmode=false
91
122
  body:
123
+ encoding: US-ASCII
124
+ string: ''
92
125
  headers:
93
126
  user-agent:
94
127
  - Ruby-IdealMollie
95
128
  content-length:
96
129
  - '0'
97
- response: !ruby/struct:VCR::Response
98
- status: !ruby/struct:VCR::ResponseStatus
130
+ accept:
131
+ - ! '*/*'
132
+ connection:
133
+ - close
134
+ response:
135
+ status:
99
136
  code: 200
100
137
  message: OK
101
138
  headers:
102
139
  server:
103
140
  - nginx/0.7.67
104
141
  date:
105
- - Tue, 24 Jan 2012 12:52:31 GMT
142
+ - Wed, 28 Mar 2012 11:54:10 GMT
106
143
  content-type:
107
144
  - text/xml
145
+ connection:
146
+ - close
108
147
  x-powered-by:
109
- - PHP/5.2.6-1+lenny13
148
+ - PHP/5.2.6-1+lenny16
110
149
  content-length:
111
- - '212'
112
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<order>\n\t\t<transaction_id>c9f93e5c2bd6c1e7c5bee5c5580c6f83</transaction_id>\n\t\t<amount>1000</amount>\n\t\t<currency>EUR</currency>\n\t\t<URL>https://www.abnamro.nl/nl/ideal/identification.do?randomizedstring=8433910909&amp;trxid=30000217841224</URL>\n\t\t<message>Your
113
- iDEAL-payment has successfully been setup. Your customer should visit the given
114
- URL to make the payment</message>\n\t</order>\n</response>"
150
+ - '169'
151
+ body:
152
+ encoding: US-ASCII
153
+ string: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<item type=\"error\">\n\t\t<errorcode>-2</errorcode>\n\t\t<message>This
154
+ account does not exist or is suspended.</message>\n\t</item>\n</response>"
115
155
  http_version: '1.1'
116
- - !ruby/struct:VCR::HTTPInteraction
117
- request: !ruby/struct:VCR::Request
118
- method: :post
119
- uri: https://secure.mollie.nl:443/xml/ideal?partnerid=987654&reporturl=http%3A%2F%2Fexample.org%2Freport&returnurl=http%3A%2F%2Fexample.org%2Freturn&description=test&amount=1000&bank_id=0031&profile_key=123abc45&a=fetch&testmode=false
156
+ recorded_at: Wed, 28 Mar 2012 11:54:10 GMT
157
+ - request:
158
+ method: post
159
+ uri: https://secure.mollie.nl/xml/ideal?partnerid=123456&reporturl=http%3A%2F%2Fexample.org%2Freport&returnurl=http%3A%2F%2Fexample.org%2Freturn&description=exception+test&amount=1234&bank_id=0031&profile_key=00000000&a=fetch&testmode=false
120
160
  body:
161
+ encoding: US-ASCII
162
+ string: ''
121
163
  headers:
122
164
  user-agent:
123
165
  - Ruby-IdealMollie
124
166
  content-length:
125
167
  - '0'
126
- response: !ruby/struct:VCR::Response
127
- status: !ruby/struct:VCR::ResponseStatus
168
+ accept:
169
+ - ! '*/*'
170
+ connection:
171
+ - close
172
+ response:
173
+ status:
128
174
  code: 200
129
175
  message: OK
130
176
  headers:
131
177
  server:
132
178
  - nginx/0.7.67
133
179
  date:
134
- - Mon, 30 Jan 2012 11:27:25 GMT
180
+ - Wed, 28 Mar 2012 11:54:11 GMT
135
181
  content-type:
136
182
  - text/xml
183
+ connection:
184
+ - close
137
185
  x-powered-by:
138
- - PHP/5.2.6-1+lenny13
186
+ - PHP/5.2.6-1+lenny16
139
187
  content-length:
140
- - '429'
141
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<order>\n\t\t<transaction_id>474ed7b2735cbe4d1f4fd4da23269263</transaction_id>\n\t\t<amount>1000</amount>\n\t\t<currency>EUR</currency>\n\t\t<URL>https://www.abnamro.nl/nl/ideal/identification.do?randomizedstring=6616737002&amp;trxid=30000226032385</URL>\n\t\t<message>Your
142
- iDEAL-payment has successfully been setup. Your customer should visit the given
143
- URL to make the payment</message>\n\t</order>\n</response>"
188
+ - '169'
189
+ body:
190
+ encoding: US-ASCII
191
+ string: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<item type=\"error\">\n\t\t<errorcode>-16</errorcode>\n\t\t<message>A
192
+ fetch was issued for an unknown or inactive profile.</message>\n\t</item>\n</response>"
144
193
  http_version: '1.1'
194
+ recorded_at: Wed, 28 Mar 2012 11:54:10 GMT
195
+ recorded_with: VCR 2.0.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ideal-mollie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-30 00:00:00.000000000 Z
12
+ date: 2012-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &21002960 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *21002960
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: vcr
27
- requirement: &21000160 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *21000160
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: fakeweb
38
- requirement: &20999420 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *20999420
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: yard
49
- requirement: &20997280 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *20997280
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: redcarpet
60
- requirement: &21010700 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: '0'
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *21010700
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: simplecov
71
- requirement: &21007480 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,10 +101,15 @@ dependencies:
76
101
  version: '0'
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *21007480
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: rake
82
- requirement: &21021120 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ~>
@@ -87,21 +117,31 @@ dependencies:
87
117
  version: 0.9.0
88
118
  type: :runtime
89
119
  prerelease: false
90
- version_requirements: *21021120
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 0.9.0
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: faraday
93
- requirement: &21016860 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ~>
97
132
  - !ruby/object:Gem::Version
98
- version: 0.7.6
133
+ version: 0.8.0
99
134
  type: :runtime
100
135
  prerelease: false
101
- version_requirements: *21016860
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 0.8.0
102
142
  - !ruby/object:Gem::Dependency
103
143
  name: faraday_middleware
104
- requirement: &21029480 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
105
145
  none: false
106
146
  requirements:
107
147
  - - ~>
@@ -109,10 +149,15 @@ dependencies:
109
149
  version: 0.8.1
110
150
  type: :runtime
111
151
  prerelease: false
112
- version_requirements: *21029480
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 0.8.1
113
158
  - !ruby/object:Gem::Dependency
114
159
  name: multi_xml
115
- requirement: &20614700 !ruby/object:Gem::Requirement
160
+ requirement: !ruby/object:Gem::Requirement
116
161
  none: false
117
162
  requirements:
118
163
  - - ~>
@@ -120,10 +165,15 @@ dependencies:
120
165
  version: 0.4.1
121
166
  type: :runtime
122
167
  prerelease: false
123
- version_requirements: *20614700
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 0.4.1
124
174
  - !ruby/object:Gem::Dependency
125
175
  name: nokogiri
126
- requirement: &20737760 !ruby/object:Gem::Requirement
176
+ requirement: !ruby/object:Gem::Requirement
127
177
  none: false
128
178
  requirements:
129
179
  - - ~>
@@ -131,7 +181,12 @@ dependencies:
131
181
  version: 1.5.0
132
182
  type: :runtime
133
183
  prerelease: false
134
- version_requirements: *20737760
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ~>
188
+ - !ruby/object:Gem::Version
189
+ version: 1.5.0
135
190
  description: A simple Ruby implementation for handeling iDeal transactions with the
136
191
  Mollie API
137
192
  email:
@@ -141,7 +196,9 @@ extensions: []
141
196
  extra_rdoc_files: []
142
197
  files:
143
198
  - .gitignore
199
+ - .rbenv-version
144
200
  - .rspec
201
+ - .rvmrc
145
202
  - .travis.yml
146
203
  - .yardopts
147
204
  - CHANGELOG.md
@@ -165,7 +222,6 @@ files:
165
222
  - spec/vcr_cassettes/banks.yml
166
223
  - spec/vcr_cassettes/check_order.yml
167
224
  - spec/vcr_cassettes/new_order.yml
168
- - spec/vcr_cassettes/request_payment.yml
169
225
  homepage: https://github.com/manuelvanrijn/ideal-mollie
170
226
  licenses: []
171
227
  post_install_message:
@@ -178,23 +234,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
234
  - - ! '>='
179
235
  - !ruby/object:Gem::Version
180
236
  version: '0'
181
- segments:
182
- - 0
183
- hash: -3868532009524114722
184
237
  required_rubygems_version: !ruby/object:Gem::Requirement
185
238
  none: false
186
239
  requirements:
187
240
  - - ! '>='
188
241
  - !ruby/object:Gem::Version
189
242
  version: '0'
190
- segments:
191
- - 0
192
- hash: -3868532009524114722
193
243
  requirements: []
194
244
  rubyforge_project: ideal-mollie
195
- rubygems_version: 1.8.11
245
+ rubygems_version: 1.8.23
196
246
  signing_key:
197
247
  specification_version: 3
198
248
  summary: Make iDeal Mollie payments without the pain
199
- test_files: []
249
+ test_files:
250
+ - spec/config_spec.rb
251
+ - spec/ideal_exception_spec.rb
252
+ - spec/ideal_mollie_spec.rb
253
+ - spec/spec_helper.rb
254
+ - spec/vcr_cassettes/banks.yml
255
+ - spec/vcr_cassettes/check_order.yml
256
+ - spec/vcr_cassettes/new_order.yml
200
257
  has_rdoc:
@@ -1,32 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://secure.mollie.nl:443/xml/ideal?a=fetch&partnerid=123456&description=description&reporturl=http%3A%2F%2Fexample.org%2Ftransactions%2Freport_payment&returnurl=http%3A%2F%2Fexample.org%2Ftransactions%2Ffinish&amount=1000&bank_id=0031&testmode=false
6
- body:
7
- headers:
8
- response: !ruby/struct:VCR::Response
9
- status: !ruby/struct:VCR::ResponseStatus
10
- code: 200
11
- message: OK
12
- headers:
13
- server:
14
- - nginx/0.7.67
15
- date:
16
- - Fri, 20 Jan 2012 13:39:15 GMT
17
- content-type:
18
- - text/xml
19
- content-location:
20
- - ideal.php
21
- vary:
22
- - negotiate
23
- tcn:
24
- - choice
25
- x-powered-by:
26
- - PHP/5.2.6-1+lenny13
27
- content-length:
28
- - '429'
29
- body: ! "<?xml version=\"1.0\" ?>\n<response>\n\t<order>\n\t\t<transaction_id>c9f93e5c2bd6c1e7c5bee5c5580c6f83</transaction_id>\n\t\t<amount>1000</amount>\n\t\t<currency>EUR</currency>\n\t\t<URL>https://www.abnamro.nl/nl/ideal/identification.do?randomizedstring=8433910909&amp;trxid=30000217841224</URL>\n\t\t<message>Your
30
- iDEAL-payment has successfully been setup. Your customer should visit the given
31
- URL to make the payment</message>\n\t</order>\n</response>"
32
- http_version: '1.1'