wordnik 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/wordnik.rb +16 -9
- data/lib/wordnik/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -19,7 +19,7 @@ Then from your project's RAILS_ROOT, run:
|
|
19
19
|
|
20
20
|
bundle install
|
21
21
|
|
22
|
-
Create config/initializers/wordnik.rb and drop this in:
|
22
|
+
Create a file named config/initializers/wordnik.rb and drop this in:
|
23
23
|
|
24
24
|
Wordnik.configure do |config|
|
25
25
|
config.api_key = '12345abcde' # required
|
@@ -32,7 +32,7 @@ Create config/initializers/wordnik.rb and drop this in:
|
|
32
32
|
|
33
33
|
Add the wordnik gem to your app. In config/environment.rb:
|
34
34
|
|
35
|
-
config.gem '
|
35
|
+
config.gem 'wordnik'
|
36
36
|
|
37
37
|
Then from your project's RAILS_ROOT, run:
|
38
38
|
|
data/lib/wordnik.rb
CHANGED
@@ -80,16 +80,23 @@ module Wordnik
|
|
80
80
|
%w(account corpus document partners system tag user users word words wordList wordLists wordoftheday)
|
81
81
|
end
|
82
82
|
|
83
|
-
#
|
83
|
+
# Aliases. For convenience.
|
84
84
|
#
|
85
|
-
def
|
86
|
-
|
87
|
-
end
|
88
|
-
|
89
|
-
def
|
90
|
-
|
91
|
-
end
|
92
|
-
|
85
|
+
def account; Wordnik.resources[:account]; end
|
86
|
+
def analytics; Wordnik.resources[:analytics]; end
|
87
|
+
def corpus; Wordnik.resources[:corpus]; end
|
88
|
+
def document; Wordnik.resources[:document]; end
|
89
|
+
def partners; Wordnik.resources[:partners]; end
|
90
|
+
def system; Wordnik.resources[:system]; end
|
91
|
+
def tag; Wordnik.resources[:tag]; end
|
92
|
+
def user; Wordnik.resources[:user]; end
|
93
|
+
def users; Wordnik.resources[:users]; end
|
94
|
+
def word; Wordnik.resources[:word]; end
|
95
|
+
def words; Wordnik.resources[:words]; end
|
96
|
+
def word_list; Wordnik.resources[:word_list]; end
|
97
|
+
def word_lists; Wordnik.resources[:word_lists]; end
|
98
|
+
def wordoftheday; Wordnik.resources[:wordoftheday]; end
|
99
|
+
|
93
100
|
end
|
94
101
|
|
95
102
|
end
|
data/lib/wordnik/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: wordnik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.4.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Zeke Sikelianos
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-03-
|
14
|
+
date: 2011-03-20 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|