beanstalk-worker 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6493938db0ed25bc98b0e9acef39854ef7efb002
4
- data.tar.gz: 572705ab5b20b94415a213b934c2f43048b04abb
3
+ metadata.gz: 9c249aeec578b4f5cf0b205b75e83fb5daab0ec4
4
+ data.tar.gz: 751fe2196d141fccacf0a51536c6eada012326d1
5
5
  SHA512:
6
- metadata.gz: f54bf2449ad87f4c16f55c5ae7c2359471748fb448953a7eadd8deeab75f71445bf1bb856bcea553db1b62960fe67b9179e543277440826a99ceae5c7b3cf878
7
- data.tar.gz: 8ef736726ccdfd402a743971f31cc3fdb5037fdd51a49d72a30a2e9f64e78838353bdbc701b6c3619174ca0f9de8ad67277e19db167a41555368399468108947
6
+ metadata.gz: 62b6c79f61a7203a3c6944002bea338b9d1c72ca760161aa5386331fb3eaf2cc34acb0b5252f176f9c2bbb825b0304f0d1c9292c445503fb1f16b199f2383b09
7
+ data.tar.gz: 77186d271e4dd364e5cfec47c54ca0a1337837d06baac776214f1f1ea06e36f1b3ae646419f2047b385f3484fa52d00853bc5fe8b8c010bf96bf883880b31e8b
@@ -6,8 +6,8 @@ class BeanStalk::Worker
6
6
  def initialize(config = {})
7
7
  @config = BeanStalk::Worker::Config
8
8
  if File.exists? @config[:config_file]
9
- if config.environment
10
- @config.from_file @config[:config_file], config.environment
9
+ if config[:environment]
10
+ @config.from_file @config[:config_file], config[:environment]
11
11
  else
12
12
  @config.from_file @config[:config_file]
13
13
  end
@@ -2,7 +2,7 @@ $:.unshift File.dirname(__FILE__)
2
2
 
3
3
  module BeanStalk
4
4
  class Worker
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanstalk-worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Veremey