nanoc 1.3 → 1.3.1

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.
Files changed (4) hide show
  1. data/ChangeLog +6 -1
  2. data/lib/compiler.rb +8 -2
  3. data/lib/nanoc.rb +1 -1
  4. metadata +2 -2
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.3.1
2
+
3
+ * The contents of the 'assets' directory are now copied into the output
4
+ directory specified in 'config.yaml'
5
+
1
6
  == 1.3
2
7
 
3
8
  * The @pages array now also contains uncompiled pages
@@ -22,7 +27,7 @@
22
27
 
23
28
  == 1.1.3
24
29
 
25
- * Fixed bug which would cause pages without layouts to be outputed incorrectly
30
+ * Fixed bug which would cause layoutless pages to be outputted incorrectly
26
31
 
27
32
  == 1.1.2
28
33
 
data/lib/compiler.rb CHANGED
@@ -63,8 +63,14 @@ module Nanoc
63
63
 
64
64
  # Copies the contents of the assets directory into the output directory
65
65
  def copy_assets
66
- Dir['assets/*'].each { |f| FileUtils.remove_entry_secure(f.sub('assets/', 'output/'), true) }
67
- FileUtils.cp_r(Dir['assets/*'], 'output') if File.directory?('assets') and !Dir['assets/*'].empty?
66
+ # Create output assets directory if necessary
67
+ FileUtils.mkdir_p(@config[:output_dir])
68
+
69
+ # Remove existing assets
70
+ Dir['assets/*'].each { |f| FileUtils.remove_entry_secure(f.sub('assets/', @config[:output_dir] + '/'), true) }
71
+
72
+ # Copy assets
73
+ FileUtils.cp_r(Dir['assets/*'], @config[:output_dir]) if File.directory?('assets') and !Dir['assets/*'].empty?
68
74
  end
69
75
 
70
76
  # Returns a list of uncompiled pages
data/lib/nanoc.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Nanoc
2
- VERSION = '1.3'
2
+ VERSION = '1.3.1'
3
3
 
4
4
  def self.ensure_in_site
5
5
  unless in_site?
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: nanoc
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.3"
7
- date: 2007-06-24 00:00:00 +02:00
6
+ version: 1.3.1
7
+ date: 2007-06-30 00:00:00 +02:00
8
8
  summary: a CMS that doesn't run on your server
9
9
  require_paths:
10
10
  - lib