elasticsearch-api 1.0.0.rc2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module Elasticsearch
23
23
  :exit ]
24
24
 
25
25
  method = 'POST'
26
- path = Utils.__pathify '_nodes', Utils.__listify(arguments[:node_id]), '_shutdown'
26
+ path = Utils.__pathify '_cluster/nodes', Utils.__listify(arguments[:node_id]), '_shutdown'
27
27
 
28
28
  params = Utils.__validate_and_extract_params arguments, valid_params
29
29
  body = nil
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module API
3
- VERSION = "1.0.0.rc2"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -10,7 +10,7 @@ module Elasticsearch
10
10
  should "perform correct request" do
11
11
  subject.expects(:perform_request).with do |method, url, params, body|
12
12
  assert_equal 'POST', method
13
- assert_equal '_nodes/_shutdown', url
13
+ assert_equal '_cluster/nodes/_shutdown', url
14
14
  assert_equal Hash.new, params
15
15
  assert_nil body
16
16
  true
@@ -21,7 +21,7 @@ module Elasticsearch
21
21
 
22
22
  should "send :node_id correctly" do
23
23
  subject.expects(:perform_request).with do |method, url, params, body|
24
- assert_equal '_nodes/foo/_shutdown', url
24
+ assert_equal '_cluster/nodes/foo/_shutdown', url
25
25
  true
26
26
  end.returns(FakeResponse.new)
27
27
 
@@ -30,7 +30,7 @@ module Elasticsearch
30
30
 
31
31
  should "send multiple :node_id-s correctly" do
32
32
  subject.expects(:perform_request).with do |method, url, params, body|
33
- assert_equal '_nodes/A,B,C/_shutdown', url
33
+ assert_equal '_cluster/nodes/A,B,C/_shutdown', url
34
34
  true
35
35
  end.returns(FakeResponse.new).twice
36
36
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
5
- prerelease: 6
4
+ version: 1.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Karel Minarik
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-11 00:00:00.000000000 Z
12
+ date: 2014-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -607,9 +607,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
607
607
  required_rubygems_version: !ruby/object:Gem::Requirement
608
608
  none: false
609
609
  requirements:
610
- - - ! '>'
610
+ - - ! '>='
611
611
  - !ruby/object:Gem::Version
612
- version: 1.3.1
612
+ version: '0'
613
613
  requirements: []
614
614
  rubyforge_project:
615
615
  rubygems_version: 1.8.23