mollie-api-ruby 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/1-new-payment.rb +1 -1
- data/examples/2-webhook-verification.rb +1 -1
- data/examples/4-ideal-payment.rb +1 -1
- data/examples/5-payments-history.rb +1 -1
- data/examples/6-list-activated-methods.rb +1 -1
- data/examples/7-refund-payment.rb +1 -1
- data/examples/app.rb +4 -4
- data/lib/Mollie/API/Client.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82a2fc08595dbb639ed9dc80dfcb6b567096d983
|
4
|
+
data.tar.gz: 5ca8527244942c02f61e86ab17c20d96a18de248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebe7489a40175d053ca21ea2888fa7a9ffc378366cea7de369d599cb6bf60c94eeaf28b68e0caa39381a6926ebb3800977adf00fce59d40490d09c4a3215ab12
|
7
|
+
data.tar.gz: 927d5a3595b1cf64b6287fec5d18865778f83c1a4dcd83caa6d73304abe776a928edc7a296a902ac4bb61864e74757dbc233ad7673d8b512a48e9f7bc53fe33c
|
data/examples/1-new-payment.rb
CHANGED
data/examples/4-ideal-payment.rb
CHANGED
data/examples/app.rb
CHANGED
@@ -30,13 +30,13 @@ examples.each { |example|
|
|
30
30
|
get "/#{example}" do
|
31
31
|
$request = request
|
32
32
|
$response = response
|
33
|
-
load File.expand_path "#{example}.rb",
|
33
|
+
load File.expand_path "#{example}.rb", File.dirname(__FILE__)
|
34
34
|
end
|
35
35
|
|
36
36
|
post "/#{example}" do
|
37
37
|
$request = request
|
38
38
|
$response = response
|
39
|
-
load File.expand_path "#{example}.rb",
|
39
|
+
load File.expand_path "#{example}.rb", File.dirname(__FILE__)
|
40
40
|
end
|
41
41
|
}
|
42
42
|
|
@@ -45,14 +45,14 @@ examples.each { |example|
|
|
45
45
|
#
|
46
46
|
def database_write (order_id, status)
|
47
47
|
order_id = order_id.to_i
|
48
|
-
database = File.expand_path "orders/order-#{order_id}.txt",
|
48
|
+
database = File.expand_path "orders/order-#{order_id}.txt", File.dirname(__FILE__)
|
49
49
|
|
50
50
|
File.open(database, 'w') { |file| file.write status }
|
51
51
|
end
|
52
52
|
|
53
53
|
def database_read (order_id)
|
54
54
|
order_id = order_id.to_i
|
55
|
-
database = File.expand_path "orders/order-#{order_id}.txt",
|
55
|
+
database = File.expand_path "orders/order-#{order_id}.txt", File.dirname(__FILE__)
|
56
56
|
|
57
57
|
status = File.read(database) || "unknown order"
|
58
58
|
end
|
data/lib/Mollie/API/Client.rb
CHANGED
@@ -12,12 +12,12 @@ require "rest_client"
|
|
12
12
|
"Object/Payment",
|
13
13
|
"Object/Payment/Refund",
|
14
14
|
"Object/Issuer",
|
15
|
-
"Object/Method"].each {|file| require File.expand_path file,
|
15
|
+
"Object/Method"].each {|file| require File.expand_path file, File.dirname(__FILE__) }
|
16
16
|
|
17
17
|
module Mollie
|
18
18
|
module API
|
19
19
|
class Client
|
20
|
-
CLIENT_VERSION = "1.1.
|
20
|
+
CLIENT_VERSION = "1.1.1"
|
21
21
|
API_ENDPOINT = "https://api.mollie.nl"
|
22
22
|
API_VERSION = "v1"
|
23
23
|
|
@@ -57,7 +57,7 @@ module Mollie
|
|
57
57
|
def _getRestClient (request_url, request_headers)
|
58
58
|
RestClient::Resource.new request_url,
|
59
59
|
:headers => request_headers,
|
60
|
-
:ssl_ca_file => (File.expand_path "cacert.pem",
|
60
|
+
:ssl_ca_file => (File.expand_path "cacert.pem", File.dirname(__FILE__)),
|
61
61
|
:verify_ssl => OpenSSL::SSL::VERIFY_PEER
|
62
62
|
end
|
63
63
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mollie-api-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Wong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|