webby 0.8.4 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. data/History.txt +19 -0
  2. data/Manifest.txt +104 -91
  3. data/README.txt +27 -45
  4. data/Rakefile +4 -5
  5. data/bin/webby +2 -1
  6. data/bin/webby-gen +8 -0
  7. data/{data/Rakefile → examples/blog/Sitefile} +0 -2
  8. data/examples/{webby → blog}/tasks/blog.rake +5 -4
  9. data/{data → examples/blog}/templates/atom_feed.erb +10 -11
  10. data/{data → examples/blog}/templates/blog/month.erb +1 -1
  11. data/{data → examples/blog}/templates/blog/post.erb +1 -0
  12. data/{data → examples/blog}/templates/blog/year.erb +1 -1
  13. data/examples/presentation/{Rakefile → Sitefile} +0 -4
  14. data/examples/presentation/content/{_sample_code.txt → presentation/_sample_code.txt} +0 -0
  15. data/examples/presentation/content/{index.txt → presentation/index.txt} +0 -0
  16. data/{data/content → examples/presentation/content/presentation}/s5/blank.gif +0 -0
  17. data/{data/content → examples/presentation/content/presentation}/s5/bodybg.gif +0 -0
  18. data/{data/content → examples/presentation/content/presentation}/s5/framing.css +0 -0
  19. data/{data/content → examples/presentation/content/presentation}/s5/iepngfix.htc +0 -0
  20. data/{data/content → examples/presentation/content/presentation}/s5/opera.css +0 -0
  21. data/{data/content → examples/presentation/content/presentation}/s5/outline.css +0 -0
  22. data/{data/content → examples/presentation/content/presentation}/s5/pretty.css +0 -0
  23. data/{data/content → examples/presentation/content/presentation}/s5/print.css +0 -0
  24. data/{data/content → examples/presentation/content/presentation}/s5/s5-core.css +0 -0
  25. data/{data/content → examples/presentation/content/presentation}/s5/slides.css +0 -0
  26. data/{data/content → examples/presentation/content/presentation}/s5/slides.js +0 -0
  27. data/examples/presentation/layouts/{presentation.rhtml → presentation.txt} +3 -3
  28. data/examples/presentation/templates/{_partial.erb → _code_partial.erb} +0 -0
  29. data/examples/tumblog/Sitefile +9 -0
  30. data/examples/tumblog/content/css/tumblog.css +308 -0
  31. data/examples/tumblog/content/images/tumblog/permalink.gif +0 -0
  32. data/examples/tumblog/content/images/tumblog/rss.gif +0 -0
  33. data/examples/tumblog/content/tumblog/200806/the-noble-chicken/index.txt +12 -0
  34. data/examples/tumblog/content/tumblog/200807/historical-perspectives-on-the-classic-chicken-joke/index.txt +12 -0
  35. data/examples/tumblog/content/tumblog/200807/mad-city-chickens/index.txt +10 -0
  36. data/examples/tumblog/content/tumblog/200807/the-wisdom-of-the-dutch/index.txt +11 -0
  37. data/examples/tumblog/content/tumblog/200807/up-a-tree/index.txt +13 -0
  38. data/examples/tumblog/content/tumblog/index.txt +37 -0
  39. data/examples/tumblog/content/tumblog/rss.txt +37 -0
  40. data/examples/tumblog/layouts/tumblog/default.txt +44 -0
  41. data/examples/tumblog/layouts/tumblog/post.txt +15 -0
  42. data/examples/tumblog/lib/tumblog_helper.rb +32 -0
  43. data/examples/tumblog/tasks/tumblog.rake +30 -0
  44. data/examples/tumblog/templates/atom_feed.erb +40 -0
  45. data/examples/tumblog/templates/tumblog/conversation.erb +12 -0
  46. data/examples/tumblog/templates/tumblog/link.erb +10 -0
  47. data/examples/tumblog/templates/tumblog/photo.erb +13 -0
  48. data/examples/tumblog/templates/tumblog/post.erb +12 -0
  49. data/examples/tumblog/templates/tumblog/quote.erb +11 -0
  50. data/examples/webby/{Rakefile → Sitefile} +2 -2
  51. data/examples/webby/content/communicate/index.txt +28 -0
  52. data/examples/webby/content/css/background.gif +0 -0
  53. data/examples/webby/content/css/site.css +52 -20
  54. data/examples/webby/content/index.txt +7 -8
  55. data/examples/webby/content/learn/index.txt +28 -0
  56. data/examples/webby/content/reference/index.txt +3 -1
  57. data/examples/webby/content/release-notes/rel-0-9-0/index.txt +73 -0
  58. data/examples/webby/content/sitemap.txt +31 -0
  59. data/examples/webby/content/tips_and_tricks/index.txt +1 -1
  60. data/examples/webby/content/tutorial/index.txt +17 -17
  61. data/examples/webby/content/{manual → user-manual}/index.txt +53 -50
  62. data/examples/webby/layouts/{default.rhtml → default.txt} +8 -15
  63. data/examples/webby/templates/page.erb +1 -1
  64. data/examples/website/Sitefile +7 -0
  65. data/{data → examples/website}/content/css/blueprint/License.txt +0 -0
  66. data/{data → examples/website}/content/css/blueprint/Readme.txt +0 -0
  67. data/{data → examples/website}/content/css/blueprint/compressed/print.css +0 -0
  68. data/{data → examples/website}/content/css/blueprint/compressed/screen.css +0 -0
  69. data/{data → examples/website}/content/css/blueprint/lib/forms.css +0 -0
  70. data/{data → examples/website}/content/css/blueprint/lib/grid.css +0 -0
  71. data/{data → examples/website}/content/css/blueprint/lib/grid.png +0 -0
  72. data/{data → examples/website}/content/css/blueprint/lib/ie.css +0 -0
  73. data/{data → examples/website}/content/css/blueprint/lib/reset.css +0 -0
  74. data/{data → examples/website}/content/css/blueprint/lib/typography.css +0 -0
  75. data/{data → examples/website}/content/css/blueprint/plugins/buttons/Readme +0 -0
  76. data/{data → examples/website}/content/css/blueprint/plugins/buttons/buttons.css +0 -0
  77. data/{data → examples/website}/content/css/blueprint/plugins/buttons/icons/cross.png +0 -0
  78. data/{data → examples/website}/content/css/blueprint/plugins/buttons/icons/key.png +0 -0
  79. data/{data → examples/website}/content/css/blueprint/plugins/buttons/icons/tick.png +0 -0
  80. data/{data → examples/website}/content/css/blueprint/plugins/css-classes/Readme +0 -0
  81. data/{data → examples/website}/content/css/blueprint/plugins/css-classes/css-classes.css +0 -0
  82. data/{data → examples/website}/content/css/blueprint/plugins/fancy-type/Readme +0 -0
  83. data/{data → examples/website}/content/css/blueprint/plugins/fancy-type/fancy-type-compressed.css +0 -0
  84. data/{data → examples/website}/content/css/blueprint/plugins/fancy-type/fancy-type.css +0 -0
  85. data/{data → examples/website}/content/css/blueprint/print.css +0 -0
  86. data/{data → examples/website}/content/css/blueprint/screen.css +0 -0
  87. data/{data → examples/website}/content/css/coderay.css +0 -0
  88. data/{data → examples/website}/content/css/site.css +0 -0
  89. data/{data → examples/website}/content/index.txt +2 -1
  90. data/{data/layouts/default.rhtml → examples/website/layouts/default.txt} +1 -1
  91. data/{data → examples/website}/lib/breadcrumbs.rb +0 -0
  92. data/{data → examples/website}/templates/_partial.erb +0 -0
  93. data/{data → examples/website}/templates/page.erb +0 -0
  94. data/{data → examples/website}/templates/presentation.erb +0 -0
  95. data/lib/webby/apps/generator.rb +283 -0
  96. data/lib/webby/apps/main.rb +221 -0
  97. data/lib/webby/apps.rb +12 -0
  98. data/lib/webby/builder.rb +8 -10
  99. data/lib/webby/core_ext/enumerable.rb +11 -0
  100. data/lib/webby/{utils.rb → core_ext/hash.rb} +2 -26
  101. data/lib/webby/core_ext/kernel.rb +21 -0
  102. data/lib/webby/core_ext/string.rb +163 -0
  103. data/lib/webby/core_ext/time.rb +9 -0
  104. data/lib/webby/filters/haml.rb +13 -5
  105. data/lib/webby/filters/markdown.rb +12 -4
  106. data/lib/webby/filters/outline.rb +3 -2
  107. data/lib/webby/filters/sass.rb +12 -4
  108. data/lib/webby/filters/textile.rb +12 -4
  109. data/lib/webby/filters/tidy.rb +10 -8
  110. data/lib/webby/filters.rb +2 -0
  111. data/lib/webby/helpers/graphviz_helper.rb +1 -2
  112. data/lib/webby/helpers/tex_img_helper.rb +6 -10
  113. data/lib/webby/renderer.rb +5 -3
  114. data/lib/webby/resources/layout.rb +1 -1
  115. data/lib/webby/resources/page.rb +1 -1
  116. data/lib/webby/resources/resource.rb +13 -3
  117. data/lib/webby/resources.rb +16 -0
  118. data/{data → lib/webby}/tasks/build.rake +0 -0
  119. data/{examples/presentation → lib/webby}/tasks/create.rake +1 -1
  120. data/{data → lib/webby}/tasks/deploy.rake +0 -0
  121. data/{examples → lib}/webby/tasks/growl.rake +4 -1
  122. data/{data → lib/webby}/tasks/heel.rake +0 -0
  123. data/{data → lib/webby}/tasks/validate.rake +0 -0
  124. data/lib/webby.rb +11 -5
  125. data/spec/core_ext/hash_spec.rb +47 -0
  126. data/spec/core_ext/string_spec.rb +110 -0
  127. data/spec/core_ext/time_spec.rb +19 -0
  128. data/spec/webby/apps/generator_spec.rb +111 -0
  129. data/spec/webby/apps/main_spec.rb +75 -0
  130. data/spec/webby/helpers/capture_helper_spec.rb +1 -1
  131. data/spec/webby/resources_spec.rb +17 -0
  132. data/tasks/gem.rake +10 -2
  133. data/tasks/git.rake +41 -0
  134. data/tasks/rubyforge.rake +2 -2
  135. data/tasks/website.rake +38 -38
  136. metadata +125 -98
  137. data/data/tasks/blog.rake +0 -71
  138. data/data/tasks/create.rake +0 -22
  139. data/data/tasks/growl.rake +0 -12
  140. data/data/tasks/setup.rb +0 -17
  141. data/examples/presentation/content/s5/blank.gif +0 -0
  142. data/examples/presentation/content/s5/bodybg.gif +0 -0
  143. data/examples/presentation/content/s5/framing.css +0 -23
  144. data/examples/presentation/content/s5/iepngfix.htc +0 -42
  145. data/examples/presentation/content/s5/opera.css +0 -7
  146. data/examples/presentation/content/s5/outline.css +0 -15
  147. data/examples/presentation/content/s5/pretty.css +0 -86
  148. data/examples/presentation/content/s5/print.css +0 -1
  149. data/examples/presentation/content/s5/s5-core.css +0 -9
  150. data/examples/presentation/content/s5/slides.css +0 -3
  151. data/examples/presentation/content/s5/slides.js +0 -553
  152. data/examples/presentation/tasks/blog.rake +0 -71
  153. data/examples/presentation/tasks/build.rake +0 -27
  154. data/examples/presentation/tasks/deploy.rake +0 -22
  155. data/examples/presentation/tasks/growl.rake +0 -12
  156. data/examples/presentation/tasks/heel.rake +0 -28
  157. data/examples/presentation/tasks/setup.rb +0 -17
  158. data/examples/presentation/tasks/validate.rake +0 -19
  159. data/examples/webby/tasks/build.rake +0 -27
  160. data/examples/webby/tasks/create.rake +0 -22
  161. data/examples/webby/tasks/deploy.rake +0 -22
  162. data/examples/webby/tasks/heel.rake +0 -28
  163. data/examples/webby/tasks/setup.rb +0 -17
  164. data/examples/webby/tasks/validate.rake +0 -19
  165. data/lib/webby/main.rb +0 -227
