level_up 0.2.0 → 0.3.0

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 (48) hide show
  1. data/CHANGELOG.txt +4 -0
  2. data/app/assets/stylesheets/level_up/application.css.scss +1 -1
  3. data/app/controllers/level_up/flowcharts_controller.rb +38 -0
  4. data/app/controllers/level_up/jobs_controller.rb +7 -30
  5. data/app/models/level_up/graph_builder.rb +80 -0
  6. data/app/views/layouts/level_up/_header.html.erb +3 -2
  7. data/app/views/level_up/flowcharts/index.html.erb +36 -0
  8. data/app/views/level_up/flowcharts/show.html.erb +20 -0
  9. data/config/routes.rb +4 -0
  10. data/lib/level_up/version.rb +1 -1
  11. data/test/dummy/config/environments/development.rb +3 -3
  12. data/test/dummy/config/initializers/preload_sti_models.rb +5 -0
  13. data/test/dummy/db/development.sqlite3 +0 -0
  14. data/test/dummy/log/development.log +845 -3294
  15. data/test/dummy/log/test.log +6557 -14587
  16. data/test/dummy/tmp/{job_1.svg → account_banish.svg} +0 -0
  17. data/test/dummy/tmp/account_downgrade.svg +123 -0
  18. data/test/dummy/tmp/account_upgrade.svg +48 -0
  19. data/test/dummy/tmp/cache/assets/C2C/CE0/sprockets%2F33f519d653c9b4886c417440a0993824 +0 -0
  20. data/test/dummy/tmp/cache/assets/C6A/F00/sprockets%2F177385361781d5fe78d217f1f48b8566 +0 -0
  21. data/test/dummy/tmp/cache/assets/C6C/ED0/sprockets%2F320c25374f5ea136824c04c256e1605b +0 -0
  22. data/test/dummy/tmp/cache/assets/C87/110/sprockets%2Fc4428c04b8830f451f7636c2811f975d +0 -0
  23. data/test/dummy/tmp/cache/assets/CB9/E40/sprockets%2F43e6286ecc7751fc65d32b72c6158940 +0 -0
  24. data/test/dummy/tmp/cache/assets/CCE/7E0/sprockets%2F7d295633b50bfa8b04345d5e600b343a +0 -0
  25. data/test/dummy/tmp/cache/assets/CD5/450/sprockets%2F2ac0e7e07211a99107e0ba7e2680c885 +0 -0
  26. data/test/dummy/tmp/cache/assets/CE4/220/sprockets%2Ff1a78dd6750c553265fd3a242d76c277 +0 -0
  27. data/test/dummy/tmp/cache/assets/CF7/BA0/sprockets%2F8f9487ea6943415e46a5d895e0920ebe +0 -0
  28. data/test/dummy/tmp/cache/assets/D0E/2B0/sprockets%2F3e386ff8d231b92766061c4fad4ad504 +0 -0
  29. data/test/dummy/tmp/cache/assets/D19/660/sprockets%2F018d64588c824dd3e7e6c8d6d0d6510e +0 -0
  30. data/test/dummy/tmp/cache/assets/D25/E10/sprockets%2F989ec024c5db6ae875689b410f8e6d53 +0 -0
  31. data/test/dummy/tmp/cache/assets/D33/200/sprockets%2Fc291105cf21ca8e744c65f3d4f446aa1 +0 -0
  32. data/test/dummy/tmp/cache/assets/D34/610/sprockets%2Fcc081ecb5b32894151f16a144383befe +0 -0
  33. data/test/dummy/tmp/cache/assets/D4D/110/sprockets%2Fc16dfb491d9b98f482b4f0059dd355b8 +0 -0
  34. data/test/dummy/tmp/cache/assets/D4F/890/sprockets%2Fe3f96e9aa9b032c43788676c5ce066db +0 -0
  35. data/test/dummy/tmp/cache/assets/D53/370/sprockets%2F1cf0ca91840a1483edcac4d0c403b149 +0 -0
  36. data/test/dummy/tmp/cache/assets/D69/B90/sprockets%2Fdb0ee3e51128419c85616ceaca66ab58 +0 -0
  37. data/test/dummy/tmp/cache/assets/D75/B20/sprockets%2Fb659146edbe91be3b1b9d64cb9370c76 +0 -0
  38. data/test/dummy/tmp/cache/assets/D79/430/sprockets%2Fc030f9d26fab468c49dc494195d77eab +0 -0
  39. data/test/dummy/tmp/cache/assets/D9D/3C0/sprockets%2F3019d99c7bae1e55eb7c2bf4688b1b1a +0 -0
  40. data/test/dummy/tmp/cache/assets/DAA/1A0/sprockets%2Fba643993838fce8ddc1d42e6ce1fc346 +0 -0
  41. data/test/dummy/tmp/cache/assets/DD4/DA0/sprockets%2F17fadf3354a429c53acfe9fca6268d5d +0 -0
  42. data/test/dummy/tmp/cache/assets/DF8/880/sprockets%2F255d8bde2bf6681724e4ddedcc3cbc02 +0 -0
  43. data/test/dummy/tmp/job_2.svg +109 -64
  44. data/test/dummy/tmp/pids/server.pid +1 -0
  45. data/test/unit/level_up/graph_builder_test.rb +77 -0
  46. data/test/unit/level_up/job_test.rb +7 -7
  47. metadata +20 -8
  48. data/test/dummy/tmp/job_3.svg +0 -78
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: level_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-05 00:00:00.000000000 Z
12
+ date: 2013-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -187,11 +187,13 @@ files:
187
187
  - app/assets/stylesheets/level_up/jobs.css.scss
188
188
  - app/assets/stylesheets/level_up/rwdgrid.css
189
189
  - app/controllers/level_up/application_controller.rb
190
+ - app/controllers/level_up/flowcharts_controller.rb
190
191
  - app/controllers/level_up/home_controller.rb
191
192
  - app/controllers/level_up/jobs_controller.rb
192
193
  - app/helpers/level_up/application_helper.rb
193
194
  - app/helpers/level_up/home_helper.rb
194
195
  - app/helpers/level_up/jobs_helper.rb
196
+ - app/models/level_up/graph_builder.rb
195
197
  - app/models/level_up/job.rb
196
198
  - app/models/level_up/task/cancel.rb
197
199
  - app/models/level_up/task/end.rb
@@ -200,6 +202,8 @@ files:
200
202
  - app/views/layouts/level_up/_footer.html.erb
201
203
  - app/views/layouts/level_up/_header.html.erb
202
204
  - app/views/layouts/level_up/application.html.erb
205
+ - app/views/level_up/flowcharts/index.html.erb
206
+ - app/views/level_up/flowcharts/show.html.erb
203
207
  - app/views/level_up/home/index.html.erb
204
208
  - app/views/level_up/jobs/edit.html.erb
205
209
  - app/views/level_up/jobs/index.html.erb
@@ -233,6 +237,7 @@ files:
233
237
  - test/dummy/config/initializers/backtrace_silencers.rb
234
238
  - test/dummy/config/initializers/inflections.rb
235
239
  - test/dummy/config/initializers/mime_types.rb
240
+ - test/dummy/config/initializers/preload_sti_models.rb
236
241
  - test/dummy/config/initializers/secret_token.rb
237
242
  - test/dummy/config/initializers/session_store.rb
238
243
  - test/dummy/config/initializers/wrap_parameters.rb
@@ -254,6 +259,9 @@ files:
254
259
  - test/dummy/README.rdoc
255
260
  - test/dummy/script/delayed_job
256
261
  - test/dummy/script/rails
262
+ - test/dummy/tmp/account_banish.svg
263
+ - test/dummy/tmp/account_downgrade.svg
264
+ - test/dummy/tmp/account_upgrade.svg
257
265
  - test/dummy/tmp/cache/assets/C2C/CE0/sprockets%2F33f519d653c9b4886c417440a0993824
258
266
  - test/dummy/tmp/cache/assets/C6A/F00/sprockets%2F177385361781d5fe78d217f1f48b8566
259
267
  - test/dummy/tmp/cache/assets/C6C/ED0/sprockets%2F320c25374f5ea136824c04c256e1605b
@@ -278,9 +286,8 @@ files:
278
286
  - test/dummy/tmp/cache/assets/DAA/1A0/sprockets%2Fba643993838fce8ddc1d42e6ce1fc346
279
287
  - test/dummy/tmp/cache/assets/DD4/DA0/sprockets%2F17fadf3354a429c53acfe9fca6268d5d
280
288
  - test/dummy/tmp/cache/assets/DF8/880/sprockets%2F255d8bde2bf6681724e4ddedcc3cbc02
281
- - test/dummy/tmp/job_1.svg
282
289
  - test/dummy/tmp/job_2.svg
283
- - test/dummy/tmp/job_3.svg
290
+ - test/dummy/tmp/pids/server.pid
284
291
  - test/fixtures/level_up/jobs.yml
285
292
  - test/functional/level_up/home_controller_test.rb
286
293
  - test/functional/level_up/jobs_controller_test.rb
@@ -289,6 +296,7 @@ files:
289
296
  - test/test_helper.rb
290
297
  - test/unit/helpers/level_up/home_helper_test.rb
291
298
  - test/unit/helpers/level_up/jobs_helper_test.rb
299
+ - test/unit/level_up/graph_builder_test.rb
292
300
  - test/unit/level_up/job_test.rb
293
301
  homepage: https://github.com/kmatrah/level_up
294
302
  licenses: []
@@ -304,7 +312,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
304
312
  version: '0'
305
313
  segments:
306
314
  - 0
307
- hash: -2103961344199389179
315
+ hash: -1122485830339109532
308
316
  required_rubygems_version: !ruby/object:Gem::Requirement
309
317
  none: false
310
318
  requirements:
@@ -313,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
321
  version: '0'
314
322
  segments:
315
323
  - 0
316
- hash: -2103961344199389179
324
+ hash: -1122485830339109532
317
325
  requirements: []
318
326
  rubyforge_project:
319
327
  rubygems_version: 1.8.24
@@ -339,6 +347,7 @@ test_files:
339
347
  - test/dummy/config/initializers/backtrace_silencers.rb
340
348
  - test/dummy/config/initializers/inflections.rb
341
349
  - test/dummy/config/initializers/mime_types.rb
350
+ - test/dummy/config/initializers/preload_sti_models.rb
342
351
  - test/dummy/config/initializers/secret_token.rb
343
352
  - test/dummy/config/initializers/session_store.rb
344
353
  - test/dummy/config/initializers/wrap_parameters.rb
@@ -360,6 +369,9 @@ test_files:
360
369
  - test/dummy/README.rdoc
361
370
  - test/dummy/script/delayed_job
362
371
  - test/dummy/script/rails
372
+ - test/dummy/tmp/account_banish.svg
373
+ - test/dummy/tmp/account_downgrade.svg
374
+ - test/dummy/tmp/account_upgrade.svg
363
375
  - test/dummy/tmp/cache/assets/C2C/CE0/sprockets%2F33f519d653c9b4886c417440a0993824
364
376
  - test/dummy/tmp/cache/assets/C6A/F00/sprockets%2F177385361781d5fe78d217f1f48b8566
365
377
  - test/dummy/tmp/cache/assets/C6C/ED0/sprockets%2F320c25374f5ea136824c04c256e1605b
@@ -384,9 +396,8 @@ test_files:
384
396
  - test/dummy/tmp/cache/assets/DAA/1A0/sprockets%2Fba643993838fce8ddc1d42e6ce1fc346
385
397
  - test/dummy/tmp/cache/assets/DD4/DA0/sprockets%2F17fadf3354a429c53acfe9fca6268d5d
386
398
  - test/dummy/tmp/cache/assets/DF8/880/sprockets%2F255d8bde2bf6681724e4ddedcc3cbc02
