swiftype 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd466837b8766de157a54c3b8524e148ffde51c647e09ad4094cee027af6e105
4
- data.tar.gz: 21f8de0c94f70755db7534181bc653ecabb85f6f94a824176f2cc8887e87a271
3
+ metadata.gz: 609560031bf1a36701d32f22fbc01c0ed04db4df4543f500bc792d25a2d07f42
4
+ data.tar.gz: 84faa09349226885040f1dada03ae7d9908e1ff7e116dff07d7a7db9dc1975f1
5
5
  SHA512:
6
- metadata.gz: '049de7bc87c7421f72018cdca475f2e877d7a21c112430f27254944fdd1acda197dfe04f7209391e257313a290bbd9aa8f183ec45343f6ad8f55a70a3fc403a2'
7
- data.tar.gz: 2f45c1a6fc68d64c0968ee3567b10d98cbebc6a326ba06c07f719886151226b1fa656daace9cb21837b8bd2eaa0c8c3f58c08a6b2024447e64f3d7bc69b85199
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.2.0` in your `Gemfile` and run `bundle install`.
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
- * 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).
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Swiftype
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -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.0
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-17 00:00:00.000000000 Z
12
+ date: 2018-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec