stasis 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/stasis/plugins/render.rb +6 -1
  2. data/stasis.gemspec +1 -1
  3. metadata +167 -110
@@ -42,7 +42,12 @@ class Stasis
42
42
  output =
43
43
  if Tilt.mappings.keys.include?(File.extname(path)[1..-1])
44
44
  scope = options[:scope] ||= @stasis.action
45
- Tilt.new(path, nil, template_options).render(scope, locals, &block)
45
+ tilt = Tilt.new(path, nil, template_options)
46
+ if block_given?
47
+ tilt.render(scope, locals, &block)
48
+ else
49
+ tilt.render(scope, locals) { nil }
50
+ end
46
51
  else
47
52
  File.read(path)
48
53
  end
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "stasis"
9
- s.version = '0.1.14'
9
+ s.version = '0.1.15'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ 'Winton Welsh' ]
12
12
  s.email = [ 'mail@wintoni.us' ]
metadata CHANGED
@@ -1,145 +1,198 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: stasis
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.14
3
+ version: !ruby/object:Gem::Version
4
+ hash: 5
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 15
10
+ version: 0.1.15
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Winton Welsh
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-11-07 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: albino
16
- requirement: &70292072374900 !ruby/object:Gem::Requirement
17
+
18
+ date: 2012-02-13 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
23
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ requirement: *id001
32
+ prerelease: false
33
+ name: albino
22
34
  type: :development
35
+ - !ruby/object:Gem::Dependency
36
+ version_requirements: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ hash: 3
42
+ segments:
43
+ - 0
44
+ version: "0"
45
+ requirement: *id002
23
46
  prerelease: false
24
- version_requirements: *70292072374900
25
- - !ruby/object:Gem::Dependency
26
47
  name: coffee-script
27
- requirement: &70292072374300 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
48
  type: :development
49
+ - !ruby/object:Gem::Dependency
50
+ version_requirements: &id003 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ hash: 3
56
+ segments:
57
+ - 0
58
+ version: "0"
59
+ requirement: *id003
34
60
  prerelease: false
35
- version_requirements: *70292072374300
36
- - !ruby/object:Gem::Dependency
37
61
  name: haml
38
- requirement: &70292072373600 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
62
  type: :development
63
+ - !ruby/object:Gem::Dependency
64
+ version_requirements: &id004 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ hash: 3
70
+ segments:
71
+ - 0
72
+ version: "0"
73
+ requirement: *id004
45
74
  prerelease: false
46
- version_requirements: *70292072373600
47
- - !ruby/object:Gem::Dependency
48
75
  name: nokogiri
49
- requirement: &70292072372980 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
76
  type: :development
77
+ - !ruby/object:Gem::Dependency
78
+ version_requirements: &id005 !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ hash: 3
84
+ segments:
85
+ - 0
86
+ version: "0"
87
+ requirement: *id005
56
88
  prerelease: false
57
- version_requirements: *70292072372980
58
- - !ruby/object:Gem::Dependency
59
89
  name: rocco
60
- requirement: &70292072372100 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
90
  type: :development
67
- prerelease: false
68
- version_requirements: *70292072372100
69
- - !ruby/object:Gem::Dependency
70
- name: rspec
71
- requirement: &70292072370660 !ruby/object:Gem::Requirement
91
+ - !ruby/object:Gem::Dependency
92
+ version_requirements: &id006 !ruby/object:Gem::Requirement
72
93
  none: false
73
- requirements:
94
+ requirements:
74
95
  - - ~>
75
- - !ruby/object:Gem::Version
76
- version: '1.0'
77
- type: :development
96
+ - !ruby/object:Gem::Version
97
+ hash: 15
98
+ segments:
99
+ - 1
100
+ - 0
101
+ version: "1.0"
102
+ requirement: *id006
78
103
  prerelease: false
79
- version_requirements: *70292072370660
80
- - !ruby/object:Gem::Dependency
81
- name: directory_watcher
82
- requirement: &70292072369860 !ruby/object:Gem::Requirement
104
+ name: rspec
105
+ type: :development
106
+ - !ruby/object:Gem::Dependency
107
+ version_requirements: &id007 !ruby/object:Gem::Requirement
83
108
  none: false
84
- requirements:
109
+ requirements:
85
110
  - - ~>
86
- - !ruby/object:Gem::Version
111
+ - !ruby/object:Gem::Version
112
+ hash: 5
113
+ segments:
114
+ - 1
115
+ - 4
116
+ - 1
87
117
  version: 1.4.1
88
- type: :runtime
118
+ requirement: *id007
89
119
  prerelease: false
90
- version_requirements: *70292072369860
91
- - !ruby/object:Gem::Dependency
92
- name: redis
93
- requirement: &70292072369060 !ruby/object:Gem::Requirement
120
+ name: directory_watcher
121
+ type: :runtime
122
+ - !ruby/object:Gem::Dependency
123
+ version_requirements: &id008 !ruby/object:Gem::Requirement
94
124
  none: false
95
- requirements:
125
+ requirements:
96
126
  - - ~>
97
- - !ruby/object:Gem::Version
127
+ - !ruby/object:Gem::Version
128
+ hash: 3
129
+ segments:
130
+ - 2
131
+ - 2
132
+ - 2
98
133
  version: 2.2.2
99
- type: :runtime
134
+ requirement: *id008
100
135
  prerelease: false
101
- version_requirements: *70292072369060
102
- - !ruby/object:Gem::Dependency
103
- name: slop
104
- requirement: &70292072368120 !ruby/object:Gem::Requirement
136
+ name: redis
137
+ type: :runtime
138
+ - !ruby/object:Gem::Dependency
139
+ version_requirements: &id009 !ruby/object:Gem::Requirement
105
140
  none: false
106
- requirements:
141
+ requirements:
107
142
  - - ~>
108
- - !ruby/object:Gem::Version
143
+ - !ruby/object:Gem::Version
144
+ hash: 11
145
+ segments:
146
+ - 2
147
+ - 1
148
+ - 0
109
149
  version: 2.1.0
110
- type: :runtime
150
+ requirement: *id009
111
151
  prerelease: false
112
- version_requirements: *70292072368120
113
- - !ruby/object:Gem::Dependency
114
- name: tilt
115
- requirement: &70292072367200 !ruby/object:Gem::Requirement
152
+ name: slop
153
+ type: :runtime
154
+ - !ruby/object:Gem::Dependency
155
+ version_requirements: &id010 !ruby/object:Gem::Requirement
116
156
  none: false
117
- requirements:
157
+ requirements:
118
158
  - - ~>
119
- - !ruby/object:Gem::Version
159
+ - !ruby/object:Gem::Version
160
+ hash: 29
161
+ segments:
162
+ - 1
163
+ - 3
164
+ - 3
120
165
  version: 1.3.3
121
- type: :runtime
166
+ requirement: *id010
122
167
  prerelease: false
123
- version_requirements: *70292072367200
124
- - !ruby/object:Gem::Dependency
125
- name: yajl-ruby
126
- requirement: &70292072365880 !ruby/object:Gem::Requirement
168
+ name: tilt
169
+ type: :runtime
170
+ - !ruby/object:Gem::Dependency
171
+ version_requirements: &id011 !ruby/object:Gem::Requirement
127
172
  none: false
128
- requirements:
173
+ requirements:
129
174
  - - ~>
130
- - !ruby/object:Gem::Version
175
+ - !ruby/object:Gem::Version
176
+ hash: 23
177
+ segments:
178
+ - 1
179
+ - 0
180
+ - 0
131
181
  version: 1.0.0
132
- type: :runtime
182
+ requirement: *id011
133
183
  prerelease: false
134
- version_requirements: *70292072365880
184
+ name: yajl-ruby
185
+ type: :runtime
135
186
  description: Stasis is a dynamic framework for static sites.
136
- email:
187
+ email:
137
188
  - mail@wintoni.us
138
- executables:
189
+ executables:
139
190
  - stasis
140
191
  extensions: []
192
+
141
193
  extra_rdoc_files: []
142
- files:
194
+
195
+ files:
143
196
  - .gitignore
144
197
  - Gemfile
145
198
  - LICENSE
@@ -208,37 +261,41 @@ files:
208
261
  - spec/stasis/server_spec.rb
209
262
  - spec/stasis_spec.rb
210
263
  - stasis.gemspec
264
+ has_rdoc: true
211
265
  homepage: http://stasis.me
212
266
  licenses: []
267
+
213
268
  post_install_message:
214
269
  rdoc_options: []
215
- require_paths:
270
+
271
+ require_paths:
216
272
  - lib
217
- required_ruby_version: !ruby/object:Gem::Requirement
273
+ required_ruby_version: !ruby/object:Gem::Requirement
218
274
  none: false
219
- requirements:
220
- - - ! '>='
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
- segments:
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ hash: 3
279
+ segments:
224
280
  - 0
225
- hash: 356971476928678245
226
- required_rubygems_version: !ruby/object:Gem::Requirement
281
+ version: "0"
282
+ required_rubygems_version: !ruby/object:Gem::Requirement
227
283
  none: false
228
- requirements:
229
- - - ! '>='
230
- - !ruby/object:Gem::Version
231
- version: '0'
232
- segments:
284
+ requirements:
285
+ - - ">="
286
+ - !ruby/object:Gem::Version
287
+ hash: 3
288
+ segments:
233
289
  - 0
234
- hash: 356971476928678245
290
+ version: "0"
235
291
  requirements: []
292
+
236
293
  rubyforge_project:
237
- rubygems_version: 1.8.6
294
+ rubygems_version: 1.5.0
238
295
  signing_key:
239
296
  specification_version: 3
240
297
  summary: Static sites made powerful
241
- test_files:
298
+ test_files:
242
299
  - spec/fixtures/project/_partial.html.haml
243
300
  - spec/fixtures/project/before_render_partial.html.haml
244
301
  - spec/fixtures/project/before_render_text.html.haml