elasticsearch-transport 0.4.6 → 0.4.7
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.
- data/elasticsearch-transport.gemspec +3 -1
- data/lib/elasticsearch/transport/version.rb +1 -1
- data/test/test_helper.rb +10 -6
- metadata +1 -1
@@ -30,7 +30,9 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.add_development_dependency "bundler", "> 1"
|
31
31
|
s.add_development_dependency "rake"
|
32
32
|
|
33
|
-
|
33
|
+
if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
|
34
|
+
s.add_development_dependency "elasticsearch-extensions"
|
35
|
+
end
|
34
36
|
|
35
37
|
s.add_development_dependency "ansi"
|
36
38
|
s.add_development_dependency "shoulda-context"
|
data/test/test_helper.rb
CHANGED
@@ -11,7 +11,9 @@ require 'simplecov' and SimpleCov.start { add_filter "/test|test_/" } if ENV["CO
|
|
11
11
|
|
12
12
|
# Register `at_exit` handler for integration tests shutdown.
|
13
13
|
# MUST be called before requiring `test/unit`.
|
14
|
-
|
14
|
+
if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
|
15
|
+
at_exit { Elasticsearch::Test::IntegrationTestCase.__run_at_exit_hooks }
|
16
|
+
end
|
15
17
|
|
16
18
|
require 'test/unit'
|
17
19
|
require 'shoulda-context'
|
@@ -25,9 +27,11 @@ require 'logger'
|
|
25
27
|
|
26
28
|
RequireProf.print_timing_infos if ENV["REQUIRE_PROF"]
|
27
29
|
|
28
|
-
|
29
|
-
require 'elasticsearch/extensions/test/
|
30
|
-
require 'elasticsearch/extensions/test/
|
30
|
+
if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
|
31
|
+
require 'elasticsearch/extensions/test/cluster'
|
32
|
+
require 'elasticsearch/extensions/test/startup_shutdown'
|
33
|
+
require 'elasticsearch/extensions/test/profiling'
|
34
|
+
end
|
31
35
|
|
32
36
|
class Test::Unit::TestCase
|
33
37
|
def setup
|
@@ -44,7 +48,7 @@ module Elasticsearch
|
|
44
48
|
|
45
49
|
shutdown { Elasticsearch::Extensions::Test::Cluster.stop if ENV['SERVER'] && started? }
|
46
50
|
context "IntegrationTest" do; should "noop on Ruby 1.8" do; end; end if RUBY_1_8
|
47
|
-
end
|
51
|
+
end if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
|
48
52
|
end
|
49
53
|
|
50
54
|
module Test
|
@@ -54,6 +58,6 @@ module Elasticsearch
|
|
54
58
|
|
55
59
|
shutdown { Elasticsearch::Extensions::Test::Cluster.stop if ENV['SERVER'] && started? }
|
56
60
|
context "IntegrationTest" do; should "noop on Ruby 1.8" do; end; end if RUBY_1_8
|
57
|
-
end
|
61
|
+
end if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
|
58
62
|
end
|
59
63
|
end
|