nanoc-sprockets 0.1.0alpha1 → 0.1.0alpha2

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
  SHA1:
3
- metadata.gz: 2c4a67ef6c8941d02e31be27e34636fbefa41057
4
- data.tar.gz: 14ed26ea1a77c304fb82de4d2a7347bdf4750595
3
+ metadata.gz: 6ed331b2eac6877eaceebd6ee3837b2819a62a76
4
+ data.tar.gz: eb8d220e931b1b618e1fda1a00bbe935a1ef9d11
5
5
  SHA512:
6
- metadata.gz: 85f4cff1e51e1c37fc12e53324705cfe34a35388bda6db699ef609870805893dea4d771852b06e336bc3adf199b169634db16a3caa20931a338ca19be6f9dde7
7
- data.tar.gz: 96a345f74b109a60027cf10a0b7fb534cf27c6615d06c2e1ebced129ae4f5db517b667f55937d55d2653e5f1712c6b6a556e70138a1858587f4658f0af784ee7
6
+ metadata.gz: 0dc48a699cdf1a9332a9bbdc05069e0327e88a41dfdc44aad7e8be484812837b9a6837f4e9d815b0aace42817293c40ac00a9f949fe746b0c7936573babae733
7
+ data.tar.gz: d8bd50e001a62136474c84aa4f5e56daae9b1bdd187f169726638d3f3ffdc304ae9c355af820e2d01077283194a91d22591b15609788fb6066acab39665ed14b
@@ -22,12 +22,13 @@ module Nanoc::DataSources
22
22
  assets = environment.each_logical_path(*compiled_assets).to_a
23
23
 
24
24
  assets.map do |bundle|
25
+ identifier = "/#{bundle}"
25
26
  asset = environment.find_asset(bundle)
26
- is_binary = !!(asset.pathname && !@config[:text_extensions].include?(File.extname(asset.pathname)[1..-1]))
27
+ is_binary = !!(asset.pathname && !@site_config[:text_extensions].include?(File.extname(asset.pathname)[1..-1]))
27
28
 
28
29
  content_of_filename = is_binary ? asset.pathname : asset.to_s
29
- attributes = {filename: bundle, binary: is_binary, mtime: asset.mtime}
30
- @items.create(content_of_filename, attributes, bundle, attributes)
30
+ attributes = {filename: identifier, binary: is_binary, mtime: asset.mtime}
31
+ new_item(content_of_filename, attributes, identifier, attributes)
31
32
  end
32
33
  end
33
34
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'nanoc-sprockets'
5
- s.version = '0.1.0alpha1'
5
+ s.version = '0.1.0alpha2'
6
6
  s.summary = 'Use sprockets as a datasource for nanoc.'
7
7
  s.description = 'Use sprockets as a datasource for nanoc.'
8
8
  s.homepage = 'https://github.com/stormz/nanoc-sprockets'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0alpha1
4
+ version: 0.1.0alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - François de Metz