wordnik 0.3.9 → 0.4.0

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 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 'hoptoad_notifier'
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
- # An alias. For convenience.
83
+ # Aliases. For convenience.
84
84
  #
85
- def word
86
- Wordnik.resources[:word]
87
- end
88
-
89
- def account
90
- Wordnik.resources[:account]
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
@@ -1,3 +1,3 @@
1
1
  module Wordnik
2
- VERSION = "0.3.9"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: wordnik
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.9
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-18 00:00:00 -07:00
14
+ date: 2011-03-20 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency