public
Rubygem
Description: A lightweight and flexible website management system.
Homepage: http://webby.rubyforge.org/
Clone URL: git://github.com/TwP/webby.git
fixing file extension bug
TwP (author)
Thu Jan 03 10:24:52 -0800 2008
commit  ef10cc131f6324ef235cb0ad780809c08e0dc727
tree    ad41c095e8173a780a6061252775715a3f1da019
parent  f8a3e83b863d033b68c54baeb3630ad1738a6b1e
...
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
0
@@ -1,3 +1,8 @@
0
+== 0.7.1 /
0
+
0
+* 1 bug fix
0
+ - No longer appending a '.' to files without an extension (.htaccess)
0
+
0
 == 0.7.0 / 2008-01-01
0
 
0
 * 1 major enhancement
...
14
15
16
17
 
18
19
20
...
14
15
16
 
17
18
19
20
0
@@ -14,7 +14,7 @@ Logging::Appender.stdout.layout = Logging::Layouts::Pattern.new(
0
 
0
 module Webby
0
 
0
- VERSION = '0.7.0' # :nodoc:
0
+ VERSION = '0.7.1' # :nodoc:
0
 
0
   # Path to the Webby package
0
   PATH = ::File.expand_path(::File.join(::File.dirname(__FILE__), '..'))
...
155
156
157
158
159
 
 
 
 
 
 
160
161
162
...
155
156
157
 
 
158
159
160
161
162
163
164
165
166
0
@@ -155,8 +155,12 @@ class Resource
0
 
0
     @dest = File.join(::Webby.site.output_dir, @dest)
0
     @dest << @number.to_s if @number
0
- @dest << '.'
0
- @dest << extension
0
+
0
+ ext = extension
0
+ unless ext.nil? or ext.empty?
0
+ @dest << '.'
0
+ @dest << ext
0
+ end
0
     @dest
0
   end
0
 

Comments

    No one has commented yet.