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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGQzN2Y2MTFhZWU0NWI2NTU4Yjg0ZGVhYTk0MGE3NWY1OTYyYTYzNA==
4
+ YWI0MWY3MzgzODlmZGRiOTViMTQ0MzQwZjk1YzMyZjBiYWU0ZTgzZQ==
5
5
  data.tar.gz: !binary |-
6
- YjI0YjFkYjJlM2E2N2MzYjlkNGVhOGUzYjc0NWY4ZmZkM2U5MWUwYw==
6
+ YjVkZGFlN2ViYTM1YjI0MTQwNjBjNTFmMjM4YjIwY2NiNWRiMjlhOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTAwZDJkZmE3MDk2MGI1NjRiYjM5OTAxZTNjZGM5NmQ5M2Y2OTgwYjQzODg1
10
- Y2ZkNDUxYTg5YTM0MGNmZmJjMTQzZmRmMGRiOWM3MWU5MGY0MTkwZDVlOGIy
11
- NjY5NTc5NzU4YWViYWMwZjYyZDM2Y2ExNTNkOGI4YmNjMWUzMzk=
9
+ MjBlMmI5NGZjMTU2MDI0YmVmNDIzMjJmYzczYTAwN2QyZTVkNWY3Y2Y3NGFi
10
+ YzNjZDI3OWMxMTg5NzFiYjk2MzIwZDg4ODE5NWRkZDlmZmI5ZDYyMjExZjE5
11
+ YWJiMTA4ODI2YmQ4OThlMWJhYzZmMjkwN2YwMmNhMzlmMWZhZjQ=
12
12
  data.tar.gz: !binary |-
13
- MjBkYzdiNzMzM2FiMTZiODM3NjRhY2Y4NzQxMzUzM2QzNmE0OGJiYjNmY2Y2
14
- Mzg3YTYyZjNlZmVjMTI1OWM1ZGQwZjI3M2M1ZGUzN2RiODA2NTdkY2FlOWI2
15
- N2FkZDMyYjM3MTcxYzg4YmIwNTdlMTAyOGY3MGYzZmEzMGNhYmU=
13
+ Yjc2Yzc4ZjFkZDU0MDM3NDAyMjQ0MGNlYWM2NmY2NzdiOGExMDFlZTI0NGE4
14
+ MTIxOGE2MjIyNDgyNGEwMjdhYmIwNWQ2OWExZDdlMDQ4M2E5OWMyZmU2NTc0
15
+ MzRmNmY5NGM2MjZjOTQ1ZjcyMGFiY2ZkMTE1ZjczZWExY2E3MWE=
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bankleitzahl
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bankleitzahl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gogolok