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: 1947e66583dba093b70cfaa53da66db62190c2bd2cf1ff7868a9d7183ad40eab
4
- data.tar.gz: e4aa5e8c250ca5c1ae9bb262038927620090ac00361436641abaf383eed3dce5
3
+ metadata.gz: 5f221e83491fb5157ec4e0cfae4b10b38a5d5d4987bf09082fb002817aed80ac
4
+ data.tar.gz: e8676d508ead44666a32347bc80334d583113e45fb4af813d68c25dcf87096a8
5
5
  SHA512:
6
- metadata.gz: 18649adb453cbe026f6f816fe3776eeffbb3d95dea2fafeb0b90553293f050de96f7392fd2a350f60b33f951af6ba4e5b2b432df6a7e5096e1bab8970f25064a
7
- data.tar.gz: 65c4c29ceabe0d457561fe5376b2ff7da618db4d48cae4811ff242ec37867fa34223ab948e2e66686bb8f981ccbb88a34e8a1e46a3eb42e03eb008d98dca7f8e
6
+ metadata.gz: e058a5e4c84aa2d1578e069da9b8d6c237229e479c6c147f47681772670652156fd3aef15e9f2847a9bd87e63e413316edd5fd8c1e916382e2c486cfef15bfbf
7
+ data.tar.gz: 6377f60685b7c93d8268d6172f2a9e7a1acb2a62bf9bd991307a1b78c74211d3845cb6fb7932a0b2e9512c00a3c1c88e0e5e192912bf0896b682510c6602741f
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.11.8 (2019-08-08)
4
+
5
+ Fixes:
6
+
7
+ * Fixed issue with `#find_all` yielding incorrect objects, causing a crash when attempting to access attributes (#1446, #1447)
8
+
3
9
  ## 4.11.7 (2019-07-28)
4
10
 
5
11
  Fixes:
@@ -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.select(&block).map { |i| view_class.new(i, @context) }
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.to_s}/, '').sub(/file:\/{1,3}/, '')
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 = ::Redcarpet::Markdown.new(renderer_toc, options).render(content)
38
- body = ::Redcarpet::Markdown.new(renderer, options).render(content)
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)
@@ -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.to_s}"\s*$/ }&.join("\n")
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nanoc
4
4
  # The current Nanoc version.
5
- VERSION = '4.11.7'
5
+ VERSION = '4.11.8'
6
6
  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.11.7
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-07-28 00:00:00.000000000 Z
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.7
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.7
68
+ version: 4.11.8
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: parallel
71
71
  requirement: !ruby/object:Gem::Requirement