elastic_queue 0.0.7 → 0.0.8

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
2
  SHA1:
3
- metadata.gz: d6e669dd2eb27b5ca9f483235d30ad5ec96d084b
4
- data.tar.gz: 9d52ff8a5a841d10fe77b5a74786eea687bbb494
3
+ metadata.gz: f4c5e7969e666d97393d4dda88afce326f467ef2
4
+ data.tar.gz: cd5ebc5dbed6cbee1b642b594c7b1bbd130977ef
5
5
  SHA512:
6
- metadata.gz: 24f5f08d5e042d2c4bfe8d7d063d2f2b3aebd81251d2fb494dc7c1088e809b9d5a99f296f7feaeb1260d7052e392fdf0c1ade304af51ec4a90dc0b7ba9ee1007
7
- data.tar.gz: 6b548e8ffe120b156ab211d8260acca28f2ebfb6e2ed3ef873f4492cdefc3984d70e080c506addf3298c3eedb657c8cc424d9cfca7441c689de861b4388c6c64
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
- elastic_queue_default_options = { elasticsearch_hosts: [{ host: 'localhost', port: 9200, protocol: 'http' }] }.with_indifferent_access
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
- 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
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
@@ -1,3 +1,3 @@
1
1
  module ElasticQueue
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  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.7
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-18 00:00:00.000000000 Z
12
+ date: 2014-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport