bankleitzahl 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/bankleitzahl/fetcher.rb +3 -1
- data/lib/bankleitzahl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWI0MWY3MzgzODlmZGRiOTViMTQ0MzQwZjk1YzMyZjBiYWU0ZTgzZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjVkZGFlN2ViYTM1YjI0MTQwNjBjNTFmMjM4YjIwY2NiNWRiMjlhOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjBlMmI5NGZjMTU2MDI0YmVmNDIzMjJmYzczYTAwN2QyZTVkNWY3Y2Y3NGFi
|
10
|
+
YzNjZDI3OWMxMTg5NzFiYjk2MzIwZDg4ODE5NWRkZDlmZmI5ZDYyMjExZjE5
|
11
|
+
YWJiMTA4ODI2YmQ4OThlMWJhYzZmMjkwN2YwMmNhMzlmMWZhZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Yjc2Yzc4ZjFkZDU0MDM3NDAyMjQ0MGNlYWM2NmY2NzdiOGExMDFlZTI0NGE4
|
14
|
+
MTIxOGE2MjIyNDgyNGEwMjdhYmIwNWQ2OWExZDdlMDQ4M2E5OWMyZmU2NTc0
|
15
|
+
MzRmNmY5NGM2MjZjOTQ1ZjcyMGFiY2ZkMTE1ZjczZWExY2E3MWE=
|
data/lib/bankleitzahl/fetcher.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
require 'addressable/uri'
|
2
3
|
require 'net/http'
|
3
4
|
require 'uri'
|
@@ -42,7 +43,8 @@ module Bankleitzahl
|
|
42
43
|
response = http.request(request)
|
43
44
|
|
44
45
|
if response.code.to_i == 200
|
45
|
-
response.body
|
46
|
+
response.body.force_encoding("ISO-8859-1")
|
47
|
+
response.body.encode("UTF-8")
|
46
48
|
else
|
47
49
|
nil
|
48
50
|
end
|
data/lib/bankleitzahl/version.rb
CHANGED