elasticsearch-transport 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
26
26
  if defined?(RUBY_VERSION) && RUBY_VERSION < '1.9'
27
27
  s.add_dependency "system_timer"
28
28
  end
29
+
29
30
  s.add_development_dependency "bundler", "> 1"
30
31
  s.add_development_dependency "rake"
31
32
 
@@ -36,7 +37,6 @@ Gem::Specification.new do |s|
36
37
  s.add_development_dependency "mocha"
37
38
  s.add_development_dependency "turn"
38
39
  s.add_development_dependency "yard"
39
- s.add_development_dependency "ruby-prof"
40
40
  s.add_development_dependency "pry"
41
41
  s.add_development_dependency "ci_reporter"
42
42
 
@@ -51,6 +51,7 @@ Gem::Specification.new do |s|
51
51
  end
52
52
 
53
53
  if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
54
+ s.add_development_dependency "ruby-prof"
54
55
  s.add_development_dependency "simplecov"
55
56
  s.add_development_dependency "cane"
56
57
  s.add_development_dependency "require-prof"
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module Transport
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
4
4
  end
5
5
  end
@@ -36,12 +36,11 @@ class Elasticsearch::Transport::ClientIntegrationTest < Elasticsearch::Test::Int
36
36
  @client.perform_request 'GET', '_cluster/health?wait_for_status=green', {}
37
37
 
38
38
  response = @client.perform_request 'GET', 'myindex/mydoc/1?routing=XYZ'
39
- assert_equal true, response.body['exists']
39
+ assert_equal 200, response.status
40
40
  assert_equal 'bar', response.body['_source']['foo']
41
+
41
42
  assert_raise Elasticsearch::Transport::Transport::Errors::NotFound do
42
- response = @client.perform_request 'GET', 'myindex/mydoc/1?routing=ABC'
43
- assert_nil response.body['_source']
44
- assert_equal false, response.body['exists']
43
+ @client.perform_request 'GET', 'myindex/mydoc/1?routing=ABC'
45
44
  end
46
45
  end
47
46
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-07 00:00:00.000000000 Z
12
+ date: 2014-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -172,7 +172,7 @@ dependencies:
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  - !ruby/object:Gem::Dependency
175
- name: ruby-prof
175
+ name: pry
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements:
@@ -188,7 +188,7 @@ dependencies:
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  - !ruby/object:Gem::Dependency
191
- name: pry
191
+ name: ci_reporter
192
192
  requirement: !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
@@ -204,7 +204,7 @@ dependencies:
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  - !ruby/object:Gem::Dependency
207
- name: ci_reporter
207
+ name: curb
208
208
  requirement: !ruby/object:Gem::Requirement
209
209
  none: false
210
210
  requirements:
@@ -220,37 +220,37 @@ dependencies:
220
220
  - !ruby/object:Gem::Version
221
221
  version: '0'
222
222
  - !ruby/object:Gem::Dependency
223
- name: curb
223
+ name: typhoeus
224
224
  requirement: !ruby/object:Gem::Requirement
225
225
  none: false
226
226
  requirements:
227
- - - ! '>='
227
+ - - ~>
228
228
  - !ruby/object:Gem::Version
229
- version: '0'
229
+ version: '0.6'
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  none: false
234
234
  requirements:
235
- - - ! '>='
235
+ - - ~>
236
236
  - !ruby/object:Gem::Version
237
- version: '0'
237
+ version: '0.6'
238
238
  - !ruby/object:Gem::Dependency
239
- name: typhoeus
239
+ name: ruby-prof
240
240
  requirement: !ruby/object:Gem::Requirement
241
241
  none: false
242
242
  requirements:
243
- - - ~>
243
+ - - ! '>='
244
244
  - !ruby/object:Gem::Version
245
- version: '0.6'
245
+ version: '0'
246
246
  type: :development
247
247
  prerelease: false
248
248
  version_requirements: !ruby/object:Gem::Requirement
249
249
  none: false
250
250
  requirements:
251
- - - ~>
251
+ - - ! '>='
252
252
  - !ruby/object:Gem::Version
253
- version: '0.6'
253
+ version: '0'
254
254
  - !ruby/object:Gem::Dependency
255
255
  name: simplecov
256
256
  requirement: !ruby/object:Gem::Requirement