pith 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.markdown +10 -3
  2. data/Rakefile +13 -3
  3. data/cucumber.yml +1 -6
  4. data/features/helpers.feature~ +23 -0
  5. data/features/ignorance.feature +12 -1
  6. data/features/ignorance.feature~ +12 -1
  7. data/features/incremental_rebuild.feature~ +24 -0
  8. data/features/layouts.feature +22 -2
  9. data/features/layouts.feature~ +20 -0
  10. data/features/metadata.feature +1 -1
  11. data/features/{linking.feature → relative_linking.feature} +32 -2
  12. data/features/relative_linking.feature~ +109 -0
  13. data/features/step_definitions/build_steps.rb +20 -16
  14. data/features/step_definitions/build_steps.rb~ +32 -11
  15. data/features/support/env.rb +6 -6
  16. data/features/support/env.rb~ +36 -4
  17. data/features/support/rspec_matchers.rb~ +5 -0
  18. data/lib/pith/input/abstract.rb +120 -0
  19. data/lib/pith/input/abstract.rb~ +120 -0
  20. data/lib/pith/input/template.rb +56 -0
  21. data/lib/pith/input/template.rb~ +46 -0
  22. data/lib/pith/input/verbatim.rb +31 -0
  23. data/lib/pith/input/verbatim.rb~ +31 -0
  24. data/lib/pith/input.rb +5 -176
  25. data/lib/pith/input.rb~ +10 -85
  26. data/lib/pith/project.rb +14 -7
  27. data/lib/pith/project.rb~ +36 -11
  28. data/lib/pith/render_context.rb +34 -13
  29. data/lib/pith/render_context.rb~ +54 -17
  30. data/lib/pith/server.rb +0 -1
  31. data/lib/pith/server.rb~ +13 -17
  32. data/lib/pith/version.rb +1 -1
  33. data/lib/pith/version.rb~ +1 -1
  34. data/lib/pith.rb~ +0 -1
  35. data/sample/_out/index.html +14 -0
  36. data/sample/_out/stylesheets/app.css +38 -0
  37. data/sample/index.html.haml +1 -2
  38. data/spec/pith/input/abstract_spec.rb +31 -0
  39. data/spec/pith/input/abstract_spec.rb~ +31 -0
  40. data/spec/pith/metadata_spec.rb +2 -2
  41. data/spec/pith/project_spec.rb +21 -8
  42. data/spec/pith/project_spec.rb~ +74 -0
  43. data/spec/spec_helper.rb~ +27 -0
  44. metadata +76 -6
data/spec/spec_helper.rb~ CHANGED
@@ -0,0 +1,27 @@
1
+ require "rubygems"
2
+
3
+ require "fileutils"
4
+ require "pathname"
5
+
6
+ class Pathname
7
+
8
+ def touch
9
+ FileUtils.touch(self.to_s)
10
+ end
11
+
12
+ end
13
+
14
+ $project_dir = Pathname(__FILE__).expand_path.parent.parent
15
+ $tmp_dir = $project_dir + "tmp"
16
+ $input_dir = $tmp_dir + "input"
17
+ $output_dir = $tmp_dir + "output"
18
+
19
+ Spec::Runner.configure do |config|
20
+
21
+ config.before(:suite) do
22
+ [$input_dir, $output_dir].each do |dir|
23
+ dir.rmtree if dir.exist?
24
+ end
25
+ end
26
+
27
+ end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pith
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 25
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 2
9
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - Mike Williams
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-08-19 00:00:00 +10:00
18
+ date: 2010-08-30 00:00:00 +10:00
18
19
  default_executable: pith
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: tilt
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ~>
26
28
  - !ruby/object:Gem::Version
29
+ hash: 25
27
30
  segments:
28
31
  - 0
29
32
  - 9
@@ -34,9 +37,11 @@ dependencies:
34
37
  name: adsf
35
38
  prerelease: false
36
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
37
41
  requirements:
38
42
  - - ~>
39
43
  - !ruby/object:Gem::Version
44
+ hash: 21
40
45
  segments:
41
46
  - 1
42
47
  - 0
@@ -48,9 +53,11 @@ dependencies:
48
53
  name: rspec
49
54
  prerelease: false
50
55
  requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
51
57
  requirements:
52
58
  - - ">="
53
59
  - !ruby/object:Gem::Version
60
+ hash: 13
54
61
  segments:
55
62
  - 1
56
63
  - 2
@@ -62,9 +69,11 @@ dependencies:
62
69
  name: cucumber
63
70
  prerelease: false
64
71
  requirement: &id004 !ruby/object:Gem::Requirement
72
+ none: false
65
73
  requirements:
66
74
  - - ">="
67
75
  - !ruby/object:Gem::Version
76
+ hash: 57
68
77
  segments:
69
78
  - 0
70
79
  - 8
@@ -72,7 +81,9 @@ dependencies:
72
81
  version: 0.8.3
73
82
  type: :development
74
83
  version_requirements: *id004
75
- description:
84
+ description: |
85
+ Pith builds static websites, using markup/template languages including Haml, Sass, ERb, Liquid, Markdown and Textile.
86
+
76
87
  email: mdub@dogbiscuit.org
77
88
  executables:
78
89
  - pith
@@ -83,6 +94,12 @@ extra_rdoc_files: []
83
94
  files:
