webby 0.7.0 → 0.7.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.
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 tag generation
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
@@ -10,7 +10,7 @@ Webby works by combining the contents of a *page* with a *layout* to produce HTM
10
10
  Install Webby and try it out!
11
11
 
12
12
  <pre class="code">
13
- gem install webby
13
+ sudo gem install -y webby
14
14
  </pre>
15
15
 
16
16
  h2. Features
@@ -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 86 2008-01-01 22:14:55Z tim_pease $
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.0' # :nodoc:
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 60 2007-12-04 05:05:50Z tim_pease $
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
 
@@ -1,4 +1,4 @@
1
- # $Id: resource.rb 86 2008-01-01 22:14:55Z tim_pease $
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
- @dest << '.'
159
- @dest << extension
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.0
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-01 00:00:00 -07:00
12
+ date: 2008-01-03 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency