nanoc 4.11.6 → 4.11.7

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: 4f496f51806769179378bf62baf2dbb44b25d30d693b6633e660e4fcbb231018
4
- data.tar.gz: 0f5537bcfaf52c942b5f9e700f6db79cea7e377a26ff5efa06ee1f268d0b5bbd
3
+ metadata.gz: 1947e66583dba093b70cfaa53da66db62190c2bd2cf1ff7868a9d7183ad40eab
4
+ data.tar.gz: e4aa5e8c250ca5c1ae9bb262038927620090ac00361436641abaf383eed3dce5
5
5
  SHA512:
6
- metadata.gz: 5d2c628542ba571d14a032338e4f8cc7ccf27d35836f727056d8fb68621065118dfdd3f5f53bf91eea5734de66cfde6f74478345f748129a88f30c9fd47dec6e
7
- data.tar.gz: 89e5f4747eb9596dc3af6c905600672ba1be957d350f13508443836450d58121bb81fa6082efe8fed95763fe3fec2298bfa36f543021c2343ebc4dcd0bc9905e
6
+ metadata.gz: 18649adb453cbe026f6f816fe3776eeffbb3d95dea2fafeb0b90553293f050de96f7392fd2a350f60b33f951af6ba4e5b2b432df6a7e5096e1bab8970f25064a
7
+ data.tar.gz: 65c4c29ceabe0d457561fe5376b2ff7da618db4d48cae4811ff242ec37867fa34223ab948e2e66686bb8f981ccbb88a34e8a1e46a3eb42e03eb008d98dca7f8e
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.11.7 (2019-07-28)
4
+
5
+ Fixes:
6
+
7
+ * Fixed handling of protocol-relative URLs (#1444)
8
+
3
9
  ## 4.11.6 (2019-07-06)
4
10
 
5
11
  Fixes:
@@ -113,10 +113,15 @@ module ::Nanoc::Extra
113
113
 
114
114
  # Resolve paths relative to the filename, return invalid URIs as-is
115
115
  uris.map! do |uri|
116
- begin
117
- URI.join(base_uri, uri).to_s
118
- rescue
116
+ if uri.start_with?('//')
117
+ # Don’t modify protocol-relative URLs. They’re absolute!
119
118
  uri
119
+ else
120
+ begin
121
+ URI.join(base_uri, uri).to_s
122
+ rescue
123
+ uri
124
+ end
120
125
  end
121
126
  end
122
127
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nanoc
4
4
  # The current Nanoc version.
5
- VERSION = '4.11.6'
5
+ VERSION = '4.11.7'
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.6
4
+ version: 4.11.7
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-06 00:00:00.000000000 Z
11
+ date: 2019-07-28 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.6
61
+ version: 4.11.7
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.6
68
+ version: 4.11.7
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: parallel
71
71
  requirement: !ruby/object:Gem::Requirement