84
95
  - lib/pith/console_logger.rb
85
96
  - lib/pith/console_logger.rb~
97
+ - lib/pith/input/abstract.rb
98
+ - lib/pith/input/abstract.rb~
99
+ - lib/pith/input/template.rb
100
+ - lib/pith/input/template.rb~
101
+ - lib/pith/input/verbatim.rb
102
+ - lib/pith/input/verbatim.rb~
86
103
  - lib/pith/input.rb
87
104
  - lib/pith/input.rb~
88
105
  - lib/pith/metadata.rb
@@ -98,9 +115,51 @@ files:
98
115
  - lib/pith.rb
99
116
  - lib/pith.rb~
100
117
  - sample/_layouts/standard.haml
118
+ - sample/_out/index.html
119
+ - sample/_out/stylesheets/app.css
101
120
  - sample/index.html.haml
102
121
  - sample/stylesheets/app.css.sass
103
122
  - README.markdown
123
+ - Rakefile
124
+ - spec/pith/input/abstract_spec.rb
125
+ - spec/pith/input/abstract_spec.rb~
126
+ - spec/pith/metadata_spec.rb
127
+ - spec/pith/metadata_spec.rb~
128
+ - spec/pith/project_spec.rb
129
+ - spec/pith/project_spec.rb~
130
+ - spec/spec_helper.rb
131
+ - spec/spec_helper.rb~
132
+ - features/content_for.feature
133
+ - features/content_for.feature~
134
+ - features/haml.feature
135
+ - features/haml.feature~
136
+ - features/helpers.feature
137
+ - features/helpers.feature~
138
+ - features/ignorance.feature
139
+ - features/ignorance.feature~
140
+ - features/include.feature
141
+ - features/include.feature~
142
+ - features/incremental_rebuild.feature
143
+ - features/incremental_rebuild.feature~
144
+ - features/layouts.feature
145
+ - features/layouts.feature~
146
+ - features/linking.feature~
147
+ - features/metadata.feature
148
+ - features/metadata.feature~
149
+ - features/relative_linking.feature
150
+ - features/relative_linking.feature~
151
+ - features/step_definitions/build_steps.rb
152
+ - features/step_definitions/build_steps.rb~
153
+ - features/support/env.rb
154
+ - features/support/env.rb~
155
+ - features/support/rspec_matchers.rb
156
+ - features/support/rspec_matchers.rb~
157
+ - features/textile.feature
158
+ - features/textile.feature~
159
+ - features/verbatim.feature
160
+ - features/verbatim.feature~
161
+ - cucumber.yml
162
+ - bin/pith
104
163
  has_rdoc: true
105
164
  homepage: http://github.com/mdub/pith
106
165
  licenses: []
@@ -111,31 +170,38 @@ rdoc_options: []
111
170
  require_paths:
112
171
  - lib
113
172
  required_ruby_version: !ruby/object:Gem::Requirement
173
+ none: false
114
174
  requirements:
115
175
  - - ">="
116
176
  - !ruby/object:Gem::Version
177
+ hash: 3
117
178
  segments:
118
179
  - 0
119
180
  version: "0"
120
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
+ none: false
121
183
  requirements:
122
184
  - - ">="
123
185
  - !ruby/object:Gem::Version
186
+ hash: 3
124
187
  segments:
125
188
  - 0
126
189
  version: "0"
127
190
  requirements: []
128
191
 
129
192
  rubyforge_project:
130
- rubygems_version: 1.3.6
193
+ rubygems_version: 1.3.7
131
194
  signing_key:
132
195
  specification_version: 3
133
196
  summary: A static website generator
134
197
  test_files:
135
198
  - Rakefile
199
+ - spec/pith/input/abstract_spec.rb
200
+ - spec/pith/input/abstract_spec.rb~
136
201
  - spec/pith/metadata_spec.rb
137
202
  - spec/pith/metadata_spec.rb~
138
203
  - spec/pith/project_spec.rb
204
+ - spec/pith/project_spec.rb~
139
205
  - spec/spec_helper.rb
140
206
  - spec/spec_helper.rb~
141
207
  - features/content_for.feature
@@ -143,22 +209,26 @@ test_files:
143
209
  - features/haml.feature
144
210
  - features/haml.feature~
145
211
  - features/helpers.feature
212
+ - features/helpers.feature~
146
213
  - features/ignorance.feature
147
214
  - features/ignorance.feature~
148
215
  - features/include.feature
149
216
  - features/include.feature~
150
217
  - features/incremental_rebuild.feature
218
+ - features/incremental_rebuild.feature~
151
219
  - features/layouts.feature
152
220
  - features/layouts.feature~
153
- - features/linking.feature
154
221
  - features/linking.feature~
155
222
  - features/metadata.feature
156
223
  - features/metadata.feature~
224
+ - features/relative_linking.feature
225
+ - features/relative_linking.feature~
157
226
  - features/step_definitions/build_steps.rb
158
227
  - features/step_definitions/build_steps.rb~
159
228
  - features/support/env.rb
160
229
  - features/support/env.rb~
161
230
  - features/support/rspec_matchers.rb
231
+ - features/support/rspec_matchers.rb~
162
232
  - features/textile.feature
163
233
  - features/textile.feature~
164
234
  - features/verbatim.feature