elasticsearch-extensions 0.0.12 → 0.0.13
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.
@@ -237,7 +237,7 @@ module Elasticsearch
|
|
237
237
|
#
|
238
238
|
def __print_cluster_info(port)
|
239
239
|
health = JSON.parse(Net::HTTP.get(URI("http://localhost:#{port}/_cluster/health")))
|
240
|
-
nodes = JSON.parse(Net::HTTP.get(URI("http://localhost:#{port}/_nodes/?process")))
|
240
|
+
nodes = JSON.parse(Net::HTTP.get(URI("http://localhost:#{port}/_nodes/?process&http")))
|
241
241
|
master = JSON.parse(Net::HTTP.get(URI("http://localhost:#{port}/_cluster/state")))['master_node']
|
242
242
|
|
243
243
|
puts "\n",
|
@@ -249,7 +249,7 @@ module Elasticsearch
|
|
249
249
|
nodes['nodes'].each do |id, info|
|
250
250
|
m = id == master ? '+' : '-'
|
251
251
|
puts ''.ljust(20) +
|
252
|
-
"#{m} #{info['name'].ansi(:bold)} | version: #{info['version']}, pid: #{info['process']['id']}".ansi(:faint)
|
252
|
+
"#{m} #{info['name'].ansi(:bold)} | version: #{info['version']}, pid: #{info['process']['id']}, address: #{info['http']['bound_address']}".ansi(:faint)
|
253
253
|
end
|
254
254
|
end
|
255
255
|
|
data/test/test_helper.rb
CHANGED
@@ -2,7 +2,17 @@ RUBY_1_8 = defined?(RUBY_VERSION) && RUBY_VERSION < '1.9'
|
|
2
2
|
|
3
3
|
exit(0) if RUBY_1_8
|
4
4
|
|
5
|
-
|
5
|
+
if ENV['COVERAGE'] && ENV['CI'].nil? && !RUBY_1_8
|
6
|
+
require 'simplecov'
|
7
|
+
SimpleCov.start { add_filter "/test|test_/" }
|
8
|
+
end
|
9
|
+
|
10
|
+
if ENV['CI'] && !RUBY_1_8
|
11
|
+
require 'simplecov'
|
12
|
+
require 'simplecov-rcov'
|
13
|
+
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
|
14
|
+
SimpleCov.start { add_filter "/test|test_|ansi" }
|
15
|
+
end
|
6
16
|
|
7
17
|
require 'test/unit'
|
8
18
|
require 'shoulda-context'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
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-
|
12
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: elasticsearch
|
@@ -203,6 +203,22 @@ dependencies:
|
|
203
203
|
- - ! '>='
|
204
204
|
- !ruby/object:Gem::Version
|
205
205
|
version: '0'
|
206
|
+
- !ruby/object:Gem::Dependency
|
207
|
+
name: simplecov-rcov
|
208
|
+
requirement: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
210
|
+
requirements:
|
211
|
+
- - ! '>='
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ! '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
206
222
|
- !ruby/object:Gem::Dependency
|
207
223
|
name: cane
|
208
224
|
requirement: !ruby/object:Gem::Requirement
|