indico 0.0.2 → 0.1.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 +0 -2
- data/lib/indico/version.rb +1 -1
- data/lib/indico.rb +0 -6
- data/spec/indico_spec.rb +0 -7
- metadata +2 -2
data/README.md
CHANGED
data/lib/indico/version.rb
CHANGED
data/lib/indico.rb
CHANGED
@@ -14,12 +14,6 @@ module Indico
|
|
14
14
|
JSON.parse(response.body)
|
15
15
|
end
|
16
16
|
|
17
|
-
def self.spam(test_text)
|
18
|
-
data_dict = JSON.dump({ text: test_text})
|
19
|
-
response = make_request(base_url("spam"), data_dict, HEADERS)
|
20
|
-
JSON.parse(response.body)
|
21
|
-
end
|
22
|
-
|
23
17
|
def self.posneg(test_text)
|
24
18
|
data_dict = JSON.dump({ text: test_text})
|
25
19
|
response = make_request(base_url("sentiment"), data_dict, HEADERS)
|
data/spec/indico_spec.rb
CHANGED
@@ -10,13 +10,6 @@ describe Indico do
|
|
10
10
|
expect(Set.new(response.keys)).to eql(expected_keys)
|
11
11
|
end
|
12
12
|
|
13
|
-
it "should tag text with correct spam tags" do
|
14
|
-
expected_keys = Set.new(["Ham", "Spam"])
|
15
|
-
response = Indico.spam("Free car!")
|
16
|
-
|
17
|
-
expect(Set.new(response.keys)).to eql(expected_keys)
|
18
|
-
end
|
19
|
-
|
20
13
|
it "should tag text with correct sentiment tags" do
|
21
14
|
expected_keys = Set.new(["Sentiment"])
|
22
15
|
response = Indico.sentiment("Worst movie ever.")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: indico
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|