nanoc 1.3 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +6 -1
- data/lib/compiler.rb +8 -2
- data/lib/nanoc.rb +1 -1
- 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
|
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
|
-
|
67
|
-
FileUtils.
|
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
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:
|
7
|
-
date: 2007-06-
|
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
|