387
- - test/dummy/tmp/job_1.svg
388
399
  - test/dummy/tmp/job_2.svg
389
- - test/dummy/tmp/job_3.svg
400
+ - test/dummy/tmp/pids/server.pid
390
401
  - test/fixtures/level_up/jobs.yml
391
402
  - test/functional/level_up/home_controller_test.rb
392
403
  - test/functional/level_up/jobs_controller_test.rb
@@ -395,4 +406,5 @@ test_files:
395
406
  - test/test_helper.rb
396
407
  - test/unit/helpers/level_up/home_helper_test.rb
397
408
  - test/unit/helpers/level_up/jobs_helper_test.rb
409
+ - test/unit/level_up/graph_builder_test.rb
398
410
  - test/unit/level_up/job_test.rb
@@ -1,78 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3
- "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
- <!-- Generated by graphviz version 2.30.1 (20130311.1815)
5
- -->
6
- <!-- Title: G Pages: 1 -->
7
- <svg width="242pt" height="332pt"
8
- viewBox="0.00 0.00 242.00 332.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
- <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 328)">
10
- <title>G</title>
11
- <polygon fill="#fafbfb" stroke="#fafbfb" points="-4,5 -4,-328 239,-328 239,5 -4,5"/>
12
- <!-- start -->
13
- <g id="node1" class="node"><title>start</title>
14
- <polygon fill="#5db1a4" stroke="#048282" points="84,-324 30,-324 30,-288 84,-288 84,-324"/>
15
- <text text-anchor="middle" x="57" y="-302.209" font-family="Verdana" font-size="14.00" fill="white">start</text>
16
- </g>
17
- <!-- banish -->
18
- <g id="node2" class="node"><title>banish</title>
19
- <polygon fill="#666666" stroke="#111111" points="87.4891,-252 26.5109,-252 26.5109,-216 87.4891,-216 87.4891,-252"/>
20
- <text text-anchor="middle" x="57" y="-230.209" font-family="Verdana" font-size="14.00" fill="white">banish</text>
21
- </g>
22
- <!-- start&#45;&gt;banish -->
23
- <g id="edge1" class="edge"><title>start&#45;&gt;banish</title>
24
- <path fill="none" stroke="#000000" d="M57,-287.697C57,-279.983 57,-270.712 57,-262.112"/>
25
- <polygon fill="#000000" stroke="#000000" points="57,-252.104 61.5001,-262.104 57,-257.104 57.0001,-262.104 57.0001,-262.104 57.0001,-262.104 57,-257.104 52.5001,-262.104 57,-252.104 57,-252.104"/>
26
- </g>
27
- <!-- check account -->
28
- <g id="node3" class="node"><title>check account</title>
29
- <polygon fill="#666666" stroke="#111111" points="114.293,-180 -0.293353,-180 -0.293353,-144 114.293,-144 114.293,-180"/>
30
- <text text-anchor="middle" x="57" y="-158.209" font-family="Verdana" font-size="14.00" fill="white">check account</text>
31
- </g>
32
- <!-- banish&#45;&gt;check account -->
33
- <g id="edge2" class="edge"><title>banish&#45;&gt;check account</title>
34
- <path fill="none" stroke="#000000" d="M51.0843,-215.697C50.2886,-207.983 50.0621,-198.712 50.4047,-190.112"/>
35
- <polygon fill="#000000" stroke="#000000" points="51.105,-180.104 54.8959,-190.394 50.7559,-185.092 50.4069,-190.08 50.4069,-190.08 50.4069,-190.08 50.7559,-185.092 45.9179,-189.766 51.105,-180.104 51.105,-180.104"/>
36
- </g>
37
- <!-- email notification -->
38
- <g id="node5" class="node"><title>email notification</title>
39
- <polygon fill="#666666" stroke="#111111" points="234.15,-108 97.8501,-108 97.8501,-72 234.15,-72 234.15,-108"/>
40
- <text text-anchor="middle" x="166" y="-86.2088" font-family="Verdana" font-size="14.00" fill="white">email notification</text>
41
- </g>
42
- <!-- banish&#45;&gt;email notification -->
43
- <g id="edge3" class="edge"><title>banish&#45;&gt;email notification</title>
44
- <path fill="none" stroke="#000000" d="M83.4673,-215.936C96.5779,-206.515 111.928,-193.914 123,-180 138.035,-161.106 149.533,-136.094 156.84,-117.397"/>
45
- <polygon fill="#000000" stroke="#000000" points="160.37,-108.001 161.066,-118.945 158.611,-112.682 156.853,-117.362 156.853,-117.362 156.853,-117.362 158.611,-112.682 152.64,-115.78 160.37,-108.001 160.37,-108.001"/>
46
- </g>
47
- <!-- check account&#45;&gt;banish -->
48
- <g id="edge4" class="edge"><title>check account&#45;&gt;banish</title>
49
- <path fill="none" stroke="#000000" d="M62.895,-180.104C63.7005,-187.791 63.9369,-197.054 63.604,-205.665"/>
50
- <polygon fill="#000000" stroke="#000000" points="62.9157,-215.697 59.1109,-205.412 63.258,-210.708 63.6003,-205.72 63.6003,-205.72 63.6003,-205.72 63.258,-210.708 68.0898,-206.028 62.9157,-215.697 62.9157,-215.697"/>
51
- </g>
52
- <!-- report -->
53
- <g id="node4" class="node"><title>report</title>
54
- <polygon fill="#666666" stroke="#111111" points="79.2689,-108 20.7311,-108 20.7311,-72 79.2689,-72 79.2689,-108"/>
55
- <text text-anchor="middle" x="50" y="-86.2088" font-family="Verdana" font-size="14.00" fill="white">report</text>
56
- </g>
57
- <!-- check account&#45;&gt;report -->
58
- <g id="edge5" class="edge"><title>check account&#45;&gt;report</title>
59
- <path fill="none" stroke="#000000" d="M55.2697,-143.697C54.4983,-135.983 53.5712,-126.712 52.7112,-118.112"/>
60
- <polygon fill="#000000" stroke="#000000" points="51.7104,-108.104 57.1832,-117.607 52.208,-113.08 52.7056,-118.055 52.7056,-118.055 52.7056,-118.055 52.208,-113.08 48.2279,-118.503 51.7104,-108.104 51.7104,-108.104"/>
61
- </g>
62
- <!-- end -->
63
- <g id="node6" class="node"><title>end</title>
64
- <polygon fill="#b40d28" stroke="#600615" points="135,-36 81,-36 81,-0 135,-0 135,-36"/>
65
- <text text-anchor="middle" x="108" y="-14.2088" font-family="Verdana" font-size="14.00" fill="white">end</text>
66
- </g>
67
- <!-- report&#45;&gt;end -->
68
- <g id="edge6" class="edge"><title>report&#45;&gt;end</title>
69
- <path fill="none" stroke="#000000" d="M64.3371,-71.6966C71.2905,-63.3046 79.7702,-53.0705 87.4006,-43.8613"/>
70
- <polygon fill="#000000" stroke="#000000" points="93.8278,-36.1043 90.9127,-46.6757 90.6377,-39.9545 87.4476,-43.8046 87.4476,-43.8046 87.4476,-43.8046 90.6377,-39.9545 83.9825,-40.9335 93.8278,-36.1043 93.8278,-36.1043"/>
71
- </g>
72
- <!-- email notification&#45;&gt;end -->
73
- <g id="edge7" class="edge"><title>email notification&#45;&gt;end</title>
74
- <path fill="none" stroke="#000000" d="M151.663,-71.6966C144.709,-63.3046 136.23,-53.0705 128.599,-43.8613"/>
75
- <polygon fill="#000000" stroke="#000000" points="122.172,-36.1043 132.017,-40.9335 125.362,-39.9545 128.552,-43.8046 128.552,-43.8046 128.552,-43.8046 125.362,-39.9545 125.087,-46.6757 122.172,-36.1043 122.172,-36.1043"/>
76
- </g>
77
- </g>
78
- </svg>