nanoc 4.1.2 → 4.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd86fc55ceec9ba602815f93e624bd54c07d40fe
4
- data.tar.gz: 112408b4eeb610c80a18acecd4ed9c2216cbb084
3
+ metadata.gz: 012ea17572e6f5ce450f61ab43b4d403b0c59d5e
4
+ data.tar.gz: f9d48bcf89fe052d434b9c03fb34b87164f2a04b
5
5
  SHA512:
6
- metadata.gz: 00c8461d90463a7c21225138a56f3a5ef2bd8f682f105a0319353cdea1d021a4c8b04116011ea865cf1847b4a26870e1d67f84b51fc7786e561c5ddfc124a580
7
- data.tar.gz: 3a82634d317ddd970232ba19460e5c48d2046e41ab61925990b0e833cdc736c8b1dada7d0e8dcf183e1cfe6a2fa54933ff826d7d58f77c673fe2e59521773fcd
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.2)
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.25)
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.4.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.3)
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.1)
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.1)
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.0.0)
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.1)
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
@@ -1,5 +1,12 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.1.3 (2016-01-30)
4
+
5
+ Fixes:
6
+
7
+ * Fixed crash in `check` command when the subject of an issue is nil (#804, #811)
8
+ * Made stale check not ignore non-final snapshot paths (#809, #810)
9
+
3
10
  ## 4.1.2 (2016-01-16)
4
11
 
5
12
  Fixes:
@@ -4,7 +4,13 @@ module Nanoc::Extra::Checking::Checks
4
4
  def run
5
5
  require 'set'
6
6
 
7
- item_rep_paths = Set.new(@items.map(&:reps).flatten.map(&:raw_path))
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(&:first).each do |pair|
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
@@ -1,4 +1,4 @@
1
1
  module Nanoc
2
2
  # The current Nanoc version.
3
- VERSION = '4.1.2'.freeze
3
+ VERSION = '4.1.3'.freeze
4
4
  end
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.2
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-16 00:00:00.000000000 Z
11
+ date: 2016-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cri