elasticsearch-api 1.1.1 → 1.1.2

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
  SHA1:
3
- metadata.gz: c8b49f193dab86ffdecf840cce680349ce312d73
4
- data.tar.gz: a131285038b20ee6362bcaf25713428091aba890
3
+ metadata.gz: f723f6bfb516f47119445352bd6fdaed4417c20b
4
+ data.tar.gz: 79dd532448b26087c2fa867eae735743b16afdd8
5
5
  SHA512:
6
- metadata.gz: 6c3e2c0016c0152c325dcd568f7345951e25becd426a0a6769ec507b6fdcd9dfa6600c7e2b20e0c08ef0c0c44419c57b754a9fa16e38acca4047ddd00d57d64b
7
- data.tar.gz: f17ab0061f4ef166c1783ca2241d988729ceaa34f2bbba019b0066cac097e6c04dc90b54080e7337c63071aaba6333f8ebcddbbb17680cab1ef2b84c433a2693
6
+ metadata.gz: 62a87e1d835b922da578adaf2fe466b7caf0e4bb3e7eb2e13bcf9b9dac21609af76f70ca963472cc4a0e8844965e69f4dc2b6d37377d5a57b9988ed8fcf15658
7
+ data.tar.gz: 4d98c720dbeafc600afdfe69994124848bad74b212818bb1055fc6afc959892a4675bd36330656091bd61223b5173bdcab9917dfaab82401fd98ec130f28e614
@@ -48,9 +48,6 @@ module Elasticsearch
48
48
  :help,
49
49
  :v ]
50
50
 
51
- unsupported_params = [ :format ]
52
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
53
-
54
51
  name = arguments.delete(:name)
55
52
 
56
53
  method = HTTP_GET
@@ -50,9 +50,6 @@ module Elasticsearch
50
50
  :help,
51
51
  :v ]
52
52
 
53
- unsupported_params = [ :format ]
54
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
55
-
56
53
  node_id = arguments.delete(:node_id)
57
54
 
58
55
  method = HTTP_GET
@@ -44,9 +44,6 @@ module Elasticsearch
44
44
  :help,
45
45
  :v ]
46
46
 
47
- unsupported_params = [ :format ]
48
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
49
-
50
47
  index = arguments.delete(:index)
51
48
 
52
49
  method = HTTP_GET
@@ -34,9 +34,6 @@ module Elasticsearch
34
34
  :v,
35
35
  :fields ]
36
36
 
37
- unsupported_params = [ :format ]
38
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
39
-
40
37
  fields = arguments.delete(:fields)
41
38
 
42
39
  method = HTTP_GET
@@ -37,9 +37,6 @@ module Elasticsearch
37
37
  :ts,
38
38
  :v ]
39
39
 
40
- unsupported_params = [ :format ]
41
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
42
-
43
40
  method = HTTP_GET
44
41
  path = "_cat/health"
45
42
  params = Utils.__validate_and_extract_params arguments, valid_params
@@ -58,9 +58,6 @@ module Elasticsearch
58
58
  :pri,
59
59
  :v ]
60
60
 
61
- unsupported_params = [ :format ]
62
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
63
-
64
61
  index = arguments.delete(:index)
65
62
 
66
63
  method = HTTP_GET
@@ -35,9 +35,6 @@ module Elasticsearch
35
35
  :help,
36
36
  :v ]
37
37
 
38
- unsupported_params = [ :format ]
39
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
40
-
41
38
  method = HTTP_GET
42
39
  path = "_cat/master"
43
40
  params = Utils.__validate_and_extract_params arguments, valid_params
@@ -43,9 +43,6 @@ module Elasticsearch
43
43
  :help,
44
44
  :v ]
45
45
 
46
- unsupported_params = [ :format ]
47
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
48
-
49
46
  method = HTTP_GET
50
47
  path = "_cat/nodes"
51
48
 
@@ -35,9 +35,6 @@ module Elasticsearch
35
35
  :help,
36
36
  :v ]
37
37
 
38
- unsupported_params = [ :format ]
39
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
40
-
41
38
  method = HTTP_GET
42
39
  path = "_cat/pending_tasks"
43
40
  params = Utils.__validate_and_extract_params arguments, valid_params
@@ -22,9 +22,6 @@ module Elasticsearch
22
22
  :help,
23
23
  :v ]
24
24
 
25
- unsupported_params = [ :format ]
26
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
27
-
28
25
  method = 'GET'
29
26
  path = "_cat/plugins"
30
27
  params = Utils.__validate_and_extract_params arguments, valid_params
@@ -54,9 +54,6 @@ module Elasticsearch
54
54
  :help,
55
55
  :v ]
56
56
 
57
- unsupported_params = [ :format ]
58
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
59
-
60
57
  index = arguments.delete(:index)
61
58
 
62
59
  method = HTTP_GET
@@ -24,9 +24,6 @@ module Elasticsearch
24
24
  :help,
25
25
  :v ]
26
26
 
27
- unsupported_params = [ :format ]
28
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
29
-
30
27
  method = 'GET'
31
28
  path = "_cat/segments"
32
29
  params = Utils.__validate_and_extract_params arguments, valid_params
@@ -58,9 +58,6 @@ module Elasticsearch
58
58
  :help,
59
59
  :v ]
60
60
 
61
- unsupported_params = [ :format ]
62
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
63
-
64
61
  index = arguments.delete(:index)
65
62
 
66
63
  method = HTTP_GET
@@ -2,7 +2,7 @@ module Elasticsearch
2
2
  module API
3
3
  module Actions
4
4
 
5
- # Returns true if the cluster returns a sucessfull HTTP response, false otherwise.
5
+ # Returns true if the cluster returns a successful HTTP response, false otherwise.
6
6
  #
7
7
  # @example
8
8
  #
@@ -235,7 +235,7 @@ module Elasticsearch
235
235
  end
236
236
 
237
237
  unless messages.empty?
238
- if terminal = STDERR.tty?
238
+ if STDERR.tty?
239
239
  STDERR.puts messages.map { |m| "\e[31;1m#{m}\e[0m" }.join("\n")
240
240
  else
241
241
  STDERR.puts messages.join("\n")
@@ -251,11 +251,11 @@ module Elasticsearch
251
251
 
252
252
  message += ". This method is not supported in the version you're using: #{Elasticsearch::API::VERSION}, and will be removed in the next release."
253
253
 
254
- if terminal = STDERR.tty?
255
- STDERR.puts "\e[31;1m#{message}\e[0m"
256
- else
257
- STDERR.puts message
258
- end
254
+ if STDERR.tty?
255
+ STDERR.puts "\e[31;1m#{message}\e[0m"
256
+ else
257
+ STDERR.puts message
258
+ end
259
259
  end
260
260
 
261
261
  extend self
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module API
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-06 00:00:00.000000000 Z
11
+ date: 2017-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json