elasticsearch-extensions 0.0.29 → 0.0.30

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
- SHA1:
3
- metadata.gz: e6233ae2d030ad1df4a1b686fea186e33117653f
4
- data.tar.gz: 98859f69ba0eae607e001144c18d61b89179b6dc
2
+ SHA256:
3
+ metadata.gz: f4760fbeff3a693cc08f02710afebaaf1dbca1a0d0771c36fc3b5072932f0268
4
+ data.tar.gz: 6f3da46e288f0ca3d98be99e6e1455dd18d2af0b69d2a3b3841a3fbbf70c660a
5
5
  SHA512:
6
- metadata.gz: a836ebf35559d199765577d80ea1cd7c0e8a35d61a09f1da467e9aea97e4550dfc61a6daa046a980c3daf7743fd11cea00a0b184dadd17c90e2eece9240cd25a
7
- data.tar.gz: 4ef824d17c232d848f12646f218f5e1340e66b4df5877e8c60c07d6ceec0aa0977d6ce003e6cc86c9d1363447b7e0cbd69cda36b327e47ae62e8581ab919a877
6
+ metadata.gz: 5e6ad27fa0c9588b9f58da4f7cecabba3a96b5b69a51fd469bac7fad0a4fe348fbd9acc8aac8a0b8205fac22fe0e5f62703da639f2bbadccda66ff7541ace0f7
7
+ data.tar.gz: a092b5a179bf08df5b13675b0a9f59565bcc0ebfc1e2720f29125f6319d8d47c22ac5e8414976d678b528559c8d0aca5bb8f068f56950c04ba36d29190b24622
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency "elasticsearch"
23
23
 
24
24
  if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
25
- s.add_dependency "ruby-prof" unless defined?(JRUBY_VERSION) || defined?(Rubinius)
25
+ s.add_development_dependency "ruby-prof" unless defined?(JRUBY_VERSION) || defined?(Rubinius)
26
26
  end
27
27
 
28
28
  s.add_development_dependency "bundler", "> 1"
@@ -17,7 +17,6 @@ rescue LoadError
17
17
  warn('The "patron" gem could not be loaded. HTTP requests may not be performed optimally.')
18
18
  end
19
19
 
20
-
21
20
  require 'elasticsearch'
22
21
 
23
22
  module Backup
@@ -453,7 +453,7 @@ module Elasticsearch
453
453
  path_to_lib = File.dirname(arguments[:command]) + '/../lib/'
454
454
  version = if arguments[:version]
455
455
  arguments[:version]
456
- elsif File.exist?(path_to_lib) && !(jar = Dir.entries(path_to_lib).select { |f| f =~ /^elasticsearch\-\d/ }.first).nil?
456
+ elsif File.exist?(path_to_lib) && !(jar = Dir.entries(path_to_lib).select { |f| f.start_with? 'elasticsearch' }.first).nil?
457
457
  __log "Determining version from [#{jar}]" if ENV['DEBUG']
458
458
  if m = jar.match(/elasticsearch\-(\d+\.\d+\.\d+).*/)
459
459
  m[1]
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module Extensions
3
- VERSION = "0.0.29"
3
+ VERSION = "0.0.30"
4
4
  end
5
5
  end
@@ -252,7 +252,7 @@ class Elasticsearch::Extensions::TestClusterTest < Elasticsearch::Test::UnitTest
252
252
 
253
253
  should "return version from lib/elasticsearch.X.Y.Z.jar" do
254
254
  File.expects(:exist?).with('/foo/bar/bin/../lib/').returns(true)
255
- Dir.expects(:entries).with('/foo/bar/bin/../lib/').returns(['foo.jar', 'elasticsearch-foo-1.0.0.jar', 'elasticsearch-2.3.0.jar', 'elasticsearch-bar-9.9.9.jar'])
255
+ Dir.expects(:entries).with('/foo/bar/bin/../lib/').returns(['foo.jar', 'elasticsearch-2.3.0.jar'])
256
256
 
257
257
  assert_equal '2.0', @subject.__determine_version
258
258
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-02 00:00:00.000000000 Z
11
+ date: 2018-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ansi
@@ -45,7 +45,7 @@ dependencies:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
- type: :runtime
48
+ type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
@@ -287,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
287
  version: '0'
288
288
  requirements: []
289
289
  rubyforge_project:
290
- rubygems_version: 2.6.11
290
+ rubygems_version: 2.7.7
291
291
  signing_key:
292
292
  specification_version: 4
293
293
  summary: Extensions for the Elasticsearch Rubygem