vocabulary 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -1
- data/lib/vocabulary.rb +1 -1
- data/lib/vocabulary/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -5,9 +5,11 @@ You can find the list of supported languages (over 90) in [separated file](https
|
|
|
5
5
|
|
|
6
6
|
##Setup
|
|
7
7
|
|
|
8
|
+
Run `gem install vocabulary` or
|
|
9
|
+
|
|
8
10
|
Just add to your Gemfile:
|
|
9
11
|
|
|
10
|
-
gem "
|
|
12
|
+
gem "vocabulary"
|
|
11
13
|
|
|
12
14
|
##Usage
|
|
13
15
|
|
|
@@ -37,6 +39,7 @@ You can fetch meanings in any language:
|
|
|
37
39
|
|
|
38
40
|
- Add RSpec tests
|
|
39
41
|
|
|
42
|
+
|
|
40
43
|
##Author
|
|
41
44
|
|
|
42
45
|
- [Kir Shatrov](https://github.com/kirs/) (Evrone Company)
|
data/lib/vocabulary.rb
CHANGED
|
@@ -43,7 +43,7 @@ module Vocabulary
|
|
|
43
43
|
|
|
44
44
|
def self.lookup(word, source_lang, target_lang = nil)
|
|
45
45
|
target_lang ||= :en
|
|
46
|
-
data =
|
|
46
|
+
data = Dictionary.new.get(word, source_lang.to_s, target_lang.to_s)
|
|
47
47
|
Word.new(data)
|
|
48
48
|
end
|
|
49
49
|
end
|
data/lib/vocabulary/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vocabulary
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -13,7 +13,7 @@ date: 2011-11-23 00:00:00.000000000Z
|
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: httparty
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70101139724680 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70101139724680
|
|
25
25
|
description:
|
|
26
26
|
email:
|
|
27
27
|
- razor.psp@gmail.com
|