guard-middleman 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guard/middleman/version.rb +1 -1
- data/lib/guard/middleman.rb +9 -3
- metadata +2 -2
data/lib/guard/middleman.rb
CHANGED
@@ -7,9 +7,9 @@ module Guard
|
|
7
7
|
def initialize(watchers=[], options={})
|
8
8
|
super
|
9
9
|
# init stuff here, thx!
|
10
|
-
@options =
|
11
|
-
:bundler => File.exist?("#{Dir.pwd}/Gemfile")
|
12
|
-
|
10
|
+
@options = Thor::CoreExt::HashWithIndifferentAccess.new(
|
11
|
+
{:bundler => File.exist?("#{Dir.pwd}/Gemfile")}.merge(options)
|
12
|
+
)
|
13
13
|
end
|
14
14
|
|
15
15
|
def bundler?
|
@@ -56,6 +56,12 @@ module Guard
|
|
56
56
|
cmd = []
|
57
57
|
cmd << "bundle exec" if bundler?
|
58
58
|
cmd << "middleman build"
|
59
|
+
cmd << '--verbose' if @options[:verbose]
|
60
|
+
cmd << '--clean' if @options[:clean]
|
61
|
+
cmd << '--no-clean' if @options[:no_clean] || @options['no-clean']
|
62
|
+
cmd << "--glob=#{@options[:glob]}" if @options[:glob]
|
63
|
+
cmd << "--instrument=#{@options[:instrument]}" if @options[:instrument]
|
64
|
+
cmd << '--profile' if @options[:profile]
|
59
65
|
|
60
66
|
cmd.join(' ')
|
61
67
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|