webby 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. data/History.txt +20 -0
  2. data/Manifest.txt +46 -2
  3. data/Rakefile +4 -3
  4. data/bin/webby +1 -1
  5. data/data/Rakefile +0 -1
  6. data/data/content/css/blueprint/plugins/buttons/icons/cross.png +0 -0
  7. data/data/content/css/blueprint/plugins/buttons/icons/key.png +0 -0
  8. data/data/content/css/blueprint/plugins/buttons/icons/tick.png +0 -0
  9. data/data/content/s5/blank.gif +0 -0
  10. data/data/content/s5/bodybg.gif +0 -0
  11. data/data/content/s5/framing.css +23 -0
  12. data/data/content/s5/iepngfix.htc +42 -0
  13. data/data/content/s5/opera.css +7 -0
  14. data/data/content/s5/outline.css +15 -0
  15. data/data/content/s5/pretty.css +86 -0
  16. data/data/content/s5/print.css +1 -0
  17. data/data/content/s5/s5-core.css +9 -0
  18. data/data/content/s5/slides.css +3 -0
  19. data/data/content/s5/slides.js +553 -0
  20. data/data/lib/breadcrumbs.rb +0 -0
  21. data/data/tasks/blog.rake +71 -0
  22. data/data/tasks/build.rake +27 -0
  23. data/data/tasks/create.rake +19 -1
  24. data/data/tasks/deploy.rake +2 -2
  25. data/data/tasks/setup.rb +4 -1
  26. data/data/templates/atom_feed.erb +20 -13
  27. data/data/templates/page.erb +1 -1
  28. data/data/templates/presentation.erb +40 -0
  29. data/examples/presentation/Rakefile +14 -0
  30. data/examples/presentation/content/_sample_code.txt +10 -0
  31. data/examples/presentation/content/css/uv/twilight.css +137 -0
  32. data/examples/presentation/content/index.txt +63 -0
  33. data/examples/presentation/content/s5/blank.gif +0 -0
  34. data/examples/presentation/content/s5/bodybg.gif +0 -0
  35. data/examples/presentation/content/s5/framing.css +23 -0
  36. data/examples/presentation/content/s5/iepngfix.htc +42 -0
  37. data/examples/presentation/content/s5/opera.css +7 -0
  38. data/examples/presentation/content/s5/outline.css +15 -0
  39. data/examples/presentation/content/s5/pretty.css +86 -0
  40. data/examples/presentation/content/s5/print.css +1 -0
  41. data/examples/presentation/content/s5/s5-core.css +9 -0
  42. data/examples/presentation/content/s5/slides.css +3 -0
  43. data/examples/presentation/content/s5/slides.js +553 -0
  44. data/examples/presentation/layouts/presentation.rhtml +43 -0
  45. data/examples/presentation/tasks/blog.rake +71 -0
  46. data/examples/presentation/tasks/build.rake +27 -0
  47. data/examples/presentation/tasks/create.rake +22 -0
  48. data/examples/presentation/tasks/deploy.rake +22 -0
  49. data/examples/presentation/tasks/growl.rake +12 -0
  50. data/examples/presentation/tasks/heel.rake +28 -0
  51. data/examples/presentation/tasks/setup.rb +17 -0
  52. data/examples/presentation/tasks/validate.rake +19 -0
  53. data/examples/presentation/templates/_partial.erb +13 -0
  54. data/examples/presentation/templates/presentation.erb +40 -0
  55. data/examples/webby/Rakefile +3 -2
  56. data/examples/webby/content/css/blueprint/screen.css +1 -1
  57. data/examples/webby/content/css/coderay.css +0 -15
  58. data/examples/webby/content/css/site.css +18 -13
  59. data/examples/webby/content/css/uv/twilight.css +137 -0
  60. data/examples/webby/content/index.txt +6 -10
  61. data/examples/webby/content/manual/index.txt +83 -122
  62. data/examples/webby/content/reference/index.txt +161 -16
  63. data/examples/webby/content/script/jquery.js +1 -1
  64. data/examples/webby/content/tips_and_tricks/index.txt +1 -1
  65. data/examples/webby/content/tutorial/index.txt +1 -1
  66. data/examples/webby/layouts/default.rhtml +2 -7
  67. data/examples/webby/tasks/blog.rake +71 -0
  68. data/examples/webby/tasks/build.rake +27 -0
  69. data/examples/webby/tasks/create.rake +19 -1
  70. data/examples/webby/tasks/deploy.rake +2 -2
  71. data/examples/webby/tasks/setup.rb +4 -20
  72. data/examples/webby/templates/page.erb +1 -1
  73. data/lib/webby.rb +30 -5
  74. data/lib/webby/auto_builder.rb +0 -2
  75. data/lib/webby/builder.rb +51 -5
  76. data/lib/webby/filters.rb +3 -3
  77. data/lib/webby/filters/basepath.rb +7 -7
  78. data/lib/webby/filters/erb.rb +0 -2
  79. data/lib/webby/filters/haml.rb +0 -2
  80. data/lib/webby/filters/markdown.rb +0 -2
  81. data/lib/webby/filters/outline.rb +43 -2
  82. data/lib/webby/filters/sass.rb +0 -2
  83. data/lib/webby/filters/slides.rb +56 -0
  84. data/lib/webby/filters/textile.rb +0 -2
  85. data/lib/webby/filters/tidy.rb +0 -2
  86. data/lib/webby/helpers.rb +0 -2
  87. data/lib/webby/helpers/capture_helper.rb +141 -0
  88. data/lib/webby/helpers/coderay_helper.rb +5 -16
  89. data/lib/webby/helpers/graphviz_helper.rb +6 -18
  90. data/lib/webby/helpers/tag_helper.rb +0 -2
  91. data/lib/webby/helpers/tex_img_helper.rb +5 -16
  92. data/lib/webby/helpers/ultraviolet_helper.rb +11 -22
  93. data/lib/webby/helpers/url_helper.rb +2 -4
  94. data/lib/webby/link_validator.rb +0 -2
  95. data/lib/webby/main.rb +0 -2
  96. data/lib/webby/renderer.rb +163 -37
  97. data/lib/webby/resources.rb +0 -2
  98. data/lib/webby/resources/db.rb +37 -27
  99. data/lib/webby/resources/file.rb +0 -2
  100. data/lib/webby/resources/layout.rb +0 -2
  101. data/lib/webby/resources/page.rb +4 -9
  102. data/lib/webby/resources/partial.rb +1 -3
  103. data/lib/webby/resources/resource.rb +10 -2
  104. data/lib/webby/resources/static.rb +0 -2
  105. data/lib/webby/stelan/mktemp.rb +0 -2
  106. data/lib/webby/stelan/spawner.rb +0 -2
  107. data/lib/webby/utils.rb +0 -2
  108. data/spec/spec_helper.rb +1 -4
  109. data/spec/webby/helpers/capture_helper_spec.rb +56 -0
  110. data/spec/webby/resources/file_spec.rb +0 -1
  111. data/tasks/ann.rake +7 -4
  112. data/tasks/bones.rake +2 -2
  113. data/tasks/gem.rake +26 -14
  114. data/tasks/notes.rake +11 -5
  115. data/tasks/post_load.rake +4 -2
  116. data/tasks/rdoc.rake +4 -2
  117. data/tasks/rubyforge.rake +3 -3
  118. data/tasks/setup.rb +24 -9
  119. data/tasks/spec.rake +1 -1
  120. data/tasks/website.rake +1 -1
  121. metadata +51 -7
  122. data/lib/webby/webby_task.rb +0 -134
  123. data/tasks/svn.rake +0 -45
