massimo 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/lib/massimo/site.rb CHANGED
@@ -113,14 +113,11 @@ module Massimo
113
113
  reload_files Dir.glob(dir_for(:helpers, "*.rb"))
114
114
  end
115
115
 
116
- # Relod the given file by removing their constants and loading the file again.
117
- # Return an Array of the reloaded Constants.
116
+ # Reload the given files and an Array of the reloaded Constants.
118
117
  def reload_files(files)
119
118
  files.collect do |file|
120
- class_name = File.basename(file).gsub(File.extname(file), "").classify
121
- Object.class_eval { remove_const(class_name) if const_defined?(class_name) }
122
119
  load(file)
123
- class_name.constantize rescue nil
120
+ File.basename(file).gsub(File.extname(file), "").classify.constantize rescue nil
124
121
  end
125
122
  end
126
123
  end
@@ -4,7 +4,7 @@ module Tilt
4
4
 
5
5
  # My Markdown implementation.
6
6
  class MarkdownTemplate < Template
7
- def compile!
7
+ def prepare
8
8
  @erb_engine = Tilt::ERBTemplate.new { data }
9
9
  end
10
10
 
data/massimo.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{massimo}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Browne"]
12
- s.date = %q{2010-02-22}
12
+ s.date = %q{2010-03-29}
13
13
  s.default_executable = %q{massimo}
14
14
  s.description = %q{Massimo builds HTML, Javascript, and CSS Files from your source.}
15
15
  s.email = %q{me@petebrowne.com}
@@ -85,20 +85,20 @@ Gem::Specification.new do |s|
85
85
  s.homepage = %q{http://github.com/peterbrowne/massimo}
86
86
  s.rdoc_options = ["--charset=UTF-8"]
87
87
  s.require_paths = ["lib"]
88
- s.rubygems_version = %q{1.3.5}
88
+ s.rubygems_version = %q{1.3.6}
89
89
  s.summary = %q{Massimo is a static website builder.}
90
90
  s.test_files = [
91
- "test/assertions.rb",
91
+ "test/test_helpers.rb",
92
+ "test/assertions.rb",
93
+ "test/test_stylesheet.rb",
94
+ "test/test_site.rb",
92
95
  "test/helper.rb",
93
- "test/source/helpers/test_helper.rb",
94
- "test/source/lib/site.rb",
95
- "test/test_helpers.rb",
96
- "test/test_javascript.rb",
97
- "test/test_page.rb",
98
96
  "test/test_resource.rb",
99
- "test/test_site.rb",
100
- "test/test_stylesheet.rb",
101
- "test/test_view.rb"
97
+ "test/test_page.rb",
98
+ "test/test_view.rb",
99
+ "test/test_javascript.rb",
100
+ "test/source/lib/site.rb",
101
+ "test/source/helpers/test_helper.rb"
102
102
  ]
103
103
 
104
104
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: massimo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 4
8
+ - 3
9
+ version: 0.4.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - Peter Browne
@@ -9,79 +14,108 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-22 00:00:00 -06:00
17
+ date: 2010-03-29 00:00:00 -05:00
13
18
  default_executable: massimo
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: shoulda
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 10
30
+ - 3
23
31
  version: 2.10.3
24
- version:
32
+ type: :development
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: rr
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 10
44
+ - 9
33
45
  version: 0.10.9
34
- version:
46
+ type: :development
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: activesupport
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
40
52
  requirements:
41
53
  - - ">="
42
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 3
57
+ - 0
58
+ - 0
59
+ - beta
43
60
  version: 3.0.0.beta
44
- version:
61
+ type: :runtime
62
+ version_requirements: *id003
45
63
  - !ruby/object:Gem::Dependency
46
64
  name: sinatra_more
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
50
67
  requirements:
51
68
  - - ">="
52
69
  - !ruby/object:Gem::Version
70
+ segments:
71
+ - 0
72
+ - 3
73
+ - 39
53
74
  version: 0.3.39
54
- version:
75
+ type: :runtime
76
+ version_requirements: *id004
55
77
  - !ruby/object:Gem::Dependency
56
78
  name: directory_watcher
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
79
+ prerelease: false
80
+ requirement: &id005 !ruby/object:Gem::Requirement
60
81
  requirements:
61
82
  - - ">="
62
83
  - !ruby/object:Gem::Version
84
+ segments:
85
+ - 1
86
+ - 3
87
+ - 1
63
88
  version: 1.3.1
64
- version:
89
+ type: :runtime
90
+ version_requirements: *id005
65
91
  - !ruby/object:Gem::Dependency
66
92
  name: sprockets
67
- type: :runtime
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
93
+ prerelease: false
94
+ requirement: &id006 !ruby/object:Gem::Requirement
70
95
  requirements:
71
96
  - - ">="
72
97
  - !ruby/object:Gem::Version
98
+ segments:
99
+ - 1
100
+ - 0
101
+ - 2
73
102
  version: 1.0.2
74
- version:
103
+ type: :runtime
104
+ version_requirements: *id006
75
105
  - !ruby/object:Gem::Dependency
76
106
  name: jsmin
77
- type: :runtime
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
107
+ prerelease: false
108
+ requirement: &id007 !ruby/object:Gem::Requirement
80
109
  requirements:
81
110
  - - ">="
82
111
  - !ruby/object:Gem::Version
112
+ segments:
113
+ - 1
114
+ - 0
115
+ - 1
83
116
  version: 1.0.1
84
- version:
117
+ type: :runtime
118
+ version_requirements: *id007
85
119
  description: Massimo builds HTML, Javascript, and CSS Files from your source.
86
120
  email: me@petebrowne.com
87
121
  executables:
@@ -167,30 +201,32 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
201
  requirements:
168
202
  - - ">="
169
203
  - !ruby/object:Gem::Version
204
+ segments:
205
+ - 0
170
206
  version: "0"
171
- version:
172
207
  required_rubygems_version: !ruby/object:Gem::Requirement
173
208
  requirements:
174
209
  - - ">="
175
210
  - !ruby/object:Gem::Version
211
+ segments:
212
+ - 0
176
213
  version: "0"
177
- version:
178
214
  requirements: []
179
215
 
180
216
  rubyforge_project:
181
- rubygems_version: 1.3.5
217
+ rubygems_version: 1.3.6
182
218
  signing_key:
183
219
  specification_version: 3
184
220
  summary: Massimo is a static website builder.
185
221
  test_files:
222
+ - test/test_helpers.rb
186
223
  - test/assertions.rb
224
+ - test/test_stylesheet.rb
225
+ - test/test_site.rb
187
226
  - test/helper.rb
188
- - test/source/helpers/test_helper.rb
189
- - test/source/lib/site.rb
190
- - test/test_helpers.rb
191
- - test/test_javascript.rb
192
- - test/test_page.rb
193
227
  - test/test_resource.rb
194
- - test/test_site.rb
195
- - test/test_stylesheet.rb
228
+ - test/test_page.rb
196
229
  - test/test_view.rb
230
+ - test/test_javascript.rb
231
+ - test/source/lib/site.rb
232
+ - test/source/helpers/test_helper.rb