google_translater 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_translater/translater.rb +1 -1
- data/lib/google_translater/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1ef5960efee8364d69a39e2e8936457659ad3a0
|
4
|
+
data.tar.gz: ea594405921abf4208c8979262a94335dd887912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac239d1a7a863e866c106f1a40ad707ccaafd767ecc963c0ada01ee90461553fa3f13644ec52c45431548194cecc98d2cdc3d6e65925d123806f5db9f2b65f06
|
7
|
+
data.tar.gz: 1ed5fe37669f203c343226ca96e4ff07156cf7551499d7c0a67f09a80804fd4d98e59befdbe84128823b51fc874dbf511b9174562c9f22a311b04d903ff64137
|
@@ -29,7 +29,7 @@ class Translater # rubocop:disable Metrics/ClassLength
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def parsed_google_response
|
32
|
-
google_response.body.gsub(/\[|\]|"/, '').split(',').first
|
32
|
+
google_response.body.gsub(/\[|\]|"/, '').split(',').first.force_encoding('UTF-8')
|
33
33
|
end
|
34
34
|
|
35
35
|
def recognized?(language)
|