figo 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -13
  2. data/figo.gemspec +1 -1
  3. data/lib/figo.rb +14 -5
  4. metadata +11 -10
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Y2ExYzgxM2NiZDUxNGU3ZTc2MmViZTA0NzVkMDIzYmRiYzg3NDYxYg==
5
- data.tar.gz: !binary |-
6
- NDQyMDNmNTFhNGVmOWIwMWMwYTkzODUzZmVmNjcwZjc2ZWYyMWI3Nw==
2
+ SHA1:
3
+ metadata.gz: d33b8e8414b4a922aa26cc3cd8cbb5d6d7bdff30
4
+ data.tar.gz: e091d3ae3a764120fb5e2e2a0d9f6098a4e4f85b
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MjAyMjE0ZGUzNDhmOGU5YmQxYTA2MTFhMTA2NmIzZDA4M2E0Y2Q5MjNmZmFl
10
- ZThmNzRhNWUyM2I1N2Q1ZTk0ZmQ2NGY3OTQyOWMxOTUzZGE1MmFhODZlMDQx
11
- YTE4NTlhMmRjZDE4ZmI5MmRjMWJlMTQ2MjMwYjFhYjhkNDk4NWY=
12
- data.tar.gz: !binary |-
13
- MDZiZGViN2Y5OTc3NjdmMTc1MDJkY2EyZmFjNWY5MWMzYTg0NGM3NzI2MWJi
14
- YzY5MWE3OGMzNzYzMzA4MGE0OWRhZTY3NzNmMGYxZDlmNjQ5ZDI4NTFmZmY5
15
- OWM4ZTAyZjgxNDg5OTliNjBiYzdjYTUyNmIyZWQzMjE2NjYyZTQ=
6
+ metadata.gz: 5c9dc3f1706a858ae802ce40d76dbcdb9d3f3e5b6e6dcf5337c09379fc3f5279283ed75d4a33164fbc437552e494c7f045609545ac1eba3cb8b33fc65c97c1a6
7
+ data.tar.gz: 837a9922915b002ce70de7c2c2813970a51b03992289d721340ea8b22befee10ea21214dd9db1f0d928af016d7d77f6701db4c395d1ffa44a5ef1086510013d4
data/figo.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "figo"
3
- s.version = "1.2.4"
3
+ s.version = "1.2.5"
4
4
  s.authors = ["Stefan Richter"]
5
5
  s.email = ["stefan.richter@figo.me"]
6
6
  s.homepage = "https://github.com/figo-connect/ruby-figo"
data/lib/figo.rb CHANGED
@@ -30,7 +30,7 @@ require_relative "models.rb"
30
30
  module Figo
31
31
  $api_endpoint = "api.figo.me"
32
32
 
33
- $valid_fingerprints = ["3A:62:54:4D:86:B4:34:38:EA:34:64:4E:95:10:A9:FF:37:27:69:C0",
33
+ $valid_fingerprints = ["38:AE:4A:32:6F:16:EA:15:81:33:8B:B0:D8:E4:A6:35:E7:27:F1:07",
34
34
  "CF:C1:BC:7F:6A:16:09:2B:10:83:8A:B0:22:4F:3A:65:D2:70:D7:3E"]
35
35
 
36
36
  # Base class for all errors transported via the figo Connect API.
@@ -202,10 +202,10 @@ module Figo
202
202
  # @param email [String] Email address; It must obey the figo username & password policy
203
203
  # @param password [String] New figo Account password; It must obey the figo username & password policy
204
204
  # @param language [String] Two-letter code of preferred language
205
- # @param send_newsletter [Boolean] This flag indicates whether the user has agreed to be contacted by email
205
+ # @param send_newsletter [Boolean] This flag indicates whether the user has agreed to be contacted by email -- Not accepted by backend at the moment
206
206
  # @return [Hash] object with the key `recovery_password` as documented in the figo Connect API specification
207
- def create_user(name, email, password, language='de', send_newsletter=True)
208
- data = { 'name' => name, 'email' => email, 'password' => password, 'language' => language, 'send_newsletter' => send_newsletter, 'affiliate_client_id' => @client_id}
207
+ def create_user(name, email, password, language='de', send_newsletter=true)
208
+ data = { 'name' => name, 'email' => email, 'password' => password, 'language' => language, 'affiliate_client_id' => @client_id} #'send_newsletter' => send_newsletter,
209
209
  return query_api("/auth/user", data)
210
210
  end
211
211
  end
@@ -351,7 +351,16 @@ module Figo
351
351
  # @param bank [Bank, String] the bank whose stored PIN should be removed or its ID
352
352
  # @return [nil]
353
353
  def remove_bank_pin(bank)
354
- query_app bank.is_a?(String) ? "/rest/banks/#{bank}/submit": "/rest/banks/#{bank.bank_id}/submit", nil, "POST"
354
+ query_api bank.is_a?(String) ? "/rest/banks/#{bank}/submit": "/rest/banks/#{bank.bank_id}/submit", nil, "POST"
355
+ end
356
+
357
+ # Get bank information from standard bank code
358
+ #
359
+ # @param country_code [String]
360
+ # @param bank_code [String] bank sort code (Bankleitzahl)
361
+ # @return [Hash] JSON response
362
+ def find_bank(bank_code, country_code)
363
+ query_api "/rest/catalog/banks/#{country_code}/#{bank_code}"
355
364
  end
356
365
 
357
366
  # Retrieve list of transactions (on all or a specific account)
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: figo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2015-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flt
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: :runtime
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: net-http-persistent
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: :runtime
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
  description: Library to easily use the API of http://figo.io
@@ -71,18 +71,19 @@ require_paths:
71
71
  - lib
72
72
  required_ruby_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ! '>='
74
+ - - '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ! '>='
79
+ - - '>='
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.2.2
84
+ rubygems_version: 2.0.14
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: API wrapper for figo Connect.
88
- test_files: []
88
+ test_files:
89
+ - test/test_figo.rb