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.
@@ -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
- s.add_development_dependency "elasticsearch-extensions"
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"
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module Transport
3
- VERSION = "0.4.6"
3
+ VERSION = "0.4.7"
4
4
  end
5
5
  end
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
- at_exit { Elasticsearch::Test::IntegrationTestCase.__run_at_exit_hooks }
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
- require 'elasticsearch/extensions/test/cluster'
29
- require 'elasticsearch/extensions/test/startup_shutdown'
30
- require 'elasticsearch/extensions/test/profiling'
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
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.6
4
+ version: 0.4.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: