nanoc-sprockets 0.1.0alpha1 → 0.1.0alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nanoc-sprockets.rb +4 -3
- data/nanoc-sprockets.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ed331b2eac6877eaceebd6ee3837b2819a62a76
|
4
|
+
data.tar.gz: eb8d220e931b1b618e1fda1a00bbe935a1ef9d11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc48a699cdf1a9332a9bbdc05069e0327e88a41dfdc44aad7e8be484812837b9a6837f4e9d815b0aace42817293c40ac00a9f949fe746b0c7936573babae733
|
7
|
+
data.tar.gz: d8bd50e001a62136474c84aa4f5e56daae9b1bdd187f169726638d3f3ffdc304ae9c355af820e2d01077283194a91d22591b15609788fb6066acab39665ed14b
|
data/lib/nanoc-sprockets.rb
CHANGED
@@ -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 && !@
|
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:
|
30
|
-
|
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
|
|
data/nanoc-sprockets.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'nanoc-sprockets'
|
5
|
-
s.version = '0.1.
|
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'
|