indico 0.6.0 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/indico/version.rb +1 -1
- data/spec/keywords_v2_spec.rb +30 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0d0293f757ec590af9dd4f4bc6d9159955af93d
|
4
|
+
data.tar.gz: ff4f9b147a7084141f3cb69b3c00a15cd3a7da31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 774af344dacfcb8305c66153d4df7120b67afc6943959700d2d2066709725fc43bed20ae7750da6c1933fc7f857c81762f98acbf8c4463199df42a52f0baa904
|
7
|
+
data.tar.gz: 028a5538564fc114955c780fc7d0112afe6a94af73687b05289d8912b074a5fe9c1746941a6d8d7c8fc4b724cc1ea4d9ac9188bb0a762adb5038ce4069d6b9cc
|
data/lib/indico/version.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Indico do
|
4
|
+
before do
|
5
|
+
api_key = ENV['INDICO_API_KEY']
|
6
|
+
private_cloud = 'indico-test'
|
7
|
+
@config = { api_key: api_key, cloud: private_cloud}
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'single keywords should return the right response' do
|
11
|
+
data = "A working API is key to success for our company"
|
12
|
+
|
13
|
+
config = @config.clone
|
14
|
+
config["version"] = 2
|
15
|
+
response = Indico.keywords(data, config)
|
16
|
+
|
17
|
+
response.keys.each { |key| expect(data.include? key)}
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'batch keywords should return the right response' do
|
21
|
+
data = "A working API is key to success for our company"
|
22
|
+
|
23
|
+
config = @config.clone
|
24
|
+
config["version"] = 2
|
25
|
+
response = Indico.keywords([data, data], config)
|
26
|
+
|
27
|
+
expect(response.length).to eql(2)
|
28
|
+
response[0].keys.each { |key| expect(data.include? key)}
|
29
|
+
end
|
30
|
+
end
|
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.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Slater Victoroff
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: inifile
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- spec/imagerecognition_spec.rb
|
117
117
|
- spec/indico_batch_spec.rb
|
118
118
|
- spec/indico_spec.rb
|
119
|
+
- spec/keywords_v2_spec.rb
|
119
120
|
- spec/settings_spec.rb
|
120
121
|
- spec/spec_helper.rb
|
121
122
|
- spec/versioning_spec.rb
|