data/tasks/git.rake ADDED
@@ -0,0 +1,41 @@
1
+ # $Id$
2
+
3
+ if HAVE_GIT
4
+
5
+ namespace :git do
6
+
7
+ # A prerequisites task that all other tasks depend upon
8
+ task :prereqs
9
+
10
+ desc 'Show tags from the Git repository'
11
+ task :show_tags => 'git:prereqs' do |t|
12
+ puts %x/git tag/
13
+ end
14
+
15
+ desc 'Create a new tag in the Git repository'
16
+ task :create_tag => 'git:prereqs' do |t|
17
+ v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
18
+ abort "Versions don't match #{v} vs #{PROJ.version}" if v != PROJ.version
19
+
20
+ tag = "%s-%s" % [PROJ.name, PROJ.version]
21
+ msg = "Creating tag for #{PROJ.name} version #{PROJ.version}"
22
+
23
+ puts "Creating Git tag '#{tag}'"
24
+ unless system "git tag -a -m '#{msg}' #{tag}"
25
+ abort "Tag creation failed"
26
+ end
27
+
28
+ if %x/git remote/ =~ %r/^origin\s*$/
29
+ unless system "git push origin #{tag}"
30
+ abort "Could not push tag to remote Git repository"
31
+ end
32
+ end
33
+ end
34
+
35
+ end # namespace :git
36
+
37
+ task 'gem:release' => 'git:create_tag'
38
+
39
+ end # if HAVE_GIT
40
+
41
+ # EOF
data/tasks/rubyforge.rake CHANGED
@@ -1,4 +1,3 @@
1
- # $Id$
2
1
 
