dimples 4.3.1 → 4.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d314797ce4747e1c305743c212319cb1778c3910
4
- data.tar.gz: f28526cfb45fd901bcf30d1038eddb0df1df9d1f
3
+ metadata.gz: 6bdfb2eae683d3ef78e118e1096319d376db8434
4
+ data.tar.gz: 402257f0a0610c45baef474482acbe5dc8bf7d94
5
5
  SHA512:
6
- metadata.gz: ac4e61d0b95767e87465ac1b94cc0980d4f96a067f295e87c3c970b3f29c3f1c6e6c4009ceee72ce5ee1b7c256df28f1194dc650cb6b87c662313f0495291753
7
- data.tar.gz: 93de12c5d952b594f85d6d3fad884c82276ab376e838f85a1bedd9d05dc0a284426152d0b1602fc4abfdf8f9c27986bd2ca87a869dc3c9be3fa5c9f4bf24f804
6
+ metadata.gz: 81064093be0ee7d0c8dc535d99a49e2be396fc5d00132b83c6b869161d5fed9afddd7fdda1616feb496f1d86e235865230ab0fe7de07525e123a188b75954882
7
+ data.tar.gz: fb65a564e482f7210beb4fa62c1e881847bbe1e0005ddaa1ce97661f4aae72a70a5ef77e0508f7b1e4ba4167c38aafdf999e9e0e03a7337effc565c476347333
data/lib/dimples/site.rb CHANGED
@@ -45,15 +45,7 @@ module Dimples
45
45
  def generate
46
46
  scan_files
47
47
  prepare_output_directory
48
- publish_files
49
- copy_assets
50
- rescue Errors::RenderingError,
51
- Errors::PublishingError,
52
- Errors::GenerationError => e
53
- @errors << e.message
54
- end
55
48
 
56
- def publish_files
57
49
  publish_pages unless @pages.count.zero?
58
50
 
59
51
  unless @posts.count.zero?
@@ -61,6 +53,12 @@ module Dimples
61
53
  publish_archives
62
54
  publish_categories if @config[:generation][:categories]
63
55
  end
56
+
57
+ copy_assets
58
+ rescue Errors::RenderingError,
59
+ Errors::PublishingError,
60
+ Errors::GenerationError => e
61
+ @errors << e.message
64
62
  end
65
63
 
66
64
  def generated?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dimples
4
- VERSION = '4.3.1'
4
+ VERSION = '4.3.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dimples
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan