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 +5 -0
- data/Rakefile +2 -2
- data/lib/webby/renderer.rb +3 -3
- data/lib/webby/resource.rb +2 -3
- data/lib/webby/stelan/spawner.rb +3 -3
- data/lib/webby/utils.rb +4 -4
- data/lib/webby.rb +2 -2
- data/tasks/doc.rake +3 -3
- data/tasks/gem.rake +4 -4
- metadata +4 -4
data/History.txt
CHANGED
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.
|
27
|
+
depend_on 'directory_watcher', '1.1.0'
|
28
28
|
depend_on 'heel'
|
29
29
|
depend_on 'hpricot'
|
30
|
-
depend_on 'logging', '0.5.
|
30
|
+
depend_on 'logging', '0.5.2'
|
31
31
|
depend_on 'rspec'
|
32
32
|
|
33
33
|
# EOF
|
data/lib/webby/renderer.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: renderer.rb
|
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.
|
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.
|
102
|
+
Array(@page.filter).each do |filter|
|
103
103
|
str = self.send(filter + '_filter', str)
|
104
104
|
end
|
105
105
|
|
data/lib/webby/resource.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: resource.rb
|
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
|
-
|
128
|
-
return lyt.extension
|
127
|
+
return lyt.extension if lyt
|
129
128
|
end
|
130
129
|
|
131
130
|
@ext
|
data/lib/webby/stelan/spawner.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: spawner.rb
|
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
|
119
|
-
when Integer
|
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
|
+
# $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'
|
16
|
-
when 'true', 'yes'
|
17
|
-
when 'false', 'no'
|
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
|
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.
|
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
|
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
|
18
|
-
when incl
|
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
|
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['
|
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
|
37
|
-
when incl
|
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.
|
7
|
-
date: 2007-11-
|
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.
|
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.
|
161
|
+
version: 0.5.2
|
162
162
|
version:
|
163
163
|
- !ruby/object:Gem::Dependency
|
164
164
|
name: rspec
|