3
2
  if PROJ.rubyforge.name.valid? && HAVE_RUBYFORGE
4
3
 
@@ -7,7 +6,7 @@ require 'rake/contrib/sshpublisher'
7
6
 
8
7
  namespace :gem do
9
8
  desc 'Package and upload to RubyForge'
10
- task :release => [:clobber, :package] do |t|
9
+ task :release => [:clobber, 'gem:package'] do |t|
11
10
  v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
12
11
  abort "Versions don't match #{v} vs #{PROJ.version}" if v != PROJ.version
13
12
  pkg = "pkg/#{PROJ.gem._spec.full_name}"
@@ -18,6 +17,7 @@ namespace :gem do
18
17
  end
19
18
 
20
19
  rf = RubyForge.new
20
+ rf.configure rescue nil
21
21
  puts 'Logging in'
22
22
  rf.login
23
23
 
data/tasks/website.rake CHANGED
@@ -1,38 +1,38 @@
1
- # $Id$
2
-
3
- namespace :website do
4
-
5
- desc 'Build the Webby website'
6
- task :build do
7
- begin
8
- olddir = pwd
9
- chdir 'examples/webby'
10
- sh 'rake rebuild BASE="http://webby.rubyforge.org"'
11
- cp_r 'output/.', olddir + '/doc'
12
- ensure
13
- chdir olddir
14
- end
15
- end
16
-
17
- desc 'Remove the Webby website'
18
- task :clobber do
19
- rm_r 'doc' rescue nil
20
- end
21
-
22
- desc 'Publish the website to RubyForge'
23
- task :release => %w(website:clobber doc:rdoc website:build) do
24
- config = YAML.load(
25
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
26
- )
27
-
28
- host = "#{config['username']}@rubyforge.org"
29
- remote_dir = "/var/www/gforge-projects/#{PROJ.rubyforge.name}/"
30
-
31
- sh "rsync --delete -rulptzCF doc/ #{host}:#{remote_dir}"
32
- end
33
-
34
- end # namespace :website
35
-
36
- task :clobber => 'website:clobber'
37
-
38
- # EOF
1
+ # $Id$
2
+
3
+ namespace :website do
4
+
5
+ desc 'Build the Webby website'
6
+ task :build do
7
+ begin
8
+ olddir = pwd
9
+ chdir 'examples/webby'
10
+ sh 'webby rebuild BASE="http://webby.rubyforge.org"'
11
+ cp_r 'output/.', olddir + '/doc'
12
+ ensure
13
+ chdir olddir
14
+ end
15
+ end
16
+
17
+ desc 'Remove the Webby website'
18
+ task :clobber do
19
+ rm_r 'doc' rescue nil
20
+ end
21
+
22
+ desc 'Publish the website to RubyForge'
23
+ task :release => %w(website:clobber doc:rdoc website:build) do
24
+ config = YAML.load(
25
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
26
+ )
27
+
28
+ host = "#{config['username']}@rubyforge.org"
29
+ remote_dir = "/var/www/gforge-projects/#{PROJ.rubyforge.name}/"
30
+
31
+ sh "rsync --delete -rulptzCF doc/ #{host}:#{remote_dir}"
32
+ end
33
+
34
+ end # namespace :website
35
+
36
+ task :clobber => 'website:clobber'
37
+
38
+ # EOF
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.4
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pease
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-03 00:00:00 -06:00
12
+ date: 2008-08-25 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: directory_watcher
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,6 +24,7 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: heel
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
@@ -32,24 +34,27 @@ dependencies:
32
34
  version:
