webby 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +9 -1
- data/examples/webby/content/index.txt +1 -1
- data/examples/webby/content/manual.txt +19 -3
- data/lib/webby.rb +2 -2
- data/lib/webby/builder.rb +2 -2
- data/lib/webby/resource.rb +7 -3
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,9 +1,17 @@
|
|
1
|
+
== 0.7.1 / 2008-01-03
|
2
|
+
|
3
|
+
* 2 bug fixes
|
4
|
+
- No longer appending a '.' to files without an extension (like .htaccess)
|
5
|
+
(patch supplied by Stephen Duncan)
|
6
|
+
- Fixed a "No such file or directory" error when creating pages
|
7
|
+
from templates
|
8
|
+
|
1
9
|
== 0.7.0 / 2008-01-01
|
2
10
|
|
3
11
|
* 1 major enhancement
|
4
12
|
- Refactored how the filters are handled (thanks Bruce Williams)
|
5
13
|
* 2 minor enhancements
|
6
|
-
- Added helper methods for URL and
|
14
|
+
- Added helper methods for URL and anchor generation
|
7
15
|
- Added rake task to delete the generated website
|
8
16
|
* 2 bug fixes
|
9
17
|
- Fixed a bug arising from the order of the logger creation
|
@@ -1,12 +1,28 @@
|
|
1
1
|
---
|
2
2
|
title: Manual
|
3
3
|
created_at: Wed Aug 29 08:57:00 -0600 2007
|
4
|
-
filter:
|
5
|
-
- coderay
|
6
|
-
- textile
|
4
|
+
filter: textile
|
7
5
|
---
|
8
6
|
h2. Installation
|
9
7
|
|
8
|
+
Webby is an application written using the Ruby programming language. You will need to install a Ruby interpreter on your computer. Download and installation instructions can be found on the "Ruby":http://ruby-lang.org webiste. For the Windows platform, the one-click installer is recommended. Webby is not compatible with the Ruby 1.9.0 release; please use the Ruby 1.8.6 release.
|
9
|
+
|
10
|
+
You will also need to install RubyGems. If you used the Windows one-click installer, RubyGems is already present on your system. For everyone else you can find installation instructions on the "RubyGems":http://rubygems.org/read/chapter/3 website.
|
11
|
+
|
12
|
+
To install Webby and its dependent gems type the following command. Omit the @sudo@ portion for the Windows platform; you will need to specify the *mswin32* versions of the _mongrel_ and _hpricot_ dependent gems when prompted.
|
13
|
+
|
14
|
+
<pre class="code">
|
15
|
+
sudo gem install -y webby
|
16
|
+
</pre>
|
17
|
+
|
18
|
+
|
19
|
+
<pre class="code">
|
20
|
+
sudo gem install -y RedcCoth
|
21
|
+
sudo gem install -y BlueCloth
|
22
|
+
sudo gem install -y haml
|
23
|
+
sudo gem install -y coderay
|
24
|
+
</pre>
|
25
|
+
|
10
26
|
directory structure
|
11
27
|
|
12
28
|
* content
|
data/lib/webby.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: webby.rb
|
1
|
+
# $Id: webby.rb 91 2008-01-03 18:24:52Z tim_pease $
|
2
2
|
|
3
3
|
require 'logging'
|
4
4
|
require 'ostruct'
|
@@ -14,7 +14,7 @@ Logging::Appender.stdout.layout = Logging::Layouts::Pattern.new(
|
|
14
14
|
|
15
15
|
module Webby
|
16
16
|
|
17
|
-
VERSION = '0.7.
|
17
|
+
VERSION = '0.7.1' # :nodoc:
|
18
18
|
|
19
19
|
# Path to the Webby package
|
20
20
|
PATH = ::File.expand_path(::File.join(::File.dirname(__FILE__), '..'))
|
data/lib/webby/builder.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: builder.rb
|
1
|
+
# $Id: builder.rb 92 2008-01-03 19:41:51Z tim_pease $
|
2
2
|
|
3
3
|
require 'find'
|
4
4
|
require 'fileutils'
|
@@ -39,7 +39,7 @@ class Builder
|
|
39
39
|
raise Error, "#{page} already exists" if test ?e, page
|
40
40
|
|
41
41
|
Logging::Logger[self].info "creating #{page}"
|
42
|
-
FileUtils.mkdir_p File.dirname(page)
|
42
|
+
FileUtils.mkdir_p ::File.dirname(page)
|
43
43
|
str = ERB.new(::File.read(tmpl), nil, '-').result
|
44
44
|
::File.open(page, 'w') {|fd| fd.write str}
|
45
45
|
|
data/lib/webby/resource.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: resource.rb
|
1
|
+
# $Id: resource.rb 91 2008-01-03 18:24:52Z tim_pease $
|
2
2
|
|
3
3
|
module Webby
|
4
4
|
|
@@ -155,8 +155,12 @@ class Resource
|
|
155
155
|
|
156
156
|
@dest = File.join(::Webby.site.output_dir, @dest)
|
157
157
|
@dest << @number.to_s if @number
|
158
|
-
|
159
|
-
|
158
|
+
|
159
|
+
ext = extension
|
160
|
+
unless ext.nil? or ext.empty?
|
161
|
+
@dest << '.'
|
162
|
+
@dest << ext
|
163
|
+
end
|
160
164
|
@dest
|
161
165
|
end
|
162
166
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pease
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-01-
|
12
|
+
date: 2008-01-03 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|