wat_catcher 0.7.1 → 0.7.2

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: e6a64cbbb08ddbaaf026927c61d8dc33d26edf70
4
- data.tar.gz: ff7e04ff42bf5d3ad1e76fe6a6a54584ec972179
3
+ metadata.gz: 5ba58c165561d8a066ddb6f4683220bf84c261fd
4
+ data.tar.gz: b8bd905c001a3209358b382ec8f769011f702041
5
5
  SHA512:
6
- metadata.gz: 2b029df521bb5283378a04c89ef2e9c7748fc0173925f17b48396f28b3e724c1b7b1459f74fd6109a7b6c5104aca0b82e796ec4e587ee62b1927cf6d7b661ecc
7
- data.tar.gz: c1d88cac19b902f1a58e2deb01cb3f53cab358494b0b3377d2215ed2d6c9ef1e869e91b8e3c46daa0b2019840370ad68c2e9805fa77a2b779e3d8490c28d7892
6
+ metadata.gz: 0055054a8e4c71ad7ef2a057d045183f25b934d06949ec99d9561486078e4b83fcdacc8a8aef6a73ca45a24c55d78109493ebf06801318712842aedd1c23751d
7
+ data.tar.gz: cfacce946796e0a49fd511c3b1736c23b387cff8738904e0d7a88c419790296e0f22c0c0b225e4a778741e38506a6ce34a71c04c13cb72b8ee24bee6a28ce387
@@ -1,3 +1,3 @@
1
1
  module WatCatcher
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
data/lib/wat_catcher.rb CHANGED
@@ -9,7 +9,18 @@ require "wat_catcher/sidekiq_poster"
9
9
 
10
10
  require "wat_catcher/railtie" if defined?(Rails::Railtie)
11
11
 
12
+
12
13
  module WatCatcher
14
+ class Configuration < OpenStruct
15
+ def method_missing(method, *args)
16
+ if method[-1] != "="
17
+ ENV["wattle_#{method}".upcase] || super
18
+ else
19
+ super
20
+ end
21
+ end
22
+ end
23
+
13
24
  class << self
14
25
  def configure(config_hash=nil)
15
26
  config_hash.each do |k, v|
@@ -20,7 +31,7 @@ module WatCatcher
20
31
  end
21
32
 
22
33
  def configuration
23
- @configuration ||= OpenStruct.new
34
+ @configuration ||= Configuration.new
24
35
  end
25
36
  end
26
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wat_catcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Constantine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-23 00:00:00.000000000 Z
11
+ date: 2014-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler