guard-nanoc 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.md +5 -0
- data/lib/guard/nanoc.rb +10 -0
- data/lib/guard/nanoc/version.rb +1 -1
- metadata +11 -5
- checksums.yaml +0 -15
data/NEWS.md
CHANGED
data/lib/guard/nanoc.rb
CHANGED
@@ -63,6 +63,7 @@ module Guard
|
|
63
63
|
Dir.chdir(@dir) do
|
64
64
|
site = ::Nanoc::Site.new('.')
|
65
65
|
site.compile
|
66
|
+
self.prune(site)
|
66
67
|
end
|
67
68
|
self.notify_success
|
68
69
|
rescue ::Nanoc::Errors::GenericTrivial => e
|
@@ -73,6 +74,15 @@ module Guard
|
|
73
74
|
::Nanoc::CLI::ErrorHandler.print_error(e)
|
74
75
|
end
|
75
76
|
|
77
|
+
def prune(site)
|
78
|
+
prune_config = site.config.fetch(:prune, {})
|
79
|
+
auto_prune_enabled = prune_config.fetch(:auto_prune, false)
|
80
|
+
if auto_prune_enabled
|
81
|
+
exclude = prune_config.fetch(:exclude, [])
|
82
|
+
::Nanoc::Extra::Pruner.new(site, :exclude => exclude).run
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
76
86
|
def notify_success
|
77
87
|
Notifier.notify('Compilation succeeded', :title => 'nanoc', :image => :success)
|
78
88
|
::Guard::UI.info 'Compilation succeeded.'
|
data/lib/guard/nanoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-nanoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Denis Defreyne
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-11-27 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: guard
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: nanoc
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -56,26 +61,27 @@ files:
|
|
56
61
|
homepage: http://nanoc.ws/
|
57
62
|
licenses:
|
58
63
|
- MIT
|
59
|
-
metadata: {}
|
60
64
|
post_install_message:
|
61
65
|
rdoc_options: []
|
62
66
|
require_paths:
|
63
67
|
- lib
|
64
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
65
70
|
requirements:
|
66
71
|
- - ! '>='
|
67
72
|
- !ruby/object:Gem::Version
|
68
73
|
version: '0'
|
69
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
70
76
|
requirements:
|
71
77
|
- - ! '>='
|
72
78
|
- !ruby/object:Gem::Version
|
73
79
|
version: '0'
|
74
80
|
requirements: []
|
75
81
|
rubyforge_project:
|
76
|
-
rubygems_version:
|
82
|
+
rubygems_version: 1.8.23
|
77
83
|
signing_key:
|
78
|
-
specification_version:
|
84
|
+
specification_version: 3
|
79
85
|
summary: guard gem for nanoc
|
80
86
|
test_files: []
|
81
87
|
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
MDYwYzI0OTQ0M2UxMTg1ZDI4NTIxMjNmNzI2NzhlY2U0ZmQ4ODVmYw==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NWJlZDcwNDA3ZjQwZTk2ZGIxZmRiZjk3NDI2YWM2Y2E0ZjdlYThkNg==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
M2RmNDU2ZmIyNzc5MWUyMjI3OTA3M2E1NDQ2NDE5N2E4MWE0N2U5YTViZGYw
|
10
|
-
YmUyMzFiOTcyYWUxOGNjZjc4NGQyMTRmZGE5NmE4ZmYzNDIyN2UzNWFjMmQ3
|
11
|
-
MDg0Y2RhMjBiYTUyMGQ0MmM0ZWFhNjljNjI1YjcwNTYxMDczMDE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NzNjZmU3ZGJiYWZlYjEyZTMyNjY1ZjhhOGNkOGQwNzEwYTUzNTgwNDk3OWVm
|
14
|
-
ODc5YmIxMDhkNjIwOTM0ZjRiNmFkZTJhOTc4MThjZjRjMGYyYjBiY2YzZGRj
|
15
|
-
MWIyMDMwZjdkNjc3MzdmOTc4NmE2ZTcxY2I5NmIwNDk3OTM1M2U=
|