swiftype 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +95 -22
- data/lib/swiftype/client.rb +53 -1
- data/lib/swiftype/request.rb +24 -0
- data/lib/swiftype/version.rb +1 -1
- data/spec/client_spec.rb +181 -91
- data/spec/configuration_spec.rb +9 -8
- data/spec/deprecated_spec.rb +3 -3
- data/spec/fixtures/vcr/async_create_or_update_document_failure.yml +48 -0
- data/spec/fixtures/vcr/async_create_or_update_document_success.yml +51 -0
- data/spec/fixtures/vcr/document_receipts_multiple.yml +48 -0
- data/spec/fixtures/vcr/document_receipts_multiple_complete.yml +48 -0
- data/spec/platform_spec.rb +6 -6
- data/spec/sso_spec.rb +3 -3
- data/swiftype.gemspec +2 -2
- metadata +28 -19
data/spec/configuration_spec.rb
CHANGED
@@ -5,14 +5,16 @@ describe 'Configuration' do
|
|
5
5
|
context 'with non-standard port number' do
|
6
6
|
it 'sets the API key and endpoint' do
|
7
7
|
Swiftype.authenticated_url = 'http://testkey:@localhost:1234/api/v1'
|
8
|
-
Swiftype.api_key.
|
9
|
-
Swiftype.endpoint.
|
8
|
+
expect(Swiftype.api_key).to eq('testkey')
|
9
|
+
expect(Swiftype.endpoint).to eq('http://localhost:1234/api/v1/')
|
10
10
|
end
|
11
11
|
|
12
12
|
context 'with implicit port number' do
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
it 'sets the API key and endpoint' do
|
14
|
+
Swiftype.authenticated_url = 'https://testkey:@api.swiftype.com/api/v1'
|
15
|
+
expect(Swiftype.api_key).to eq('testkey')
|
16
|
+
expect(Swiftype.endpoint).to eq('https://api.swiftype.com/api/v1/')
|
17
|
+
end
|
16
18
|
end
|
17
19
|
end
|
18
20
|
end
|
@@ -21,16 +23,15 @@ describe 'Configuration' do
|
|
21
23
|
context 'with a trailing /' do
|
22
24
|
it 'adds / to the end of of the URL' do
|
23
25
|
Swiftype.endpoint = 'https://api.swiftype.com/api/v1'
|
24
|
-
Swiftype.endpoint.
|
26
|
+
expect(Swiftype.endpoint).to eq('https://api.swiftype.com/api/v1/')
|
25
27
|
end
|
26
28
|
end
|
27
29
|
|
28
30
|
context 'with a trailing /' do
|
29
31
|
it 'leaves the URL alone' do
|
30
32
|
Swiftype.endpoint = 'https://api.swiftype.com/api/v1/'
|
31
|
-
Swiftype.endpoint.
|
33
|
+
expect(Swiftype.endpoint).to eq('https://api.swiftype.com/api/v1/')
|
32
34
|
end
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|
36
|
-
|
data/spec/deprecated_spec.rb
CHANGED
@@ -3,18 +3,18 @@ require 'spec_helper'
|
|
3
3
|
describe 'deprecated classes and methods' do
|
4
4
|
context 'Swiftype::Easy' do
|
5
5
|
it 'returns Swiftype::Client' do
|
6
|
-
Swiftype::Easy.
|
6
|
+
expect(Swiftype::Easy).to eq(Swiftype::Client)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
10
|
context 'Swiftype::Easy.configure' do
|
11
11
|
it 'calls warn and calls Swiftype.configure' do
|
12
|
-
Swiftype::Client.
|
12
|
+
expect(Swiftype::Client).to receive(:warn)
|
13
13
|
Swiftype::Easy.configure do |config|
|
14
14
|
config.api_key = 'got set'
|
15
15
|
end
|
16
16
|
|
17
|
-
Swiftype.api_key.
|
17
|
+
expect(Swiftype.api_key).to eq('got set')
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/engines/swiftype-api-example/document_types/videos/documents/async_bulk_create_or_update.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"documents":[{"external_id":"failed_doc","fields":[{"type":"string","name":"title"}]}]}'
|
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
|
+
- Swiftype-Ruby/1.1.1
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 202
|
21
|
+
message: Accepted
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
Set-Cookie:
|
30
|
+
- __profilin=p%3Dt; path=/
|
31
|
+
- __profilin=p%3Dt; path=/
|
32
|
+
- _st_main_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWRkMDY0NjI2ZTg2NTcyZDQ1OGQxNzM4MDQ0NjdjZGQyBjsAVEkiGXdhcmRlbi51c2VyLnJvbGUua2V5BjsAVFsHWwZVOhpNb3BlZDo6QlNPTjo6T2JqZWN0SWQiEVR%2BFdjOomAoqQAAAzA%3D--532fc790695e1143273b73a2e22bb1c33705b707;
|
33
|
+
path=/; HttpOnly
|
34
|
+
X-Request-Id:
|
35
|
+
- e027fc55eedde702061489a4638a8d1d
|
36
|
+
X-Runtime:
|
37
|
+
- '0.231255'
|
38
|
+
Connection:
|
39
|
+
- close
|
40
|
+
Server:
|
41
|
+
- thin 1.5.0 codename Knife
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"document_receipts":[{"id":"54821785cea2601e1b000005","external_id":"failed_doc","link":"http://localhost:3000/api/v1/document_receipts/54821785cea2601e1b000005.json","status":"failed","errors":["Missing
|
45
|
+
required parameter: value"]}],"batch_link":"http://localhost:3000/api/v1/document_receipts.json?ids=54821785cea2601e1b000005"}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Fri, 05 Dec 2014 20:37:25 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/engines/swiftype-api-example/document_types/videos/documents/async_bulk_create_or_update.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"documents":[{"external_id":"INscMGmhmX4","fields":[{"name":"url","value":"http://www.youtube.com/watch?v=v1uyQZNg2vE","type":"enum"},{"name":"thumbnail_url","value":"https://i.ytimg.com/vi/INscMGmhmX4/mqdefault.jpg","type":"enum"},{"name":"channel_id","value":"UCTzVrd9ExsI3Zgnlh3_btLg","type":"enum"},{"name":"title","value":"The
|
9
|
+
Original Grumpy Cat","type":"string"},{"name":"category_name","value":"Pets
|
10
|
+
& Animals","type":"string"}]},{"external_id":"XfY9Dsg_DZk","fields":[{"name":"url","value":"http://www.youtube.com/watch?v=XfY9Dsg_DZk","type":"enum"},{"name":"thumbnail_url","value":"https://i.ytimg.com/vi/XfY9Dsg_DZk/mqdefault.jpg","type":"enum"},{"name":"channel_id","value":"UC5VA5j05FjETg-iLekcyiBw","type":"enum"},{"name":"title","value":"Corgi
|
11
|
+
talks to cat","type":"string"},{"name":"category_name","value":"Pets &
|
12
|
+
Animals","type":"string"}]}]}'
|
13
|
+
headers:
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
User-Agent:
|
19
|
+
- Swiftype-Ruby/1.1.1
|
20
|
+
Content-Type:
|
21
|
+
- application/json
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 202
|
25
|
+
message: Accepted
|
26
|
+
headers:
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
X-Ua-Compatible:
|
30
|
+
- IE=Edge
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
Set-Cookie:
|
34
|
+
- __profilin=p%3Dt; path=/
|
35
|
+
- __profilin=p%3Dt; path=/
|
36
|
+
- _st_main_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTRlMjk1MmVjN2M0ZTFlYWEyMDlkODZiY2VmNmZlOTQ1BjsAVEkiGXdhcmRlbi51c2VyLnJvbGUua2V5BjsAVFsHWwZVOhpNb3BlZDo6QlNPTjo6T2JqZWN0SWQiEVR%2BFdjOomAoqQAAAzA%3D--c1e57d7c1f013e03b8ddc72206de74c987f00d4b;
|
37
|
+
path=/; HttpOnly
|
38
|
+
X-Request-Id:
|
39
|
+
- f7e41df2d0d029fcc51f6481298a7069
|
40
|
+
X-Runtime:
|
41
|
+
- '1.167600'
|
42
|
+
Connection:
|
43
|
+
- close
|
44
|
+
Server:
|
45
|
+
- thin 1.5.0 codename Knife
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"document_receipts":[{"id":"54821784cea2601e1b000001","external_id":"INscMGmhmX4","link":"http://localhost:3000/api/v1/document_receipts/54821784cea2601e1b000001.json","status":"pending","errors":[]},{"id":"54821784cea2601e1b000003","external_id":"XfY9Dsg_DZk","link":"http://localhost:3000/api/v1/document_receipts/54821784cea2601e1b000003.json","status":"pending","errors":[]}],"batch_link":"http://localhost:3000/api/v1/document_receipts.json?ids=54821784cea2601e1b000001%2C54821784cea2601e1b000003"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Fri, 05 Dec 2014 20:37:24 GMT
|
51
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/document_receipts.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"ids":["54821784cea2601e1b000001","54821784cea2601e1b000003"]}'
|
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
|
+
- Swiftype-Ruby/1.1.1
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge
|
27
|
+
Cache-Control:
|
28
|
+
- no-store, must-revalidate, private, max-age=0
|
29
|
+
X-Request-Id:
|
30
|
+
- 644fe481ad904d735add3f74800ac0a4
|
31
|
+
X-Runtime:
|
32
|
+
- '0.229593'
|
33
|
+
Set-Cookie:
|
34
|
+
- __profilin=p%3Dt; path=/
|
35
|
+
- __profilin=p%3Dt; path=/
|
36
|
+
- __profilin=p%3Dt; path=/
|
37
|
+
X-Miniprofiler-Ids:
|
38
|
+
- '["o03utgnh6d907hptlew8","czss15qltmk44cy6j9cq","u8yackxsybg5on0cs7i7","vh8t204jhxm6loeah20m","rqy499ku14jw71ohgvss","zp9s6k9zyz1kmcrpu5xy","dvj034r7mg1lpsi3r06f","dp13y57w3blu9jwv9fiw","2ldkuoa3jkcs3pz2dki6","xojyod7vqafw3v4hpbe8"]'
|
39
|
+
Connection:
|
40
|
+
- close
|
41
|
+
Server:
|
42
|
+
- thin 1.5.0 codename Knife
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[{"id":"54821784cea2601e1b000001","status":"pending"},{"id":"54821784cea2601e1b000003","status":"pending"}]'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Fri, 05 Dec 2014 20:37:24 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/document_receipts.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"ids":["54821784cea2601e1b000001","54821784cea2601e1b000003"]}'
|
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
|
+
- Swiftype-Ruby/1.1.1
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge
|
27
|
+
Cache-Control:
|
28
|
+
- no-store, must-revalidate, private, max-age=0
|
29
|
+
X-Request-Id:
|
30
|
+
- 78b1973f92a6b4fbbf23a8e1c10cebec
|
31
|
+
X-Runtime:
|
32
|
+
- '0.147900'
|
33
|
+
Set-Cookie:
|
34
|
+
- __profilin=p%3Dt; path=/
|
35
|
+
- __profilin=p%3Dt; path=/
|
36
|
+
- __profilin=p%3Dt; path=/
|
37
|
+
X-Miniprofiler-Ids:
|
38
|
+
- '["qdj3h7dwl6d2met76a0b","wnmyc1ntihxyqrftyh0s","xojyod7vqafw3v4hpbe8","3zi0s45yypdciv34jb3j","if6ym4l6ou4o5u4ntv0e","dui42ogtturqbgny85u2","fcfv77mu922vgmg7nnve","j9661fznrcqg80dka4wg","lxgud0sbzlyd1zu5zuou","xp2t3gwak0solmyqhf08"]'
|
39
|
+
Connection:
|
40
|
+
- close
|
41
|
+
Server:
|
42
|
+
- thin 1.5.0 codename Knife
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[{"id":"54821784cea2601e1b000001","status":"complete","link":"http://localhost:3000/api/v1/engines/547e3790cea260a430000005/document_types/547e380fcea26028a900000c/documents/547e3830cea260b9a0000001.json"},{"id":"54821784cea2601e1b000003","status":"complete","link":"http://localhost:3000/api/v1/engines/547e3790cea260a430000005/document_types/547e380fcea26028a900000c/documents/547e3830cea260b9a0000002.json"}]'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Fri, 05 Dec 2014 20:49:40 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
data/spec/platform_spec.rb
CHANGED
@@ -60,8 +60,8 @@ describe 'platform user API' do
|
|
60
60
|
it 'returns a Hash with user info' do
|
61
61
|
VCR.use_cassette('create_user') do
|
62
62
|
user = client.create_user
|
63
|
-
user.
|
64
|
-
user.
|
63
|
+
expect(user).to have_key('id')
|
64
|
+
expect(user).to have_key('access_token')
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
@@ -70,14 +70,14 @@ describe 'platform user API' do
|
|
70
70
|
it 'returns the first page of users' do
|
71
71
|
VCR.use_cassette('list_users') do
|
72
72
|
users = client.users
|
73
|
-
users.length.
|
73
|
+
expect(users.length).to eq(3)
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
77
|
it 'returns an empty list of users once you page past the end' do
|
78
78
|
VCR.use_cassette('list_users_with_pagination') do
|
79
79
|
users = client.users(:page => 2)
|
80
|
-
users.length.
|
80
|
+
expect(users.length).to eq(0)
|
81
81
|
end
|
82
82
|
end
|
83
83
|
end
|
@@ -86,8 +86,8 @@ describe 'platform user API' do
|
|
86
86
|
it 'returns a Hash with user info' do
|
87
87
|
VCR.use_cassette('show_user') do
|
88
88
|
user = client.user('5230b8c82ed960ba2000001d')
|
89
|
-
user['id'].
|
90
|
-
user['access_token'].
|
89
|
+
expect(user['id']).to eq('5230b8c82ed960ba2000001d')
|
90
|
+
expect(user['access_token']).to eq('0381294b7ef41db44fba20aad86a52d294b9fae67a26e85139d323eb78106706')
|
91
91
|
end
|
92
92
|
end
|
93
93
|
end
|
data/spec/sso_spec.rb
CHANGED
@@ -7,18 +7,18 @@ describe Swiftype::SSO do
|
|
7
7
|
Swiftype.platform_client_id = '3e4fd842fc99aecb4dc50e5b88a186c1e206ddd516cdd336da3622c4afd7e2e9'
|
8
8
|
Swiftype.platform_client_secret = '4441879b5e2a9c3271f5b1a4bc223b715f091e5ed20fe75d1352e1290c7a6dfb'
|
9
9
|
|
10
|
-
Time.
|
10
|
+
allow_any_instance_of(Time).to receive(:to_i).and_return(timestamp)
|
11
11
|
end
|
12
12
|
|
13
13
|
context '.token' do
|
14
14
|
it 'generates an SSO token' do
|
15
|
-
Swiftype::SSO.token(user_id, timestamp).
|
15
|
+
expect(Swiftype::SSO.token(user_id, timestamp)).to eq('81033d182ad51f231cc9cda9fb24f2298a411437')
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
19
|
context '.url' do
|
20
20
|
it 'generates an SSO URL' do
|
21
|
-
Swiftype::SSO.url(user_id).
|
21
|
+
expect(Swiftype::SSO.url(user_id)).to eq('https://swiftype.com/sso?user_id=5064a7de2ed960e715000276&client_id=3e4fd842fc99aecb4dc50e5b88a186c1e206ddd516cdd336da3622c4afd7e2e9×tamp=1379382520&token=81033d182ad51f231cc9cda9fb24f2298a411437')
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
data/swiftype.gemspec
CHANGED
@@ -15,9 +15,9 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
|
18
|
-
s.add_development_dependency 'rspec'
|
18
|
+
s.add_development_dependency 'rspec', '~> 3.0.0'
|
19
19
|
s.add_development_dependency 'awesome_print'
|
20
|
-
s.add_development_dependency 'vcr'
|
20
|
+
s.add_development_dependency 'vcr', '~> 2.9.0'
|
21
21
|
s.add_development_dependency 'webmock'
|
22
22
|
if RUBY_VERSION < '1.9'
|
23
23
|
s.add_runtime_dependency 'json'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swiftype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Quin Hoxie
|
@@ -9,62 +9,62 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 3.0.0
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 3.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: awesome_print
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - '>='
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: vcr
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 2.9.0
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 2.9.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: webmock
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - '>='
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
description: API client for accessing the Swiftype Search API with no dependencies
|
@@ -75,8 +75,8 @@ executables: []
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
-
-
|
79
|
-
-
|
78
|
+
- .gitignore
|
79
|
+
- .travis.yml
|
80
80
|
- Gemfile
|
81
81
|
- LICENSE.txt
|
82
82
|
- README.md
|
@@ -111,6 +111,8 @@ files:
|
|
111
111
|
- spec/fixtures/vcr/analytics_top_queries.yml
|
112
112
|
- spec/fixtures/vcr/analytics_top_queries_paginated.yml
|
113
113
|
- spec/fixtures/vcr/analytics_top_queries_too_large.yml
|
114
|
+
- spec/fixtures/vcr/async_create_or_update_document_failure.yml
|
115
|
+
- spec/fixtures/vcr/async_create_or_update_document_success.yml
|
114
116
|
- spec/fixtures/vcr/bulk_create_documents.yml
|
115
117
|
- spec/fixtures/vcr/bulk_create_or_update_documents_failure.yml
|
116
118
|
- spec/fixtures/vcr/bulk_create_or_update_documents_success.yml
|
@@ -130,6 +132,8 @@ files:
|
|
130
132
|
- spec/fixtures/vcr/destroy_domain.yml
|
131
133
|
- spec/fixtures/vcr/destroy_engine.yml
|
132
134
|
- spec/fixtures/vcr/destroy_non_existent_document_type.yml
|
135
|
+
- spec/fixtures/vcr/document_receipts_multiple.yml
|
136
|
+
- spec/fixtures/vcr/document_receipts_multiple_complete.yml
|
133
137
|
- spec/fixtures/vcr/document_type_search.yml
|
134
138
|
- spec/fixtures/vcr/document_type_search_pagination.yml
|
135
139
|
- spec/fixtures/vcr/document_type_suggest.yml
|
@@ -177,17 +181,17 @@ require_paths:
|
|
177
181
|
- lib
|
178
182
|
required_ruby_version: !ruby/object:Gem::Requirement
|
179
183
|
requirements:
|
180
|
-
- -
|
184
|
+
- - '>='
|
181
185
|
- !ruby/object:Gem::Version
|
182
186
|
version: '0'
|
183
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
188
|
requirements:
|
185
|
-
- -
|
189
|
+
- - '>='
|
186
190
|
- !ruby/object:Gem::Version
|
187
191
|
version: '0'
|
188
192
|
requirements: []
|
189
193
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.2.
|
194
|
+
rubygems_version: 2.2.1
|
191
195
|
signing_key:
|
192
196
|
specification_version: 4
|
193
197
|
summary: Official gem for accessing the Swiftype Search API
|
@@ -212,6 +216,8 @@ test_files:
|
|
212
216
|
- spec/fixtures/vcr/analytics_top_queries.yml
|
213
217
|
- spec/fixtures/vcr/analytics_top_queries_paginated.yml
|
214
218
|
- spec/fixtures/vcr/analytics_top_queries_too_large.yml
|
219
|
+
- spec/fixtures/vcr/async_create_or_update_document_failure.yml
|
220
|
+
- spec/fixtures/vcr/async_create_or_update_document_success.yml
|
215
221
|
- spec/fixtures/vcr/bulk_create_documents.yml
|
216
222
|
- spec/fixtures/vcr/bulk_create_or_update_documents_failure.yml
|
217
223
|
- spec/fixtures/vcr/bulk_create_or_update_documents_success.yml
|
@@ -231,6 +237,8 @@ test_files:
|
|
231
237
|
- spec/fixtures/vcr/destroy_domain.yml
|
232
238
|
- spec/fixtures/vcr/destroy_engine.yml
|
233
239
|
- spec/fixtures/vcr/destroy_non_existent_document_type.yml
|
240
|
+
- spec/fixtures/vcr/document_receipts_multiple.yml
|
241
|
+
- spec/fixtures/vcr/document_receipts_multiple_complete.yml
|
234
242
|
- spec/fixtures/vcr/document_type_search.yml
|
235
243
|
- spec/fixtures/vcr/document_type_search_pagination.yml
|
236
244
|
- spec/fixtures/vcr/document_type_suggest.yml
|
@@ -268,3 +276,4 @@ test_files:
|
|
268
276
|
- spec/spec_helper.rb
|
269
277
|
- spec/ssl_spec.rb
|
270
278
|
- spec/sso_spec.rb
|
279
|
+
has_rdoc:
|