yandex_dictionary 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/yandex_dictionary/api_error.rb +1 -0
- data/lib/yandex_dictionary/version.rb +2 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/yandex_dictionary_spec.rb +4 -3
- metadata +1 -1
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Set translation directions
|
|
28
28
|
|
29
29
|
Returns a list of language supported by the server
|
30
30
|
|
31
|
-
|
31
|
+
YandexDictionary.getLangs
|
32
32
|
|
33
33
|
Searches for words or phrases in the dictionary and returns an automatically generated dictionary entry
|
34
34
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
require 'spec_helper'
|
2
3
|
|
3
4
|
describe YandexDictionary do
|
@@ -17,9 +18,9 @@ describe YandexDictionary do
|
|
17
18
|
end
|
18
19
|
|
19
20
|
it "shoud set translation directions" do
|
20
|
-
YandexDictionary.set_lang '
|
21
|
-
responce = YandexDictionary.lookup '
|
22
|
-
responce['def'][0]['tr'][0]['text'].should == '
|
21
|
+
YandexDictionary.set_lang 'ru-uk'
|
22
|
+
responce = YandexDictionary.lookup 'лето'
|
23
|
+
responce['def'][0]['tr'][0]['text'].should == 'літо'
|
23
24
|
end
|
24
25
|
|
25
26
|
end
|