mollie-api-ruby 1.1.0 → 1.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1814d5f5f87cb8fe85890e2a1b7381045e5483a6
4
- data.tar.gz: 25c77c32cda7f816ab3a67f6d0c7cb1804c7ee81
3
+ metadata.gz: 82a2fc08595dbb639ed9dc80dfcb6b567096d983
4
+ data.tar.gz: 5ca8527244942c02f61e86ab17c20d96a18de248
5
5
  SHA512:
6
- metadata.gz: e356234410dbd7ddfce3878af51ea8d1e5599a2e46772e7bcb5c30d3b7c6dd33ef7bef7673a9e792eb607d370e913182676501208f04b3a385be3f424c612f4a
7
- data.tar.gz: 57429e86b3b93ba8409ab5f5dc6a1175f9a0b02965d54e78773be744b59303953b04c36f4a00c7ae85d40cd1ebae988da628589f4a02584372c397c5b878a722
6
+ metadata.gz: ebe7489a40175d053ca21ea2888fa7a9ffc378366cea7de369d599cb6bf60c94eeaf28b68e0caa39381a6926ebb3800977adf00fce59d40490d09c4a3215ab12
7
+ data.tar.gz: 927d5a3595b1cf64b6287fec5d18865778f83c1a4dcd83caa6d73304abe776a928edc7a296a902ac4bb61864e74757dbc233ad7673d8b512a48e9f7bc53fe33c
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Example 1 - How to prepare a new payment with the Mollie API.
3
3
  #
4
- require File.expand_path "../lib/Mollie/API/Client", __dir__
4
+ require File.expand_path "../lib/Mollie/API/Client", File.dirname(__FILE__)
5
5
 
6
6
  begin
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Example 2 - How to verify Mollie API Payments in a webhook.
3
3
  #
4
- require File.expand_path "../lib/Mollie/API/Client", __dir__
4
+ require File.expand_path "../lib/Mollie/API/Client", File.dirname(__FILE__)
5
5
 
6
6
  begin
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Example 4 - How to prepare an iDEAL payment with the Mollie API.
3
3
  #
4
- require File.expand_path "../lib/Mollie/API/Client", __dir__
4
+ require File.expand_path "../lib/Mollie/API/Client", File.dirname(__FILE__)
5
5
 
6
6
  begin
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Example 5 - How to retrieve your payments history.
3
3
  #
4
- require File.expand_path "../lib/Mollie/API/Client", __dir__
4
+ require File.expand_path "../lib/Mollie/API/Client", File.dirname(__FILE__)
5
5
 
6
6
  begin
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Example 6 - How to get the currently activated payment methods.
3
3
  #
4
- require File.expand_path "../lib/Mollie/API/Client", __dir__
4
+ require File.expand_path "../lib/Mollie/API/Client", File.dirname(__FILE__)
5
5
 
6
6
  begin
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Example 7 - How to refund a payment programmatically.
3
3
  #
4
- require File.expand_path "../lib/Mollie/API/Client", __dir__
4
+ require File.expand_path "../lib/Mollie/API/Client", File.dirname(__FILE__)
5
5
 
6
6
  begin
7
7
  #
@@ -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", __dir__
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", __dir__
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", __dir__
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", __dir__
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
@@ -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, __dir__ }
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.0"
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", __dir__),
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.0
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-03-14 00:00:00.000000000 Z
11
+ date: 2014-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client