nanoc 4.9.5 → 4.9.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f224f071cecc273a23f6d961d106991618d769889c3eef050ef9d7fd3f9381de
4
- data.tar.gz: 4759d9512e3262e94e4ded8025362d7722d3b2ad1eab03228754a0c2c7b56479
3
+ metadata.gz: 8491f07ee37d39dae6c84cb13f3cde0ec967a2fa723d3c6c0ae21283c13d205d
4
+ data.tar.gz: 57984873a1fd8f9ecde937539b98e19689d6f08e819e30bc76e328e61807531f
5
5
  SHA512:
6
- metadata.gz: 176c04992e95e48e76c85ada608de2d526471749302dc0c6474467e1f340374db6b227501b07d65851e80f7641ac92ebb29526b6f652fbaf5289fb14e994bf45
7
- data.tar.gz: 9836c7964b3567b6d17c9366c20fde2ecb73f2e0d01a48a29fd2d88182b8ae777b2a89e37fce45f01694bdcf040a245a0b543c9929eb981bf7ef5c6a0e30b443
6
+ metadata.gz: 411feb568085bee7a5d28d8941f1b84dc0d573f8f52684c9067035dc7a50e3844a757df62e7f89b874f0a7ee84d111c46de3c4310695f51ea28733d95400bf0f
7
+ data.tar.gz: 1397fbc30d9a1c717c9932174428baa7804b1460efdba033767b5f9efd83b1b6bd048bf9c04719d86c049559451667d6a10ce57a70b4b3d05e2132af43cade74
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.9.6 (2018-09-19)
4
+
5
+ Fixes:
6
+
7
+ * Fixed an issue which would cause the checksum of binary items created by the filesystem data source not to be updated when the content changes (#1358, #1359)
8
+
3
9
  ## 4.9.5 (2018-09-15)
4
10
 
5
11
  Fixes:
@@ -43,7 +43,7 @@ module Nanoc
43
43
  _unwrap.content.binary?
44
44
  end
45
45
 
46
- # @api private
46
+ # @return [String, nil] The path to the file containing the uncompiled content of this item.
47
47
  def raw_filename
48
48
  @context.dependency_tracker.bounce(_unwrap, raw_content: true)
49
49
  _unwrap.content.filename
@@ -201,9 +201,8 @@ module Nanoc::DataSources
201
201
  end
202
202
 
203
203
  def content_checksum_data_for(proto_doc)
204
- Digest::SHA1.digest(
205
- proto_doc.content_checksum_data || '',
206
- )
204
+ data = proto_doc.content_checksum_data
205
+ data ? Digest::SHA1.digest(data) : nil
207
206
  end
208
207
 
209
208
  def attributes_checksum_data_for(proto_doc, content_filename, meta_filename)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nanoc
4
4
  # The current Nanoc version.
5
- VERSION = '4.9.5'
5
+ VERSION = '4.9.6'
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.9.5
4
+ version: 4.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-15 00:00:00.000000000 Z
11
+ date: 2018-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable