digital_opera 0.0.10 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/.gitignore +4 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +14 -0
  4. data/Gemfile.lock +186 -0
  5. data/Guardfile +15 -0
  6. data/README.md +35 -0
  7. data/Rakefile +6 -3
  8. data/app/helpers/digital_opera/s3_helper.rb +14 -0
  9. data/digital_opera.gemspec +37 -0
  10. data/lib/digital_opera/banker.rb +1 -1
  11. data/lib/digital_opera/builders/s3_form_builder.rb +118 -0
  12. data/lib/digital_opera/document/base.rb +0 -0
  13. data/lib/digital_opera/document/fields/standard.rb +185 -0
  14. data/lib/digital_opera/document.rb +167 -0
  15. data/lib/digital_opera/engine.rb +9 -0
  16. data/lib/digital_opera/form_object/base.rb +115 -0
  17. data/lib/digital_opera/form_object.rb +13 -0
  18. data/lib/digital_opera/presenter/base.rb +6 -0
  19. data/lib/digital_opera/presenter/concerns/json_serialization.rb +30 -0
  20. data/lib/digital_opera/presenter.rb +9 -0
  21. data/lib/digital_opera/services/s3.rb +148 -0
  22. data/lib/digital_opera/version.rb +1 -1
  23. data/lib/digital_opera.rb +8 -1
  24. data/spec/dummy/README.rdoc +28 -0
  25. data/spec/dummy/Rakefile +8 -0
  26. data/spec/dummy/app/assets/images/.keep +0 -0
  27. data/spec/dummy/app/assets/javascripts/application.js +2 -0
  28. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  29. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  30. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  31. data/spec/dummy/app/mailers/.keep +0 -0
  32. data/spec/dummy/app/models/.keep +0 -0
  33. data/spec/dummy/app/models/concerns/.keep +0 -0
  34. data/spec/dummy/app/views/application/show.html.erb +0 -0
  35. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  36. data/spec/dummy/bin/bundle +3 -0
  37. data/spec/dummy/bin/rails +4 -0
  38. data/spec/dummy/bin/rake +4 -0
  39. data/spec/dummy/config/application.rb +23 -0
  40. data/spec/dummy/config/boot.rb +5 -0
  41. data/spec/dummy/config/database.yml +25 -0
  42. data/spec/dummy/config/environment.rb +5 -0
  43. data/spec/dummy/config/environments/development.rb +29 -0
  44. data/spec/dummy/config/environments/production.rb +80 -0
  45. data/spec/dummy/config/environments/test.rb +36 -0
  46. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  47. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/spec/dummy/config/initializers/inflections.rb +16 -0
  49. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  50. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  51. data/spec/dummy/config/initializers/session_store.rb +3 -0
  52. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  53. data/spec/dummy/config/locales/en.yml +23 -0
  54. data/spec/dummy/config/routes.rb +3 -0
  55. data/spec/dummy/config.ru +4 -0
  56. data/spec/dummy/db/development.sqlite3 +0 -0
  57. data/spec/dummy/db/schema.rb +16 -0
  58. data/spec/dummy/db/test.sqlite3 +0 -0
  59. data/spec/dummy/lib/assets/.keep +0 -0
  60. data/spec/dummy/public/404.html +58 -0
  61. data/spec/dummy/public/422.html +58 -0
  62. data/spec/dummy/public/500.html +57 -0
  63. data/spec/dummy/public/favicon.ico +0 -0
  64. data/spec/dummy/spec/javascripts/helpers/.gitkeep +0 -0
  65. data/spec/dummy/spec/javascripts/support/jasmine.yml +116 -0
  66. data/spec/dummy/spec/javascripts/support/jasmine_helper.rb +10 -0
  67. data/spec/javascripts/spec/ellipsis_spec.js +10 -28
  68. data/spec/javascripts/spec/events_spec.js +15 -40
  69. data/spec/javascripts/spec/preload_images_spec.js +20 -32
  70. data/spec/javascripts/spec/tables_spec.js +3 -3
  71. data/spec/{banker_spec.rb → lib/digital_opera/banker_spec.rb} +4 -4
  72. data/spec/{base_extensions → lib/digital_opera/base_extensions}/object_spec.rb +0 -0
  73. data/spec/{presenter → lib/digital_opera/presenter}/base_spec.rb +0 -3
  74. data/spec/lib/digital_opera/services/s3_spec.rb +203 -0
  75. data/spec/{token_spec.rb → lib/digital_opera/token_spec.rb} +0 -0
  76. data/spec/spec_helper.rb +11 -5
  77. data/spec/support/aws.rb +5 -0
  78. data/spec/support/document.rb +10 -0
  79. data/tasks/spec.rake +5 -0
  80. data/tmp/rspec_guard_result +1 -0
  81. metadata +268 -46
  82. data/spec/javascripts/SpecRunner.html +0 -62
  83. data/spec/javascripts/lib/jasmine-1.3.1/MIT.LICENSE +0 -20
  84. data/spec/javascripts/lib/jasmine-1.3.1/jasmine-html.js +0 -681
  85. data/spec/javascripts/lib/jasmine-1.3.1/jasmine.css +0 -82
  86. data/spec/javascripts/lib/jasmine-1.3.1/jasmine.js +0 -2600
  87. data/spec/javascripts/src/digital_opera.js +0 -149
@@ -1,82 +0,0 @@
1
- body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; }
2
-
3
- #HTMLReporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; }
4
- #HTMLReporter a { text-decoration: none; }
5
- #HTMLReporter a:hover { text-decoration: underline; }
6
- #HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 { margin: 0; line-height: 14px; }
7
- #HTMLReporter .banner, #HTMLReporter .symbolSummary, #HTMLReporter .summary, #HTMLReporter .resultMessage, #HTMLReporter .specDetail .description, #HTMLReporter .alert .bar, #HTMLReporter .stackTrace { padding-left: 9px; padding-right: 9px; }
8
- #HTMLReporter #jasmine_content { position: fixed; right: 100%; }
9
- #HTMLReporter .version { color: #aaaaaa; }
10
- #HTMLReporter .banner { margin-top: 14px; }
11
- #HTMLReporter .duration { color: #aaaaaa; float: right; }
12
- #HTMLReporter .symbolSummary { overflow: hidden; *zoom: 1; margin: 14px 0; }
13
- #HTMLReporter .symbolSummary li { display: block; float: left; height: 7px; width: 14px; margin-bottom: 7px; font-size: 16px; }
14
- #HTMLReporter .symbolSummary li.passed { font-size: 14px; }
15
- #HTMLReporter .symbolSummary li.passed:before { color: #5e7d00; content: "\02022"; }
16
- #HTMLReporter .symbolSummary li.failed { line-height: 9px; }
17
- #HTMLReporter .symbolSummary li.failed:before { color: #b03911; content: "x"; font-weight: bold; margin-left: -1px; }
18
- #HTMLReporter .symbolSummary li.skipped { font-size: 14px; }
19
- #HTMLReporter .symbolSummary li.skipped:before { color: #bababa; content: "\02022"; }
20
- #HTMLReporter .symbolSummary li.pending { line-height: 11px; }
21
- #HTMLReporter .symbolSummary li.pending:before { color: #aaaaaa; content: "-"; }
22
- #HTMLReporter .exceptions { color: #fff; float: right; margin-top: 5px; margin-right: 5px; }
23
- #HTMLReporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; }
24
- #HTMLReporter .runningAlert { background-color: #666666; }
25
- #HTMLReporter .skippedAlert { background-color: #aaaaaa; }
26
- #HTMLReporter .skippedAlert:first-child { background-color: #333333; }
27
- #HTMLReporter .skippedAlert:hover { text-decoration: none; color: white; text-decoration: underline; }
28
- #HTMLReporter .passingAlert { background-color: #a6b779; }
29
- #HTMLReporter .passingAlert:first-child { background-color: #5e7d00; }
30
- #HTMLReporter .failingAlert { background-color: #cf867e; }
31
- #HTMLReporter .failingAlert:first-child { background-color: #b03911; }
32
- #HTMLReporter .results { margin-top: 14px; }
33
- #HTMLReporter #details { display: none; }
34
- #HTMLReporter .resultsMenu, #HTMLReporter .resultsMenu a { background-color: #fff; color: #333333; }
35
- #HTMLReporter.showDetails .summaryMenuItem { font-weight: normal; text-decoration: inherit; }
36
- #HTMLReporter.showDetails .summaryMenuItem:hover { text-decoration: underline; }
37
- #HTMLReporter.showDetails .detailsMenuItem { font-weight: bold; text-decoration: underline; }
38
- #HTMLReporter.showDetails .summary { display: none; }
39
- #HTMLReporter.showDetails #details { display: block; }
40
- #HTMLReporter .summaryMenuItem { font-weight: bold; text-decoration: underline; }
41
- #HTMLReporter .summary { margin-top: 14px; }
42
- #HTMLReporter .summary .suite .suite, #HTMLReporter .summary .specSummary { margin-left: 14px; }
43
- #HTMLReporter .summary .specSummary.passed a { color: #5e7d00; }
44
- #HTMLReporter .summary .specSummary.failed a { color: #b03911; }
45
- #HTMLReporter .description + .suite { margin-top: 0; }
46
- #HTMLReporter .suite { margin-top: 14px; }
47
- #HTMLReporter .suite a { color: #333333; }
48
- #HTMLReporter #details .specDetail { margin-bottom: 28px; }
49
- #HTMLReporter #details .specDetail .description { display: block; color: white; background-color: #b03911; }
50
- #HTMLReporter .resultMessage { padding-top: 14px; color: #333333; }
51
- #HTMLReporter .resultMessage span.result { display: block; }
52
- #HTMLReporter .stackTrace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #ddd; background: white; white-space: pre; }
53
-
54
- #TrivialReporter { padding: 8px 13px; position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow-y: scroll; background-color: white; font-family: "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif; /*.resultMessage {*/ /*white-space: pre;*/ /*}*/ }
55
- #TrivialReporter a:visited, #TrivialReporter a { color: #303; }
56
- #TrivialReporter a:hover, #TrivialReporter a:active { color: blue; }
57
- #TrivialReporter .run_spec { float: right; padding-right: 5px; font-size: .8em; text-decoration: none; }
58
- #TrivialReporter .banner { color: #303; background-color: #fef; padding: 5px; }
59
- #TrivialReporter .logo { float: left; font-size: 1.1em; padding-left: 5px; }
60
- #TrivialReporter .logo .version { font-size: .6em; padding-left: 1em; }
61
- #TrivialReporter .runner.running { background-color: yellow; }
62
- #TrivialReporter .options { text-align: right; font-size: .8em; }
63
- #TrivialReporter .suite { border: 1px outset gray; margin: 5px 0; padding-left: 1em; }
64
- #TrivialReporter .suite .suite { margin: 5px; }
65
- #TrivialReporter .suite.passed { background-color: #dfd; }
66
- #TrivialReporter .suite.failed { background-color: #fdd; }
67
- #TrivialReporter .spec { margin: 5px; padding-left: 1em; clear: both; }
68
- #TrivialReporter .spec.failed, #TrivialReporter .spec.passed, #TrivialReporter .spec.skipped { padding-bottom: 5px; border: 1px solid gray; }
69
- #TrivialReporter .spec.failed { background-color: #fbb; border-color: red; }
70
- #TrivialReporter .spec.passed { background-color: #bfb; border-color: green; }
71
- #TrivialReporter .spec.skipped { background-color: #bbb; }
72
- #TrivialReporter .messages { border-left: 1px dashed gray; padding-left: 1em; padding-right: 1em; }
73
- #TrivialReporter .passed { background-color: #cfc; display: none; }
74
- #TrivialReporter .failed { background-color: #fbb; }
75
- #TrivialReporter .skipped { color: #777; background-color: #eee; display: none; }
76
- #TrivialReporter .resultMessage span.result { display: block; line-height: 2em; color: black; }
77
- #TrivialReporter .resultMessage .mismatch { color: black; }
78
- #TrivialReporter .stackTrace { white-space: pre; font-size: .8em; margin-left: 10px; max-height: 5em; overflow: auto; border: 1px inset red; padding: 1em; background: #eef; }
79
- #TrivialReporter .finished-at { padding-left: 1em; font-size: .6em; }
80
- #TrivialReporter.show-passed .passed, #TrivialReporter.show-skipped .skipped { display: block; }
81
- #TrivialReporter #jasmine_content { position: fixed; right: 100%; }
82
- #TrivialReporter .runner { border: 1px solid gray; display: block; margin: 5px 0; padding: 2px 0 2px 10px; }