indico 0.10.4 → 0.10.5

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.
@@ -48,7 +48,8 @@ module Indico
48
48
  api_handler(text, 'personality', config)
49
49
  end
50
50
 
51
- def self.personas(text, config = {'persona'=> true})
51
+ def self.personas(text, config = {})
52
+ config['persona'] = true
52
53
  api_handler(text, 'personality', config)
53
54
  end
54
55
 
@@ -1,3 +1,3 @@
1
1
  module Indico
2
- VERSION = '0.10.4'
2
+ VERSION = '0.10.5'
3
3
  end
@@ -25,6 +25,10 @@ describe Indico do
25
25
  expected_keys.each do |key|
26
26
  expect(Set.new(response.keys)).to include(key)
27
27
  end
28
+
29
+ response = Indico.personas('I love my friends!', {top_n: 5})
30
+
31
+ expect(response.length).to eql(5)
28
32
  end
29
33
 
30
34
  it 'should tag text with correct emotion tags' do
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.10.4
4
+ version: 0.10.5
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: 2016-12-16 00:00:00.000000000 Z
15
+ date: 2017-06-13 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: inifile