wat_catcher 0.7.1 → 0.7.2
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/wat_catcher/version.rb +1 -1
- data/lib/wat_catcher.rb +12 -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: 5ba58c165561d8a066ddb6f4683220bf84c261fd
|
4
|
+
data.tar.gz: b8bd905c001a3209358b382ec8f769011f702041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0055054a8e4c71ad7ef2a057d045183f25b934d06949ec99d9561486078e4b83fcdacc8a8aef6a73ca45a24c55d78109493ebf06801318712842aedd1c23751d
|
7
|
+
data.tar.gz: cfacce946796e0a49fd511c3b1736c23b387cff8738904e0d7a88c419790296e0f22c0c0b225e4a778741e38506a6ce34a71c04c13cb72b8ee24bee6a28ce387
|
data/lib/wat_catcher/version.rb
CHANGED
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 ||=
|
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.
|
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-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|