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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 838304f8086ccf74e9a4c44feee78027747a3625
4
- data.tar.gz: cfa7dc4bbedeb98446526fb1380c49c5070f1d6b
3
+ metadata.gz: 5fa928f6e8cdb69b69c12f2eded48d17444e4bcb
4
+ data.tar.gz: f23dd25c082f731bcf1d9a65575ad3e99de43431
5
5
  SHA512:
6
- metadata.gz: 5ba760bbb200a9b9464325cc121529ca7616854354e53e4613a923b16f85c11bfe626478bf8df19b124b1b3c68559b777c2b328b9399f1c1a42a588229bc9cc9
7
- data.tar.gz: 12484fa4f299017f487b0a95839d5d22c47f6d61b584ab764037ee60f34a20862d7b8b80391e264f4caacdeb501dd7985d519c57d10ce17ffa3594e3d175e600
6
+ metadata.gz: 05ce67b7f86f9777edd5c8e96637ffd13dff09037af861a6ff2de84dcc20de6ddd93fccb24a195e62fd4b801037e48186fc802d070cbe9f5be9fc8bfdce4d135
7
+ data.tar.gz: 24bcaeaa44f62782645ca8f4367a1dacdd4ce2c02201fa5db03fb90d86997dc6619425cb52fe6ca239f9053aacdff389b0aa0a43a19cfa95e7ec68c2a7e73aa5
@@ -18,7 +18,7 @@ module Dimples
18
18
 
19
19
  def self.default_paths
20
20
  {
21
- output: 'site',
21
+ output: 'public',
22
22
  archives: 'archives',
23
23
  posts: 'archives/%Y/%m/%d',
24
24
  categories: 'archives/categories'
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 public templates].each do |type|
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
- copy_assets
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 copy_assets
130
- return unless Dir.exist?(@paths[:sources][:public])
131
- FileUtils.cp_r(File.join(@paths[:sources][:public], '.'), @paths[:output])
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dimples
4
- VERSION = '5.1.1'
4
+ VERSION = '5.2.0'
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: 5.1.1
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan