glosbe 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/glosbe.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: cbea06ba1ef30f67001e54357284d0c683f2a3d4
|
4
|
+
data.tar.gz: 3fc5cbd2253c95f53af1a32c614c54d3e1396277
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21ce766739123b38cfb73e44bb5284c64cde154abf7c9aeba5f80e00b763dcecde13e903e14fdf0e9b23e9883853d3edc7d8b0a82b3c28bec63bbde251fc6108
|
7
|
+
data.tar.gz: 40e2b1d6463f36fe5d767873b0e4587237e7a0c97c3762c2a348701b1c719efa5cd4d69ed62c34d8ee9a2e24e19377b6e1878a7be0ab88fc403f45a620d5a0f2
|
data/lib/glosbe.rb
CHANGED
@@ -35,7 +35,7 @@ module Glosbe
|
|
35
35
|
|
36
36
|
target_definitions = []
|
37
37
|
source_definitions = []
|
38
|
-
translated = (response['tuc'].first && response[tuc].first['phrase']) ? response['tuc'].first['phrase']['text'] : nil
|
38
|
+
translated = (response['tuc'].first && response['tuc'].first['phrase']) ? response['tuc'].first['phrase']['text'] : nil
|
39
39
|
coder = HTMLEntities.new
|
40
40
|
response['tuc'].each do |tranlation_block|
|
41
41
|
if tranlation_block['meanings']
|