nanoc3 3.1.0 → 3.1.1
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.
- data/NEWS.md +5 -0
- data/lib/nanoc3.rb +1 -1
- data/lib/nanoc3/filters/sass.rb +1 -1
- data/lib/nanoc3/tasks/validate.rake +5 -5
- metadata +3 -3
data/NEWS.md
CHANGED
data/lib/nanoc3.rb
CHANGED
data/lib/nanoc3/filters/sass.rb
CHANGED
@@ -53,7 +53,7 @@ module Nanoc3::Filters
|
|
53
53
|
# Convert to items
|
54
54
|
imported_items = imported_filenames.map do |filename|
|
55
55
|
normalized_filename = Pathname.new(filename).realpath
|
56
|
-
@items.find { |i| Pathname.new(i[:filename]).realpath == normalized_filename }
|
56
|
+
@items.find { |i| i[:filename] && Pathname.new(i[:filename]).realpath == normalized_filename }
|
57
57
|
end.compact
|
58
58
|
|
59
59
|
# Require compilation of each item
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
namespace :validate do
|
4
4
|
|
5
|
-
desc 'Validate the site
|
5
|
+
desc 'Validate the site’s HTML files'.make_compatible_with_env
|
6
6
|
task :html do
|
7
7
|
# Get output directory
|
8
8
|
site = Nanoc3::Site.new('.')
|
@@ -18,7 +18,7 @@ namespace :validate do
|
|
18
18
|
validator.run
|
19
19
|
end
|
20
20
|
|
21
|
-
desc 'Validate the site
|
21
|
+
desc 'Validate the site’s CSS files'.make_compatible_with_env
|
22
22
|
task :css do
|
23
23
|
# Get output directory
|
24
24
|
site = Nanoc3::Site.new('.')
|
@@ -36,7 +36,7 @@ namespace :validate do
|
|
36
36
|
|
37
37
|
namespace :links do
|
38
38
|
|
39
|
-
desc 'Validate the site’s internal links'
|
39
|
+
desc 'Validate the site’s internal links'.make_compatible_with_env
|
40
40
|
task :internal do
|
41
41
|
# Get output directory
|
42
42
|
site = Nanoc3::Site.new('.')
|
@@ -53,7 +53,7 @@ namespace :validate do
|
|
53
53
|
validator.run
|
54
54
|
end
|
55
55
|
|
56
|
-
desc 'Validate the site’s internal links'
|
56
|
+
desc 'Validate the site’s internal links'.make_compatible_with_env
|
57
57
|
task :external do
|
58
58
|
# Get output directory
|
59
59
|
site = Nanoc3::Site.new('.')
|
@@ -72,7 +72,7 @@ namespace :validate do
|
|
72
72
|
|
73
73
|
end
|
74
74
|
|
75
|
-
desc 'Validate the site’s internal and external links'
|
75
|
+
desc 'Validate the site’s internal and external links'.make_compatible_with_env
|
76
76
|
task :links do
|
77
77
|
# Get output directory
|
78
78
|
site = Nanoc3::Site.new('.')
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 3
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 3.1.
|
8
|
+
- 1
|
9
|
+
version: 3.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Denis Defreyne
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-05 00:00:00 +02:00
|
18
18
|
default_executable: nanoc3
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|