arethusa-cli 0.0.12 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arethusa/cli/version.rb +1 -1
- data/lib/arethusa/cli.rb +4 -4
- 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: fc7f357cb5235ac1a8e16c9533872fd408c5243b
|
4
|
+
data.tar.gz: 827eaef778acb46bd25f15d3ec2b7392ac369878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85dec8a9065456cf09035825f0cf00e74aff9305faac11312e3687fff7d55cf40c337c9d71db5a4338d354404e5ea5d7864db917c0035858ac779640638eb3ba
|
7
|
+
data.tar.gz: de021d29e50517fe27e6741b4989f2c0a982276d4cc059eadad841fd585a4e71d156bd411b274dca40ffb26b0c0ca86ad4cbd6dbfd4f4ae1ceaa69a00a5f2d43
|
data/lib/arethusa/cli/version.rb
CHANGED
data/lib/arethusa/cli.rb
CHANGED
@@ -67,7 +67,7 @@ EOF
|
|
67
67
|
desc: 'Print the resulting JSON minified'
|
68
68
|
def merge(file)
|
69
69
|
@conf = read_conf(file)
|
70
|
-
@conf_dir = options[:base_path] ||
|
70
|
+
@conf_dir = options[:base_path] || config_dir
|
71
71
|
traverse_and_include(@conf)
|
72
72
|
|
73
73
|
if options[:minify]
|
@@ -150,8 +150,8 @@ EOF
|
|
150
150
|
end
|
151
151
|
|
152
152
|
# methods for merging
|
153
|
-
def
|
154
|
-
"app"
|
153
|
+
def config_dir
|
154
|
+
"app/static/configs"
|
155
155
|
end
|
156
156
|
|
157
157
|
def traverse_and_include(conf)
|
@@ -165,7 +165,7 @@ EOF
|
|
165
165
|
clone.each do |key, value|
|
166
166
|
if value.is_a?(Hash)
|
167
167
|
traverse(conf[key])
|
168
|
-
elsif key == '
|
168
|
+
elsif key == '@include'
|
169
169
|
additional_conf = read_conf(value)
|
170
170
|
conf.delete(key)
|
171
171
|
conf.merge!(additional_conf)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arethusa-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LFDM
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|