elasticsearch 0.4.1 → 0.4.2

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.
@@ -26,6 +26,8 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency "bundler", "> 1"
27
27
  s.add_development_dependency "rake"
28
28
 
29
+ s.add_development_dependency "elasticsearch-extensions"
30
+
29
31
  s.add_development_dependency "ansi"
30
32
  s.add_development_dependency "shoulda-context"
31
33
  s.add_development_dependency "mocha"
@@ -1,3 +1,3 @@
1
1
  module Elasticsearch
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -5,12 +5,13 @@ module Elasticsearch
5
5
  module Test
6
6
  class ClientIntegrationTest < Elasticsearch::Test::IntegrationTestCase
7
7
  startup do
8
- Elasticsearch::TestCluster.start if ENV['SERVER'] and not Elasticsearch::TestCluster.running?
8
+ Elasticsearch::Extensions::Test::Cluster.start if ENV['SERVER'] and not Elasticsearch::Extensions::Test::Cluster.running?
9
9
  end
10
10
 
11
11
  context "Elasticsearch client" do
12
12
  setup do
13
- system "curl -X DELETE http://localhost:9250/_all > /dev/null 2>&1"
13
+ @port = (ENV['TEST_CLUSTER_PORT'] || 9250).to_i
14
+ system "curl -X DELETE http://localhost:#{@port}/_all > /dev/null 2>&1"
14
15
 
15
16
  @logger = Logger.new(STDERR)
16
17
  @logger.formatter = proc do |severity, datetime, progname, msg|
@@ -23,7 +24,7 @@ module Elasticsearch
23
24
  ANSI.ansi(severity[0] + ' ', color, :faint) + ANSI.ansi(msg, :white, :faint) + "\n"
24
25
  end
25
26
 
26
- @client = Elasticsearch::Client.new host: 'localhost:9250', logger: @logger
27
+ @client = Elasticsearch::Client.new host: "localhost:#{@port}", logger: @logger
27
28
  end
28
29
 
29
30
  should "perform the API methods" do
@@ -16,25 +16,26 @@ require 'require-prof' if ENV["REQUIRE_PROF"]
16
16
  require 'elasticsearch'
17
17
  RequireProf.print_timing_infos if ENV["REQUIRE_PROF"]
18
18
 
19
- require '../elasticsearch-transport/lib/elasticsearch/transport/extensions/test_cluster'
20
- require '../elasticsearch-transport/test/test_extensions'
19
+ require 'elasticsearch/extensions/test/cluster'
20
+ require 'elasticsearch/extensions/test/startup_shutdown'
21
+ require 'elasticsearch/extensions/test/profiling'
21
22
 
22
23
  module Elasticsearch
23
24
  module Test
24
25
  class IntegrationTestCase < ::Test::Unit::TestCase
25
- extend IntegrationTestStartupShutdown
26
+ extend Elasticsearch::Extensions::Test::StartupShutdown
26
27
 
27
- shutdown { Elasticsearch::TestCluster.stop if ENV['SERVER'] && started? }
28
+ shutdown { Elasticsearch::Extensions::Test::Cluster.stop if ENV['SERVER'] && started? }
28
29
  context "IntegrationTest" do; should "noop on Ruby 1.8" do; end; end if RUBY_1_8
29
30
  end
30
31
  end
31
32
 
32
33
  module Test
33
34
  class ProfilingTest < ::Test::Unit::TestCase
34
- extend IntegrationTestStartupShutdown
35
- extend ProfilingTestSupport
35
+ extend Elasticsearch::Extensions::Test::StartupShutdown
36
+ extend Elasticsearch::Extensions::Test::Profiling
36
37
 
37
- shutdown { Elasticsearch::TestCluster.stop if ENV['SERVER'] && started? }
38
+ shutdown { Elasticsearch::Extensions::Test::Cluster.stop if ENV['SERVER'] && started? }
38
39
  context "IntegrationTest" do; should "noop on Ruby 1.8" do; end; end if RUBY_1_8
39
40
  end
40
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
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: 2013-10-23 00:00:00.000000000 Z
12
+ date: 2013-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: elasticsearch-transport
@@ -75,6 +75,22 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: elasticsearch-extensions
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
78
94
  - !ruby/object:Gem::Dependency
79
95
  name: ansi
80
96
  requirement: !ruby/object:Gem::Requirement