33
35
  - !ruby/object:Gem::Dependency
34
36
  name: hpricot
37
+ type: :runtime
35
38
  version_requirement:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - ">="
41
+ - - "="
39
42
  - !ruby/object:Gem::Version
40
- version: "0.6"
43
+ version: 0.6.0
41
44
  version:
42
45
  - !ruby/object:Gem::Dependency
43
46
  name: logging
47
+ type: :runtime
44
48
  version_requirement:
45
49
  version_requirements: !ruby/object:Gem::Requirement
46
50
  requirements:
47
51
  - - ">="
48
52
  - !ruby/object:Gem::Version
49
- version: 0.7.1
53
+ version: 0.9.1
50
54
  version:
51
55
  - !ruby/object:Gem::Dependency
52
56
  name: rake
57
+ type: :runtime
53
58
  version_requirement:
54
59
  version_requirements: !ruby/object:Gem::Requirement
55
60
  requirements:
@@ -59,6 +64,7 @@ dependencies:
59
64
  version:
60
65
  - !ruby/object:Gem::Dependency
61
66
  name: rspec
67
+ type: :runtime
62
68
  version_requirement:
63
69
  version_requirements: !ruby/object:Gem::Requirement
64
70
  requirements:
@@ -66,129 +72,139 @@ dependencies:
66
72
  - !ruby/object:Gem::Version
67
73
  version: 1.1.4
68
74
  version:
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.
75
+ description: "*Webby* is a 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
76
  email: tim.pease@gmail.com
71
77
  executables:
72
78
  - webby
79
+ - webby-gen
73
80
  extensions: []
74
81
 
75
82
  extra_rdoc_files:
76
83
  - History.txt
77
84
  - README.txt
78
85
  - bin/webby
86
+ - bin/webby-gen
87
+ - lib/webby/tasks/build.rake
88
+ - lib/webby/tasks/create.rake
89
+ - lib/webby/tasks/deploy.rake
90
+ - lib/webby/tasks/growl.rake
91
+ - lib/webby/tasks/heel.rake
92
+ - lib/webby/tasks/validate.rake
79
93
  files:
