sinatra_more 0.3.41 → 0.3.42
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +25 -0
- data/Gemfile +0 -5
- data/README.rdoc +52 -51
- data/Rakefile +4 -28
- data/lib/sinatra_more/markup_plugin/form_helpers.rb +4 -2
- data/lib/sinatra_more/version.rb +3 -0
- data/sinatra_more.gemspec +28 -276
- data/test/helper.rb +1 -1
- data/test/markup_plugin/test_form_helpers.rb +10 -0
- data/test/test_warden_plugin.rb +11 -11
- metadata +121 -351
- data/Gemfile.lock +0 -51
- data/VERSION +0 -1
- data/test/active_support_helpers.rb +0 -8
data/test/helper.rb
CHANGED
@@ -331,6 +331,16 @@ class TestFormHelpers < Test::Unit::TestCase
|
|
331
331
|
assert_has_tag('select option', :content => 'Black', :value => 'black1') { actual_html }
|
332
332
|
end
|
333
333
|
|
334
|
+
should "should mark correct options as selected" do
|
335
|
+
options = [['Fun', 'f1'], ['Funny', 'f2'], ['Funniest', 'f3']]
|
336
|
+
actual_html = select_tag(:fun_level, :options => options, :selected => ['Fun', 'Funny'], :multiple => true)
|
337
|
+
assert_has_tag(:select, :name => 'fun_level[]') { actual_html }
|
338
|
+
assert_has_tag('select option', :selected => 'selected', :count => 2) { actual_html}
|
339
|
+
assert_has_tag('select option', :content => 'Fun', :value => 'f1', :selected => 'selected') { actual_html }
|
340
|
+
assert_has_tag('select option', :content => 'Funny', :value => 'f2', :selected => 'selected') { actual_html }
|
341
|
+
assert_has_tag('select option', :content => 'Funniest', :value => 'f3') { actual_html }
|
342
|
+
end
|
343
|
+
|
334
344
|
should "display select tag in erb" do
|
335
345
|
visit '/erb/form_tag'
|
336
346
|
assert_have_selector 'form.simple-form select', :count => 1, :name => 'color'
|
data/test/test_warden_plugin.rb
CHANGED
@@ -5,7 +5,7 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
5
5
|
def app
|
6
6
|
WardenDemo.tap { |app| app.set :environment, :test }
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
9
|
context 'for authenticate_user! helper' do
|
10
10
|
setup do
|
11
11
|
visit '/login', :post, :username => 'john21', :password => 'secret'
|
@@ -15,7 +15,7 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
15
15
|
assert_have_selector :h1, :content => "John"
|
16
16
|
end
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
context 'for logout_user! helper' do
|
20
20
|
setup do
|
21
21
|
visit '/login', :post, :username => 'john21', :password => 'secret'
|
@@ -26,7 +26,7 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
26
26
|
assert_have_selector :h2, :content => "Not logged in"
|
27
27
|
end
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
30
|
context 'for logged_in? helper when logged in' do
|
31
31
|
setup do
|
32
32
|
visit '/login', :post, :username => 'john21', :password => 'secret'
|
@@ -36,7 +36,7 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
36
36
|
assert_have_selector :h1, :content => 'logged_in? true'
|
37
37
|
end
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
context 'for logged_in? helper when logged out' do
|
41
41
|
setup do
|
42
42
|
visit '/logged_in'
|
@@ -45,7 +45,7 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
45
45
|
assert_have_selector :h1, :content => 'logged_in? false'
|
46
46
|
end
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
context 'for authenticated? helper when logged in' do
|
50
50
|
setup do
|
51
51
|
visit '/login', :post, :username => 'john21', :password => 'secret'
|
@@ -55,7 +55,7 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
55
55
|
assert_have_selector :p, :content => "Dashboard, You are logged in!"
|
56
56
|
end
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
context 'for authenticated? helper when logged out' do
|
60
60
|
setup do
|
61
61
|
visit '/authenticated'
|
@@ -64,7 +64,7 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
64
64
|
assert_have_no_selector :p, :content => "Dashboard, You are logged in!"
|
65
65
|
end
|
66
66
|
end
|
67
|
-
|
67
|
+
|
68
68
|
context 'for unregistered? helper when logged in' do
|
69
69
|
setup do
|
70
70
|
visit '/login', :post, :username => 'john21', :password => 'secret'
|
@@ -74,7 +74,7 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
74
74
|
assert_have_no_selector :p, :content => "Dashboard, You are unregistered!"
|
75
75
|
end
|
76
76
|
end
|
77
|
-
|
77
|
+
|
78
78
|
context 'for unregistered? helper when logged out' do
|
79
79
|
setup do
|
80
80
|
visit '/unregistered'
|
@@ -83,7 +83,7 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
83
83
|
assert_have_selector :p, :content => "Dashboard, You are unregistered!"
|
84
84
|
end
|
85
85
|
end
|
86
|
-
|
86
|
+
|
87
87
|
context 'for must_be_authorized! helper with valid login' do
|
88
88
|
setup do
|
89
89
|
visit '/login', :post, :username => 'john21', :password => 'secret'
|
@@ -93,12 +93,12 @@ class TestWardenPlugin < Test::Unit::TestCase
|
|
93
93
|
assert_have_selector :h1, :content => "Valid Authorized Page"
|
94
94
|
end
|
95
95
|
end
|
96
|
-
|
96
|
+
|
97
97
|
context 'for must_be_authorized! helper when not logged in' do
|
98
98
|
setup do
|
99
99
|
visit '/must_be_authorized'
|
100
100
|
end
|
101
|
-
|
101
|
+
should_eventually "be forced to login" do
|
102
102
|
assert_have_selector :h1, :content => "Please login!"
|
103
103
|
end
|
104
104
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra_more
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 71
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 42
|
10
|
+
version: 0.3.42
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nathan Esquenazi
|
@@ -15,84 +15,60 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-18 00:00:00 -08:00
|
19
19
|
default_executable: sinatra_gen
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
22
|
+
name: sinatra
|
23
23
|
prerelease: false
|
24
|
-
|
25
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
25
|
none: false
|
27
26
|
requirements:
|
28
27
|
- - ">="
|
29
28
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
29
|
+
hash: 63
|
31
30
|
segments:
|
32
31
|
- 0
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
- 9
|
33
|
+
- 2
|
34
|
+
version: 0.9.2
|
36
35
|
type: :runtime
|
37
|
-
|
38
|
-
name: builder
|
39
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
|
-
requirements:
|
42
|
-
- - ">="
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 3
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
version: "0"
|
48
|
-
requirement: *id002
|
36
|
+
version_requirements: *id001
|
49
37
|
- !ruby/object:Gem::Dependency
|
50
|
-
|
38
|
+
name: tilt
|
51
39
|
prerelease: false
|
52
|
-
|
53
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
54
41
|
none: false
|
55
42
|
requirements:
|
56
43
|
- - ">="
|
57
44
|
- !ruby/object:Gem::Version
|
58
|
-
hash:
|
45
|
+
hash: 15
|
59
46
|
segments:
|
60
47
|
- 0
|
61
|
-
|
62
|
-
|
63
|
-
- !ruby/object:Gem::Dependency
|
48
|
+
- 2
|
49
|
+
version: "0.2"
|
64
50
|
type: :runtime
|
65
|
-
|
66
|
-
name: warden
|
67
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
|
-
requirements:
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
hash: 3
|
73
|
-
segments:
|
74
|
-
- 0
|
75
|
-
version: "0"
|
76
|
-
requirement: *id004
|
51
|
+
version_requirements: *id002
|
77
52
|
- !ruby/object:Gem::Dependency
|
78
|
-
|
53
|
+
name: thor
|
79
54
|
prerelease: false
|
80
|
-
|
81
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
82
56
|
none: false
|
83
57
|
requirements:
|
84
58
|
- - ">="
|
85
59
|
- !ruby/object:Gem::Version
|
86
|
-
hash:
|
60
|
+
hash: 35
|
87
61
|
segments:
|
88
62
|
- 0
|
89
|
-
|
90
|
-
|
91
|
-
|
63
|
+
- 11
|
64
|
+
- 8
|
65
|
+
version: 0.11.8
|
92
66
|
type: :runtime
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: activesupport
|
93
70
|
prerelease: false
|
94
|
-
|
95
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
96
72
|
none: false
|
97
73
|
requirements:
|
98
74
|
- - ">="
|
@@ -101,92 +77,28 @@ dependencies:
|
|
101
77
|
segments:
|
102
78
|
- 0
|
103
79
|
version: "0"
|
104
|
-
|
105
|
-
|
106
|
-
type: :development
|
107
|
-
prerelease: false
|
108
|
-
name: haml
|
109
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
|
-
requirements:
|
112
|
-
- - ">="
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
hash: 27
|
115
|
-
segments:
|
116
|
-
- 2
|
117
|
-
- 2
|
118
|
-
- 14
|
119
|
-
version: 2.2.14
|
120
|
-
requirement: *id007
|
121
|
-
- !ruby/object:Gem::Dependency
|
122
|
-
type: :development
|
123
|
-
prerelease: false
|
124
|
-
name: shoulda
|
125
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
|
-
requirements:
|
128
|
-
- - ">="
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
hash: 35
|
131
|
-
segments:
|
132
|
-
- 2
|
133
|
-
- 10
|
134
|
-
- 2
|
135
|
-
version: 2.10.2
|
136
|
-
requirement: *id008
|
80
|
+
type: :runtime
|
81
|
+
version_requirements: *id004
|
137
82
|
- !ruby/object:Gem::Dependency
|
138
|
-
|
83
|
+
name: bundler
|
139
84
|
prerelease: false
|
140
|
-
|
141
|
-
version_requirements: &id009 !ruby/object:Gem::Requirement
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
142
86
|
none: false
|
143
87
|
requirements:
|
144
88
|
- - ">="
|
145
89
|
- !ruby/object:Gem::Version
|
146
|
-
hash:
|
90
|
+
hash: 63
|
147
91
|
segments:
|
148
92
|
- 0
|
149
93
|
- 9
|
150
|
-
-
|
151
|
-
version: 0.9.
|
152
|
-
|
153
|
-
|
154
|
-
type: :development
|
155
|
-
prerelease: false
|
156
|
-
name: rack-test
|
157
|
-
version_requirements: &id010 !ruby/object:Gem::Requirement
|
158
|
-
none: false
|
159
|
-
requirements:
|
160
|
-
- - ">="
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
hash: 11
|
163
|
-
segments:
|
164
|
-
- 0
|
165
|
-
- 5
|
166
|
-
- 0
|
167
|
-
version: 0.5.0
|
168
|
-
requirement: *id010
|
169
|
-
- !ruby/object:Gem::Dependency
|
170
|
-
type: :development
|
171
|
-
prerelease: false
|
172
|
-
name: webrat
|
173
|
-
version_requirements: &id011 !ruby/object:Gem::Requirement
|
174
|
-
none: false
|
175
|
-
requirements:
|
176
|
-
- - ">="
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
hash: 9
|
179
|
-
segments:
|
180
|
-
- 0
|
181
|
-
- 5
|
182
|
-
- 1
|
183
|
-
version: 0.5.1
|
184
|
-
requirement: *id011
|
94
|
+
- 2
|
95
|
+
version: 0.9.2
|
96
|
+
type: :runtime
|
97
|
+
version_requirements: *id005
|
185
98
|
- !ruby/object:Gem::Dependency
|
186
|
-
type: :development
|
187
|
-
prerelease: false
|
188
99
|
name: haml
|
189
|
-
|
100
|
+
prerelease: false
|
101
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
190
102
|
none: false
|
191
103
|
requirements:
|
192
104
|
- - ">="
|
@@ -197,12 +109,12 @@ dependencies:
|
|
197
109
|
- 2
|
198
110
|
- 14
|
199
111
|
version: 2.2.14
|
200
|
-
requirement: *id012
|
201
|
-
- !ruby/object:Gem::Dependency
|
202
112
|
type: :development
|
203
|
-
|
113
|
+
version_requirements: *id006
|
114
|
+
- !ruby/object:Gem::Dependency
|
204
115
|
name: shoulda
|
205
|
-
|
116
|
+
prerelease: false
|
117
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
206
118
|
none: false
|
207
119
|
requirements:
|
208
120
|
- - ">="
|
@@ -213,12 +125,12 @@ dependencies:
|
|
213
125
|
- 10
|
214
126
|
- 2
|
215
127
|
version: 2.10.2
|
216
|
-
requirement: *id013
|
217
|
-
- !ruby/object:Gem::Dependency
|
218
128
|
type: :development
|
219
|
-
|
129
|
+
version_requirements: *id007
|
130
|
+
- !ruby/object:Gem::Dependency
|
220
131
|
name: mocha
|
221
|
-
|
132
|
+
prerelease: false
|
133
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
222
134
|
none: false
|
223
135
|
requirements:
|
224
136
|
- - ">="
|
@@ -229,12 +141,12 @@ dependencies:
|
|
229
141
|
- 9
|
230
142
|
- 7
|
231
143
|
version: 0.9.7
|
232
|
-
requirement: *id014
|
233
|
-
- !ruby/object:Gem::Dependency
|
234
144
|
type: :development
|
235
|
-
|
145
|
+
version_requirements: *id008
|
146
|
+
- !ruby/object:Gem::Dependency
|
236
147
|
name: rack-test
|
237
|
-
|
148
|
+
prerelease: false
|
149
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
238
150
|
none: false
|
239
151
|
requirements:
|
240
152
|
- - ">="
|
@@ -245,12 +157,12 @@ dependencies:
|
|
245
157
|
- 5
|
246
158
|
- 0
|
247
159
|
version: 0.5.0
|
248
|
-
requirement: *id015
|
249
|
-
- !ruby/object:Gem::Dependency
|
250
160
|
type: :development
|
251
|
-
|
161
|
+
version_requirements: *id009
|
162
|
+
- !ruby/object:Gem::Dependency
|
252
163
|
name: webrat
|
253
|
-
|
164
|
+
prerelease: false
|
165
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
254
166
|
none: false
|
255
167
|
requirements:
|
256
168
|
- - ">="
|
@@ -261,267 +173,96 @@ dependencies:
|
|
261
173
|
- 5
|
262
174
|
- 1
|
263
175
|
version: 0.5.1
|
264
|
-
requirement: *id016
|
265
|
-
- !ruby/object:Gem::Dependency
|
266
|
-
type: :development
|
267
|
-
prerelease: false
|
268
|
-
name: haml
|
269
|
-
version_requirements: &id017 !ruby/object:Gem::Requirement
|
270
|
-
none: false
|
271
|
-
requirements:
|
272
|
-
- - ">="
|
273
|
-
- !ruby/object:Gem::Version
|
274
|
-
hash: 27
|
275
|
-
segments:
|
276
|
-
- 2
|
277
|
-
- 2
|
278
|
-
- 14
|
279
|
-
version: 2.2.14
|
280
|
-
requirement: *id017
|
281
|
-
- !ruby/object:Gem::Dependency
|
282
176
|
type: :development
|
283
|
-
|
284
|
-
name: shoulda
|
285
|
-
version_requirements: &id018 !ruby/object:Gem::Requirement
|
286
|
-
none: false
|
287
|
-
requirements:
|
288
|
-
- - ">="
|
289
|
-
- !ruby/object:Gem::Version
|
290
|
-
hash: 35
|
291
|
-
segments:
|
292
|
-
- 2
|
293
|
-
- 10
|
294
|
-
- 2
|
295
|
-
version: 2.10.2
|
296
|
-
requirement: *id018
|
297
|
-
- !ruby/object:Gem::Dependency
|
298
|
-
type: :development
|
299
|
-
prerelease: false
|
300
|
-
name: mocha
|
301
|
-
version_requirements: &id019 !ruby/object:Gem::Requirement
|
302
|
-
none: false
|
303
|
-
requirements:
|
304
|
-
- - ">="
|
305
|
-
- !ruby/object:Gem::Version
|
306
|
-
hash: 53
|
307
|
-
segments:
|
308
|
-
- 0
|
309
|
-
- 9
|
310
|
-
- 7
|
311
|
-
version: 0.9.7
|
312
|
-
requirement: *id019
|
177
|
+
version_requirements: *id010
|
313
178
|
- !ruby/object:Gem::Dependency
|
314
|
-
|
179
|
+
name: jeweler
|
315
180
|
prerelease: false
|
316
|
-
|
317
|
-
version_requirements: &id020 !ruby/object:Gem::Requirement
|
181
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
318
182
|
none: false
|
319
183
|
requirements:
|
320
184
|
- - ">="
|
321
185
|
- !ruby/object:Gem::Version
|
322
|
-
hash:
|
186
|
+
hash: 3
|
323
187
|
segments:
|
324
188
|
- 0
|
325
|
-
|
326
|
-
- 0
|
327
|
-
version: 0.5.0
|
328
|
-
requirement: *id020
|
329
|
-
- !ruby/object:Gem::Dependency
|
189
|
+
version: "0"
|
330
190
|
type: :development
|
331
|
-
|
332
|
-
name: webrat
|
333
|
-
version_requirements: &id021 !ruby/object:Gem::Requirement
|
334
|
-
none: false
|
335
|
-
requirements:
|
336
|
-
- - ">="
|
337
|
-
- !ruby/object:Gem::Version
|
338
|
-
hash: 9
|
339
|
-
segments:
|
340
|
-
- 0
|
341
|
-
- 5
|
342
|
-
- 1
|
343
|
-
version: 0.5.1
|
344
|
-
requirement: *id021
|
345
|
-
- !ruby/object:Gem::Dependency
|
346
|
-
type: :runtime
|
347
|
-
prerelease: false
|
348
|
-
name: sinatra
|
349
|
-
version_requirements: &id022 !ruby/object:Gem::Requirement
|
350
|
-
none: false
|
351
|
-
requirements:
|
352
|
-
- - ">="
|
353
|
-
- !ruby/object:Gem::Version
|
354
|
-
hash: 63
|
355
|
-
segments:
|
356
|
-
- 0
|
357
|
-
- 9
|
358
|
-
- 2
|
359
|
-
version: 0.9.2
|
360
|
-
requirement: *id022
|
361
|
-
- !ruby/object:Gem::Dependency
|
362
|
-
type: :runtime
|
363
|
-
prerelease: false
|
364
|
-
name: tilt
|
365
|
-
version_requirements: &id023 !ruby/object:Gem::Requirement
|
366
|
-
none: false
|
367
|
-
requirements:
|
368
|
-
- - ">="
|
369
|
-
- !ruby/object:Gem::Version
|
370
|
-
hash: 15
|
371
|
-
segments:
|
372
|
-
- 0
|
373
|
-
- 2
|
374
|
-
version: "0.2"
|
375
|
-
requirement: *id023
|
191
|
+
version_requirements: *id011
|
376
192
|
- !ruby/object:Gem::Dependency
|
377
|
-
|
193
|
+
name: builder
|
378
194
|
prerelease: false
|
379
|
-
|
380
|
-
version_requirements: &id024 !ruby/object:Gem::Requirement
|
195
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
381
196
|
none: false
|
382
197
|
requirements:
|
383
198
|
- - ">="
|
384
199
|
- !ruby/object:Gem::Version
|
385
|
-
hash:
|
386
|
-
segments:
|
387
|
-
- 0
|
388
|
-
- 11
|
389
|
-
- 8
|
390
|
-
version: 0.11.8
|
391
|
-
requirement: *id024
|
392
|
-
- !ruby/object:Gem::Dependency
|
393
|
-
type: :runtime
|
394
|
-
prerelease: false
|
395
|
-
name: activesupport
|
396
|
-
version_requirements: &id025 !ruby/object:Gem::Requirement
|
397
|
-
none: false
|
398
|
-
requirements:
|
399
|
-
- - <
|
400
|
-
- !ruby/object:Gem::Version
|
401
|
-
hash: 7
|
200
|
+
hash: 3
|
402
201
|
segments:
|
403
|
-
- 3
|
404
|
-
- 0
|
405
202
|
- 0
|
406
|
-
version:
|
407
|
-
|
203
|
+
version: "0"
|
204
|
+
type: :development
|
205
|
+
version_requirements: *id012
|
408
206
|
- !ruby/object:Gem::Dependency
|
409
|
-
|
207
|
+
name: tmail
|
410
208
|
prerelease: false
|
411
|
-
|
412
|
-
version_requirements: &id026 !ruby/object:Gem::Requirement
|
209
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
413
210
|
none: false
|
414
211
|
requirements:
|
415
212
|
- - ">="
|
416
213
|
- !ruby/object:Gem::Version
|
417
|
-
hash:
|
214
|
+
hash: 3
|
418
215
|
segments:
|
419
216
|
- 0
|
420
|
-
|
421
|
-
- 2
|
422
|
-
version: 0.9.2
|
423
|
-
requirement: *id026
|
424
|
-
- !ruby/object:Gem::Dependency
|
425
|
-
type: :development
|
426
|
-
prerelease: false
|
427
|
-
name: haml
|
428
|
-
version_requirements: &id027 !ruby/object:Gem::Requirement
|
429
|
-
none: false
|
430
|
-
requirements:
|
431
|
-
- - ">="
|
432
|
-
- !ruby/object:Gem::Version
|
433
|
-
hash: 27
|
434
|
-
segments:
|
435
|
-
- 2
|
436
|
-
- 2
|
437
|
-
- 14
|
438
|
-
version: 2.2.14
|
439
|
-
requirement: *id027
|
440
|
-
- !ruby/object:Gem::Dependency
|
217
|
+
version: "0"
|
441
218
|
type: :development
|
442
|
-
|
443
|
-
name: shoulda
|
444
|
-
version_requirements: &id028 !ruby/object:Gem::Requirement
|
445
|
-
none: false
|
446
|
-
requirements:
|
447
|
-
- - ">="
|
448
|
-
- !ruby/object:Gem::Version
|
449
|
-
hash: 35
|
450
|
-
segments:
|
451
|
-
- 2
|
452
|
-
- 10
|
453
|
-
- 2
|
454
|
-
version: 2.10.2
|
455
|
-
requirement: *id028
|
219
|
+
version_requirements: *id013
|
456
220
|
- !ruby/object:Gem::Dependency
|
457
|
-
|
221
|
+
name: xml-simple
|
458
222
|
prerelease: false
|
459
|
-
|
460
|
-
version_requirements: &id029 !ruby/object:Gem::Requirement
|
223
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
461
224
|
none: false
|
462
225
|
requirements:
|
463
226
|
- - ">="
|
464
227
|
- !ruby/object:Gem::Version
|
465
|
-
hash:
|
228
|
+
hash: 3
|
466
229
|
segments:
|
467
230
|
- 0
|
468
|
-
|
469
|
-
- 7
|
470
|
-
version: 0.9.7
|
471
|
-
requirement: *id029
|
472
|
-
- !ruby/object:Gem::Dependency
|
231
|
+
version: "0"
|
473
232
|
type: :development
|
474
|
-
|
475
|
-
name: rack-test
|
476
|
-
version_requirements: &id030 !ruby/object:Gem::Requirement
|
477
|
-
none: false
|
478
|
-
requirements:
|
479
|
-
- - ">="
|
480
|
-
- !ruby/object:Gem::Version
|
481
|
-
hash: 11
|
482
|
-
segments:
|
483
|
-
- 0
|
484
|
-
- 5
|
485
|
-
- 0
|
486
|
-
version: 0.5.0
|
487
|
-
requirement: *id030
|
233
|
+
version_requirements: *id014
|
488
234
|
- !ruby/object:Gem::Dependency
|
489
|
-
|
235
|
+
name: warden
|
490
236
|
prerelease: false
|
491
|
-
|
492
|
-
version_requirements: &id031 !ruby/object:Gem::Requirement
|
237
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
493
238
|
none: false
|
494
239
|
requirements:
|
495
240
|
- - ">="
|
496
241
|
- !ruby/object:Gem::Version
|
497
|
-
hash:
|
242
|
+
hash: 3
|
498
243
|
segments:
|
499
244
|
- 0
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
requirement: *id031
|
245
|
+
version: "0"
|
246
|
+
type: :development
|
247
|
+
version_requirements: *id015
|
504
248
|
description: Expands sinatra with standard helpers and tools to allow for complex applications
|
505
249
|
email: nesquena@gmail.com
|
506
250
|
executables:
|
507
251
|
- sinatra_gen
|
508
252
|
extensions: []
|
509
253
|
|
510
|
-
extra_rdoc_files:
|
511
|
-
|
512
|
-
- README.rdoc
|
513
|
-
- TODO
|
254
|
+
extra_rdoc_files: []
|
255
|
+
|
514
256
|
files:
|
515
257
|
- .document
|
258
|
+
- .gitignore
|
516
259
|
- Gemfile
|
517
|
-
- Gemfile.lock
|
518
260
|
- IDEAS.md
|
519
261
|
- LICENSE
|
520
262
|
- README.rdoc
|
521
263
|
- ROADMAP
|
522
264
|
- Rakefile
|
523
265
|
- TODO
|
524
|
-
- VERSION
|
525
266
|
- bin/sinatra_gen
|
526
267
|
- generators/base_app/.gitignore
|
527
268
|
- generators/base_app/Gemfile
|
@@ -590,10 +331,10 @@ files:
|
|
590
331
|
- lib/sinatra_more/routing_plugin/named_route.rb
|
591
332
|
- lib/sinatra_more/routing_plugin/routing_helpers.rb
|
592
333
|
- lib/sinatra_more/support_lite.rb
|
334
|
+
- lib/sinatra_more/version.rb
|
593
335
|
- lib/sinatra_more/warden_plugin.rb
|
594
336
|
- lib/sinatra_more/warden_plugin/warden_helpers.rb
|
595
337
|
- sinatra_more.gemspec
|
596
|
-
- test/active_support_helpers.rb
|
597
338
|
- test/fixtures/mailer_app/app.rb
|
598
339
|
- test/fixtures/mailer_app/views/demo_mailer/sample_mail.erb
|
599
340
|
- test/fixtures/mailer_app/views/sample_mailer/anniversary_message.erb
|
@@ -647,7 +388,7 @@ files:
|
|
647
388
|
- vendor/pony/spec/base.rb
|
648
389
|
- vendor/pony/spec/pony_spec.rb
|
649
390
|
has_rdoc: true
|
650
|
-
homepage:
|
391
|
+
homepage:
|
651
392
|
licenses: []
|
652
393
|
|
653
394
|
post_install_message:
|
@@ -675,18 +416,47 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
675
416
|
version: "0"
|
676
417
|
requirements: []
|
677
418
|
|
678
|
-
rubyforge_project:
|
679
|
-
rubygems_version: 1.
|
419
|
+
rubyforge_project: sinatra_more
|
420
|
+
rubygems_version: 1.5.2
|
680
421
|
signing_key:
|
681
422
|
specification_version: 3
|
682
|
-
summary: Expands sinatra to allow for complex applications
|
423
|
+
summary: Expands sinatra with standard helpers and tools to allow for complex applications
|
683
424
|
test_files:
|
684
|
-
- test/active_support_helpers.rb
|
685
425
|
- test/fixtures/mailer_app/app.rb
|
426
|
+
- test/fixtures/mailer_app/views/demo_mailer/sample_mail.erb
|
427
|
+
- test/fixtures/mailer_app/views/sample_mailer/anniversary_message.erb
|
428
|
+
- test/fixtures/mailer_app/views/sample_mailer/birthday_message.erb
|
686
429
|
- test/fixtures/markup_app/app.rb
|
430
|
+
- test/fixtures/markup_app/views/capture_concat.erb
|
431
|
+
- test/fixtures/markup_app/views/capture_concat.haml
|
432
|
+
- test/fixtures/markup_app/views/content_for.erb
|
433
|
+
- test/fixtures/markup_app/views/content_for.haml
|
434
|
+
- test/fixtures/markup_app/views/content_tag.erb
|
435
|
+
- test/fixtures/markup_app/views/content_tag.haml
|
436
|
+
- test/fixtures/markup_app/views/fields_for.erb
|
437
|
+
- test/fixtures/markup_app/views/fields_for.haml
|
438
|
+
- test/fixtures/markup_app/views/form_for.erb
|
439
|
+
- test/fixtures/markup_app/views/form_for.haml
|
440
|
+
- test/fixtures/markup_app/views/form_tag.erb
|
441
|
+
- test/fixtures/markup_app/views/form_tag.haml
|
442
|
+
- test/fixtures/markup_app/views/link_to.erb
|
443
|
+
- test/fixtures/markup_app/views/link_to.haml
|
444
|
+
- test/fixtures/markup_app/views/mail_to.erb
|
445
|
+
- test/fixtures/markup_app/views/mail_to.haml
|
446
|
+
- test/fixtures/markup_app/views/meta_tag.erb
|
447
|
+
- test/fixtures/markup_app/views/meta_tag.haml
|
448
|
+
- test/fixtures/markup_app/views/yield_content.erb
|
449
|
+
- test/fixtures/markup_app/views/yield_content.haml
|
687
450
|
- test/fixtures/render_app/app.rb
|
451
|
+
- test/fixtures/render_app/views/erb/test.erb
|
452
|
+
- test/fixtures/render_app/views/haml/test.haml
|
453
|
+
- test/fixtures/render_app/views/template/_user.haml
|
454
|
+
- test/fixtures/render_app/views/template/haml_template.haml
|
455
|
+
- test/fixtures/render_app/views/template/some_template.haml
|
688
456
|
- test/fixtures/routing_app/app.rb
|
457
|
+
- test/fixtures/routing_app/views/index.haml
|
689
458
|
- test/fixtures/warden_app/app.rb
|
459
|
+
- test/fixtures/warden_app/views/dashboard.haml
|
690
460
|
- test/generators/test_skeleton_generator.rb
|
691
461
|
- test/helper.rb
|
692
462
|
- test/mailer_plugin/test_mail_object.rb
|