@@ -1,4 +1,4 @@
1
- # $Id: spec.rake 200 2008-03-12 16:05:17Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  if HAVE_SPEC_RAKE_SPECTASK
4
4
  require 'spec/rake/verify_rcov'
@@ -1,4 +1,4 @@
1
- # $Id: website.rake 201 2008-03-12 16:16:09Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  namespace :website do
4
4
 
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.8.2
4
+ version: 0.8.3
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-03-12 00:00:00 -06:00
12
+ date: 2008-06-02 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -28,7 +28,7 @@ dependencies:
28
28
  requirements:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 0.6.0
31
+ version: 1.0.0
32
32
  version:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: hpricot
@@ -64,7 +64,7 @@ dependencies:
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 1.1.3
67
+ version: 1.1.4
68
68
  version:
69
69
  description: Webby is a super fantastic little website management system. It would be called a _content management system_ if it were a bigger kid. But, it's just a runt with a special knack for transforming text. And that's really all it does - manages the legwork of turning text into something else, an *ASCII Alchemist* if you will.
70
70
  email: tim.pease@gmail.com
@@ -108,8 +108,21 @@ files:
108
108
  - data/content/css/coderay.css
109
109
  - data/content/css/site.css
110
110
  - data/content/index.txt
111
+ - data/content/s5/blank.gif
112
+ - data/content/s5/bodybg.gif
113
+ - data/content/s5/framing.css
114
+ - data/content/s5/iepngfix.htc
115
+ - data/content/s5/opera.css
116
+ - data/content/s5/outline.css
117
+ - data/content/s5/pretty.css
118
+ - data/content/s5/print.css
119
+ - data/content/s5/s5-core.css
120
+ - data/content/s5/slides.css
121
+ - data/content/s5/slides.js
111
122
  - data/layouts/default.rhtml
112
123
  - data/lib/breadcrumbs.rb
124
+ - data/tasks/blog.rake
125
+ - data/tasks/build.rake
113
126
  - data/tasks/create.rake
114
127
  - data/tasks/deploy.rake
115
128
  - data/tasks/growl.rake
@@ -119,11 +132,39 @@ files:
119
132
  - data/templates/_partial.erb
120
133
  - data/templates/atom_feed.erb
121
134
  - data/templates/page.erb
135
+ - data/templates/presentation.erb
136
+ - examples/presentation/Rakefile
137
+ - examples/presentation/content/_sample_code.txt
138
+ - examples/presentation/content/css/uv/twilight.css
139
+ - examples/presentation/content/index.txt
140
+ - examples/presentation/content/s5/blank.gif
141
+ - examples/presentation/content/s5/bodybg.gif
142
+ - examples/presentation/content/s5/framing.css
143
+ - examples/presentation/content/s5/iepngfix.htc
144
+ - examples/presentation/content/s5/opera.css
145
+ - examples/presentation/content/s5/outline.css
146
+ - examples/presentation/content/s5/pretty.css
147
+ - examples/presentation/content/s5/print.css
148
+ - examples/presentation/content/s5/s5-core.css
149
+ - examples/presentation/content/s5/slides.css
150
+ - examples/presentation/content/s5/slides.js
151
+ - examples/presentation/layouts/presentation.rhtml
152
+ - examples/presentation/tasks/blog.rake
153
+ - examples/presentation/tasks/build.rake
154
+ - examples/presentation/tasks/create.rake
155
+ - examples/presentation/tasks/deploy.rake
156
+ - examples/presentation/tasks/growl.rake
157
+ - examples/presentation/tasks/heel.rake
158
+ - examples/presentation/tasks/setup.rb
159
+ - examples/presentation/tasks/validate.rake
160
+ - examples/presentation/templates/_partial.erb
161
+ - examples/presentation/templates/presentation.erb
122
162
  - examples/webby/Rakefile
123
163
  - examples/webby/content/css/blueprint/print.css
124
164
  - examples/webby/content/css/blueprint/screen.css
125
165
  - examples/webby/content/css/coderay.css
126
166
  - examples/webby/content/css/site.css
167
+ - examples/webby/content/css/uv/twilight.css
127
168
  - examples/webby/content/index.txt
128
169
  - examples/webby/content/manual/index.txt
129
170
  - examples/webby/content/reference/index.txt
@@ -133,6 +174,8 @@ files:
133
174
  - examples/webby/content/tips_and_tricks/index.txt
134
175
  - examples/webby/content/tutorial/index.txt
135
176
  - examples/webby/layouts/default.rhtml
177
+ - examples/webby/tasks/blog.rake
178
+ - examples/webby/tasks/build.rake
136
179
  - examples/webby/tasks/create.rake
137
180
  - examples/webby/tasks/deploy.rake
138
181
  - examples/webby/tasks/growl.rake
@@ -150,9 +193,11 @@ files:
150
193
  - lib/webby/filters/markdown.rb
151
194
  - lib/webby/filters/outline.rb
