guard-middleman 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +27 -0
- data/lib/guard/middleman/version.rb +1 -1
- data/lib/guard/middleman.rb +7 -4
- metadata +13 -19
- data/README.rdoc +0 -17
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a96a118df441a42ab09f950b5026f6c53c32329e
|
4
|
+
data.tar.gz: 51c7b87e5ca00e0b24f091faf11c2b06f9945f83
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6769ccd18799c346f811aee3695d507cb909cbb067d9feff1c50e400f6c7487c02daa9eac404570d9d8ac204f0456cf68375aaa6b222df9a34a26bf05b6d95e9
|
7
|
+
data.tar.gz: b13fb9a6cd93e5ae85c23df6874c4e1fcafbde6d326ed7cb0c61ef4c1ebda78bb415ad0d85b0332506798973192f1771de476c678205cd81c48b306f6947b26e
|
data/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# guard-middleman
|
2
|
+
|
3
|
+
Guard gem for Middleman
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
Install gem:
|
8
|
+
|
9
|
+
gem install guard-middleman
|
10
|
+
|
11
|
+
Add guard definition:
|
12
|
+
|
13
|
+
guard init middleman
|
14
|
+
|
15
|
+
## Options
|
16
|
+
|
17
|
+
* `verbose`: verbose output, default = false
|
18
|
+
* `run_on_start`: whether or not to build middleman on start of guard, default = false
|
19
|
+
* `clean`: erase the build directory before run, default = false
|
20
|
+
* `no-clean`: never erase the build directory, default = false
|
21
|
+
* `glob`: specify a subset of the project to build, need to pass a string representing the subset. e.g. `glob: 'source/about_pages/*'`
|
22
|
+
* `instrument`: Print instrument messages
|
23
|
+
* `profile`: Generate profiling report for the build, default = false
|
24
|
+
|
25
|
+
## Links
|
26
|
+
|
27
|
+
[Guard](https://github.com/guard/guard#readme)
|
data/lib/guard/middleman.rb
CHANGED
@@ -8,7 +8,7 @@ module Guard
|
|
8
8
|
super
|
9
9
|
# init stuff here, thx!
|
10
10
|
@options = Thor::CoreExt::HashWithIndifferentAccess.new(
|
11
|
-
{:bundler => File.exist?("#{Dir.pwd}/Gemfile")}.merge(options)
|
11
|
+
{:run_on_start => false, :bundler => File.exist?("#{Dir.pwd}/Gemfile")}.merge(options)
|
12
12
|
)
|
13
13
|
end
|
14
14
|
|
@@ -26,6 +26,9 @@ module Guard
|
|
26
26
|
# Called once when Guard starts
|
27
27
|
# Please override initialize method to init stuff
|
28
28
|
def start
|
29
|
+
if @options[:run_on_start]
|
30
|
+
system(build_command)
|
31
|
+
end
|
29
32
|
true
|
30
33
|
end
|
31
34
|
|
@@ -56,9 +59,9 @@ module Guard
|
|
56
59
|
cmd = []
|
57
60
|
cmd << "bundle exec" if bundler?
|
58
61
|
cmd << "middleman build"
|
59
|
-
cmd << '--verbose'
|
60
|
-
cmd << '--clean'
|
61
|
-
cmd << '--no-clean'
|
62
|
+
cmd << '--verbose' if @options[:verbose]
|
63
|
+
cmd << '--clean' if @options[:clean]
|
64
|
+
cmd << '--no-clean' if @options[:no_clean] || @options['no-clean']
|
62
65
|
cmd << "--glob=#{@options[:glob]}" if @options[:glob]
|
63
66
|
cmd << "--instrument=#{@options[:instrument]}" if @options[:instrument]
|
64
67
|
cmd << '--profile' if @options[:profile]
|
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Matthias Döring
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: guard
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.4.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.4.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: middleman
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 3.0.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 3.0.0
|
46
41
|
description: Guard gem for Middleman - automatically runs middleman build
|
@@ -50,9 +45,9 @@ executables: []
|
|
50
45
|
extensions: []
|
51
46
|
extra_rdoc_files: []
|
52
47
|
files:
|
53
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
54
49
|
- Gemfile
|
55
|
-
- README.
|
50
|
+
- README.md
|
56
51
|
- Rakefile
|
57
52
|
- guard-middleman.gemspec
|
58
53
|
- lib/guard/middleman.rb
|
@@ -60,26 +55,25 @@ files:
|
|
60
55
|
- lib/guard/middleman/version.rb
|
61
56
|
homepage: http://rubygems.org/gems/guard-middleman
|
62
57
|
licenses: []
|
58
|
+
metadata: {}
|
63
59
|
post_install_message:
|
64
60
|
rdoc_options: []
|
65
61
|
require_paths:
|
66
62
|
- lib
|
67
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
64
|
requirements:
|
70
|
-
- -
|
65
|
+
- - ">="
|
71
66
|
- !ruby/object:Gem::Version
|
72
67
|
version: '0'
|
73
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
69
|
requirements:
|
76
|
-
- -
|
70
|
+
- - ">="
|
77
71
|
- !ruby/object:Gem::Version
|
78
72
|
version: '0'
|
79
73
|
requirements: []
|
80
74
|
rubyforge_project: guard-middleman
|
81
|
-
rubygems_version:
|
75
|
+
rubygems_version: 2.2.2
|
82
76
|
signing_key:
|
83
|
-
specification_version:
|
77
|
+
specification_version: 4
|
84
78
|
summary: Guard gem for Middleman
|
85
79
|
test_files: []
|
data/README.rdoc
DELETED