tikkie-api 0.1.0 → 0.1.1

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
- SHA1:
3
- metadata.gz: c0fb0212ecabd850a104349b9edff3fc279c90f9
4
- data.tar.gz: dbce2933f3a3b0750f385d1c74bb53f232256824
2
+ SHA256:
3
+ metadata.gz: 55cfd884d7806c214f743001ae9630fe2c4c8f68299706b089bda175218f3e4f
4
+ data.tar.gz: 3a85b046ec52e04e67bf17c7c5ba325bf519d86971b661d2e1982c353534ebc6
5
5
  SHA512:
6
- metadata.gz: ed9a6a3f22a00360a990527fe9700c07ad68795db7bf2474523703467726aec375bb537d7dfb766bc0fe480b7bce1a74a38cc11bab7108d8b1a50fa62dd587f9
7
- data.tar.gz: c60da0bf7f3b15499ea768389527161e0acaec5b4bbbcfc0f636862966a37406d2ef46a091c47c7b2d9539ca33c28a2c961c47a61c4bdcf4b4d2f59dba5899e0
6
+ metadata.gz: 8bae92cd6c752733f04abf01c254228e724531c11c77d623cf955569034b8c8dd9d7ec4e58e28e0c06ce13d2093014605886f6fe75cab63ab079987a2f506f92
7
+ data.tar.gz: f61d4b03695dc6741d0cac68dedf9b413e48be017a0c1e41a2b5cecf8e7215ff8b0c80f35ee1fc7a35c41da12edb6b77b7b21b5509807997f1a4d37d5c5551ed
@@ -1,7 +1,8 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.2.9
5
- - 2.3.6
6
- - 2.4.3
4
+ - 2.2.10
5
+ - 2.3.7
6
+ - 2.4.4
7
+ - 2.5.1
7
8
  before_install: gem install bundler -v 1.16.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tikkie-api (0.1.0)
4
+ tikkie-api (0.1.1)
5
5
  jwt (>= 1.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Tikkie API
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/tikkie-api.svg)](https://badge.fury.io/rb/tikkie-api)
4
+ [![Build Status](https://travis-ci.org/KentaaNL/tikkie-api.svg?branch=master)](https://travis-ci.org/KentaaNL/tikkie-api)
5
+ [![Code Climate](https://codeclimate.com/github/KentaaNL/tikkie-api/badges/gpa.svg)](https://codeclimate.com/github/KentaaNL/tikkie-api)
6
+
3
7
  Unofficial Ruby library for communicating with the [Tikkie API](https://developer.abnamro.com/content/tikkie).
4
8
 
5
9
  ## Installation
@@ -33,6 +37,12 @@ config = Tikkie::Api::Configuration.new("your_api_key", "private_rsa.pem")
33
37
  client = Tikkie::Api::Client.new(config)
34
38
  ```
35
39
 
40
+ The configuration is created for the production environment by default. If you want to use the sandbox testing environment, then add the option `test: true` when creating the configuration:
41
+
42
+ ```ruby
43
+ config = Tikkie::Api::Configuration.new("your_api_key", "private_rsa.pem", test: true)
44
+ ```
45
+
36
46
  ### Platforms
37
47
 
38
48
  Retrieve all platforms:
@@ -114,7 +124,7 @@ payment_request = client.payment_requests.create("platform_token", "user_token",
114
124
  )
115
125
 
116
126
  tikkie_url = payment_request.payment_request_url
117
- payment_request_token =payment_request.payment_request_token
127
+ payment_request_token = payment_request.payment_request_token
118
128
  ```
119
129
 
120
130
  ### Error handling
@@ -17,8 +17,10 @@ module Tikkie
17
17
  @platforms ||= begin
18
18
  platforms = []
19
19
 
20
- data.each do |platform|
21
- platforms << Tikkie::Api::Responses::Platform.new(platform)
20
+ unless error?
21
+ data.each do |platform|
22
+ platforms << Tikkie::Api::Responses::Platform.new(platform)
23
+ end
22
24
  end
23
25
 
24
26
  platforms
@@ -21,8 +21,10 @@ module Tikkie
21
21
  @users ||= begin
22
22
  users = []
23
23
 
24
- data.each do |user|
25
- users << Tikkie::Api::Responses::User.new(user)
24
+ unless error?
25
+ data.each do |user|
26
+ users << Tikkie::Api::Responses::User.new(user)
27
+ end
26
28
  end
27
29
 
28
30
  users
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tikkie
4
4
  module Api
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tikkie-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaa BV
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-09 00:00:00.000000000 Z
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.6.14
164
+ rubygems_version: 2.7.6
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: Ruby library for communicating with the Tikkie API