nanoc 4.1.2 → 4.1.3
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -8
- data/NEWS.md +7 -0
- data/lib/nanoc/extra/checking/checks/stale.rb +7 -1
- data/lib/nanoc/extra/checking/runner.rb +6 -2
- data/lib/nanoc/version.rb +1 -1
- 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: 012ea17572e6f5ce450f61ab43b4d403b0c59d5e
|
|
4
|
+
data.tar.gz: f9d48bcf89fe052d434b9c03fb34b87164f2a04b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec0466efe5a5c93b9b019da0d5d59b504bef75a08916ab12856998818e7f762303be85253295bbf788b455a6b45b4086b4c2ea940ce7c94f51e946706f618a41
|
|
7
|
+
data.tar.gz: 77af4db8c9cd838a30774bb7f599fae40fd147010f626a8b71c22dfc8ed6f2486de228157f765c03746115968234a9e7d2a0c85deada56c13adbd3795c992f47
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
nanoc (4.1.
|
|
4
|
+
nanoc (4.1.3)
|
|
5
5
|
cri (~> 2.3)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -48,7 +48,7 @@ GEM
|
|
|
48
48
|
colored (~> 1.2)
|
|
49
49
|
diff-lcs (1.2.5)
|
|
50
50
|
docile (1.1.5)
|
|
51
|
-
domain_name (0.5.
|
|
51
|
+
domain_name (0.5.20160128)
|
|
52
52
|
unf (>= 0.0.5, < 1.0.0)
|
|
53
53
|
erubis (2.7.0)
|
|
54
54
|
excon (0.45.4)
|
|
@@ -156,7 +156,7 @@ GEM
|
|
|
156
156
|
fog-voxel (0.1.0)
|
|
157
157
|
fog-core
|
|
158
158
|
fog-xml
|
|
159
|
-
fog-vsphere (0.
|
|
159
|
+
fog-vsphere (0.6.0)
|
|
160
160
|
fog-core
|
|
161
161
|
rbvmomi (~> 1.8)
|
|
162
162
|
fog-xenserver (0.2.3)
|
|
@@ -205,20 +205,20 @@ GEM
|
|
|
205
205
|
method_source (0.8.2)
|
|
206
206
|
mime-types (2.99)
|
|
207
207
|
mini_portile2 (2.0.0)
|
|
208
|
-
minitest (5.8.
|
|
208
|
+
minitest (5.8.4)
|
|
209
209
|
mocha (1.1.0)
|
|
210
210
|
metaclass (~> 0.0.1)
|
|
211
211
|
multi_json (1.11.2)
|
|
212
212
|
mustache (1.0.2)
|
|
213
213
|
nenv (0.2.0)
|
|
214
214
|
netrc (0.11.0)
|
|
215
|
-
nokogiri (1.6.7.
|
|
215
|
+
nokogiri (1.6.7.2)
|
|
216
216
|
mini_portile2 (~> 2.0.0.rc2)
|
|
217
217
|
notiffany (0.0.8)
|
|
218
218
|
nenv (~> 0.1)
|
|
219
219
|
shellany (~> 0.0)
|
|
220
220
|
pandoc-ruby (1.0.0)
|
|
221
|
-
parser (2.3.0.
|
|
221
|
+
parser (2.3.0.2)
|
|
222
222
|
ast (~> 2.2)
|
|
223
223
|
posix-spawn (0.3.11)
|
|
224
224
|
powerpack (0.1.1)
|
|
@@ -230,7 +230,7 @@ GEM
|
|
|
230
230
|
posix-spawn (~> 0.3.6)
|
|
231
231
|
yajl-ruby (~> 1.2.0)
|
|
232
232
|
rack (1.6.4)
|
|
233
|
-
rainbow (2.
|
|
233
|
+
rainbow (2.1.0)
|
|
234
234
|
rainpress (1.0)
|
|
235
235
|
rake (10.5.0)
|
|
236
236
|
rb-fsevent (0.9.7)
|
|
@@ -253,7 +253,7 @@ GEM
|
|
|
253
253
|
rspec-core (~> 3.4.0)
|
|
254
254
|
rspec-expectations (~> 3.4.0)
|
|
255
255
|
rspec-mocks (~> 3.4.0)
|
|
256
|
-
rspec-core (3.4.
|
|
256
|
+
rspec-core (3.4.2)
|
|
257
257
|
rspec-support (~> 3.4.0)
|
|
258
258
|
rspec-expectations (3.4.0)
|
|
259
259
|
diff-lcs (>= 1.2.0, < 2.0)
|
data/NEWS.md
CHANGED
|
@@ -4,7 +4,13 @@ module Nanoc::Extra::Checking::Checks
|
|
|
4
4
|
def run
|
|
5
5
|
require 'set'
|
|
6
6
|
|
|
7
|
-
item_rep_paths =
|
|
7
|
+
item_rep_paths =
|
|
8
|
+
Set.new(
|
|
9
|
+
@items
|
|
10
|
+
.flat_map(&:reps)
|
|
11
|
+
.map(&:unwrap)
|
|
12
|
+
.flat_map(&:raw_paths)
|
|
13
|
+
.flat_map(&:values))
|
|
8
14
|
|
|
9
15
|
output_filenames.each do |f|
|
|
10
16
|
next if pruner.filename_excluded?(f)
|
|
@@ -129,17 +129,21 @@ module Nanoc::Extra::Checking
|
|
|
129
129
|
issues
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
+
def subject_to_s(s)
|
|
133
|
+
s || '(global)'
|
|
134
|
+
end
|
|
135
|
+
|
|
132
136
|
def print_issues(issues)
|
|
133
137
|
require 'colored'
|
|
134
138
|
|
|
135
139
|
return if issues.empty?
|
|
136
140
|
puts 'Issues found!'
|
|
137
|
-
issues.group_by(&:subject).to_a.sort_by(
|
|
141
|
+
issues.group_by(&:subject).to_a.sort_by { |s| subject_to_s(s.first) }.each do |pair|
|
|
138
142
|
subject = pair.first
|
|
139
143
|
issues = pair.last
|
|
140
144
|
next if issues.empty?
|
|
141
145
|
|
|
142
|
-
puts " #{subject}:"
|
|
146
|
+
puts " #{subject_to_s(subject)}:"
|
|
143
147
|
issues.each do |i|
|
|
144
148
|
puts " [ #{'ERROR'.red} ] #{i.check_class.identifier} - #{i.description}"
|
|
145
149
|
end
|
data/lib/nanoc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nanoc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Denis Defreyne
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cri
|