elastic_queue 0.0.7 → 0.0.8
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.
- checksums.yaml +4 -4
- data/lib/elastic_queue/railtie.rb +6 -4
- data/lib/elastic_queue/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4c5e7969e666d97393d4dda88afce326f467ef2
|
|
4
|
+
data.tar.gz: cd5ebc5dbed6cbee1b642b594c7b1bbd130977ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30b1d172e4eff5a61a59ec5e95c16761dda768ce369bf319806a9fb2535d3321012530cc61784930e8e6e4276f8740f731bb84ab333c9b6d87141497835a12c5
|
|
7
|
+
data.tar.gz: 87df7401e65a5453a1f9c0d338a2f8c23ea39c1d545fb399930a72247d191af0c7a255500564dd68641bc9930cb75718757dea6596f1616586afb626fc74a62b
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
module ElasticQueue
|
|
2
2
|
class Railtie < ::Rails::Railtie
|
|
3
3
|
initializer 'ElasticQueue options initializer', after: :after_initialize do
|
|
4
|
-
|
|
4
|
+
default_config_options = { elasticsearch_hosts: [{ host: 'localhost', port: 9200, protocol: 'http' }] }.with_indifferent_access
|
|
5
5
|
if defined?(Rails) && File.exists?(Rails.root.join('config', 'elastic_queue.yml').to_s)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
config_options = YAML.load_file(Rails.root.join('config', 'elastic_queue.yml').to_s)[Rails.env]
|
|
7
|
+
unless config_options.nil?
|
|
8
|
+
ElasticQueue::OPTIONS = default_config_options.merge(config_options.with_indifferent_access)
|
|
9
|
+
end
|
|
9
10
|
end
|
|
11
|
+
ElasticQueue::OPTIONS = default_config_options unless defined? ElasticQueue::OPTIONS
|
|
10
12
|
end
|
|
11
13
|
end
|
|
12
14
|
end
|
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.8
|
|
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-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|