152
195
  - lib/webby/filters/sass.rb
196
+ - lib/webby/filters/slides.rb
153
197
  - lib/webby/filters/textile.rb
154
198
  - lib/webby/filters/tidy.rb
155
199
  - lib/webby/helpers.rb
200
+ - lib/webby/helpers/capture_helper.rb
156
201
  - lib/webby/helpers/coderay_helper.rb
157
202
  - lib/webby/helpers/graphviz_helper.rb
158
203
  - lib/webby/helpers/tag_helper.rb
@@ -174,9 +219,9 @@ files:
174
219
  - lib/webby/stelan/paginator.rb
175
220
  - lib/webby/stelan/spawner.rb
176
221
  - lib/webby/utils.rb
177
- - lib/webby/webby_task.rb
178
222
  - spec/spec.opts
179
223
  - spec/spec_helper.rb
224
+ - spec/webby/helpers/capture_helper_spec.rb
180
225
  - spec/webby/resources/file_spec.rb
181
226
  - tasks/ann.rake
182
227
  - tasks/bones.rake
@@ -188,7 +233,6 @@ files:
188
233
  - tasks/rubyforge.rake
189
234
  - tasks/setup.rb
190
235
  - tasks/spec.rake
191
- - tasks/svn.rake
192
236
  - tasks/website.rake
193
237
  has_rdoc: true
194
238
  homepage: http://webby.rubyforge.org/
@@ -213,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
257
  requirements: []
214
258
 
215
259
  rubyforge_project: webby
216
- rubygems_version: 1.0.1
260
+ rubygems_version: 1.1.1
217
261
  signing_key:
218
262
  specification_version: 2
219
263
  summary: static website creation and management
