dinosaurus 0.0.11 → 0.0.12
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.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.rspec.dist +1 -0
- data/README.md +1 -1
- data/lib/dinosaurus.rb +4 -8
- data/lib/dinosaurus/thesaurus.rb +2 -4
- data/lib/dinosaurus/version.rb +1 -1
- data/spec/dinosaurus/dinosaurus_spec.rb +13 -11
- data/spec/dinosaurus/results_spec.rb +12 -17
- data/spec/dinosaurus/thesaurus_spec.rb +9 -14
- data/spec/fixtures/vcr_cassettes/meal_people.yml +16 -8
- data/spec/fixtures/vcr_cassettes/nonsense.yml +16 -8
- data/spec/fixtures/vcr_cassettes/word.yml +21 -11
- metadata +51 -36
- data/spec/fixtures/vcr_cassettes/normal.yml +0 -40
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 522d5ba493dc9b546d1dda4b1f50c8dec26cd6b6
|
4
|
+
data.tar.gz: f36bd7c0769ebf8a281421e8f554d2c27a555d8d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 91b5d3ca10cbc9c4f06f32af2191aaa511da2e39877294157a17a82a510004c50e5e9c28e9127e096693525242204d54d0465e0c7e2d215b748995cc5e30751f
|
7
|
+
data.tar.gz: 71934f8d37a443328e0b44a05b718ad8ef5ac2014cf4d54f4130226039235606587aef68913d7e79db68345c0dfb332c61461df32e9265c90548badf3ed4bba0
|
data/.gitignore
CHANGED
data/.rspec.dist
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/README.md
CHANGED
@@ -59,7 +59,7 @@ Certain convenience methods are provided on the top level namespace.
|
|
59
59
|
Each method returns an array.
|
60
60
|
|
61
61
|
Dinosaurus.synonyms_of('word')
|
62
|
-
Dinosaurus.
|
62
|
+
Dinosaurus.antonyms_of('word')
|
63
63
|
Dinosaurus.related_to('word')
|
64
64
|
Dinosaurus.similar_to('word')
|
65
65
|
|
data/lib/dinosaurus.rb
CHANGED
@@ -23,8 +23,7 @@ module Dinosaurus
|
|
23
23
|
#
|
24
24
|
# Returns an array.
|
25
25
|
def self.synonyms_of(word)
|
26
|
-
|
27
|
-
results.synonyms
|
26
|
+
lookup(word).synonyms
|
28
27
|
end
|
29
28
|
|
30
29
|
# Convenience method to retrieve antonyms of a +word+.
|
@@ -33,8 +32,7 @@ module Dinosaurus
|
|
33
32
|
#
|
34
33
|
# Returns an array.
|
35
34
|
def self.antonyms_of(word)
|
36
|
-
|
37
|
-
results.antonyms
|
35
|
+
lookup(word).antonyms
|
38
36
|
end
|
39
37
|
|
40
38
|
# Convenience method to retrieve similar terms to the
|
@@ -44,8 +42,7 @@ module Dinosaurus
|
|
44
42
|
#
|
45
43
|
# Returns an array.
|
46
44
|
def self.similar_to(word)
|
47
|
-
|
48
|
-
results.similar_terms
|
45
|
+
lookup(word).similar_terms
|
49
46
|
end
|
50
47
|
|
51
48
|
# Convenience method to retrieve terms which are
|
@@ -55,7 +52,6 @@ module Dinosaurus
|
|
55
52
|
#
|
56
53
|
# Returns an array.
|
57
54
|
def self.related_to(word)
|
58
|
-
|
59
|
-
results.related_terms
|
55
|
+
lookup(word).related_terms
|
60
56
|
end
|
61
57
|
end
|
data/lib/dinosaurus/thesaurus.rb
CHANGED
@@ -17,14 +17,12 @@ module Dinosaurus
|
|
17
17
|
res = get(url_for(word))
|
18
18
|
|
19
19
|
if res.code == 200
|
20
|
-
|
21
|
-
Dinosaurus::Results.new(json)
|
20
|
+
Dinosaurus::Results.new(JSON.parse(res.body))
|
22
21
|
# Word does not exist.
|
23
22
|
elsif res.code == 404
|
24
23
|
Dinosaurus::Results.new
|
25
24
|
else
|
26
|
-
|
27
|
-
Logging.logger.warn(warning)
|
25
|
+
Logging.logger.warn("DINOSAURUS_WARNING: #{res.code}. WORD: #{word}.")
|
28
26
|
end
|
29
27
|
end
|
30
28
|
|
data/lib/dinosaurus/version.rb
CHANGED
@@ -2,35 +2,37 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe Dinosaurus do
|
4
4
|
let(:res) { Dinosaurus::Results.new }
|
5
|
-
before
|
6
|
-
Dinosaurus.stub(:lookup) { res }
|
7
|
-
end
|
5
|
+
before { allow(Dinosaurus).to receive(:lookup).and_return(res) }
|
8
6
|
|
9
|
-
describe "synonyms_of" do
|
7
|
+
describe "#synonyms_of" do
|
10
8
|
it "should return synonyms" do
|
11
|
-
res.
|
9
|
+
allow(res).to receive(:synonyms)
|
12
10
|
Dinosaurus.synonyms_of('normal')
|
11
|
+
expect(res).to have_received(:synonyms)
|
13
12
|
end
|
14
13
|
end
|
15
14
|
|
16
|
-
describe "antonyms_of" do
|
15
|
+
describe "#antonyms_of" do
|
17
16
|
it "should return antonyms" do
|
18
|
-
res.
|
17
|
+
allow(res).to receive(:antonyms)
|
19
18
|
Dinosaurus.antonyms_of('normal')
|
19
|
+
expect(res).to have_received(:antonyms)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
describe "related_to" do
|
23
|
+
describe "#related_to" do
|
24
24
|
it "should return related terms" do
|
25
|
-
res.
|
25
|
+
allow(res).to receive(:related_terms)
|
26
26
|
Dinosaurus.related_to('normal')
|
27
|
+
expect(res).to have_received(:related_terms)
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
30
|
-
describe "similar_to" do
|
31
|
+
describe "#similar_to" do
|
31
32
|
it "should return similar terms" do
|
32
|
-
res.
|
33
|
+
allow(res).to receive(:similar_terms)
|
33
34
|
Dinosaurus.similar_to('normal')
|
35
|
+
expect(res).to have_received(:similar_terms)
|
34
36
|
end
|
35
37
|
end
|
36
38
|
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
describe Dinosaurus::Results do
|
4
|
-
subject { Dinosaurus::Results }
|
5
|
-
|
6
4
|
let(:noun) do
|
7
5
|
{ 'syn' => %w[syn1 syn2 syn3],
|
8
6
|
'sim' => %w[sim1 sim2],
|
@@ -19,28 +17,25 @@ describe Dinosaurus::Results do
|
|
19
17
|
}
|
20
18
|
end
|
21
19
|
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
subject { described_class.new(res) }
|
21
|
+
|
22
|
+
it "makes synonyms available" do
|
23
|
+
expect(subject.synonyms).to eq(%w[syn1 syn2 syn3 vsyn1])
|
25
24
|
end
|
26
25
|
|
27
|
-
it "
|
28
|
-
|
29
|
-
results.antonyms.should == %w[ant1]
|
26
|
+
it "makes all antonyms available" do
|
27
|
+
expect(subject.antonyms).to eq(%w[ant1])
|
30
28
|
end
|
31
29
|
|
32
|
-
it "
|
33
|
-
|
34
|
-
results.similar_terms.should == %w[sim1 sim2]
|
30
|
+
it "makes similar terms available" do
|
31
|
+
expect(subject.similar_terms).to eq(%w[sim1 sim2])
|
35
32
|
end
|
36
33
|
|
37
|
-
it "
|
38
|
-
|
39
|
-
results.related_terms.should == %w[rel1 rel2 rel3]
|
34
|
+
it "makes related terms available" do
|
35
|
+
expect(subject.related_terms).to eq(%w[rel1 rel2 rel3])
|
40
36
|
end
|
41
37
|
|
42
|
-
it "
|
43
|
-
|
44
|
-
results[:noun].should == noun
|
38
|
+
it "makes nouns available" do
|
39
|
+
expect(subject[:noun]).to eq(noun)
|
45
40
|
end
|
46
41
|
end
|
@@ -1,40 +1,35 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
describe Dinosaurus::Thesaurus do
|
4
|
-
subject { Dinosaurus::Thesaurus }
|
5
|
-
|
6
4
|
it "should return results" do
|
7
5
|
VCR.use_cassette('word') do
|
8
|
-
|
9
|
-
results.should be_instance_of(Dinosaurus::Results)
|
6
|
+
expect(described_class.lookup('word')).to be_instance_of(Dinosaurus::Results)
|
10
7
|
end
|
11
8
|
end
|
12
9
|
|
13
10
|
it "should log errors" do
|
14
|
-
|
15
|
-
Logging.logger.
|
16
|
-
|
17
|
-
|
18
|
-
subject.lookup('word')
|
19
|
-
end
|
11
|
+
allow(described_class).to receive(:get).and_return(double(code: 500))
|
12
|
+
allow(Logging.logger).to receive(:warn)
|
13
|
+
VCR.use_cassette('word') { described_class.lookup('word') }
|
14
|
+
expect(Logging.logger).to have_received(:warn)
|
20
15
|
end
|
21
16
|
|
22
17
|
it "should return {} for nonsense words" do
|
23
18
|
VCR.use_cassette('nonsense') do
|
24
|
-
|
19
|
+
expect(described_class.lookup('hsdfkjhsf')).to eq({})
|
25
20
|
end
|
26
21
|
end
|
27
22
|
|
28
23
|
it "should handle two words" do
|
29
24
|
VCR.use_cassette('meal_people') do
|
30
|
-
|
25
|
+
expect(described_class.lookup('meal people')).to eq({})
|
31
26
|
end
|
32
27
|
end
|
33
28
|
|
34
29
|
it "should raise up if missing api key" do
|
35
|
-
Dinosaurus.configuration.
|
30
|
+
allow(Dinosaurus.configuration).to receive(:api_key)
|
36
31
|
expect do
|
37
|
-
|
32
|
+
described_class.lookup('word')
|
38
33
|
end.to raise_error(Dinosaurus::MissingApiKeyError)
|
39
34
|
end
|
40
35
|
|
@@ -6,16 +6,22 @@ http_interactions:
|
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
|
-
headers:
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
10
16
|
response:
|
11
17
|
status:
|
12
18
|
code: 404
|
13
19
|
message: Not Found
|
14
20
|
headers:
|
15
21
|
Server:
|
16
|
-
- nginx/1.
|
22
|
+
- nginx/1.4.6 (Ubuntu)
|
17
23
|
Date:
|
18
|
-
-
|
24
|
+
- Thu, 28 May 2015 10:27:27 GMT
|
19
25
|
Content-Type:
|
20
26
|
- text/html
|
21
27
|
Content-Length:
|
@@ -23,18 +29,20 @@ http_interactions:
|
|
23
29
|
Connection:
|
24
30
|
- keep-alive
|
25
31
|
X-Powered-By:
|
26
|
-
- PHP/5.
|
32
|
+
- PHP/5.5.9-1ubuntu4.9
|
27
33
|
Set-Cookie:
|
28
|
-
- PHPSESSID=
|
34
|
+
- PHPSESSID=uj74tu3a6rqfova6b01sl0c5l7; path=/; domain=words.bighugelabs.com
|
29
35
|
Expires:
|
30
36
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
31
37
|
Cache-Control:
|
32
38
|
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
33
39
|
Pragma:
|
34
40
|
- no-cache
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
35
43
|
body:
|
36
|
-
encoding:
|
44
|
+
encoding: UTF-8
|
37
45
|
string: ''
|
38
46
|
http_version:
|
39
|
-
recorded_at:
|
40
|
-
recorded_with: VCR 2.
|
47
|
+
recorded_at: Thu, 28 May 2015 10:27:27 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
@@ -6,16 +6,22 @@ http_interactions:
|
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
|
-
headers:
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
10
16
|
response:
|
11
17
|
status:
|
12
18
|
code: 404
|
13
19
|
message: Not Found
|
14
20
|
headers:
|
15
21
|
Server:
|
16
|
-
- nginx/1.
|
22
|
+
- nginx/1.4.6 (Ubuntu)
|
17
23
|
Date:
|
18
|
-
-
|
24
|
+
- Thu, 28 May 2015 10:27:27 GMT
|
19
25
|
Content-Type:
|
20
26
|
- text/html
|
21
27
|
Content-Length:
|
@@ -23,18 +29,20 @@ http_interactions:
|
|
23
29
|
Connection:
|
24
30
|
- keep-alive
|
25
31
|
X-Powered-By:
|
26
|
-
- PHP/5.
|
32
|
+
- PHP/5.5.9-1ubuntu4.9
|
27
33
|
Set-Cookie:
|
28
|
-
- PHPSESSID=
|
34
|
+
- PHPSESSID=1njnsimbjub81i5llb36ch0co2; path=/; domain=words.bighugelabs.com
|
29
35
|
Expires:
|
30
36
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
31
37
|
Cache-Control:
|
32
38
|
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
33
39
|
Pragma:
|
34
40
|
- no-cache
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
35
43
|
body:
|
36
|
-
encoding:
|
44
|
+
encoding: UTF-8
|
37
45
|
string: ''
|
38
46
|
http_version:
|
39
|
-
recorded_at:
|
40
|
-
recorded_with: VCR 2.
|
47
|
+
recorded_at: Thu, 28 May 2015 10:27:27 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
@@ -6,35 +6,45 @@ http_interactions:
|
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
|
-
headers:
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
10
16
|
response:
|
11
17
|
status:
|
12
18
|
code: 200
|
13
19
|
message: OK
|
14
20
|
headers:
|
15
21
|
Server:
|
16
|
-
- nginx/1.
|
22
|
+
- nginx/1.4.6 (Ubuntu)
|
17
23
|
Date:
|
18
|
-
-
|
24
|
+
- Thu, 28 May 2015 10:27:26 GMT
|
19
25
|
Content-Type:
|
20
26
|
- text/javascript
|
21
|
-
|
22
|
-
-
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
23
29
|
Connection:
|
24
30
|
- keep-alive
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
25
33
|
X-Powered-By:
|
26
|
-
- PHP/5.
|
34
|
+
- PHP/5.5.9-1ubuntu4.9
|
27
35
|
Set-Cookie:
|
28
|
-
- PHPSESSID=
|
36
|
+
- PHPSESSID=9a03pfgor6otp9f5776bnqt4m4; path=/; domain=words.bighugelabs.com
|
29
37
|
Expires:
|
30
38
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
31
39
|
Cache-Control:
|
32
40
|
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
33
41
|
Pragma:
|
34
42
|
- no-cache
|
43
|
+
Access-Control-Allow-Origin:
|
44
|
+
- "*"
|
35
45
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
46
|
+
encoding: ASCII-8BIT
|
47
|
+
string: '{"noun":{"syn":["news","intelligence","tidings","discussion","give-and-take","parole","word
|
38
48
|
of honor","Son","Word","Logos","password","watchword","countersign","Bible","Christian
|
39
49
|
Bible","Book","Good Book","Holy Scripture","Holy Writ","Scripture","Word of
|
40
50
|
God","arcanum","computer memory unit","hypostasis","hypostasis of Christ","info","information","language","language
|
@@ -43,5 +53,5 @@ http_interactions:
|
|
43
53
|
communication","spoken communication","spoken language","statement","voice
|
44
54
|
communication"]},"verb":{"syn":["give voice","formulate","phrase","articulate","evince","express","show"]}}'
|
45
55
|
http_version:
|
46
|
-
recorded_at:
|
47
|
-
recorded_with: VCR 2.
|
56
|
+
recorded_at: Thu, 28 May 2015 10:27:26 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
metadata
CHANGED
@@ -1,82 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dinosaurus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.12
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Tuite
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: vcr
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: webmock
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - ">="
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: httparty
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ">="
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
type: :runtime
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: activesupport
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
|
-
- -
|
73
|
+
- - ">="
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0'
|
66
76
|
type: :runtime
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rake
|
71
|
-
requirement:
|
72
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
|
-
- -
|
87
|
+
- - ">="
|
75
88
|
- !ruby/object:Gem::Version
|
76
89
|
version: '0'
|
77
90
|
type: :runtime
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
80
97
|
description: Ruby wrapper for the Big Huge Thesaurus APIs.
|
81
98
|
email:
|
82
99
|
- dtuite@gmail.com
|
@@ -84,7 +101,8 @@ executables: []
|
|
84
101
|
extensions: []
|
85
102
|
extra_rdoc_files: []
|
86
103
|
files:
|
87
|
-
- .gitignore
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec.dist"
|
88
106
|
- Gemfile
|
89
107
|
- LICENSE
|
90
108
|
- README.md
|
@@ -102,32 +120,30 @@ files:
|
|
102
120
|
- spec/dinosaurus/thesaurus_spec.rb
|
103
121
|
- spec/fixtures/vcr_cassettes/meal_people.yml
|
104
122
|
- spec/fixtures/vcr_cassettes/nonsense.yml
|
105
|
-
- spec/fixtures/vcr_cassettes/normal.yml
|
106
123
|
- spec/fixtures/vcr_cassettes/word.yml
|
107
124
|
- spec/spec_helper.rb
|
108
125
|
homepage: http://words.bighugelabs.com
|
109
126
|
licenses: []
|
127
|
+
metadata: {}
|
110
128
|
post_install_message:
|
111
129
|
rdoc_options: []
|
112
130
|
require_paths:
|
113
131
|
- lib
|
114
132
|
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
133
|
requirements:
|
117
|
-
- -
|
134
|
+
- - ">="
|
118
135
|
- !ruby/object:Gem::Version
|
119
136
|
version: '0'
|
120
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
138
|
requirements:
|
123
|
-
- -
|
139
|
+
- - ">="
|
124
140
|
- !ruby/object:Gem::Version
|
125
141
|
version: '0'
|
126
142
|
requirements: []
|
127
143
|
rubyforge_project:
|
128
|
-
rubygems_version:
|
144
|
+
rubygems_version: 2.4.5
|
129
145
|
signing_key:
|
130
|
-
specification_version:
|
146
|
+
specification_version: 4
|
131
147
|
summary: Lookup synonyms, antonyms etc. using the Big Huge Thesaurus API.
|
132
148
|
test_files:
|
133
149
|
- spec/dinosaurus/dinosaurus_spec.rb
|
@@ -135,6 +151,5 @@ test_files:
|
|
135
151
|
- spec/dinosaurus/thesaurus_spec.rb
|
136
152
|
- spec/fixtures/vcr_cassettes/meal_people.yml
|
137
153
|
- spec/fixtures/vcr_cassettes/nonsense.yml
|
138
|
-
- spec/fixtures/vcr_cassettes/normal.yml
|
139
154
|
- spec/fixtures/vcr_cassettes/word.yml
|
140
155
|
- spec/spec_helper.rb
|
@@ -1,40 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://words.bighugelabs.com/api/2/<API_KEY>/normal/json
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
headers:
|
15
|
-
Server:
|
16
|
-
- nginx/1.1.19
|
17
|
-
Date:
|
18
|
-
- Wed, 25 Jul 2012 10:32:52 GMT
|
19
|
-
Content-Type:
|
20
|
-
- text/javascript
|
21
|
-
Content-Length:
|
22
|
-
- '229'
|
23
|
-
Connection:
|
24
|
-
- keep-alive
|
25
|
-
X-Powered-By:
|
26
|
-
- PHP/5.3.10-1ubuntu3.2
|
27
|
-
Set-Cookie:
|
28
|
-
- PHPSESSID=c7o04aqfq3ucnshi05iiviaok2; path=/; domain=words.bighugelabs.com
|
29
|
-
Expires:
|
30
|
-
- Thu, 19 Nov 1981 08:52:00 GMT
|
31
|
-
Cache-Control:
|
32
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
33
|
-
Pragma:
|
34
|
-
- no-cache
|
35
|
-
body:
|
36
|
-
encoding: US-ASCII
|
37
|
-
string: ! '{"adjective":{"ant":["abnormal","paranormal"],"rel":["sane","standard"],"sim":["average","mean","median","modal","natural","perpendicular","regular","typical"]},"noun":{"syn":["convention","pattern","rule","formula","practice"]}}'
|
38
|
-
http_version:
|
39
|
-
recorded_at: Wed, 25 Jul 2012 10:32:52 GMT
|
40
|
-
recorded_with: VCR 2.2.4
|