nanoc 4.11.7 → 4.11.8
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f221e83491fb5157ec4e0cfae4b10b38a5d5d4987bf09082fb002817aed80ac
|
4
|
+
data.tar.gz: e8676d508ead44666a32347bc80334d583113e45fb4af813d68c25dcf87096a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e058a5e4c84aa2d1578e069da9b8d6c237229e479c6c147f47681772670652156fd3aef15e9f2847a9bd87e63e413316edd5fd8c1e916382e2c486cfef15bfbf
|
7
|
+
data.tar.gz: 6377f60685b7c93d8268d6172f2a9e7a1acb2a62bf9bd991307a1b78c74211d3845cb6fb7932a0b2e9512c00a3c1c88e0e5e192912bf0896b682510c6602741f
|
data/NEWS.md
CHANGED
@@ -51,7 +51,7 @@ module Nanoc
|
|
51
51
|
def find_all(arg = NOTHING, &block)
|
52
52
|
if NOTHING.equal?(arg)
|
53
53
|
@context.dependency_tracker.bounce(_unwrap, raw_content: true)
|
54
|
-
return @objects.
|
54
|
+
return @objects.map { |i| view_class.new(i, @context) }.select(&block)
|
55
55
|
end
|
56
56
|
|
57
57
|
prop_attribute =
|
@@ -42,7 +42,7 @@ module Nanoc::Checking::Checks
|
|
42
42
|
output_dir = @config.output_dir
|
43
43
|
output_dir += '/' unless output_dir.end_with?('/')
|
44
44
|
base_uri = URI("file://#{output_dir}")
|
45
|
-
path = href.sub(/#{base_uri
|
45
|
+
path = href.sub(/#{base_uri}/, '').sub(/file:\/{1,3}/, '')
|
46
46
|
|
47
47
|
path = "/#{path}" unless path.start_with?('/')
|
48
48
|
|
@@ -34,8 +34,8 @@ module Nanoc::Filters
|
|
34
34
|
# Render
|
35
35
|
if with_toc
|
36
36
|
renderer_toc = ::Redcarpet::Render::HTML_TOC.new
|
37
|
-
toc
|
38
|
-
body = ::Redcarpet::Markdown.new(renderer,
|
37
|
+
toc = ::Redcarpet::Markdown.new(renderer_toc, options).render(content)
|
38
|
+
body = ::Redcarpet::Markdown.new(renderer, options).render(content)
|
39
39
|
toc + body
|
40
40
|
else
|
41
41
|
::Redcarpet::Markdown.new(renderer, options).render(content)
|
data/lib/nanoc/filters/sass.rb
CHANGED
@@ -41,7 +41,7 @@ module Nanoc::Filters
|
|
41
41
|
[css.gsub(%r{^/\*#\s+sourceMappingURL=\s*#{sourcemap_path}\s*\*/$}, "/*# sourceMappingURL=#{encoded} */")]
|
42
42
|
else
|
43
43
|
sourcemap = sourcemap&.to_json(css_path: css_path, sourcemap_path: sourcemap_path, type: params[:sources_content] ? :inline : :auto)
|
44
|
-
sourcemap = sourcemap&.split("\n")&.reject { |l| l =~ /^\s*"file":\s*"#{filter.object_id
|
44
|
+
sourcemap = sourcemap&.split("\n")&.reject { |l| l =~ /^\s*"file":\s*"#{filter.object_id}"\s*$/ }&.join("\n")
|
45
45
|
[css, sourcemap]
|
46
46
|
end
|
47
47
|
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.11.
|
4
|
+
version: 4.11.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.11.
|
61
|
+
version: 4.11.8
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.11.
|
68
|
+
version: 4.11.8
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: parallel
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|