elastic_queue 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elastic_queue/base.rb +1 -1
- data/lib/elastic_queue/filters.rb +0 -1
- data/lib/elastic_queue/percolation.rb +0 -1
- data/lib/elastic_queue/railtie.rb +12 -0
- data/lib/elastic_queue/version.rb +1 -1
- data/lib/elastic_queue.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6e669dd2eb27b5ca9f483235d30ad5ec96d084b
|
4
|
+
data.tar.gz: 9d52ff8a5a841d10fe77b5a74786eea687bbb494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24f5f08d5e042d2c4bfe8d7d063d2f2b3aebd81251d2fb494dc7c1088e809b9d5a99f296f7feaeb1260d7052e392fdf0c1ade304af51ec4a90dc0b7ba9ee1007
|
7
|
+
data.tar.gz: 6b548e8ffe120b156ab211d8260acca28f2ebfb6e2ed3ef873f4492cdefc3984d70e080c506addf3298c3eedb657c8cc424d9cfca7441c689de861b4388c6c64
|
data/lib/elastic_queue/base.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
module ElasticQueue
|
2
|
+
class Railtie < ::Rails::Railtie
|
3
|
+
initializer 'ElasticQueue options initializer', after: :after_initialize do
|
4
|
+
elastic_queue_default_options = { elasticsearch_hosts: [{ host: 'localhost', port: 9200, protocol: 'http' }] }.with_indifferent_access
|
5
|
+
if defined?(Rails) && File.exists?(Rails.root.join('config', 'elastic_queue.yml').to_s)
|
6
|
+
ElasticQueue::OPTIONS = elastic_queue_default_options.merge(YAML.load_file(Rails.root.join('config', 'elastic_queue.yml').to_s)[Rails.env].with_indifferent_access)
|
7
|
+
else
|
8
|
+
ElasticQueue::OPTIONS = elastic_queue_default_options
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/elastic_queue.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic_queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruth Thompson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -148,6 +148,7 @@ files:
|
|
148
148
|
- lib/elastic_queue/query.rb
|
149
149
|
- lib/elastic_queue/query_options.rb
|
150
150
|
- lib/elastic_queue/queueable.rb
|
151
|
+
- lib/elastic_queue/railtie.rb
|
151
152
|
- lib/elastic_queue/results.rb
|
152
153
|
- lib/elastic_queue/sorts.rb
|
153
154
|
- lib/elastic_queue/version.rb
|