dimples 5.1.1 → 5.2.0
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 +4 -4
- data/lib/dimples/configuration.rb +1 -1
- data/lib/dimples/site.rb +5 -5
- data/lib/dimples/version.rb +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: 5fa928f6e8cdb69b69c12f2eded48d17444e4bcb
|
|
4
|
+
data.tar.gz: f23dd25c082f731bcf1d9a65575ad3e99de43431
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05ce67b7f86f9777edd5c8e96637ffd13dff09037af861a6ff2de84dcc20de6ddd93fccb24a195e62fd4b801037e48186fc802d070cbe9f5be9fc8bfdce4d135
|
|
7
|
+
data.tar.gz: 24bcaeaa44f62782645ca8f4367a1dacdd4ce2c02201fa5db03fb90d86997dc6619425cb52fe6ca239f9053aacdff389b0aa0a43a19cfa95e7ec68c2a7e73aa5
|
data/lib/dimples/site.rb
CHANGED
|
@@ -19,7 +19,7 @@ module Dimples
|
|
|
19
19
|
paths[:base] = Dir.pwd
|
|
20
20
|
paths[:output] = File.join(paths[:base], @config.paths.output)
|
|
21
21
|
paths[:sources] = {}.tap do |sources|
|
|
22
|
-
%w[pages posts
|
|
22
|
+
%w[pages posts static templates].each do |type|
|
|
23
23
|
sources[type.to_sym] = File.join(paths[:base], type)
|
|
24
24
|
end
|
|
25
25
|
end
|
|
@@ -38,7 +38,7 @@ module Dimples
|
|
|
38
38
|
read_pages
|
|
39
39
|
|
|
40
40
|
create_output_directory
|
|
41
|
-
|
|
41
|
+
copy_static_assets
|
|
42
42
|
|
|
43
43
|
publish_posts
|
|
44
44
|
publish_pages
|
|
@@ -126,9 +126,9 @@ module Dimples
|
|
|
126
126
|
raise GenerationError, message
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
def
|
|
130
|
-
return unless Dir.exist?(@paths[:sources][:
|
|
131
|
-
FileUtils.cp_r(File.join(@paths[:sources][:
|
|
129
|
+
def copy_static_assets
|
|
130
|
+
return unless Dir.exist?(@paths[:sources][:static])
|
|
131
|
+
FileUtils.cp_r(File.join(@paths[:sources][:static], '.'), @paths[:output])
|
|
132
132
|
rescue StandardError => e
|
|
133
133
|
raise GenerationError, "Failed to copy site assets (#{e.message})"
|
|
134
134
|
end
|
data/lib/dimples/version.rb
CHANGED