indico 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/indico/helper.rb CHANGED
@@ -27,13 +27,6 @@ module Indico
27
27
 
28
28
  server = server or Indico.config['cloud']
29
29
 
30
- #FIXME Remove when sentimenthq is publicly released
31
- if !server
32
- if api == 'sentimenthq' || (apis && apis.include?('sentimenthq'))
33
- raise IndicoError, 'The high quality sentiment API is currently in private beta.'
34
- end
35
- end
36
-
37
30
  url = url_join(server, api) + (apis ? "?apis=" + apis.join(",") : "")
38
31
 
39
32
  response = make_request(url, JSON.dump(d),
@@ -1,3 +1,3 @@
1
1
  module Indico
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
@@ -38,10 +38,10 @@ describe Indico do
38
38
  expect(response[0] < 0.5).to eql(true)
39
39
  end
40
40
 
41
- # it 'should tag text with correct sentiment_hq tags' do
42
- # response = Indico.batch_sentiment_hq(['Worst movie ever.'], @config)
43
- # expect(response[0] < 0.5).to eql(true)
44
- # end
41
+ it 'should tag text with correct sentiment_hq tags' do
42
+ response = Indico.batch_sentiment_hq(['Worst movie ever.'], @config)
43
+ expect(response[0] < 0.5).to eql(true)
44
+ end
45
45
 
46
46
  it 'should tag text with correct language tags' do
47
47
  expected_keys = Set.new([
data/spec/indico_spec.rb CHANGED
@@ -35,11 +35,11 @@ describe Indico do
35
35
  expect(response < 0.5).to eql(true)
36
36
  end
37
37
 
38
- # it 'should tag text with correct sentimenthq tags' do
39
- # response = Indico.sentiment_hq('Worst movie ever.')
40
- #
41
- # expect(response < 0.5).to eql(true)
42
- # end
38
+ it 'should tag text with correct sentimenthq tags' do
39
+ response = Indico.sentiment_hq('Worst movie ever.')
40
+
41
+ expect(response < 0.5).to eql(true)
42
+ end
43
43
 
44
44
  it 'should tag text with correct language tags' do
45
45
  expected_keys = Set.new([
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.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-06-12 00:00:00.000000000 Z
15
+ date: 2015-07-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: inifile