pbw 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. checksums.yaml +8 -8
  2. data/app/controllers/pbw/application_controller.rb +3 -16
  3. data/app/controllers/pbw/base_models_controller.rb +10 -32
  4. data/app/controllers/pbw/passwords_controller.rb +14 -0
  5. data/app/controllers/pbw/registrations_controller.rb +9 -6
  6. data/app/controllers/pbw/sessions_controller.rb +9 -4
  7. data/app/mailers/pbw/user_mailer.rb +16 -0
  8. data/app/models/pbw/area.rb +5 -5
  9. data/app/models/pbw/attached_process.rb +3 -3
  10. data/app/models/pbw/capability.rb +1 -1
  11. data/app/models/pbw/command.rb +2 -2
  12. data/app/models/pbw/constraint.rb +2 -2
  13. data/app/models/pbw/item.rb +2 -2
  14. data/app/models/pbw/item_container.rb +4 -4
  15. data/app/models/pbw/item_conversion.rb +1 -1
  16. data/app/models/pbw/process.rb +2 -2
  17. data/app/models/pbw/token.rb +7 -7
  18. data/app/models/pbw/trigger.rb +3 -3
  19. data/app/models/pbw/user.rb +30 -8
  20. data/config/initializers/devise.rb +1 -66
  21. data/config/locales/pbw.en.yml +7 -0
  22. data/config/routes.rb +2 -4
  23. data/lib/generators/pbw/install/install_generator.rb +22 -3
  24. data/lib/generators/pbw/model_generator.rb +6 -0
  25. data/lib/generators/pbw/resource_helpers.rb +16 -0
  26. data/lib/generators/pbw/rules/capability/capability_generator.rb +4 -2
  27. data/lib/generators/pbw/rules/constraint/constraint_generator.rb +4 -2
  28. data/lib/generators/pbw/rules/process/process_generator.rb +4 -2
  29. data/lib/generators/pbw/rules/trigger/trigger_generator.rb +4 -2
  30. data/lib/generators/pbw/scaffold_generator.rb +0 -12
  31. data/lib/generators/pbw/templates/app.coffee +5 -3
  32. data/lib/generators/pbw/templates/application.erb +24 -0
  33. data/lib/generators/pbw/templates/lifecycle.rb +1 -0
  34. data/lib/generators/pbw/templates/pbw.coffee +21 -0
  35. data/lib/generators/pbw/templates/router.coffee +15 -0
  36. data/lib/generators/pbw/templates/templates/home.jst +10 -1
  37. data/lib/generators/pbw/templates/templates/login.jst +25 -0
  38. data/lib/generators/pbw/templates/templates/recover_password.jst +17 -0
  39. data/lib/generators/pbw/templates/templates/signup.jst +29 -0
  40. data/lib/generators/pbw/templates/user_recovery.coffee +6 -0
  41. data/lib/generators/pbw/templates/user_registration.coffee +9 -0
  42. data/lib/generators/pbw/templates/user_session.coffee +8 -0
  43. data/lib/generators/pbw/templates/views/edit_view.coffee +15 -8
  44. data/lib/generators/pbw/templates/views/login_view.coffee +39 -0
  45. data/lib/generators/pbw/templates/views/new_view.coffee +5 -9
  46. data/lib/generators/pbw/templates/views/recovery_view.coffee +38 -0
  47. data/lib/generators/pbw/templates/views/signup_view.coffee +39 -0
  48. data/lib/pbw/engine.rb +5 -9
  49. data/lib/pbw/version.rb +1 -1
  50. data/lib/pbw.rb +15 -2
  51. data/vendor/assets/javascripts/backbone_datalink.js +21 -0
  52. metadata +16 -44
  53. data/app/controllers/pbw/capabilities_controller.rb +0 -7
  54. data/app/controllers/pbw/constraints_controller.rb +0 -7
  55. data/app/controllers/pbw/processes_controller.rb +0 -7
  56. data/app/controllers/pbw/triggers_controller.rb +0 -7
  57. data/public/Foundation-MIT-LICENSE.txt +0 -20
  58. data/public/config.rb +0 -26
  59. data/public/javascripts/foundation/foundation.alerts.js +0 -52
  60. data/public/javascripts/foundation/foundation.clearing.js +0 -516
  61. data/public/javascripts/foundation/foundation.cookie.js +0 -74
  62. data/public/javascripts/foundation/foundation.dropdown.js +0 -178
  63. data/public/javascripts/foundation/foundation.forms.js +0 -525
  64. data/public/javascripts/foundation/foundation.interchange.js +0 -271
  65. data/public/javascripts/foundation/foundation.joyride.js +0 -844
  66. data/public/javascripts/foundation/foundation.js +0 -447
  67. data/public/javascripts/foundation/foundation.magellan.js +0 -134
  68. data/public/javascripts/foundation/foundation.orbit.js +0 -390
  69. data/public/javascripts/foundation/foundation.placeholder.js +0 -179
  70. data/public/javascripts/foundation/foundation.reveal.js +0 -330
  71. data/public/javascripts/foundation/foundation.section.js +0 -422
  72. data/public/javascripts/foundation/foundation.tooltips.js +0 -208
  73. data/public/javascripts/foundation/foundation.topbar.js +0 -303
  74. data/public/javascripts/vendor/custom.modernizr.js +0 -4
  75. data/public/javascripts/vendor/jquery.js +0 -9807
  76. data/public/javascripts/vendor/zepto.js +0 -2000
  77. data/public/sass/_normalize.scss +0 -402
  78. data/public/sass/_settings.scss +0 -1271
  79. data/public/sass/app.scss +0 -48
  80. data/public/stylesheets/app.css +0 -6686
@@ -1,402 +0,0 @@
1
- /*! normalize.css v2.1.1 | MIT License | git.io/normalize */
2
-
3
- /* ==========================================================================
4
- HTML5 display definitions
5
- ========================================================================== */
6
-
7
- /**
8
- * Correct `block` display not defined in IE 8/9.
9
- */
10
-
11
- article,
12
- aside,
13
- details,
14
- figcaption,
15
- figure,
16
- footer,
17
- header,
18
- hgroup,
19
- main,
20
- nav,
21
- section,
22
- summary {
23
- display: block;
24
- }
25
-
26
- /**
27
- * Correct `inline-block` display not defined in IE 8/9.
28
- */
29
-
30
- audio,
31
- canvas,
32
- video {
33
- display: inline-block;
34
- }
35
-
36
- /**
37
- * Prevent modern browsers from displaying `audio` without controls.
38
- * Remove excess height in iOS 5 devices.
39
- */
40
-
41
- audio:not([controls]) {
42
- display: none;
43
- height: 0;
44
- }
45
-
46
- /**
47
- * Address styling not present in IE 8/9.
48
- */
49
-
50
- [hidden] {
51
- display: none;
52
- }
53
-
54
- /* ==========================================================================
55
- Base
56
- ========================================================================== */
57
-
58
- /**
59
- * 1. Prevent system color scheme's background color being used in Firefox, IE,
60
- * and Opera.
61
- * 2. Prevent system color scheme's text color being used in Firefox, IE, and
62
- * Opera.
63
- * 3. Set default font family to sans-serif.
64
- * 4. Prevent iOS text size adjust after orientation change, without disabling
65
- * user zoom.
66
- */
67
-
68
- html {
69
- background: #fff; /* 1 */
70
- color: #000; /* 2 */
71
- font-family: sans-serif; /* 3 */
72
- -ms-text-size-adjust: 100%; /* 4 */
73
- -webkit-text-size-adjust: 100%; /* 4 */
74
- }
75
-
76
- /**
77
- * Remove default margin.
78
- */
79
-
80
- body {
81
- margin: 0;
82
- }
83
-
84
- /* ==========================================================================
85
- Links
86
- ========================================================================== */
87
-
88
- /**
89
- * Address `outline` inconsistency between Chrome and other browsers.
90
- */
91
-
92
- a:focus {
93
- outline: thin dotted;
94
- }
95
-
96
- /**
97
- * Improve readability when focused and also mouse hovered in all browsers.
98
- */
99
-
100
- a:active,
101
- a:hover {
102
- outline: 0;
103
- }
104
-
105
- /* ==========================================================================
106
- Typography
107
- ========================================================================== */
108
-
109
- /**
110
- * Address variable `h1` font-size and margin within `section` and `article`
111
- * contexts in Firefox 4+, Safari 5, and Chrome.
112
- */
113
-
114
- h1 {
115
- font-size: 2em;
116
- margin: 0.67em 0;
117
- }
118
-
119
- /**
120
- * Address styling not present in IE 8/9, Safari 5, and Chrome.
121
- */
122
-
123
- abbr[title] {
124
- border-bottom: 1px dotted;
125
- }
126
-
127
- /**
128
- * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
129
- */
130
-
131
- b,
132
- strong {
133
- font-weight: bold;
134
- }
135
-
136
- /**
137
- * Address styling not present in Safari 5 and Chrome.
138
- */
139
-
140
- dfn {
141
- font-style: italic;
142
- }
143
-
144
- /**
145
- * Address differences between Firefox and other browsers.
146
- */
147
-
148
- hr {
149
- -moz-box-sizing: content-box;
150
- box-sizing: content-box;
151
- height: 0;
152
- }
153
-
154
- /**
155
- * Address styling not present in IE 8/9.
156
- */
157
-
158
- mark {
159
- background: #ff0;
160
- color: #000;
161
- }
162
-
163
- /**
164
- * Correct font family set oddly in Safari 5 and Chrome.
165
- */
166
-
167
- code,
168
- kbd,
169
- pre,
170
- samp {
171
- font-family: monospace, serif;
172
- font-size: 1em;
173
- }
174
-
175
- /**
176
- * Improve readability of pre-formatted text in all browsers.
177
- */
178
-
179
- pre {
180
- white-space: pre-wrap;
181
- }
182
-
183
- /**
184
- * Set consistent quote types.
185
- */
186
-
187
- q {
188
- quotes: "\201C" "\201D" "\2018" "\2019";
189
- }
190
-
191
- /**
192
- * Address inconsistent and variable font size in all browsers.
193
- */
194
-
195
- small {
196
- font-size: 80%;
197
- }
198
-
199
- /**
200
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
201
- */
202
-
203
- sub,
204
- sup {
205
- font-size: 75%;
206
- line-height: 0;
207
- position: relative;
208
- vertical-align: baseline;
209
- }
210
-
211
- sup {
212
- top: -0.5em;
213
- }
214
-
215
- sub {
216
- bottom: -0.25em;
217
- }
218
-
219
- /* ==========================================================================
220
- Embedded content
221
- ========================================================================== */
222
-
223
- /**
224
- * Remove border when inside `a` element in IE 8/9.
225
- */
226
-
227
- img {
228
- border: 0;
229
- }
230
-
231
- /**
232
- * Correct overflow displayed oddly in IE 9.
233
- */
234
-
235
- svg:not(:root) {
236
- overflow: hidden;
237
- }
238
-
239
- /* ==========================================================================
240
- Figures
241
- ========================================================================== */
242
-
243
- /**
244
- * Address margin not present in IE 8/9 and Safari 5.
245
- */
246
-
247
- figure {
248
- margin: 0;
249
- }
250
-
251
- /* ==========================================================================
252
- Forms
253
- ========================================================================== */
254
-
255
- /**
256
- * Define consistent border, margin, and padding.
257
- */
258
-
259
- fieldset {
260
- border: 1px solid #c0c0c0;
261
- margin: 0 2px;
262
- padding: 0.35em 0.625em 0.75em;
263
- }
264
-
265
- /**
266
- * 1. Correct `color` not being inherited in IE 8/9.
267
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
268
- */
269
-
270
- legend {
271
- border: 0; /* 1 */
272
- padding: 0; /* 2 */
273
- }
274
-
275
- /**
276
- * 1. Correct font family not being inherited in all browsers.
277
- * 2. Correct font size not being inherited in all browsers.
278
- * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
279
- */
280
-
281
- button,
282
- input,
283
- select,
284
- textarea {
285
- font-family: inherit; /* 1 */
286
- font-size: 100%; /* 2 */
287
- margin: 0; /* 3 */
288
- }
289
-
290
- /**
291
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
292
- * the UA stylesheet.
293
- */
294
-
295
- button,
296
- input {
297
- line-height: normal;
298
- }
299
-
300
- /**
301
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
302
- * All other form control elements do not inherit `text-transform` values.
303
- * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
304
- * Correct `select` style inheritance in Firefox 4+ and Opera.
305
- */
306
-
307
- button,
308
- select {
309
- text-transform: none;
310
- }
311
-
312
- /**
313
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
314
- * and `video` controls.
315
- * 2. Correct inability to style clickable `input` types in iOS.
316
- * 3. Improve usability and consistency of cursor style between image-type
317
- * `input` and others.
318
- */
319
-
320
- button,
321
- html input[type="button"], /* 1 */
322
- input[type="reset"],
323
- input[type="submit"] {
324
- -webkit-appearance: button; /* 2 */
325
- cursor: pointer; /* 3 */
326
- }
327
-
328
- /**
329
- * Re-set default cursor for disabled elements.
330
- */
331
-
332
- button[disabled],
333
- html input[disabled] {
334
- cursor: default;
335
- }
336
-
337
- /**
338
- * 1. Address box sizing set to `content-box` in IE 8/9.
339
- * 2. Remove excess padding in IE 8/9.
340
- */
341
-
342
- input[type="checkbox"],
343
- input[type="radio"] {
344
- box-sizing: border-box; /* 1 */
345
- padding: 0; /* 2 */
346
- }
347
-
348
- /**
349
- * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
350
- * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
351
- * (include `-moz` to future-proof).
352
- */
353
-
354
- input[type="search"] {
355
- -webkit-appearance: textfield; /* 1 */
356
- -moz-box-sizing: content-box;
357
- -webkit-box-sizing: content-box; /* 2 */
358
- box-sizing: content-box;
359
- }
360
-
361
- /**
362
- * Remove inner padding and search cancel button in Safari 5 and Chrome
363
- * on OS X.
364
- */
365
-
366
- input[type="search"]::-webkit-search-cancel-button,
367
- input[type="search"]::-webkit-search-decoration {
368
- -webkit-appearance: none;
369
- }
370
-
371
- /**
372
- * Remove inner padding and border in Firefox 4+.
373
- */
374
-
375
- button::-moz-focus-inner,
376
- input::-moz-focus-inner {
377
- border: 0;
378
- padding: 0;
379
- }
380
-
381
- /**
382
- * 1. Remove default vertical scrollbar in IE 8/9.
383
- * 2. Improve readability and alignment in all browsers.
384
- */
385
-
386
- textarea {
387
- overflow: auto; /* 1 */
388
- vertical-align: top; /* 2 */
389
- }
390
-
391
- /* ==========================================================================
392
- Tables
393
- ========================================================================== */
394
-
395
- /**
396
- * Remove most spacing between table cells.
397
- */
398
-
399
- table {
400
- border-collapse: collapse;
401
- border-spacing: 0;
402
- }