beanstalk-worker 0.0.6 → 0.0.7

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: 747f1337fedc7cbca793183f32dc521ba23d1e16
4
- data.tar.gz: 63928a5068cdc5dfe60efa991b05f0e183ea8592
3
+ metadata.gz: 22dfef308ff22569b14a565dd2d78a3a6098a20e
4
+ data.tar.gz: 6eb8800cc64532916884e53eeb069d750523fed9
5
5
  SHA512:
6
- metadata.gz: 5b06b4a51c0bf6c3357dba3ac8515beb0a62d5ebd71219fcf4dd1b4b183a5d625875e6e4b6cc58e8e162a1432f450a87b2241c11277bd78cf0d471225cd96005
7
- data.tar.gz: a0e371c1a9accffd9d93d54b71558b270e23228b74dee58ca9f824d3d22af4d0b2ca26ecb99a885321e8a963dc24b4f6acdb059fd4a0b13c3e70031eea151b59
6
+ metadata.gz: ac258a3cc776fd5366e7ca792a7a75ad1887e7f2040f7611357ded9d7c970cb0b078120f898d93282020bb9bddf3842190c8b1ca79458073516eefe7d1cf3d09
7
+ data.tar.gz: b0569f32ab64bf72febf57ac5a9b7d410025237c1e96ece266676665ece3e7640b70725c5466fe87a2f45d68746c166bbabc65ee84e86848a07d99b22dd38c80
@@ -19,9 +19,9 @@ class BeanStalk::Worker
19
19
  # Support merging via coercion to symbols.
20
20
  #
21
21
  # @param [ Hash ] hash The configuration hash to symbolize and merge.
22
- alias basic_merge! merge!
22
+ alias :base_merge! :merge!
23
23
  def merge!(hash)
24
- basic_merge!(hash.deep_symbolize_keys)
24
+ base_merge!(configuration.deep_merge(hash.deep_symbolize_keys))
25
25
  end
26
26
  end
27
27
 
@@ -54,8 +54,7 @@ class BeanStalk::Worker
54
54
  # @param [ String ] filename The file to read.
55
55
  # @param [ String ] environment The environment to use.
56
56
  def self.from_file_yaml(filename, environment)
57
- configuration.merge!(
58
- YAML.load_file(filename).deep_symbolize_keys[environment])
57
+ merge!(YAML.load_file(filename).deep_symbolize_keys[environment])
59
58
  end
60
59
 
61
60
  # Loads a given json file and merges the current context
@@ -78,7 +77,7 @@ class BeanStalk::Worker
78
77
  # @param [ String ] input The json configuration input.
79
78
  def self.from_stream_json(input, *args)
80
79
  parser = Yajl::Parser.new(:symbolize_keys => true)
81
- configuration.merge!(parser.parse(input))
80
+ merge!(parser.parse(input))
82
81
  end
83
82
 
84
83
  # Helper method for generation the beanstalk uri
@@ -2,7 +2,7 @@ $:.unshift File.dirname(__FILE__)
2
2
 
3
3
  module BeanStalk
4
4
  class Worker
5
- VERSION = '0.0.6'
5
+ VERSION = '0.0.7'
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.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Veremey