guard-middleman 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module MiddlemanVersion
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -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
- }.merge(options)
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.2.1
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-07-23 00:00:00.000000000 Z
12
+ date: 2013-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard