ibanomat 1.0.0 → 1.1.0
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 +4 -4
- data/.travis.yml +3 -1
- data/README.md +1 -1
- data/bin/console +9 -0
- data/lib/ibanomat/client.rb +2 -1
- data/lib/ibanomat/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 213c2636b0263491c5414880435326d62950fae8
|
4
|
+
data.tar.gz: fe6b7139e6c770ab743afa37de34ff319d5017f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfdaa460fd333c6c93c070f10c91e6df545341e2af1c5268e752e56dbed49f89a79a9f1ef170cdafabe7cc477601d96bac60ede612882e3b3eadb88691f0556c
|
7
|
+
data.tar.gz: a1fff929f2a80b02f8609da2307159f02b9ae1b3b3c851eb434551e86d6a363ebf6f645040a0c2f34b07ea197023cc22fd4ee1c00ead88a2c06642cc00f3766f
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[](http://badge.fury.io/rb/ibanomat)
|
6
6
|
[](https://gemnasium.com/ledermann/ibanomat)
|
7
7
|
|
8
|
-
The gem is a Ruby wrapper for a [web service of the german "Sparkasse"](
|
8
|
+
The gem is a Ruby wrapper for a [web service of the german "Sparkasse"](https://www.sparkasse-koelnbonn.de/privatkunden/banking/auslandszahlungen/iban/). It calculates the **IBAN** for a given bank code (in German "Bankleitzahl") and bank account number ("Kontonummer"). Behind the scenes the web service returns JSON ([Example here](https://www.sparkasse-koelnbonn.de/module/iban/iban.php?bank-code=37040044&bank-account-number=0532013000))
|
9
9
|
|
10
10
|
**WARNING: I'm not affiliated in any way with the web service or the Sparkasse. The web service seems not to be official. Maybe it will be offline soon. I didn't find any terms of use on their website. Use this gem at your own risk!**
|
11
11
|
|
data/bin/console
ADDED
data/lib/ibanomat/client.rb
CHANGED
@@ -2,11 +2,12 @@ require 'rest-client'
|
|
2
2
|
require 'json'
|
3
3
|
|
4
4
|
module Ibanomat
|
5
|
-
URL = '
|
5
|
+
URL = 'https://www.sparkasse-koelnbonn.de/module/iban/iban.php'
|
6
6
|
|
7
7
|
def self.find(options)
|
8
8
|
raise ArgumentError.new unless options.is_a?(Hash)
|
9
9
|
raise ArgumentError.new('Option :bank_code is missing!') if options[:bank_code].empty?
|
10
|
+
raise ArgumentError.new('Option :bank_account_number is missing!') if options[:bank_account_number].empty?
|
10
11
|
|
11
12
|
response = RestClient.get URL, {
|
12
13
|
:params => {
|
data/lib/ibanomat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibanomat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Ledermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -97,7 +97,8 @@ dependencies:
|
|
97
97
|
description: 'Germany only: Bankleitzahl & Kontonummer => IBAN'
|
98
98
|
email:
|
99
99
|
- mail@georg-ledermann.de
|
100
|
-
executables:
|
100
|
+
executables:
|
101
|
+
- console
|
101
102
|
extensions: []
|
102
103
|
extra_rdoc_files: []
|
103
104
|
files:
|
@@ -108,6 +109,7 @@ files:
|
|
108
109
|
- LICENSE
|
109
110
|
- README.md
|
110
111
|
- Rakefile
|
112
|
+
- bin/console
|
111
113
|
- ibanomat.gemspec
|
112
114
|
- lib/ibanomat.rb
|
113
115
|
- lib/ibanomat/client.rb
|