elasticsearch-extensions 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/elasticsearch-extensions.gemspec +5 -2
- data/lib/elasticsearch/extensions/backup.rb +13 -2
- data/lib/elasticsearch/extensions/version.rb +1 -1
- metadata +29 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6233ae2d030ad1df4a1b686fea186e33117653f
|
4
|
+
data.tar.gz: 98859f69ba0eae607e001144c18d61b89179b6dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a836ebf35559d199765577d80ea1cd7c0e8a35d61a09f1da467e9aea97e4550dfc61a6daa046a980c3daf7743fd11cea00a0b184dadd17c90e2eece9240cd25a
|
7
|
+
data.tar.gz: 4ef824d17c232d848f12646f218f5e1340e66b4df5877e8c60c07d6ceec0aa0977d6ce003e6cc86c9d1363447b7e0cbd69cda36b327e47ae62e8581ab919a877
|
@@ -20,8 +20,6 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.add_dependency "ansi"
|
22
22
|
s.add_dependency "elasticsearch"
|
23
|
-
s.add_dependency "oj" unless defined?(JRUBY_VERSION)
|
24
|
-
s.add_dependency "patron" unless defined?(JRUBY_VERSION)
|
25
23
|
|
26
24
|
if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
|
27
25
|
s.add_dependency "ruby-prof" unless defined?(JRUBY_VERSION) || defined?(Rubinius)
|
@@ -46,6 +44,11 @@ Gem::Specification.new do |s|
|
|
46
44
|
s.add_development_dependency 'cane'
|
47
45
|
s.add_development_dependency 'pry'
|
48
46
|
|
47
|
+
unless defined?(JRUBY_VERSION)
|
48
|
+
s.add_development_dependency 'oj'
|
49
|
+
s.add_development_dependency 'patron'
|
50
|
+
end
|
51
|
+
|
49
52
|
if defined?(RUBY_VERSION) && RUBY_VERSION < '1.9'
|
50
53
|
s.add_development_dependency "json", '~> 1.8'
|
51
54
|
end
|
@@ -4,10 +4,21 @@ require 'pathname'
|
|
4
4
|
require 'fileutils'
|
5
5
|
|
6
6
|
require 'multi_json'
|
7
|
-
|
7
|
+
|
8
|
+
begin
|
9
|
+
require 'oj'
|
10
|
+
rescue LoadError
|
11
|
+
warn('The "oj" gem could not be loaded. JSON parsing and serialization performance may not be optimal.')
|
12
|
+
end
|
13
|
+
|
14
|
+
begin
|
15
|
+
require 'patron'
|
16
|
+
rescue LoadError
|
17
|
+
warn('The "patron" gem could not be loaded. HTTP requests may not be performed optimally.')
|
18
|
+
end
|
19
|
+
|
8
20
|
|
9
21
|
require 'elasticsearch'
|
10
|
-
require 'patron' unless defined?(JRUBY_VERSION)
|
11
22
|
|
12
23
|
module Backup
|
13
24
|
module Database
|
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.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
@@ -38,34 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: oj
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: patron
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
42
|
name: ruby-prof
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,6 +206,34 @@ dependencies:
|
|
234
206
|
- - ">="
|
235
207
|
- !ruby/object:Gem::Version
|
236
208
|
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: oj
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: patron
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
237
|
description: Extensions for the Elasticsearch Rubygem
|
238
238
|
email:
|
239
239
|
- karel.minarik@elasticsearch.org
|