@@ -1,134 +0,0 @@
1
- # $Id: webby_task.rb 189 2008-03-02 22:22:24Z tim_pease $
2
-
3
- require 'rake'
4
- require 'rake/tasklib'
5
-
6
- module Rake # :nodoc:
7
-
8
- # The WebbyTask defines several rake tasks for working with Webby based
9
- # websites:
10
- #
11
- # [:build] Build the site by compiling only those resources in the content
12
- # folder that have been modifed recently. If the a content file
13
- # has a modification time more recent then its corresponding
14
- # output file, then it will be built by this task.
15
- #
16
- # [:rebuild] Rebuild the entire site from the content folder and store the
17
- # results in the output folder.
18
- #
19
- # [:autobuild] Monitors the content and layout directories for modified
20
- # resources and compiles those files as needed. This task
21
- # returns only when the user hits Ctrl-C.
22
- #
23
- # [:create:page] Create a new page in the content folder based on the
24
- # template 'page' found in the templates folder. One task
25
- # will be created for each file found in the templates
26
- # folder.
27
- #
28
- class WebbyTask < TaskLib
29
-
30
- # call-seq:
31
- # WebbyTask.new {|self| block}
32
- #
33
- # Create the tasks used by Webby to build a website and to create new
34
- # pages in the website.
35
- #
36
- def initialize
37
- yield self if block_given?
38
-
39
- # load any user defined libraries
40
- glob = ::File.join(FileUtils.pwd, 'lib', '**', '*.rb')
41
- Dir.glob(glob).sort.each {|fn| require fn}
42
-
43
- # create the Webby rake tasks
44
- define_build_tasks
45
- namespace(:create) {define_create_tasks}
46
- end
47
-
48
- # Defines the :build and :rebuild tasks
49
- #
50
- def define_build_tasks
51
- task :configure_basepath do
52
- ::Webby.site.base = ENV['BASE'] if ENV.has_key?('BASE')
53
- end
54
-
55
- desc "Build the website"
56
- task :build => :configure_basepath do |t|
57
- ::Webby::Builder.run
58
- end
59
-
60
- desc "Rebuild the website"
61
- task :rebuild => :configure_basepath do |t|
62
- ::Webby::Builder.run :rebuild => true
63
- end
64
-
65
- desc "Continuously build the website"
66
- task :autobuild => :configure_basepath do |t|
67
- ::Webby::AutoBuilder.run
68
- end
69
-
70
- desc "Delete the website"
71
- task :clobber do |t|
72
- rm_rf ::Webby.site.output_dir
73
- mkdir ::Webby.site.output_dir
74
- end
75
- end
76
-
77
- # TODO: modify creation task to handle folders of pages/partials
78
-
79
- # Scans the templates directory for any files, and creats a corresponding
80
- # task for creating a new page based on that template.
81
- #
82
- def define_create_tasks
83
- FileList["#{::Webby.site.template_dir}/*"].each do |template|
84
- name = template.pathmap '%n'
85
-
86
- # if the file is a partial template
87
- if name =~ %r/^_(.*)/
88
- name = $1
89
- desc "Create a new #{name}"
90
- task name do |t|
91
- raise "Usage: rake #{t.name} path" unless ARGV.length == 2
92
-
93
- page = t.application.top_level_tasks.pop
94
- name = '_' + ::Webby::Resources::File.basename(page)
95
- ext = ::Webby::Resources::File.extname(page)
96
- dir = ::File.dirname(page)
97
- dir = '' if dir == '.'
98
-
99
- page = ::File.join(::Webby.site.content_dir, dir, name)
100
- page << '.' << (ext.empty? ? 'txt' : ext)
101
-
102
- ::Webby::Builder.create page, :from => template
103
- end
104
-
105
- # otherwise it's a normal file
106
- else
107
- desc "Create a new #{name}"
108
- task name do |t|
109
- raise "Usage: rake #{t.name} path" unless ARGV.length == 2
110
-
111
- page = t.application.top_level_tasks.pop
112
- name = ::Webby::Resources::File.basename(page)
113
- ext = ::Webby::Resources::File.extname(page)
114
- dir = ::File.dirname(page)
115
- dir = '' if dir == '.'
116
-
117
- if ::Webby.site.create_mode == 'directory'
118
- page = ::File.join(::Webby.site.content_dir, dir, name, 'index')
119
- page << '.' << (ext.empty? ? 'txt' : ext)
120
- else
121
- page = ::File.join(::Webby.site.content_dir, page)
122
- page << '.txt' if ext.empty?
123
- end
124
-
125
- ::Webby::Builder.create page, :from => template
126
- end # task
127
- end
128
- end # each
129
- end
130
-
131
- end # class WebbyTask
132
- end # module Rake
133
-
134
- # EOF
@@ -1,45 +0,0 @@
1
- # $Id: svn.rake 200 2008-03-12 16:05:17Z tim_pease $
2
-
3
- if PROJ.svn.path and system("svn --version 2>&1 > #{DEV_NULL}")
4
-
5
- unless PROJ.svn.root
6
- info = %x/svn info ./
7
- m = %r/^Repository Root:\s+(.*)$/.match(info)
8
- PROJ.svn.root = (m.nil? ? '' : m[1])
9
- end
10
- PROJ.svn.root = File.join(PROJ.svn.root, PROJ.svn.path) unless PROJ.svn.path.empty?
11
-
12
- namespace :svn do
13
-
14
- desc 'Show tags from the SVN repository'
15
- task :show_tags do |t|
16
- tags = %x/svn list #{File.join(PROJ.svn.root, PROJ.svn.tags)}/
17
- tags.gsub!(%r/\/$/, '')
18
- tags = tags.split("\n").sort {|a,b| b <=> a}
19
- puts tags
20
- end
21
-
22
- desc 'Create a new tag in the SVN repository'
23
- task :create_tag do |t|
24
- v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
25
- abort "Versions don't match #{v} vs #{PROJ.version}" if v != PROJ.version
26
-
27
- svn = PROJ.svn
28
- trunk = File.join(svn.root, svn.trunk)
29
- tag = "%s-%s" % [PROJ.name, PROJ.version]
30
- tag = File.join(svn.root, svn.tags, tag)
31
- msg = "Creating tag for #{PROJ.name} version #{PROJ.version}"
32
-
33
- puts "Creating SVN tag '#{tag}'"
34
- unless system "svn cp -m '#{msg}' #{trunk} #{tag}"
35
- abort "Tag creation failed"
36
- end
37
- end
38
-
39
- end # namespace :svn
40
-
41
- task 'gem:release' => 'svn:create_tag'
42
-
43
- end # if PROJ.svn.path
44
-
45
- # EOF