middleman-cli 4.1.3 → 4.1.5

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: 12273d205f2bf08d0212180889ac23701ac1fe96
4
- data.tar.gz: 2b8a404ea8856f2bc7a35f15c291d8281374d034
3
+ metadata.gz: 533e085d69bc99e95e9b4e9fad2e337ccffa076d
4
+ data.tar.gz: 46672cf498c58bf641799b4c6fa58e547d8a8e98
5
5
  SHA512:
6
- metadata.gz: 0e4f85045bb88f0c4db58527cbd0a39db84bfb725477a398c9cdc2e4cb8e12cb9e3e9ce336033a91d89a4f9bb5da5220336d6976576569847cf67e486edfa46f
7
- data.tar.gz: 40de4da70b54e10eae959a86a5ef75faee7edd4fbe73544a1cb16c2b48e64885aaab042aa99db15772fe21e98eef41a1624a445337bc04ad166e2ee8731d9cce
6
+ metadata.gz: 22a0a8d0a5ca9e950c528ab5116dfca41dc5cec19af69ac2f31275cc3c814e8865986310544271918efa235c7d6b8c3bad7f01266780513406cecb200a284907
7
+ data.tar.gz: 45023c60c75f636fe55516b94c5e81cec61877cd721c9e27a7c55be058e20636d30b49513637078cb6a65ac9bec7ece8e5ebe33fa4b6cd1d532f1241ddf9cc41
data/bin/middleman CHANGED
@@ -22,12 +22,12 @@ module Middleman::Cli
22
22
  if setting.default.is_a?(String) || setting.default.is_a?(NilClass)
23
23
  base.class_option setting.key,
24
24
  type: :string,
25
- default: setting.default,
25
+ default: :undefined,
26
26
  desc: setting.description
27
27
  elsif setting.default.is_a?(TrueClass) || setting.default.is_a?(FalseClass)
28
28
  base.class_option setting.key,
29
29
  type: :boolean,
30
- default: setting.default,
30
+ default: :undefined,
31
31
  desc: setting.description
32
32
  end
33
33
  end
@@ -46,6 +46,7 @@ end
46
46
 
47
47
  ::Middleman::Logger.singleton(3)
48
48
  ::Middleman::Cli.config = ::Middleman::Application.new do
49
+ config[:mode] = :config
49
50
  config[:exit_before_ready] = true
50
51
  config[:watcher_disable] = true
51
52
  config[:disable_sitemap] = true
@@ -63,14 +63,8 @@ module Middleman::Cli
63
63
  @app = ::Middleman::Application.new do
64
64
  config[:mode] = :build
65
65
  config[:show_exceptions] = false
66
-
67
- cli_options.each do |k, v|
68
- setting = config.setting(k.to_sym)
69
- next unless setting
70
-
71
- v = setting.options[:import].call(v) if setting.options[:import]
72
-
73
- config[k.to_sym] = v
66
+ config[:cli_options] = cli_options.each_with_object({}) do |(k, v), sum|
67
+ sum[k] = v unless v == :undefined
74
68
  end
75
69
  end
76
70
 
@@ -23,6 +23,7 @@ module Middleman::Cli
23
23
  ::Middleman::Logger.singleton(2, false)
24
24
 
25
25
  app = ::Middleman::Application.new do
26
+ config[:mode] = :config
26
27
  config[:disable_sitemap] = true
27
28
  config[:watcher_disable] = true
28
29
  config[:exit_before_ready] = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-17 00:00:00.000000000 Z
12
+ date: 2016-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor