puffer 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -0
- data/Gemfile +11 -8
- data/Gemfile.lock +117 -103
- data/Guardfile +20 -0
- data/VERSION +1 -1
- data/app/assets/javascripts/puffer/application.js +5 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/puffer.js +0 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/rails.js +0 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/right-autocompleter.js +0 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/right-calendar.js +0 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/right.js +0 -0
- data/app/assets/stylesheets/puffer/application.css +4 -0
- data/{lib/generators/puffer/install/templates/puffer/stylesheets → app/assets/stylesheets/puffer}/puffer.css +2 -1
- data/{lib/generators/puffer/install/templates/puffer/stylesheets → app/assets/stylesheets/puffer}/reset.css +0 -0
- data/app/controllers/puffer/dashboard.rb +12 -0
- data/app/controllers/puffer/{sessions_base.rb → sessions.rb} +1 -2
- data/app/helpers/puffer_helper.rb +2 -10
- data/app/views/layouts/puffer.html.erb +24 -5
- data/app/views/layouts/puffer_dashboard.html.erb +3 -3
- data/app/views/layouts/puffer_sessions.html.erb +3 -3
- data/app/views/puffer/{_form.html.erb → base/_form.html.erb} +2 -2
- data/app/views/puffer/{associated → base/associated}/_many.html.erb +1 -1
- data/app/views/puffer/{associated → base/associated}/many.rjs +0 -0
- data/app/views/puffer/{associated → base/associated}/one.js.erb +1 -1
- data/app/views/puffer/{association → base/association}/_many.html.erb +0 -0
- data/app/views/puffer/{edit.html.erb → base/edit.html.erb} +1 -1
- data/app/views/puffer/{index.html.erb → base/index.html.erb} +2 -2
- data/app/views/puffer/{new.html.erb → base/new.html.erb} +1 -1
- data/app/views/puffer/{show.html.erb → base/show.html.erb} +1 -1
- data/app/views/{puffer_dashboard → puffer/dashboard}/index.html.erb +0 -0
- data/app/views/{puffer_sessions → puffer/sessions}/new.html.erb +0 -0
- data/config/locales/puffer.yml +5 -0
- data/lib/generators/puffer/install/install_generator.rb +0 -8
- data/lib/generators/puffer/install/templates/dashboard_controller.rb +1 -1
- data/lib/generators/puffer/install/templates/sessions_controller.rb +1 -1
- data/lib/puffer.rb +0 -16
- data/lib/puffer/base.rb +8 -3
- data/lib/puffer/controller/config.rb +2 -0
- data/lib/puffer/controller/dsl.rb +2 -2
- data/lib/puffer/controller/generated.rb +4 -4
- data/lib/puffer/controller/helpers.rb +1 -1
- data/lib/puffer/controller/mutate.rb +0 -14
- data/lib/puffer/customs.rb +1 -0
- data/lib/puffer/engine.rb +0 -4
- data/lib/puffer/extensions/mapper.rb +5 -1
- data/lib/puffer/fields.rb +2 -2
- data/lib/puffer/fields/field.rb +16 -17
- data/lib/puffer/inputs/association.rb +3 -2
- data/lib/puffer/resource.rb +13 -12
- data/lib/puffer/resource/routing.rb +1 -1
- data/lib/puffer/resource/scoping.rb +2 -2
- data/puffer.gemspec +63 -126
- data/spec/dummy/.rvmrc +1 -0
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/images/rails.png +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/controllers/admin/posts_controller.rb +3 -1
- data/spec/dummy/app/controllers/admin/profiles_controller.rb +4 -1
- data/spec/dummy/app/controllers/puffer/dashboard_controller.rb +1 -1
- data/spec/dummy/app/controllers/puffer/sessions_controller.rb +1 -1
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +5 -9
- data/spec/dummy/config/boot.rb +5 -7
- data/spec/dummy/config/database.yml +4 -1
- data/spec/dummy/config/environments/development.rb +4 -3
- data/spec/dummy/config/environments/production.rb +17 -12
- data/spec/dummy/config/environments/test.rb +5 -1
- data/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/config/initializers/session_store.rb +1 -1
- data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/db/seeds.rb +7 -0
- data/spec/dummy/public/robots.txt +5 -0
- data/spec/fabricators/posts_fabricator.rb +1 -1
- data/spec/fabricators/profiles_fabricator.rb +1 -1
- data/spec/fabricators/users_fabricator.rb +1 -1
- data/spec/lib/resource/routing_spec.rb +5 -5
- data/spec/lib/resource_spec.rb +37 -88
- data/spec/spec_helper.rb +15 -0
- metadata +171 -272
- data/app/cells/puffer/base/additional.html.erb +0 -25
- data/app/cells/puffer/base_cell.rb +0 -25
- data/app/controllers/puffer/dashboard_base.rb +0 -13
- data/autotest/discover.rb +0 -2
- data/lib/generators/puffer/install/templates/puffer.rb +0 -12
- data/lib/puffer/path_set.rb +0 -24
- data/spec/dummy/app/views/admin/users/index.html.erb +0 -3
- data/spec/dummy/config/initializers/puffer.rb +0 -12
- data/spec/dummy/db/schema.rb +0 -83
- data/spec/dummy/public/javascripts/application.js +0 -2
- data/spec/dummy/public/javascripts/controls.js +0 -965
- data/spec/dummy/public/javascripts/dragdrop.js +0 -974
- data/spec/dummy/public/javascripts/effects.js +0 -1123
- data/spec/dummy/public/javascripts/prototype.js +0 -6001
- data/spec/dummy/public/javascripts/rails.js +0 -175
- data/spec/dummy/public/puffer/javascripts/puffer.js +0 -10
- data/spec/dummy/public/puffer/javascripts/rails.js +0 -57
- data/spec/dummy/public/puffer/javascripts/right-autocompleter.js +0 -621
- data/spec/dummy/public/puffer/javascripts/right-calendar.js +0 -1461
- data/spec/dummy/public/puffer/javascripts/right.js +0 -5892
- data/spec/dummy/public/puffer/stylesheets/puffer.css +0 -469
- data/spec/dummy/public/puffer/stylesheets/reset.css +0 -60
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/lib/render_fallback_spec.rb +0 -17
@@ -1,469 +0,0 @@
|
|
1
|
-
body, html
|
2
|
-
{
|
3
|
-
behavior: url(csshover.htc);
|
4
|
-
height: 100%;
|
5
|
-
width: 100%;
|
6
|
-
font-family: Verdana, Arial, Helvetica, sans-serif;
|
7
|
-
font-size: 10pt;
|
8
|
-
color: #000;
|
9
|
-
background: #3D576D;
|
10
|
-
}
|
11
|
-
|
12
|
-
a
|
13
|
-
{
|
14
|
-
color: #f60;
|
15
|
-
text-decoration: underline;
|
16
|
-
}
|
17
|
-
|
18
|
-
a:hover
|
19
|
-
{
|
20
|
-
text-decoration: none;
|
21
|
-
}
|
22
|
-
|
23
|
-
h1
|
24
|
-
{
|
25
|
-
font-size: 21px;
|
26
|
-
margin-bottom: 10px;
|
27
|
-
}
|
28
|
-
|
29
|
-
h2
|
30
|
-
{
|
31
|
-
font-size: 17px;
|
32
|
-
margin-bottom: 10px;
|
33
|
-
}
|
34
|
-
|
35
|
-
.body
|
36
|
-
{
|
37
|
-
position: relative;
|
38
|
-
height: auto !important;
|
39
|
-
height: 100%;
|
40
|
-
min-height: 100%;
|
41
|
-
margin: 0 auto;
|
42
|
-
width: 100%;
|
43
|
-
}
|
44
|
-
|
45
|
-
.header
|
46
|
-
{
|
47
|
-
height: 120px;
|
48
|
-
position: relative;
|
49
|
-
}
|
50
|
-
|
51
|
-
.logo
|
52
|
-
{
|
53
|
-
position: absolute;
|
54
|
-
top: 10px;
|
55
|
-
left: 20px;
|
56
|
-
}
|
57
|
-
|
58
|
-
.logo a, .logo span
|
59
|
-
{
|
60
|
-
color: #ddd;
|
61
|
-
font-size: 30pt;
|
62
|
-
font-weight: bold;
|
63
|
-
text-decoration: none;
|
64
|
-
text-shadow: #0A2337 -1px -1px 0;
|
65
|
-
}
|
66
|
-
|
67
|
-
.logout
|
68
|
-
{
|
69
|
-
position: absolute;
|
70
|
-
top: 35px;
|
71
|
-
right: 10px;
|
72
|
-
}
|
73
|
-
|
74
|
-
.navigation
|
75
|
-
{
|
76
|
-
position: absolute;
|
77
|
-
left: 12px;
|
78
|
-
bottom: 20px;
|
79
|
-
}
|
80
|
-
|
81
|
-
.namespaces
|
82
|
-
{
|
83
|
-
position: absolute;
|
84
|
-
right: 10px;
|
85
|
-
top: 0;
|
86
|
-
}
|
87
|
-
|
88
|
-
.dashboard .navigation
|
89
|
-
{
|
90
|
-
margin-bottom: 10px;
|
91
|
-
}
|
92
|
-
|
93
|
-
.navigation > li, .namespaces > li
|
94
|
-
{
|
95
|
-
display: inline-block;
|
96
|
-
*display: inline;
|
97
|
-
zoom: 1;
|
98
|
-
-moz-border-radius: 3px;
|
99
|
-
border-radius: 3px;
|
100
|
-
}
|
101
|
-
|
102
|
-
.namespaces > li
|
103
|
-
{
|
104
|
-
-moz-border-radius: 0 0 3px 3px;
|
105
|
-
border-radius: 0 0 3px 3px;
|
106
|
-
}
|
107
|
-
|
108
|
-
.navigation > li:hover, .navigation > li.selected, .namespaces > li:hover, .namespaces > li.selected
|
109
|
-
{
|
110
|
-
-moz-box-shadow: -1px -1px 0 #0A2337;
|
111
|
-
-webkit-box-shadow: -1px -1px 0 #0A2337;
|
112
|
-
box-shadow: -1px -1px 0 #304759;
|
113
|
-
background: #536C80;
|
114
|
-
}
|
115
|
-
|
116
|
-
.navigation > li > a, .navigation > li > span, .namespaces > li > a, .namespaces > li > span
|
117
|
-
{
|
118
|
-
display: inline-block;
|
119
|
-
*display: inline;
|
120
|
-
zoom: 1;
|
121
|
-
color: #ddd;
|
122
|
-
padding: 7px 12px;
|
123
|
-
font-size: 11pt;
|
124
|
-
text-decoration: none;
|
125
|
-
text-shadow: #304759 -1px -1px 0;
|
126
|
-
}
|
127
|
-
|
128
|
-
.namespaces > li > a, .namespaces > li > span
|
129
|
-
{
|
130
|
-
padding: 5px 12px;
|
131
|
-
}
|
132
|
-
|
133
|
-
.sidebar .navigation, .dashboard .navigation
|
134
|
-
{
|
135
|
-
position: static;
|
136
|
-
}
|
137
|
-
|
138
|
-
.sidebar .navigation > li, .dashboard .navigation > li
|
139
|
-
{
|
140
|
-
display: block;
|
141
|
-
margin-bottom: 5px;
|
142
|
-
}
|
143
|
-
|
144
|
-
.dashboard .navigation > li
|
145
|
-
{
|
146
|
-
background: #536C80;
|
147
|
-
}
|
148
|
-
|
149
|
-
.dashboard .navigation > li:hover, .dashboard .navigation > li.selected
|
150
|
-
{
|
151
|
-
-moz-box-shadow: none;
|
152
|
-
-webkit-box-shadow: none;
|
153
|
-
box-shadow: none;
|
154
|
-
}
|
155
|
-
|
156
|
-
.sidebar .navigation > li > a
|
157
|
-
{
|
158
|
-
display: block;
|
159
|
-
}
|
160
|
-
|
161
|
-
.sidebar .navigation > li .additional dt
|
162
|
-
{
|
163
|
-
margin-bottom: 2px;
|
164
|
-
}
|
165
|
-
|
166
|
-
.sidebar .navigation > li .additional dd
|
167
|
-
{
|
168
|
-
margin-bottom: 8px;
|
169
|
-
}
|
170
|
-
|
171
|
-
.sidebar .navigation > li .additional, .dashboard .navigation > li ul.additional
|
172
|
-
{
|
173
|
-
padding: 10px 12px;
|
174
|
-
background: #eee;
|
175
|
-
-moz-border-radius-bottomleft: 3px;
|
176
|
-
-moz-border-radius-bottomright: 3px;
|
177
|
-
border-bottom-left-radius: 3px;
|
178
|
-
border-bottom-right-radius: 3px;
|
179
|
-
}
|
180
|
-
|
181
|
-
.dashboard .navigation > li ul.additional
|
182
|
-
{
|
183
|
-
padding: 6px 6px;
|
184
|
-
}
|
185
|
-
|
186
|
-
.dashboard .navigation > li ul.additional li
|
187
|
-
{
|
188
|
-
list-style: none;
|
189
|
-
padding: 5px 12px;
|
190
|
-
}
|
191
|
-
|
192
|
-
.dashboard .navigation > li ul.additional li > a
|
193
|
-
{
|
194
|
-
color: #222;
|
195
|
-
font-size: 10pt;
|
196
|
-
}
|
197
|
-
|
198
|
-
.columns
|
199
|
-
{
|
200
|
-
width: 100%;
|
201
|
-
display: table;
|
202
|
-
clear: both;
|
203
|
-
}
|
204
|
-
|
205
|
-
.column
|
206
|
-
{
|
207
|
-
display: table-cell;
|
208
|
-
vertical-align: top;
|
209
|
-
}
|
210
|
-
|
211
|
-
.column,
|
212
|
-
{
|
213
|
-
display: inline;
|
214
|
-
vertical-align: top;
|
215
|
-
width: expression(function(t){
|
216
|
-
var sum = 0;
|
217
|
-
for (var i = 0; i < t.parentNode.childNodes.length; i++) {
|
218
|
-
if (t.parentNode.childNodes[i] != t) {
|
219
|
-
sum += t.parentNode.childNodes[i].offsetWidth;
|
220
|
-
}
|
221
|
-
}
|
222
|
-
return t.parentNode.clientWidth - sum + 'px';
|
223
|
-
}(this));
|
224
|
-
zoom: 1;
|
225
|
-
}
|
226
|
-
|
227
|
-
.sidebar
|
228
|
-
{
|
229
|
-
width: 250px;
|
230
|
-
}
|
231
|
-
|
232
|
-
.padder
|
233
|
-
{
|
234
|
-
padding: 0 12px;
|
235
|
-
}
|
236
|
-
|
237
|
-
.content
|
238
|
-
{
|
239
|
-
min-height: 300px;
|
240
|
-
-moz-box-shadow: -1px -1px 0 #0A2337;
|
241
|
-
-webkit-box-shadow: -1px -1px 0 #0A2337;
|
242
|
-
box-shadow: -1px -1px 0 #304759;
|
243
|
-
-moz-border-radius-topleft: 5px;
|
244
|
-
-moz-border-radius-bottomleft: 5px;
|
245
|
-
border-top-left-radius: 5px;
|
246
|
-
border-bottom-left-radius: 5px;
|
247
|
-
background: #fff;
|
248
|
-
padding: 30px;
|
249
|
-
}
|
250
|
-
|
251
|
-
.sessions
|
252
|
-
{
|
253
|
-
min-height: 10px;
|
254
|
-
margin: 50px auto 0 auto;
|
255
|
-
width: 400px;
|
256
|
-
}
|
257
|
-
|
258
|
-
.dashboard
|
259
|
-
{
|
260
|
-
min-height: 10px;
|
261
|
-
margin-left: 20px;
|
262
|
-
}
|
263
|
-
|
264
|
-
.list_table
|
265
|
-
{
|
266
|
-
width: 100%;
|
267
|
-
margin: 0;
|
268
|
-
line-height: 140%;
|
269
|
-
border-collapse: separate;
|
270
|
-
border-spacing: 0px;
|
271
|
-
border: 1px solid #ddd;
|
272
|
-
border-radius: 5px;
|
273
|
-
-moz-border-radius: 5px;
|
274
|
-
-webkit-border-radius: 5px;
|
275
|
-
}
|
276
|
-
|
277
|
-
.list_table *
|
278
|
-
{
|
279
|
-
font-size: 8pt;
|
280
|
-
}
|
281
|
-
|
282
|
-
.list_table tr
|
283
|
-
{
|
284
|
-
vertical-align: top;
|
285
|
-
}
|
286
|
-
|
287
|
-
.list_table td.actions
|
288
|
-
{
|
289
|
-
white-space: nowrap;
|
290
|
-
width: 50px;
|
291
|
-
}
|
292
|
-
|
293
|
-
.list_table th
|
294
|
-
{
|
295
|
-
text-align: left;
|
296
|
-
background: #eee;
|
297
|
-
white-space: nowrap;
|
298
|
-
overflow: hidden;
|
299
|
-
max-width: 15px;
|
300
|
-
}
|
301
|
-
|
302
|
-
.list_table th a
|
303
|
-
{
|
304
|
-
text-decoration: none;
|
305
|
-
border-bottom: 1px dotted #333;
|
306
|
-
}
|
307
|
-
|
308
|
-
.list_table th a:hover
|
309
|
-
{
|
310
|
-
border-bottom: none;
|
311
|
-
}
|
312
|
-
|
313
|
-
.list_table td, .list_table th
|
314
|
-
{
|
315
|
-
padding: 5px;
|
316
|
-
}
|
317
|
-
|
318
|
-
.list_table td:first-child, .list_table th:first-child
|
319
|
-
{
|
320
|
-
padding-left: 10px;
|
321
|
-
}
|
322
|
-
|
323
|
-
.list_table td:last-child, .list_table th:last-child
|
324
|
-
{
|
325
|
-
padding-right: 10px;
|
326
|
-
}
|
327
|
-
.list_table td
|
328
|
-
{
|
329
|
-
border-bottom: 1px solid #ddd;
|
330
|
-
vertical-align: top;
|
331
|
-
}
|
332
|
-
|
333
|
-
.list_table tr:last-child td
|
334
|
-
{
|
335
|
-
border: none;
|
336
|
-
}
|
337
|
-
|
338
|
-
.list_table tbody tr:hover
|
339
|
-
{
|
340
|
-
background: #f4f4f4;
|
341
|
-
}
|
342
|
-
|
343
|
-
label, input, textarea, select
|
344
|
-
{
|
345
|
-
font-family: Helvetica, Arial, sans-serif;
|
346
|
-
}
|
347
|
-
|
348
|
-
input[type=text], input[type=password], textarea
|
349
|
-
{
|
350
|
-
border: #ccc solid 1px;
|
351
|
-
font-size: 11pt;
|
352
|
-
padding: 3px 0;
|
353
|
-
border-radius: 3px;
|
354
|
-
}
|
355
|
-
|
356
|
-
input[type=text]:focus, input[type=password]:focus, textarea:focus
|
357
|
-
{
|
358
|
-
border: #536C80 solid 1px;
|
359
|
-
}
|
360
|
-
|
361
|
-
input[type=submit]
|
362
|
-
{
|
363
|
-
border: 0;
|
364
|
-
border-radius: 3px;
|
365
|
-
background: #536C80;
|
366
|
-
color: #ddd;
|
367
|
-
text-shadow: -1px -1px 0 #304759;
|
368
|
-
padding: 3px 10px;
|
369
|
-
font-size: 11pt;
|
370
|
-
}
|
371
|
-
|
372
|
-
select
|
373
|
-
{
|
374
|
-
font-size: 11pt;
|
375
|
-
}
|
376
|
-
|
377
|
-
#search
|
378
|
-
{
|
379
|
-
width: 120px;
|
380
|
-
}
|
381
|
-
|
382
|
-
.form
|
383
|
-
{
|
384
|
-
margin-bottom: 30px;
|
385
|
-
}
|
386
|
-
|
387
|
-
.form li
|
388
|
-
{
|
389
|
-
list-style: none;
|
390
|
-
margin-bottom: 8px;
|
391
|
-
}
|
392
|
-
|
393
|
-
.form li .label
|
394
|
-
{
|
395
|
-
margin-bottom: 3px;
|
396
|
-
}
|
397
|
-
|
398
|
-
.form li .label *
|
399
|
-
{
|
400
|
-
display: inline;
|
401
|
-
}
|
402
|
-
|
403
|
-
.form li label
|
404
|
-
{
|
405
|
-
font-size: 10pt;
|
406
|
-
font-weight: bold;
|
407
|
-
}
|
408
|
-
|
409
|
-
.form li input[type=text], .form li input[type=password], .form li textarea
|
410
|
-
{
|
411
|
-
width: 100%;
|
412
|
-
}
|
413
|
-
|
414
|
-
.form li textarea
|
415
|
-
{
|
416
|
-
height: 60px;
|
417
|
-
}
|
418
|
-
|
419
|
-
.field_error
|
420
|
-
{
|
421
|
-
color: #C83E3E;
|
422
|
-
}
|
423
|
-
|
424
|
-
.association
|
425
|
-
{
|
426
|
-
position: relative;
|
427
|
-
}
|
428
|
-
|
429
|
-
.association input[disabled]
|
430
|
-
{
|
431
|
-
text-indent: 25px;
|
432
|
-
}
|
433
|
-
|
434
|
-
.association .association_clear
|
435
|
-
{
|
436
|
-
position: absolute;
|
437
|
-
top: 4px;
|
438
|
-
left: 9px;
|
439
|
-
cursor: pointer;
|
440
|
-
display: none;
|
441
|
-
}
|
442
|
-
|
443
|
-
.association .association_clear:hover
|
444
|
-
{
|
445
|
-
color: #b00;
|
446
|
-
text-shadow: 1px 1px 2px #555;
|
447
|
-
}
|
448
|
-
|
449
|
-
.association input[disabled] ~ .association_clear
|
450
|
-
{
|
451
|
-
display: block;
|
452
|
-
}
|
453
|
-
|
454
|
-
.association .rui-autocompleter li .description
|
455
|
-
{
|
456
|
-
display: none;
|
457
|
-
margin: 5px 10px;
|
458
|
-
}
|
459
|
-
|
460
|
-
.association .rui-autocompleter li .description li
|
461
|
-
{
|
462
|
-
margin: 0;
|
463
|
-
padding: 0;
|
464
|
-
}
|
465
|
-
|
466
|
-
.association .rui-autocompleter li:hover .description
|
467
|
-
{
|
468
|
-
display: block;
|
469
|
-
}
|