80
94
  - History.txt
81
95
  - Manifest.txt
82
96
  - README.txt
83
97
  - Rakefile
84
98
  - bin/webby
85
- - data/Rakefile
86
- - data/content/css/blueprint/License.txt
87
- - data/content/css/blueprint/Readme.txt
88
- - data/content/css/blueprint/compressed/print.css
89
- - data/content/css/blueprint/compressed/screen.css
90
- - data/content/css/blueprint/lib/forms.css
91
- - data/content/css/blueprint/lib/grid.css
92
- - data/content/css/blueprint/lib/grid.png
93
- - data/content/css/blueprint/lib/ie.css
94
- - data/content/css/blueprint/lib/reset.css
95
- - data/content/css/blueprint/lib/typography.css
96
- - data/content/css/blueprint/plugins/buttons/Readme
97
- - data/content/css/blueprint/plugins/buttons/buttons.css
98
- - data/content/css/blueprint/plugins/buttons/icons/cross.png
99
- - data/content/css/blueprint/plugins/buttons/icons/key.png
100
- - data/content/css/blueprint/plugins/buttons/icons/tick.png
101
- - data/content/css/blueprint/plugins/css-classes/Readme
102
- - data/content/css/blueprint/plugins/css-classes/css-classes.css
103
- - data/content/css/blueprint/plugins/fancy-type/Readme
104
- - data/content/css/blueprint/plugins/fancy-type/fancy-type-compressed.css
105
- - data/content/css/blueprint/plugins/fancy-type/fancy-type.css
106
- - data/content/css/blueprint/print.css
107
- - data/content/css/blueprint/screen.css
108
- - data/content/css/coderay.css
109
- - data/content/css/site.css
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
122
- - data/layouts/default.rhtml
123
- - data/lib/breadcrumbs.rb
124
- - data/tasks/blog.rake
125
- - data/tasks/build.rake
126
- - data/tasks/create.rake
127
- - data/tasks/deploy.rake
128
- - data/tasks/growl.rake
129
- - data/tasks/heel.rake
130
- - data/tasks/setup.rb
131
- - data/tasks/validate.rake
132
- - data/templates/_partial.erb
133
- - data/templates/atom_feed.erb
134
- - data/templates/blog/month.erb
135
- - data/templates/blog/post.erb
136
- - data/templates/blog/year.erb
137
- - data/templates/page.erb
138
- - data/templates/presentation.erb
139
- - examples/presentation/Rakefile
140
- - examples/presentation/content/_sample_code.txt
99
+ - bin/webby-gen
100
+ - examples/blog/Sitefile
101
+ - examples/blog/tasks/blog.rake
102
+ - examples/blog/templates/atom_feed.erb
103
+ - examples/blog/templates/blog/month.erb
104
+ - examples/blog/templates/blog/post.erb
105
+ - examples/blog/templates/blog/year.erb
106
+ - examples/presentation/Sitefile
141
107
  - examples/presentation/content/css/uv/twilight.css
142
- - examples/presentation/content/index.txt
143
- - examples/presentation/content/s5/blank.gif
144
- - examples/presentation/content/s5/bodybg.gif
145
- - examples/presentation/content/s5/framing.css
146
- - examples/presentation/content/s5/iepngfix.htc
147
- - examples/presentation/content/s5/opera.css
148
- - examples/presentation/content/s5/outline.css
149
- - examples/presentation/content/s5/pretty.css
150
- - examples/presentation/content/s5/print.css
151
- - examples/presentation/content/s5/s5-core.css
152
- - examples/presentation/content/s5/slides.css
153
- - examples/presentation/content/s5/slides.js
154
- - examples/presentation/layouts/presentation.rhtml
155
- - examples/presentation/tasks/blog.rake
156
- - examples/presentation/tasks/build.rake
157
- - examples/presentation/tasks/create.rake
158
- - examples/presentation/tasks/deploy.rake
159
- - examples/presentation/tasks/growl.rake
160
- - examples/presentation/tasks/heel.rake
161
- - examples/presentation/tasks/setup.rb
162
- - examples/presentation/tasks/validate.rake
163
- - examples/presentation/templates/_partial.erb
108
+ - examples/presentation/content/presentation/_sample_code.txt
109
+ - examples/presentation/content/presentation/index.txt
110
+ - examples/presentation/content/presentation/s5/blank.gif
111
+ - examples/presentation/content/presentation/s5/bodybg.gif
112
+ - examples/presentation/content/presentation/s5/framing.css
113
+ - examples/presentation/content/presentation/s5/iepngfix.htc
114
+ - examples/presentation/content/presentation/s5/opera.css
115
+ - examples/presentation/content/presentation/s5/outline.css
116
+ - examples/presentation/content/presentation/s5/pretty.css
117
+ - examples/presentation/content/presentation/s5/print.css
118
+ - examples/presentation/content/presentation/s5/s5-core.css
119
+ - examples/presentation/content/presentation/s5/slides.css
120
+ - examples/presentation/content/presentation/s5/slides.js
121
+ - examples/presentation/layouts/presentation.txt
122
+ - examples/presentation/templates/_code_partial.erb
164
123
  - examples/presentation/templates/presentation.erb
