nanoc3 3.2.0b3 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nanoc3/base/core_ext/hash.rb +1 -1
- data/lib/nanoc3/cli/commands/debug.rb +24 -3
- data/lib/nanoc3.rb +1 -1
- metadata +35 -6
@@ -37,9 +37,13 @@ module Nanoc3::CLI::Commands
|
|
37
37
|
puts
|
38
38
|
items.sort_by { |i| i.identifier }.each do |item|
|
39
39
|
puts "item #{item.identifier} depends on:"
|
40
|
-
predecessors = dependency_tracker.objects_causing_outdatedness_of(item).sort_by { |i| i.identifier }
|
40
|
+
predecessors = dependency_tracker.objects_causing_outdatedness_of(item).sort_by { |i| i ? i.identifier : '' }
|
41
41
|
predecessors.each do |pred|
|
42
|
-
|
42
|
+
if pred
|
43
|
+
puts " [ #{format '%6s', pred.type} ] #{pred.identifier}"
|
44
|
+
else
|
45
|
+
puts " ( removed item )"
|
46
|
+
end
|
43
47
|
end
|
44
48
|
puts " (nothing)" if predecessors.empty?
|
45
49
|
puts
|
@@ -78,10 +82,27 @@ module Nanoc3::CLI::Commands
|
|
78
82
|
puts
|
79
83
|
end
|
80
84
|
|
85
|
+
# Print layout dependencies
|
86
|
+
puts '=== Layout dependencies ====================================================='
|
87
|
+
puts
|
88
|
+
layouts.sort_by { |l| l.identifier }.each do |layout|
|
89
|
+
puts "layout #{layout.identifier} depends on:"
|
90
|
+
predecessors = dependency_tracker.objects_causing_outdatedness_of(layout).sort_by { |i| i ? i.identifier : '' }
|
91
|
+
predecessors.each do |pred|
|
92
|
+
if pred
|
93
|
+
puts " [ #{format '%6s', pred.type} ] #{pred.identifier}"
|
94
|
+
else
|
95
|
+
puts " ( removed item )"
|
96
|
+
end
|
97
|
+
end
|
98
|
+
puts " (nothing)" if predecessors.empty?
|
99
|
+
puts
|
100
|
+
end
|
101
|
+
|
81
102
|
# Print layouts
|
82
103
|
puts '=== Layouts'
|
83
104
|
puts
|
84
|
-
layouts.each do |layout|
|
105
|
+
layouts.sort_by { |l| l.identifier }.each do |layout|
|
85
106
|
puts "layout #{layout.identifier}:"
|
86
107
|
outdatedness_reason = compiler.outdatedness_checker.outdatedness_reason_for(layout)
|
87
108
|
if outdatedness_reason
|
data/lib/nanoc3.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
hash: 15
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 3.2.0
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Denis Defreyne
|
@@ -10,7 +15,8 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2011-07-
|
18
|
+
date: 2011-07-24 00:00:00 +02:00
|
19
|
+
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: cri
|
@@ -20,6 +26,10 @@ dependencies:
|
|
20
26
|
requirements:
|
21
27
|
- - ~>
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 0
|
23
33
|
version: "2.0"
|
24
34
|
type: :runtime
|
25
35
|
version_requirements: *id001
|
@@ -31,6 +41,9 @@ dependencies:
|
|
31
41
|
requirements:
|
32
42
|
- - ">="
|
33
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
34
47
|
version: "0"
|
35
48
|
type: :development
|
36
49
|
version_requirements: *id002
|
@@ -42,6 +55,9 @@ dependencies:
|
|
42
55
|
requirements:
|
43
56
|
- - ">="
|
44
57
|
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
45
61
|
version: "0"
|
46
62
|
type: :development
|
47
63
|
version_requirements: *id003
|
@@ -53,6 +69,9 @@ dependencies:
|
|
53
69
|
requirements:
|
54
70
|
- - ">="
|
55
71
|
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
56
75
|
version: "0"
|
57
76
|
type: :development
|
58
77
|
version_requirements: *id004
|
@@ -64,6 +83,9 @@ dependencies:
|
|
64
83
|
requirements:
|
65
84
|
- - ">="
|
66
85
|
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
67
89
|
version: "0"
|
68
90
|
type: :development
|
69
91
|
version_requirements: *id005
|
@@ -288,6 +310,7 @@ files:
|
|
288
310
|
- test/tasks/test_clean.rb
|
289
311
|
- nanoc3.gemspec
|
290
312
|
- .gemtest
|
313
|
+
has_rdoc: true
|
291
314
|
homepage: http://nanoc.stoneship.org/
|
292
315
|
licenses: []
|
293
316
|
|
@@ -317,17 +340,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
317
340
|
requirements:
|
318
341
|
- - ">="
|
319
342
|
- !ruby/object:Gem::Version
|
343
|
+
hash: 3
|
344
|
+
segments:
|
345
|
+
- 0
|
320
346
|
version: "0"
|
321
347
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
322
348
|
none: false
|
323
349
|
requirements:
|
324
|
-
- - "
|
350
|
+
- - ">="
|
325
351
|
- !ruby/object:Gem::Version
|
326
|
-
|
352
|
+
hash: 3
|
353
|
+
segments:
|
354
|
+
- 0
|
355
|
+
version: "0"
|
327
356
|
requirements: []
|
328
357
|
|
329
358
|
rubyforge_project:
|
330
|
-
rubygems_version: 1.
|
359
|
+
rubygems_version: 1.6.2
|
331
360
|
signing_key:
|
332
361
|
specification_version: 3
|
333
362
|
summary: a web publishing system written in Ruby for building small to medium-sized websites.
|