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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40fe46d953a6a260beb024a887790f1d16d4778f
4
- data.tar.gz: 6ebc44c61bf5d4db3e31368f11bf230e684b6f10
3
+ metadata.gz: fc7f357cb5235ac1a8e16c9533872fd408c5243b
4
+ data.tar.gz: 827eaef778acb46bd25f15d3ec2b7392ac369878
5
5
  SHA512:
6
- metadata.gz: 49a514ca3627f40574d55973aaf82a5bb9c045a4532f87a28370c79570f47ffbb15baf6992c4a3b6da30cffa7c6f6b8a4eda8e8f3c31ef899eb61c9891ab0f08
7
- data.tar.gz: 5effd3f79a7785b60ac6c4291d02acf2cfa96aa1101578568f2191aaddda3c25fbac876f6001d3a546077e112902dabfe2f837853c9b43a631447e685be16983
6
+ metadata.gz: 85dec8a9065456cf09035825f0cf00e74aff9305faac11312e3687fff7d55cf40c337c9d71db5a4338d354404e5ea5d7864db917c0035858ac779640638eb3ba
7
+ data.tar.gz: de021d29e50517fe27e6741b4989f2c0a982276d4cc059eadad841fd585a4e71d156bd411b274dca40ffb26b0c0ca86ad4cbd6dbfd4f4ae1ceaa69a00a5f2d43
@@ -1,5 +1,5 @@
1
1
  module Arethusa
2
2
  class CLI
3
- VERSION = "0.0.12"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
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] || app_dir
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 app_dir
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 == 'fileUrl'
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.12
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-27 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler