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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08d4f064ce357e99bbd83bc0fe9c64952236134c
4
- data.tar.gz: e2e5133d70e69dfa195b711483861cb6f8f43ada
3
+ metadata.gz: 213c2636b0263491c5414880435326d62950fae8
4
+ data.tar.gz: fe6b7139e6c770ab743afa37de34ff319d5017f5
5
5
  SHA512:
6
- metadata.gz: 54dc94fb1efa0b86fe7743e81a7a2da0e3c83e70eeef40f96dfa8efeba8333e18f89ad571684394098a3db3a68f8bfa168f33eca31f548a7f0cec352e906280e
7
- data.tar.gz: 8a0a4493636a40a2400229f8b581913185430a3610e8e3ee62b43b4ecfef6a37f2dff291d05943b34e3fcf5c8ad432d22c872407a916c7277c3b64ed4193315f
6
+ metadata.gz: dfdaa460fd333c6c93c070f10c91e6df545341e2af1c5268e752e56dbed49f89a79a9f1ef170cdafabe7cc477601d96bac60ede612882e3b3eadb88691f0556c
7
+ data.tar.gz: a1fff929f2a80b02f8609da2307159f02b9ae1b3b3c851eb434551e86d6a363ebf6f645040a0c2f34b07ea197023cc22fd4ee1c00ead88a2c06642cc00f3766f
data/.travis.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
- - 2.1.0
4
+ - 2.1.7
5
+ - 2.2.3
5
6
  before_install: gem update bundler
7
+ sudo: false
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![Gem Version](https://badge.fury.io/rb/ibanomat.png)](http://badge.fury.io/rb/ibanomat)
6
6
  [![Dependency Status](https://gemnasium.com/ledermann/ibanomat.png)](https://gemnasium.com/ledermann/ibanomat)
7
7
 
8
- The gem is a Ruby wrapper for a [web service of the german "Sparkasse"](http://www.sparkasse.de/firmenkunden/konto-karte/iban-rechner.html). 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](http://www.sparkasse.de/firmenkunden/konto-karte/iban-resources/iban/iban.php?bank-code=37040044&bank-account-number=0532013000))
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
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'ibanomat'
5
+
6
+ $LOAD_PATH.unshift(File.expand_path('..', File.dirname(__FILE__)))
7
+
8
+ require 'irb'
9
+ IRB.start
@@ -2,11 +2,12 @@ require 'rest-client'
2
2
  require 'json'
3
3
 
4
4
  module Ibanomat
5
- URL = 'http://www.sparkasse.de/firmenkunden/konto-karte/iban-resources/iban/iban.php'
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 => {
@@ -1,3 +1,3 @@
1
1
  module Ibanomat
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
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.0.0
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-06-22 00:00:00.000000000 Z
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