165
- - examples/webby/Rakefile
124
+ - examples/tumblog/Sitefile
125
+ - examples/tumblog/content/css/tumblog.css
126
+ - examples/tumblog/content/images/tumblog/permalink.gif
127
+ - examples/tumblog/content/images/tumblog/rss.gif
128
+ - examples/tumblog/content/tumblog/200806/the-noble-chicken/index.txt
129
+ - examples/tumblog/content/tumblog/200807/historical-perspectives-on-the-classic-chicken-joke/index.txt
130
+ - examples/tumblog/content/tumblog/200807/mad-city-chickens/index.txt
131
+ - examples/tumblog/content/tumblog/200807/the-wisdom-of-the-dutch/index.txt
132
+ - examples/tumblog/content/tumblog/200807/up-a-tree/index.txt
133
+ - examples/tumblog/content/tumblog/index.txt
134
+ - examples/tumblog/content/tumblog/rss.txt
135
+ - examples/tumblog/layouts/tumblog/default.txt
136
+ - examples/tumblog/layouts/tumblog/post.txt
137
+ - examples/tumblog/lib/tumblog_helper.rb
138
+ - examples/tumblog/tasks/tumblog.rake
139
+ - examples/tumblog/templates/atom_feed.erb
140
+ - examples/tumblog/templates/tumblog/conversation.erb
141
+ - examples/tumblog/templates/tumblog/link.erb
142
+ - examples/tumblog/templates/tumblog/photo.erb
143
+ - examples/tumblog/templates/tumblog/post.erb
144
+ - examples/tumblog/templates/tumblog/quote.erb
145
+ - examples/webby/Sitefile
146
+ - examples/webby/content/communicate/index.txt
147
+ - examples/webby/content/css/background.gif
166
148
  - examples/webby/content/css/blueprint/print.css
167
149
  - examples/webby/content/css/blueprint/screen.css
168
150
  - examples/webby/content/css/coderay.css
169
151
  - examples/webby/content/css/site.css
170
152
  - examples/webby/content/css/uv/twilight.css
171
153
  - examples/webby/content/index.txt
172
- - examples/webby/content/manual/index.txt
154
+ - examples/webby/content/learn/index.txt
173
155
  - examples/webby/content/reference/index.txt
156
+ - examples/webby/content/release-notes/rel-0-9-0/index.txt
174
157
  - examples/webby/content/robots.txt
175
158
  - examples/webby/content/script/jquery.corner.js
176
159
  - examples/webby/content/script/jquery.js
160
+ - examples/webby/content/sitemap.txt
177
161
  - examples/webby/content/tips_and_tricks/index.txt
178
162
  - examples/webby/content/tutorial/index.txt
179
- - examples/webby/layouts/default.rhtml
180
- - examples/webby/tasks/blog.rake
181
- - examples/webby/tasks/build.rake
182
- - examples/webby/tasks/create.rake
183
- - examples/webby/tasks/deploy.rake
184
- - examples/webby/tasks/growl.rake
185
- - examples/webby/tasks/heel.rake
186
- - examples/webby/tasks/setup.rb
187
- - examples/webby/tasks/validate.rake
163
+ - examples/webby/content/user-manual/index.txt
164
+ - examples/webby/layouts/default.txt
188
165
  - examples/webby/templates/page.erb
166
+ - examples/website/Sitefile
167
+ - examples/website/content/css/blueprint/License.txt
168
+ - examples/website/content/css/blueprint/Readme.txt
169
+ - examples/website/content/css/blueprint/compressed/print.css
170
+ - examples/website/content/css/blueprint/compressed/screen.css
171
+ - examples/website/content/css/blueprint/lib/forms.css
172
+ - examples/website/content/css/blueprint/lib/grid.css
173
+ - examples/website/content/css/blueprint/lib/grid.png
174
+ - examples/website/content/css/blueprint/lib/ie.css
175
+ - examples/website/content/css/blueprint/lib/reset.css
176
+ - examples/website/content/css/blueprint/lib/typography.css
177
+ - examples/website/content/css/blueprint/plugins/buttons/Readme
178
+ - examples/website/content/css/blueprint/plugins/buttons/buttons.css
179
+ - examples/website/content/css/blueprint/plugins/buttons/icons/cross.png
180
+ - examples/website/content/css/blueprint/plugins/buttons/icons/key.png
181
+ - examples/website/content/css/blueprint/plugins/buttons/icons/tick.png
182
+ - examples/website/content/css/blueprint/plugins/css-classes/Readme
183
+ - examples/website/content/css/blueprint/plugins/css-classes/css-classes.css
184
+ - examples/website/content/css/blueprint/plugins/fancy-type/Readme
185
+ - examples/website/content/css/blueprint/plugins/fancy-type/fancy-type-compressed.css
186
+ - examples/website/content/css/blueprint/plugins/fancy-type/fancy-type.css
187
+ - examples/website/content/css/blueprint/print.css
188
+ - examples/website/content/css/blueprint/screen.css
189
+ - examples/website/content/css/coderay.css
190
+ - examples/website/content/css/site.css
191
+ - examples/website/content/index.txt
192
+ - examples/website/layouts/default.txt
193
+ - examples/website/lib/breadcrumbs.rb
194
+ - examples/website/templates/_partial.erb
195
+ - examples/website/templates/page.erb
196
+ - examples/website/templates/presentation.erb
189
197
  - lib/webby.rb
