webby 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.5.1 / 2007-11-29
2
+
3
+ * Growl notifications now work on Leopard / Tiger
4
+ * Fixed a few things for compatibility with Ruby 1.9
5
+
1
6
  == 0.5.0 / 2007-11-26
2
7
 
3
8
  * Launching heel now works on Windows boxen
data/Rakefile CHANGED
@@ -24,10 +24,10 @@ PROJ.rdoc_exclude << '^(\.\/|\/)?website'
24
24
 
25
25
  PROJ.spec_opts << '--color'
26
26
 
27
- depend_on 'directory_watcher', '1.0.0'
27
+ depend_on 'directory_watcher', '1.1.0'
28
28
  depend_on 'heel'
29
29
  depend_on 'hpricot'
30
- depend_on 'logging', '0.5.1'
30
+ depend_on 'logging', '0.5.2'
31
31
  depend_on 'rspec'
32
32
 
33
33
  # EOF
@@ -1,4 +1,4 @@
1
- # $Id: renderer.rb 46 2007-11-27 03:31:29Z tim_pease $
1
+ # $Id: renderer.rb 51 2007-11-29 06:01:26Z tim_pease $
2
2
 
3
3
  require 'erb'
4
4
  try_require 'bluecloth'
@@ -80,7 +80,7 @@ class Renderer
80
80
 
81
81
  @content, str = str, ::Webby::File.read(lyt.path)
82
82
 
83
- lyt.filter.to_a.each do |filter|
83
+ Array(lyt.filter).each do |filter|
84
84
  str = self.send(filter + '_filter', str)
85
85
  end
86
86
 
@@ -99,7 +99,7 @@ class Renderer
99
99
  def render_page
100
100
  str = ::Webby::File.read(@page.path)
101
101
 
102
- @page.filter.to_a.each do |filter|
102
+ Array(@page.filter).each do |filter|
103
103
  str = self.send(filter + '_filter', str)
104
104
  end
105
105
 
@@ -1,4 +1,4 @@
1
- # $Id: resource.rb 46 2007-11-27 03:31:29Z tim_pease $
1
+ # $Id: resource.rb 51 2007-11-29 06:01:26Z tim_pease $
2
2
 
3
3
  module Webby
4
4
 
@@ -124,8 +124,7 @@ class Resource
124
124
 
125
125
  if @mdata.has_key? 'layout'
126
126
  lyt = self.class.layouts.find :filename => @mdata['layout']
127
- break if lyt.nil?
128
- return lyt.extension
127
+ return lyt.extension if lyt
129
128
  end
130
129
 
131
130
  @ext
@@ -1,4 +1,4 @@
1
- # $Id: spawner.rb 46 2007-11-27 03:31:29Z tim_pease $
1
+ # $Id: spawner.rb 49 2007-11-29 00:57:15Z tim_pease $
2
2
 
3
3
  require 'rbconfig'
4
4
  require 'thread'
@@ -115,8 +115,8 @@ class Spawner
115
115
 
116
116
  ary = sync do
117
117
  case arg
118
- when :all: self.dup
119
- when Integer: self.slice(0,arg)
118
+ when :all; self.dup
119
+ when Integer; self.slice(0,arg)
120
120
  else raise ArgumentError end
121
121
  end
122
122
 
data/lib/webby/utils.rb CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: utils.rb 1 2007-08-18 21:39:50Z tim_pease $
1
+ # $Id: utils.rb 51 2007-11-29 06:01:26Z tim_pease $
2
2
 
3
3
  module Enumerable
4
4
  def injecting( initial )
@@ -12,9 +12,9 @@ class Hash
12
12
  def sanitize!
13
13
  h = self.injecting({}) do |h, (k, v)|
14
14
  h[k] = case v
15
- when 'none', 'nil': nil
16
- when 'true', 'yes': true
17
- when 'false', 'no': false
15
+ when 'none', 'nil'; nil
16
+ when 'true', 'yes'; true
17
+ when 'false', 'no'; false
18
18
  else v end
19
19
  end
20
20
  self.replace h
data/lib/webby.rb CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: webby.rb 41 2007-10-15 20:44:21Z tim_pease $
1
+ # $Id: webby.rb 51 2007-11-29 06:01:26Z tim_pease $
2
2
 
3
3
  require 'logging'
4
4
 
@@ -13,7 +13,7 @@ Logging::Logger['Webby'].level = :info
13
13
 
14
14
  module Webby
15
15
 
16
- VERSION = '0.5.0' # :nodoc:
16
+ VERSION = '0.5.1' # :nodoc:
17
17
 
18
18
  # Path to the Webby package
19
19
  PATH = ::File.expand_path(::File.join(::File.dirname(__FILE__), '..'))
data/tasks/doc.rake CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: doc.rake 11 2007-08-23 15:45:16Z tim_pease $
1
+ # $Id: doc.rake 51 2007-11-29 06:01:26Z tim_pease $
2
2
 
3
3
  require 'rake/rdoctask'
4
4
 
@@ -14,8 +14,8 @@ namespace :doc do
14
14
  excl = Regexp.new(PROJ.rdoc_exclude.join('|'))
15
15
  files = PROJ.files.find_all do |fn|
16
16
  case fn
17
- when excl: false
18
- when incl: true
17
+ when excl; false
18
+ when incl; true
19
19
  else false end
20
20
  end
21
21
  rd.rdoc_files.push(*files)
data/tasks/gem.rake CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: gem.rake 11 2007-08-23 15:45:16Z tim_pease $
1
+ # $Id: gem.rake 52 2007-11-29 18:51:26Z tim_pease $
2
2
 
3
3
  require 'rake/gempackagetask'
4
4
 
@@ -25,7 +25,7 @@ namespace :gem do
25
25
  s.extensions = PROJ.files.grep %r/extconf\.rb$/
26
26
 
27
27
  s.bindir = 'bin'
28
- dirs = Dir['{lib,ext}']
28
+ dirs = Dir["{#{PROJ.libs.join(',')}}"]
29
29
  s.require_paths = dirs unless dirs.empty?
30
30
 
31
31
  incl = Regexp.new(PROJ.rdoc_include.join('|'))
@@ -33,8 +33,8 @@ namespace :gem do
33
33
  excl = Regexp.new(excl.join('|'))
34
34
  rdoc_files = PROJ.files.find_all do |fn|
35
35
  case fn
36
- when excl: false
37
- when incl: true
36
+ when excl; false
37
+ when incl; true
38
38
  else false end
39
39
  end
40
40
  s.rdoc_options = PROJ.rdoc_opts + ['--main', PROJ.rdoc_main]
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: webby
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.0
7
- date: 2007-11-26 00:00:00 -07:00
6
+ version: 0.5.1
7
+ date: 2007-11-29 00:00:00 -07:00
8
8
  summary: static website creation and management
9
9
  require_paths:
10
10
  - lib
@@ -131,7 +131,7 @@ dependencies:
131
131
  requirements:
132
132
  - - ">="
133
133
  - !ruby/object:Gem::Version
134
- version: 1.0.0
134
+ version: 1.1.0
135
135
  version:
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: heel
@@ -158,7 +158,7 @@ dependencies:
158
158
  requirements:
159
159
  - - ">="
160
160
  - !ruby/object:Gem::Version
161
- version: 0.5.1
161
+ version: 0.5.2
162
162
  version:
163
163
  - !ruby/object:Gem::Dependency
164
164
  name: rspec