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 +4 -4
- data/bin/middleman +3 -2
- data/lib/middleman-cli/build.rb +2 -8
- data/lib/middleman-cli/config.rb +1 -0
- 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: 533e085d69bc99e95e9b4e9fad2e337ccffa076d
|
4
|
+
data.tar.gz: 46672cf498c58bf641799b4c6fa58e547d8a8e98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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:
|
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
|
data/lib/middleman-cli/build.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/middleman-cli/config.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2016-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|