198
+ - lib/webby/apps.rb
199
+ - lib/webby/apps/generator.rb
200
+ - lib/webby/apps/main.rb
190
201
  - lib/webby/auto_builder.rb
191
202
  - lib/webby/builder.rb
203
+ - lib/webby/core_ext/enumerable.rb
204
+ - lib/webby/core_ext/hash.rb
205
+ - lib/webby/core_ext/kernel.rb
206
+ - lib/webby/core_ext/string.rb
207
+ - lib/webby/core_ext/time.rb
192
208
  - lib/webby/filters.rb
193
209
  - lib/webby/filters/basepath.rb
194
210
  - lib/webby/filters/erb.rb
@@ -208,7 +224,6 @@ files:
208
224
  - lib/webby/helpers/ultraviolet_helper.rb
209
225
  - lib/webby/helpers/url_helper.rb
210
226
  - lib/webby/link_validator.rb
211
- - lib/webby/main.rb
212
227
  - lib/webby/renderer.rb
213
228
  - lib/webby/resources.rb
214
229
  - lib/webby/resources/db.rb
@@ -221,14 +236,26 @@ files:
221
236
  - lib/webby/stelan/mktemp.rb
222
237
  - lib/webby/stelan/paginator.rb
223
238
  - lib/webby/stelan/spawner.rb
224
- - lib/webby/utils.rb
239
+ - lib/webby/tasks/build.rake
240
+ - lib/webby/tasks/create.rake
241
+ - lib/webby/tasks/deploy.rake
242
+ - lib/webby/tasks/growl.rake
243
+ - lib/webby/tasks/heel.rake
244
+ - lib/webby/tasks/validate.rake
245
+ - spec/core_ext/hash_spec.rb
246
+ - spec/core_ext/string_spec.rb
247
+ - spec/core_ext/time_spec.rb
225
248
  - spec/spec.opts
226
249
  - spec/spec_helper.rb
250
+ - spec/webby/apps/generator_spec.rb
251
+ - spec/webby/apps/main_spec.rb
227
252
  - spec/webby/helpers/capture_helper_spec.rb
228
253
  - spec/webby/resources/file_spec.rb
254
+ - spec/webby/resources_spec.rb
229
255
  - tasks/ann.rake
230
256
  - tasks/bones.rake
231
257
  - tasks/gem.rake
258
+ - tasks/git.rake
232
259
  - tasks/manifest.rake
233
260
  - tasks/notes.rake
234
261
  - tasks/post_load.rake
@@ -260,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
287
  requirements: []
261
288
 
262
289
  rubyforge_project: webby
263
- rubygems_version: 1.1.1
290
+ rubygems_version: 1.2.0
264
291
  signing_key:
265
292
  specification_version: 2
266
293
  summary: static website creation and management
