swiftype 1.3.0 → 1.3.1
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.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/swiftype/request.rb +1 -1
- data/lib/swiftype/version.rb +1 -1
- data/spec/client_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 609560031bf1a36701d32f22fbc01c0ed04db4df4543f500bc792d25a2d07f42
|
4
|
+
data.tar.gz: 84faa09349226885040f1dada03ae7d9908e1ff7e116dff07d7a7db9dc1975f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d1ae4174700c37367c252bcbbadc19e145c5b93490a21f43af8cb1c44be2f93709c034e8ca84ace786155c202809e5d1ed1e84352e1a8f9f282306f9c2c5cbc
|
7
|
+
data.tar.gz: 77f6252035f93a12806153bc17ace03f5fad21a048e67c9e84cce760b8126d075c5ac99004b1f594f4cafa70a2035a6e5a6b0f2d612ddf5aa4a5f92005a68e0f
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ To install the gem, execute:
|
|
26
26
|
|
27
27
|
gem install swiftype
|
28
28
|
|
29
|
-
Or place `gem 'swiftype', '~> 1.
|
29
|
+
Or place `gem 'swiftype', '~> 1.3.1` in your `Gemfile` and run `bundle install`.
|
30
30
|
|
31
31
|
## Usage
|
32
32
|
|
@@ -372,8 +372,8 @@ swiftype-rb 1.0 has been rewritten to be simpler and easier to use. However, it
|
|
372
372
|
|
373
373
|
To upgrade from the old version of swiftype-rb:
|
374
374
|
|
375
|
-
|
376
|
-
|
375
|
+
- If you previously used the `Swiftype` client, migrate your API calls to the `Swiftype::Client` format.
|
376
|
+
- If you previously used the `Swiftype::Easy` client, change `Swiftype::Easy` to `Swiftype::Client`. Almost all method calls should be the same (there are a few minor changes).
|
377
377
|
|
378
378
|
Additionally, the result object returned by search methods (for example, the old Swiftype gem's `Engine#search` or `Swiftype::Easy#search` methods) returns results in a different way. Instead of being an array of `Swiftype::Document` objects, it will be an array of Hashes.
|
379
379
|
|
data/lib/swiftype/request.rb
CHANGED
@@ -60,7 +60,7 @@ module Swiftype
|
|
60
60
|
|
61
61
|
if proxy
|
62
62
|
proxy_parts = URI.parse(proxy)
|
63
|
-
http = Net::HTTP.new(uri.host, uri.port, proxy_parts.host, proxy_parts.port)
|
63
|
+
http = Net::HTTP.new(uri.host, uri.port, proxy_parts.host, proxy_parts.port, proxy_parts.user, proxy_parts.password)
|
64
64
|
else
|
65
65
|
http = Net::HTTP.new(uri.host, uri.port)
|
66
66
|
end
|
data/lib/swiftype/version.rb
CHANGED
data/spec/client_spec.rb
CHANGED
@@ -103,10 +103,10 @@ describe Swiftype::Client do
|
|
103
103
|
end
|
104
104
|
|
105
105
|
context 'with proxy specified' do
|
106
|
-
let(:options) { { :proxy => 'http://localhost:8888' } }
|
106
|
+
let(:options) { { :proxy => 'http://username:password@localhost:8888' } }
|
107
107
|
|
108
108
|
it 'will set proxy' do
|
109
|
-
expect(options_client.proxy).to eq('http://localhost:8888')
|
109
|
+
expect(options_client.proxy).to eq('http://username:password@localhost:8888')
|
110
110
|
end
|
111
111
|
|
112
112
|
# There doesn't seem to be an elgant way to test that a request actually uses a proxy, so the best
|
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Quin Hoxie
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-10-
|
12
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|