app 1.1.0 → 1.2.0
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/app.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2e288e9b38caa0d04c06d895179823bfec27544
|
|
4
|
+
data.tar.gz: 015ace189b00bda3bc1045153af831e8c6a85920
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6acbaa8d4a8623cbb38c8b9cc66bb7dfe4fee09d22a35be1216d52ce8a894470d18eff2b603eba8d6e3fc1fb5f707e1ae795d33ed68398028e4145cf0649a42c
|
|
7
|
+
data.tar.gz: 4b4e7b411257856693f67fcd84f58e3a81b2366bdf039457c91a2f07eb9fa765cfb21cd933fdd83e775205a3def245fa8d0c5a018eb0c5944c81cc91dedbfa2f
|
data/lib/app.rb
CHANGED
|
@@ -42,6 +42,10 @@ class Configurable
|
|
|
42
42
|
@logger ||= Logger.new STDERR
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
def respond_to_missing?(method_sym, include_private = false)
|
|
46
|
+
config.respond_to?(method_sym.to_s.gsub(/\?$/, ''), include_private) || super
|
|
47
|
+
end
|
|
48
|
+
|
|
45
49
|
private
|
|
46
50
|
|
|
47
51
|
def config
|
|
@@ -69,7 +73,9 @@ class Configurable
|
|
|
69
73
|
pathname = Rails.root.join 'config', 'app'
|
|
70
74
|
require_dependency pathname.to_s
|
|
71
75
|
require_dependency pathname.join(Rails.env).to_s
|
|
72
|
-
rescue
|
|
76
|
+
rescue NoMethodError => e
|
|
77
|
+
Rails.logger.warn e
|
|
78
|
+
rescue LoadError
|
|
73
79
|
end
|
|
74
80
|
end
|
|
75
81
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: app
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Celis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Move the config out of your app, and into App.
|
|
14
14
|
email: stephen@stephencelis.com
|
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
46
46
|
version: '0'
|
|
47
47
|
requirements: []
|
|
48
48
|
rubyforge_project:
|
|
49
|
-
rubygems_version: 2.
|
|
49
|
+
rubygems_version: 2.4.5
|
|
50
50
|
signing_key:
|
|
51
51
|
specification_version: 4
|
|
52
52
|
summary: Application configuration.
|