data/data/tasks/blog.rake DELETED
@@ -1,71 +0,0 @@
1
-
2
- namespace :blog do
3
-
4
- # iterate over all the files in the "templates/blog" folder and create a
5
- # rake task corresponding to each file found
6
- FileList["#{Webby.site.template_dir}/blog/*"].each do |template|
7
- next unless test(?f, template)
8
- name = template.pathmap('%n')
9
- next if name =~ %r/^(month|year)$/ # skip month/year blog entries
10
-
11
- desc "Create a new blog #{name}"
12
- task name => [:create_year_index, :create_month_index] do |t|
13
- page, title, dir = Webby::Builder.new_page_info(t)
14
-
15
- # if no directory was given use the default blog directory (underneath
16
- # the content directory)
17
- dir = Webby.site.blog_dir if dir.empty?
18
- dir = File.join(dir, Time.now.strftime('%Y/%m/%d'))
19
-
20
- page = File.join(dir, File.basename(page))
21
- page = Webby::Builder.create(page, :from => template,
22
- :locals => {:title => title, :directory => dir})
23
- exec(::Webby.editor, page) unless ::Webby.editor.nil?
24
- end
25
- end # each
26
-
27
- # this task is used to create the year index file (blog/2008/index.txt)
28
- task :create_year_index do |t|
29
- # parse out information about the page to create
30
- _, _, dir = Webby::Builder.new_page_info(t)
31
- year = Time.now.strftime '%Y'
32
-
33
- # if no directory was given use the default blog directory (underneath
34
- # the content directory)
35
- dir = Webby.site.blog_dir if dir.empty?
36
- dir = File.join(dir, year)
37
-
38
- # determine the filename and template name
39
- fn = File.join(dir, 'index.txt')
40
- tmpl = Dir.glob(File.join(Webby.site.template_dir, 'blog/year.*')).first.to_s
41
-
42
- if test(?f, tmpl) and not test(?f, File.join(Webby.site.content_dir, fn))
43
- Webby::Builder.create(fn, :from => tmpl,
44
- :locals => {:title => year, :directory => dir})
45
- end
46
- end
47
-
48
- # this task is used to create the month index file (blog/2008/04/index.txt)
49
- task :create_month_index do |t|
50
- # parse out information about the page to create
51
- _, _, dir = Webby::Builder.new_page_info(t)
52
- now = Time.now
53
-
54
- # if no directory was given use the default blog directory (underneath
55
- # the content directory)
56
- dir = Webby.site.blog_dir if dir.empty?
57
- dir = File.join(dir, now.strftime('%Y/%m'))
58
-
59
- # determine the filename and template name
60
- fn = File.join(dir, 'index.txt')
61
- tmpl = Dir.glob(File.join(Webby.site.template_dir, 'blog/month.*')).first.to_s
62
-
63
- if test(?f, tmpl) and not test(?f, File.join(Webby.site.content_dir, fn))
64
- Webby::Builder.create(fn, :from => tmpl,
65
- :locals => {:title => year, :directory => dir})
66
- end
67
- end
68
-
69
- end # namespace :blog
70
-
71
- # EOF
@@ -1,22 +0,0 @@
1
-
2
- namespace :create do
3
-
4
- FileList["#{Webby.site.template_dir}/*"].each do |template|
5
- next unless test(?f, template)
6
- name = template.pathmap '%n'
7
-
8
- # if the file is a partial template
9
- name = $1 if name =~ %r/^_(.*)/
10
-
11
- desc "Create a new #{name}"
12
- task name do |t|
13
- page, title, dir = Webby::Builder.new_page_info(t)
14
- page = Webby::Builder.create(page, :from => template,
15
- :locals => {:title => title, :directory => dir})
16
- exec(::Webby.editor, page) unless ::Webby.editor.nil?
17
- end
18
- end # each
19
-
20
- end # namespace :create
21
-
22
- # EOF
@@ -1,12 +0,0 @@
1
-
2
- desc 'Send log events to Growl (Mac OS X only)'
3
- task :growl do
4
- Logging::Logger['Webby'].add_appenders(Logging::Appenders::Growl.new(
5
- "Webby",
6
- :layout => Logging::Layouts::Pattern.new(:pattern => "%5l - Webby\000%m"),
7
- :coalesce => true,
8
- :separator => "\000"
9
- ))
10
- end
11
-
12
- # EOF
data/data/tasks/setup.rb DELETED
@@ -1,17 +0,0 @@
1
-
2
- begin
3
- require 'webby'
4
- rescue LoadError
5
- require 'rubygems'
6
- require 'webby'
7
- end
8
-
9
- SITE = Webby.site
10
-
11
- # Load the other rake files in the tasks folder
12
- Dir.glob(::File.join(%w[tasks *.rake])).sort.each {|fn| import fn}
13
-
14
- # Load all the ruby files in the lib folder
15
- Dir.glob(::File.join(%w[lib ** *.rb])).sort.each {|fn| require fn}
16
-
17
- # EOF
@@ -1,23 +0,0 @@
1
- /* The following styles size, place, and layer the slide components.
2
- Edit these if you want to change the overall slide layout.
3
- The commented lines can be uncommented (and modified, if necessary)
4
- to help you with the rearrangement process. */
5
-
6
- /* target = 1024x768 */
7
-
8
- div#header, div#footer, .slide {width: 100%; top: 0; left: 0;}
9
- div#header {top: 0; height: 3em; z-index: 1;}
10
- div#footer {top: auto; bottom: 0; height: 2.5em; z-index: 5;}
11
- .slide {top: 0; width: 92%; padding: 3.5em 4% 4%; z-index: 2; list-style: none;}
12
- div#controls {left: 50%; bottom: 0; width: 50%; z-index: 100;}
13
- div#controls form {position: absolute; bottom: 0; right: 0; width: 100%;
14
- margin: 0;}
15
- #currentSlide {position: absolute; width: 10%; left: 45%; bottom: 1em; z-index: 10;}
16
- html>body #currentSlide {position: fixed;}
17
-
18
- /*
19
- div#header {background: #FCC;}
20
- div#footer {background: #CCF;}
21
- div#controls {background: #BBD;}
22
- div#currentSlide {background: #FFC;}
23
- */