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 CHANGED
@@ -28,7 +28,7 @@ Set translation directions
28
28
 
29
29
  Returns a list of language supported by the server
30
30
 
31
- YandexandexDictionary.getLangs
31
+ YandexDictionary.getLangs
32
32
 
33
33
  Searches for words or phrases in the dictionary and returns an automatically generated dictionary entry
34
34
 
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module YandexDictionary
2
3
 
3
4
  class ApiError < StandardError
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module YandexDictionary
2
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
3
4
  end
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'rspec'
2
3
  require 'yandex_dictionary'
3
4
 
@@ -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 'en-de'
21
- responce = YandexDictionary.lookup 'like'
22
- responce['def'][0]['tr'][0]['text'].should == 'wie'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex_dictionary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: