dimples 5.2.0 → 5.3.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/bin/dimples +4 -1
- data/lib/dimples/configuration.rb +1 -1
- data/lib/dimples/site.rb +2 -1
- 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: 8de1cf00a275eddf10f14ea1ce492a5531dcb87a
|
|
4
|
+
data.tar.gz: 995b71622c8887d45bf7c71e88c97629605e9717
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c37e1859f642bb688a97e8eb8e362d0624c1ae118a30969ce1705d945eea613f59d399e756ce0ece57fb41e1704744df2733668eccc0542ba15e5224ad221c2b
|
|
7
|
+
data.tar.gz: d40e715a139a239ae335196c1c2c7082a9d026a93770caf07145a8e92fbdb3650881d8f0e958989d41148e4248dac5942a0b7862eecf126df10a1abe571954f7
|
data/bin/dimples
CHANGED
|
@@ -26,6 +26,7 @@ dimples <#{valid_commands.join('|')}> [options]
|
|
|
26
26
|
Options:
|
|
27
27
|
BANNER
|
|
28
28
|
opt :config, 'Config file path', type: :string
|
|
29
|
+
opt :output, 'Destination directory', type: :string
|
|
29
30
|
opt :verbose, 'Verbose mode', default: false
|
|
30
31
|
end
|
|
31
32
|
|
|
@@ -58,6 +59,8 @@ if Dir.exist?(plugins_path)
|
|
|
58
59
|
end
|
|
59
60
|
end
|
|
60
61
|
|
|
62
|
+
config[:paths][:output] = options[:output] if options[:output]
|
|
63
|
+
|
|
61
64
|
site = Dimples::Site.new(config)
|
|
62
65
|
|
|
63
66
|
case command.to_sym
|
|
@@ -67,7 +70,7 @@ when :build
|
|
|
67
70
|
site.generate
|
|
68
71
|
|
|
69
72
|
if site.errors.empty?
|
|
70
|
-
puts
|
|
73
|
+
puts "Done! Your site has been built (#{site.paths[:output]})."
|
|
71
74
|
else
|
|
72
75
|
puts 'Generation failed:'
|
|
73
76
|
site.errors.each { |error| puts error }
|
data/lib/dimples/site.rb
CHANGED
|
@@ -17,7 +17,8 @@ module Dimples
|
|
|
17
17
|
|
|
18
18
|
@paths = {}.tap do |paths|
|
|
19
19
|
paths[:base] = Dir.pwd
|
|
20
|
-
paths[:output] = File.
|
|
20
|
+
paths[:output] = File.expand_path(@config.paths.output)
|
|
21
|
+
|
|
21
22
|
paths[:sources] = {}.tap do |sources|
|
|
22
23
|
%w[pages posts static templates].each do |type|
|
|
23
24
|
sources[type.to_sym] = File.join(paths[:base], type)
|
data/lib/dimples/version.rb
CHANGED