easy_app_helper 1.0.7 → 1.0.8
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/easy_app_helper/core/places.rb +6 -0
- data/lib/easy_app_helper/version.rb +1 -1
- data/spec/config_spec.rb +4 -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: b48b1a40cca25e007c8c9482b38bcc1ba7745c80
|
|
4
|
+
data.tar.gz: 5292526ca66ed1672d56a6263f3508b6d95c4b04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 065768a14395a003b9af518d290331a55d70de2ee48e99ad10f9d74618da61a45b5f9e3487911f32662510f660c82636114dc9aa556ccb814427d008d51c75d1
|
|
7
|
+
data.tar.gz: ad52ae962932ecf91632c86c94bb8ae20c5e415ffd0ee798e3b11e3dda434aa5ba5daba2f1569945fa5fb1f287695ad1764e85a6363db13d2185bd25df21a80a
|
|
@@ -15,6 +15,10 @@ class EasyAppHelper::Core::Config::Places
|
|
|
15
15
|
File.expand_path('../../etc', $PROGRAM_NAME)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
def possible_config_places key
|
|
19
|
+
POSSIBLE_PLACES[key]
|
|
20
|
+
end
|
|
21
|
+
|
|
18
22
|
end
|
|
19
23
|
|
|
20
24
|
|
|
@@ -69,4 +73,6 @@ class EasyAppHelper::Core::Config::Places
|
|
|
69
73
|
conf = CONF[RbConfig::CONFIG['target_os'].to_sym]
|
|
70
74
|
conf.nil? ? DEFAULT : conf
|
|
71
75
|
end
|
|
76
|
+
|
|
77
|
+
|
|
72
78
|
end
|
data/spec/config_spec.rb
CHANGED
|
@@ -189,7 +189,10 @@ describe "The EasyAppHelper config object" do
|
|
|
189
189
|
|
|
190
190
|
context "When a gem has its own :internal config file" do
|
|
191
191
|
before(:all) do
|
|
192
|
-
EasyAppHelper.config.
|
|
192
|
+
pp = EasyAppHelper.config.class.const_get :POSSIBLE_PLACES
|
|
193
|
+
pp[:internal] = [File.expand_path('../../etc', __FILE__)]
|
|
194
|
+
EasyAppHelper.config.class.const_set :POSSIBLE_PLACES, pp
|
|
195
|
+
EasyAppHelper.config.script_filename = 'test_internal'
|
|
193
196
|
end
|
|
194
197
|
|
|
195
198
|
it "should take its data in account" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: easy_app_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- L.Briais
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-10-
|
|
11
|
+
date: 2013-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|