mercury-rails 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data/LICENSE +5 -0
  2. data/{README.rdoc → README.md} +150 -60
  3. data/VERSION +1 -1
  4. data/annotated_source.template +57 -0
  5. data/app/controllers/mercury_controller.rb +8 -4
  6. data/app/models/image.rb +2 -2
  7. data/app/views/layouts/mercury.html.erb +14 -0
  8. data/app/views/mercury/lightviews/about.html +7 -0
  9. data/app/views/mercury/lightviews/imageprocessor.html +3 -0
  10. data/app/views/mercury/modals/character.html +255 -0
  11. data/app/views/mercury/modals/htmleditor.html +13 -0
  12. data/app/views/mercury/modals/link.html +75 -0
  13. data/app/views/mercury/modals/media.html +82 -0
  14. data/app/views/mercury/modals/sanitizer.html +9 -0
  15. data/app/views/mercury/modals/table.html +84 -0
  16. data/app/views/mercury/palettes/backcolor.html +73 -0
  17. data/app/views/mercury/palettes/forecolor.html +73 -0
  18. data/app/views/mercury/panels/history.html +3 -0
  19. data/app/views/mercury/panels/notes.html +3 -0
  20. data/app/views/mercury/panels/snippets.html +12 -0
  21. data/app/views/mercury/selects/formatblock.html +11 -0
  22. data/app/views/mercury/selects/style.html +5 -0
  23. data/app/views/mercury/snippets/example.html.erb +1 -0
  24. data/app/views/mercury/snippets/example_options.html.erb +23 -0
  25. data/config/routes.rb +1 -1
  26. data/features/editing/basic.feature +1 -1
  27. data/features/support/paths.rb +1 -0
  28. data/lib/generators/mercury/install/install_generator.rb +14 -0
  29. data/mercury-rails.gemspec +115 -106
  30. data/spec/javascripts/mercury/dialog_spec.js.coffee +54 -38
  31. data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +1 -1
  32. data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +1 -1
  33. data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +1 -1
  34. data/spec/javascripts/mercury/dialogs/{objectspanel_spec.js.coffee → snippetpanel_spec.js.coffee} +4 -4
  35. data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +1 -1
  36. data/spec/javascripts/mercury/history_buffer_spec.js.coffee +0 -1
  37. data/spec/javascripts/mercury/lightview_spec.js.coffee +448 -0
  38. data/spec/javascripts/mercury/mercury_spec.js.coffee +1 -1
  39. data/spec/javascripts/mercury/modal_spec.js.coffee +474 -0
  40. data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +1 -1
  41. data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +1 -1
  42. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +8 -2
  43. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +1 -1
  44. data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +1 -1
  45. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +1 -1
  46. data/spec/javascripts/mercury/native_extensions_spec.js.coffee +1 -1
  47. data/spec/javascripts/mercury/page_editor_spec.js.coffee +160 -20
  48. data/spec/javascripts/mercury/palette_spec.js.coffee +1 -1
  49. data/spec/javascripts/mercury/panel_spec.js.coffee +1 -1
  50. data/spec/javascripts/mercury/region_spec.js.coffee +1 -1
  51. data/spec/javascripts/mercury/regions/editable_spec.js.coffee +191 -6
  52. data/spec/javascripts/mercury/regions/markupable_spec.js.coffee +369 -0
  53. data/spec/javascripts/mercury/regions/snippetable_spec.js.coffee +1 -1
  54. data/spec/javascripts/mercury/select_spec.js.coffee +1 -1
  55. data/spec/javascripts/mercury/snippet_spec.js.coffee +3 -3
  56. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +2 -2
  57. data/spec/javascripts/mercury/statusbar_spec.js.coffee +91 -17
  58. data/spec/javascripts/mercury/table_editor_spec.js.coffee +5 -1
  59. data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +1 -1
  60. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +1 -1
  61. data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +1 -1
  62. data/spec/javascripts/mercury/toolbar_spec.js.coffee +70 -15
  63. data/spec/javascripts/mercury/tooltip_spec.js.coffee +1 -1
  64. data/spec/javascripts/mercury/uploader_spec.js.coffee +9 -1
  65. data/spec/javascripts/templates/mercury/dialogs/{objectspanel.html → snippetpanel.html} +0 -0
  66. data/spec/javascripts/templates/mercury/lightview.html +13 -0
  67. data/spec/javascripts/templates/mercury/modal.html +13 -0
  68. data/spec/javascripts/templates/mercury/page_editor.html +11 -1
  69. data/spec/javascripts/templates/mercury/statusbar.html +1 -0
  70. data/spec/javascripts/templates/mercury/toolbar.html +1 -0
  71. data/{app → vendor}/assets/images/mercury/button.png +0 -0
  72. data/{app → vendor}/assets/images/mercury/clippy.png +0 -0
  73. data/{app → vendor}/assets/images/mercury/default-snippet.png +0 -0
  74. data/{app → vendor}/assets/images/mercury/loading-dark.gif +0 -0
  75. data/{app → vendor}/assets/images/mercury/loading-light.gif +0 -0
  76. data/{app → vendor}/assets/images/mercury/search-icon.png +0 -0
  77. data/vendor/assets/images/mercury/temp-logo.png +0 -0
  78. data/{app → vendor}/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  79. data/{app → vendor}/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  80. data/{app → vendor}/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  81. data/{app → vendor}/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  82. data/{app → vendor}/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  83. data/{app → vendor}/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  84. data/{app → vendor}/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  85. data/{app → vendor}/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  86. data/{app → vendor}/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  87. data/{app → vendor}/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  88. data/{app → vendor}/assets/images/mercury/toolbar/primary/preview.png +0 -0
  89. data/{app → vendor}/assets/images/mercury/toolbar/primary/redo.png +0 -0
  90. data/{app → vendor}/assets/images/mercury/toolbar/primary/save.png +0 -0
  91. data/{app/assets/images/mercury/toolbar/primary/objectspanel.png → vendor/assets/images/mercury/toolbar/primary/snippetpanel.png} +0 -0
  92. data/{app → vendor}/assets/images/mercury/toolbar/primary/undo.png +0 -0
  93. data/{app → vendor}/assets/images/mercury/toolbar/snippetable/buttons.png +0 -0
  94. data/vendor/assets/javascripts/mercury.js +302 -0
  95. data/vendor/assets/javascripts/mercury/dialog.js.coffee +157 -0
  96. data/{app → vendor}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
  97. data/{app → vendor}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +0 -0
  98. data/{app → vendor}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
  99. data/{app → vendor}/assets/javascripts/mercury/dialogs/objectspanel.js.coffee +1 -1
  100. data/{app → vendor}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
  101. data/{app → vendor}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
  102. data/vendor/assets/javascripts/mercury/lightview.js.coffee +156 -0
  103. data/vendor/assets/javascripts/mercury/lightviews/imageprocessor.js.coffee +2 -0
  104. data/vendor/assets/javascripts/mercury/mercury.js.coffee +63 -0
  105. data/{app → vendor}/assets/javascripts/mercury/modal.js.coffee +25 -17
  106. data/{app → vendor}/assets/javascripts/mercury/modals/htmleditor.js.coffee +0 -0
  107. data/{app → vendor}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +0 -0
  108. data/{app → vendor}/assets/javascripts/mercury/modals/insertlink.js.coffee +3 -0
  109. data/{app → vendor}/assets/javascripts/mercury/modals/insertmedia.js.coffee +10 -2
  110. data/{app → vendor}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +0 -0
  111. data/{app → vendor}/assets/javascripts/mercury/modals/inserttable.js.coffee +2 -2
  112. data/{app → vendor}/assets/javascripts/mercury/native_extensions.js.coffee +0 -0
  113. data/{app → vendor}/assets/javascripts/mercury/page_editor.js.coffee +44 -13
  114. data/{app → vendor}/assets/javascripts/mercury/palette.js.coffee +0 -0
  115. data/{app → vendor}/assets/javascripts/mercury/panel.js.coffee +0 -0
  116. data/{app → vendor}/assets/javascripts/mercury/region.js.coffee +0 -0
  117. data/{app → vendor}/assets/javascripts/mercury/regions/editable.js.coffee +58 -12
  118. data/{app → vendor}/assets/javascripts/mercury/regions/markupable.js.coffee +26 -24
  119. data/{app → vendor}/assets/javascripts/mercury/regions/snippetable.js.coffee +0 -0
  120. data/{app → vendor}/assets/javascripts/mercury/select.js.coffee +3 -0
  121. data/{app → vendor}/assets/javascripts/mercury/snippet.js.coffee +9 -5
  122. data/{app → vendor}/assets/javascripts/mercury/snippet_toolbar.js.coffee +0 -0
  123. data/vendor/assets/javascripts/mercury/statusbar.js.coffee +51 -0
  124. data/{app → vendor}/assets/javascripts/mercury/table_editor.js.coffee +9 -8
  125. data/{app → vendor}/assets/javascripts/mercury/toolbar.button.js.coffee +0 -0
  126. data/{app → vendor}/assets/javascripts/mercury/toolbar.button_group.js.coffee +0 -0
  127. data/{app → vendor}/assets/javascripts/mercury/toolbar.expander.js.coffee +0 -0
  128. data/{app → vendor}/assets/javascripts/mercury/toolbar.js.coffee +14 -1
  129. data/{app → vendor}/assets/javascripts/mercury/tooltip.js.coffee +3 -0
  130. data/{app → vendor}/assets/javascripts/mercury/uploader.js.coffee +22 -13
  131. data/vendor/assets/javascripts/{jquery-1.6.js → mercury_dependencies/jquery-1.6.js} +0 -0
  132. data/vendor/assets/javascripts/{jquery-ui-1.8.13.custom.js → mercury_dependencies/jquery-ui-1.8.13.custom.js} +0 -0
  133. data/vendor/assets/javascripts/{jquery.additions.js → mercury_dependencies/jquery.additions.js} +0 -0
  134. data/vendor/assets/javascripts/{liquidmetal.js → mercury_dependencies/liquidmetal.js} +0 -0
  135. data/vendor/assets/javascripts/{showdown.js → mercury_dependencies/showdown.js} +0 -0
  136. data/vendor/assets/javascripts/mercury_loader.js +191 -0
  137. data/{app → vendor}/assets/stylesheets/mercury.css +3 -6
  138. data/vendor/assets/stylesheets/mercury/dialog.css +199 -0
  139. data/vendor/assets/stylesheets/mercury/lightview.css +92 -0
  140. data/vendor/assets/stylesheets/mercury/mercury.css +134 -0
  141. data/vendor/assets/stylesheets/mercury/modal.css +191 -0
  142. data/{app/assets/stylesheets/mercury/statusbar.scss → vendor/assets/stylesheets/mercury/statusbar.css} +9 -1
  143. data/vendor/assets/stylesheets/mercury/toolbar.css +329 -0
  144. data/{app/assets/stylesheets/mercury/tooltip.scss → vendor/assets/stylesheets/mercury/tooltip.css} +7 -7
  145. data/vendor/assets/stylesheets/mercury/uploader.css +111 -0
  146. metadata +230 -225
  147. data/app/assets/images/mercury/toolbar/markupable/buttons.png +0 -0
  148. data/app/assets/images/mercury/toolbar/primary/todospanel.png +0 -0
  149. data/app/assets/javascripts/mercury.js +0 -30
  150. data/app/assets/javascripts/mercury/dialog.js.coffee +0 -75
  151. data/app/assets/javascripts/mercury/mercury.js.coffee +0 -286
  152. data/app/assets/javascripts/mercury/statusbar.js.coffee +0 -29
  153. data/app/assets/javascripts/mercury_loader.js +0 -98
  154. data/app/assets/stylesheets/mercury/dialog.scss +0 -179
  155. data/app/assets/stylesheets/mercury/mercury.scss +0 -127
  156. data/app/assets/stylesheets/mercury/modal.scss +0 -194
  157. data/app/assets/stylesheets/mercury/toolbar.scss +0 -415
  158. data/app/assets/stylesheets/mercury/uploader.scss +0 -109
  159. data/app/views/layouts/mercury.html.haml +0 -8
  160. data/app/views/mercury/modals/character.html.haml +0 -252
  161. data/app/views/mercury/modals/htmleditor.html.haml +0 -8
  162. data/app/views/mercury/modals/link.html.haml +0 -31
  163. data/app/views/mercury/modals/media.html.haml +0 -33
  164. data/app/views/mercury/modals/sanitizer.html.haml +0 -4
  165. data/app/views/mercury/modals/table.html.haml +0 -49
  166. data/app/views/mercury/palettes/backcolor.html.haml +0 -79
  167. data/app/views/mercury/palettes/forecolor.html.haml +0 -79
  168. data/app/views/mercury/panels/history.html.haml +0 -0
  169. data/app/views/mercury/panels/notes.html.haml +0 -0
  170. data/app/views/mercury/panels/snippets.html.haml +0 -10
  171. data/app/views/mercury/selects/formatblock.html.haml +0 -10
  172. data/app/views/mercury/selects/style.html.haml +0 -4
  173. data/app/views/mercury/snippets/example.html.haml +0 -2
  174. data/app/views/mercury/snippets/example_options.html.haml +0 -16
  175. data/log/.gitkeep +0 -0
  176. data/spec/javascripts/mercury/regions/_markupable_.js.coffee +0 -0
@@ -0,0 +1,84 @@
1
+ <form id="mercury_table" style="width:700px">
2
+
3
+ <div class="mercury-modal-pane-container">
4
+ <div class="mercury-modal-pane">
5
+
6
+ <div id="table_display">
7
+ <table border="1" cellspacing="0">
8
+ <tr>
9
+ <td>&nbsp;</td>
10
+ <td>&nbsp;</td>
11
+ <td>&nbsp;</td>
12
+ </tr>
13
+ <tr>
14
+ <td>&nbsp;</td>
15
+ <td>&nbsp;</td>
16
+ <td>&nbsp;</td>
17
+ </tr>
18
+ </table>
19
+ </div>
20
+
21
+ <div id="table_options">
22
+ <fieldset class="inputs">
23
+ <ol>
24
+ <li id="table_rows_input" class="select input optional">
25
+ <label for="table_rows">Rows</label>
26
+ <input type="button" class="action" value="Add Before" name="insertRowBefore"/>
27
+ <input type="button" class="action" value="Add After" name="insertRowAfter"/>
28
+ <input type="button" class="action" value="Remove" name="deleteRow"/>
29
+ </li>
30
+ <li id="table_columns_input" class="select input optional">
31
+ <label for="table_columns">Columns</label>
32
+ <input type="button" class="action" value="Add Before" name="insertColumnBefore"/>
33
+ <input type="button" class="action" value="Add After" name="insertColumnAfter"/>
34
+ <input type="button" class="action" value="Remove" name="deleteColumn"/>
35
+ </li>
36
+ <hr/>
37
+ <li id="table_row_adjust_input" class="select input optional">
38
+ <label for="table_row_adjust">Row Span</label>
39
+ <input type="button" class="action" value="+" name="increaseRowspan"/>
40
+ <input type="button" class="action" value="-" name="decreaseRowspan"/>
41
+ </li>
42
+ <li id="table_column_adjust_input" class="select input optional">
43
+ <label for="table_column_adjust">Column Span</label>
44
+ <input type="button" class="action" value="+" name="increaseColspan"/>
45
+ <input type="button" class="action" value="-" name="decreaseColspan"/>
46
+ </li>
47
+ </ol>
48
+ </fieldset>
49
+
50
+ <fieldset class="inputs">
51
+ <legend><span>Options</span></legend>
52
+ <ol>
53
+ <li id="table_alignment_input" class="select input optional">
54
+ <label class="label" for="table_alignment">Alignment</label>
55
+ <select id="table_alignment" name="table[alignment]">
56
+ <option value="">None</option>
57
+ <option value="left">Left</option>
58
+ <option value="right">Right</option>
59
+ </select>
60
+ </li>
61
+ <li id="table_border_input" class="string input optional stringish">
62
+ <label class="label" for="table_border">Border</label>
63
+ <input id="table_border" name="table[border]" type="text" value="1"/>
64
+ </li>
65
+ <li id="table_spacing_input" class="string input optional stringish">
66
+ <label class="label" for="table_spacing">Spacing</label>
67
+ <input id="table_spacing" name="table[spacing]" type="text" value="0"/>
68
+ </li>
69
+ </ol>
70
+ </fieldset>
71
+ </div>
72
+
73
+ </div>
74
+ </div>
75
+
76
+ <div class="mercury-modal-controls">
77
+ <fieldset class="buttons">
78
+ <ol>
79
+ <li class="commit button"><input class="submit" name="commit" type="submit" value="Insert Table" /></li>
80
+ </ol>
81
+ </fieldset>
82
+ </div>
83
+
84
+ </form>
@@ -0,0 +1,73 @@
1
+ <div class="mercury-color-picker">
2
+ <div class="picker" style="background:#FFFFFF"></div>
3
+ <div class="picker" style="background:#FFCCCC"></div>
4
+ <div class="picker" style="background:#FFCC99"></div>
5
+ <div class="picker" style="background:#FFFF99"></div>
6
+ <div class="picker" style="background:#FFFFCC"></div>
7
+ <div class="picker" style="background:#99FF99"></div>
8
+ <div class="picker" style="background:#99FFFF"></div>
9
+ <div class="picker" style="background:#CCFFFF"></div>
10
+ <div class="picker" style="background:#CCCCFF"></div>
11
+ <div class="picker" style="background:#FFCCFF"></div>
12
+ <div class="picker" style="background:#CCCCCC"></div>
13
+ <div class="picker" style="background:#FF6666"></div>
14
+ <div class="picker" style="background:#FF9966"></div>
15
+ <div class="picker" style="background:#FFFF66"></div>
16
+ <div class="picker" style="background:#FFFF33"></div>
17
+ <div class="picker" style="background:#66FF99"></div>
18
+ <div class="picker" style="background:#33FFFF"></div>
19
+ <div class="picker" style="background:#66FFFF"></div>
20
+ <div class="picker" style="background:#9999FF"></div>
21
+ <div class="picker" style="background:#FF99FF"></div>
22
+ <div class="picker" style="background:#C0C0C0"></div>
23
+ <div class="picker" style="background:#FF0000"></div>
24
+ <div class="picker" style="background:#FF9900"></div>
25
+ <div class="picker" style="background:#FFCC66"></div>
26
+ <div class="picker" style="background:#FFFF00"></div>
27
+ <div class="picker" style="background:#33FF33"></div>
28
+ <div class="picker" style="background:#66CCCC"></div>
29
+ <div class="picker" style="background:#33CCFF"></div>
30
+ <div class="picker" style="background:#6666CC"></div>
31
+ <div class="picker" style="background:#CC66CC"></div>
32
+ <div class="picker" style="background:#999999"></div>
33
+ <div class="picker" style="background:#CC0000"></div>
34
+ <div class="picker" style="background:#FF6600"></div>
35
+ <div class="picker" style="background:#FFCC33"></div>
36
+ <div class="picker" style="background:#FFCC00"></div>
37
+ <div class="picker" style="background:#33CC00"></div>
38
+ <div class="picker" style="background:#00CCCC"></div>
39
+ <div class="picker" style="background:#3366FF"></div>
40
+ <div class="picker" style="background:#6633FF"></div>
41
+ <div class="picker" style="background:#CC33CC"></div>
42
+ <div class="picker" style="background:#666666"></div>
43
+ <div class="picker" style="background:#990000"></div>
44
+ <div class="picker" style="background:#CC6600"></div>
45
+ <div class="picker" style="background:#CC9933"></div>
46
+ <div class="picker" style="background:#999900"></div>
47
+ <div class="picker" style="background:#009900"></div>
48
+ <div class="picker" style="background:#339999"></div>
49
+ <div class="picker" style="background:#3333FF"></div>
50
+ <div class="picker" style="background:#6600CC"></div>
51
+ <div class="picker" style="background:#993399"></div>
52
+ <div class="picker" style="background:#333333"></div>
53
+ <div class="picker" style="background:#660000"></div>
54
+ <div class="picker" style="background:#993300"></div>
55
+ <div class="picker" style="background:#996633"></div>
56
+ <div class="picker" style="background:#666600"></div>
57
+ <div class="picker" style="background:#006600"></div>
58
+ <div class="picker" style="background:#336666"></div>
59
+ <div class="picker" style="background:#000099"></div>
60
+ <div class="picker" style="background:#333399"></div>
61
+ <div class="picker" style="background:#663366"></div>
62
+ <div class="picker" style="background:#000000"></div>
63
+ <div class="picker" style="background:#330000"></div>
64
+ <div class="picker" style="background:#663300"></div>
65
+ <div class="picker" style="background:#663333"></div>
66
+ <div class="picker" style="background:#333300"></div>
67
+ <div class="picker" style="background:#003300"></div>
68
+ <div class="picker" style="background:#003333"></div>
69
+ <div class="picker" style="background:#000066"></div>
70
+ <div class="picker" style="background:#330099"></div>
71
+ <div class="picker" style="background:#330033"></div>
72
+ <div class="last-picked">Last Color Picked</div>
73
+ </div>
@@ -0,0 +1,73 @@
1
+ <div class="mercury-color-picker">
2
+ <div class="picker" style="background:#FFFFFF"></div>
3
+ <div class="picker" style="background:#FFCCCC"></div>
4
+ <div class="picker" style="background:#FFCC99"></div>
5
+ <div class="picker" style="background:#FFFF99"></div>
6
+ <div class="picker" style="background:#FFFFCC"></div>
7
+ <div class="picker" style="background:#99FF99"></div>
8
+ <div class="picker" style="background:#99FFFF"></div>
9
+ <div class="picker" style="background:#CCFFFF"></div>
10
+ <div class="picker" style="background:#CCCCFF"></div>
11
+ <div class="picker" style="background:#FFCCFF"></div>
12
+ <div class="picker" style="background:#CCCCCC"></div>
13
+ <div class="picker" style="background:#FF6666"></div>
14
+ <div class="picker" style="background:#FF9966"></div>
15
+ <div class="picker" style="background:#FFFF66"></div>
16
+ <div class="picker" style="background:#FFFF33"></div>
17
+ <div class="picker" style="background:#66FF99"></div>
18
+ <div class="picker" style="background:#33FFFF"></div>
19
+ <div class="picker" style="background:#66FFFF"></div>
20
+ <div class="picker" style="background:#9999FF"></div>
21
+ <div class="picker" style="background:#FF99FF"></div>
22
+ <div class="picker" style="background:#C0C0C0"></div>
23
+ <div class="picker" style="background:#FF0000"></div>
24
+ <div class="picker" style="background:#FF9900"></div>
25
+ <div class="picker" style="background:#FFCC66"></div>
26
+ <div class="picker" style="background:#FFFF00"></div>
27
+ <div class="picker" style="background:#33FF33"></div>
28
+ <div class="picker" style="background:#66CCCC"></div>
29
+ <div class="picker" style="background:#33CCFF"></div>
30
+ <div class="picker" style="background:#6666CC"></div>
31
+ <div class="picker" style="background:#CC66CC"></div>
32
+ <div class="picker" style="background:#999999"></div>
33
+ <div class="picker" style="background:#CC0000"></div>
34
+ <div class="picker" style="background:#FF6600"></div>
35
+ <div class="picker" style="background:#FFCC33"></div>
36
+ <div class="picker" style="background:#FFCC00"></div>
37
+ <div class="picker" style="background:#33CC00"></div>
38
+ <div class="picker" style="background:#00CCCC"></div>
39
+ <div class="picker" style="background:#3366FF"></div>
40
+ <div class="picker" style="background:#6633FF"></div>
41
+ <div class="picker" style="background:#CC33CC"></div>
42
+ <div class="picker" style="background:#666666"></div>
43
+ <div class="picker" style="background:#990000"></div>
44
+ <div class="picker" style="background:#CC6600"></div>
45
+ <div class="picker" style="background:#CC9933"></div>
46
+ <div class="picker" style="background:#999900"></div>
47
+ <div class="picker" style="background:#009900"></div>
48
+ <div class="picker" style="background:#339999"></div>
49
+ <div class="picker" style="background:#3333FF"></div>
50
+ <div class="picker" style="background:#6600CC"></div>
51
+ <div class="picker" style="background:#993399"></div>
52
+ <div class="picker" style="background:#333333"></div>
53
+ <div class="picker" style="background:#660000"></div>
54
+ <div class="picker" style="background:#993300"></div>
55
+ <div class="picker" style="background:#996633"></div>
56
+ <div class="picker" style="background:#666600"></div>
57
+ <div class="picker" style="background:#006600"></div>
58
+ <div class="picker" style="background:#336666"></div>
59
+ <div class="picker" style="background:#000099"></div>
60
+ <div class="picker" style="background:#333399"></div>
61
+ <div class="picker" style="background:#663366"></div>
62
+ <div class="picker" style="background:#000000"></div>
63
+ <div class="picker" style="background:#330000"></div>
64
+ <div class="picker" style="background:#663300"></div>
65
+ <div class="picker" style="background:#663333"></div>
66
+ <div class="picker" style="background:#333300"></div>
67
+ <div class="picker" style="background:#003300"></div>
68
+ <div class="picker" style="background:#003333"></div>
69
+ <div class="picker" style="background:#000066"></div>
70
+ <div class="picker" style="background:#330099"></div>
71
+ <div class="picker" style="background:#330033"></div>
72
+ <div class="last-picked">Last Color Picked</div>
73
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class="mercury-history-panel">
2
+ <p>The history panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.</p>
3
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class="mercury-notes-panel">
2
+ <p>The notes panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.</p>
3
+ </div>
@@ -0,0 +1,12 @@
1
+ <div class="mercury-snippet-panel">
2
+ <div class="filter">
3
+ <input class="filter" type="text">
4
+ </div>
5
+ <ul>
6
+ <li data-filter="example-snippet">
7
+ <img alt="Snippet Name" data-snippet="example" src="/assets/mercury/default-snippet.png"/>
8
+ <h4>Snippet Name</h4>
9
+ <div class="description">A one to two line long description of what this snippet does.</div>
10
+ </li>
11
+ </ul>
12
+ </div>
@@ -0,0 +1,11 @@
1
+ <div class="mercury-select-options">
2
+ <h1 data-tag="h1">Heading 1 &lt;h1&gt;</h1>
3
+ <h2 data-tag="h2">Heading 2 &lt;h2&gt;</h2>
4
+ <h3 data-tag="h3">Heading 3 &lt;h3&gt;</h3>
5
+ <h4 data-tag="h4">Heading 4 &lt;h4&gt;</h4>
6
+ <h5 data-tag="h5">Heading 5 &lt;h5&gt;</h5>
7
+ <h6 data-tag="h6">Heading 6 &lt;h6&gt;</h6>
8
+ <div data-tag="p">Paragraph &lt;p&gt;</div>
9
+ <div data-tag="blockquote">Blockquote &lt;blockquote&gt;</div>
10
+ <div data-tag="pre">Formatted &lt;pre&gt;</div>
11
+ </div>
@@ -0,0 +1,5 @@
1
+ <div class="mercury-select-options">
2
+ <div class="red" data-class="red">Red text</div>
3
+ <div class="large-bold" data-class="large-bold">Large bold text</div>
4
+ <div class="blue" data-class="blue">Blue background</div>
5
+ </div>
@@ -0,0 +1 @@
1
+ <strong><%= params[:options][:first_name] %></strong> likes <%= params[:options][:favorite_beer] %>
@@ -0,0 +1,23 @@
1
+ <% @options = params[:options] || {} %>
2
+ <%= semantic_form_for 'options', { :html => { :style => 'width:600px' } } do |f| %>
3
+
4
+ <div class="mercury-modal-pane-container">
5
+ <div class="mercury-modal-pane">
6
+ <%= f.inputs do %>
7
+ <%= f.input :first_name, :required => false, :label => 'First Name',
8
+ :input_html => {:value => @options[:first_name] || 'First Name'} %>
9
+ <% end %>
10
+ <%= f.inputs 'Options' do %>
11
+ <%= f.input :favorite_beer, :required => false, :label => 'Favorite Beer',
12
+ :input_html => {:value => @options[:favorite_beer] || 'PBR'} %>
13
+ <% end %>
14
+ </div>
15
+ </div>
16
+
17
+ <div class="mercury-modal-controls">
18
+ <%= f.buttons do %>
19
+ <%= f.commit_button 'Insert Snippet' %>
20
+ <% end %>
21
+ </div>
22
+
23
+ <% end %>
data/config/routes.rb CHANGED
@@ -10,6 +10,6 @@ Rails.application.routes.draw do
10
10
  end
11
11
 
12
12
  if defined?(Mercury::Application)
13
- root to: "application#show"
13
+ match '/test_post' => "mercury#post"
14
14
  end
15
15
  end
@@ -5,7 +5,7 @@ Feature:
5
5
 
6
6
  @javascript
7
7
  Scenario: A user can expect to see the editor load
8
- When I go to an edit page
8
+ When I go to the root page
9
9
  Then I should see "Save" within the toolbar
10
10
  And I should see "Preview" within the toolbar
11
11
  And I should see "Bold" within the toolbar
@@ -10,6 +10,7 @@ module NavigationHelpers
10
10
 
11
11
  when 'an edit page' then '/edit'
12
12
 
13
+ when /the root( page)?/ then '/'
13
14
  when /the home\s?page/ then '/'
14
15
  when /the url: "(.*)"/ then url_for($1)
15
16
 
@@ -0,0 +1,14 @@
1
+ module Mercury
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ source_root Mercury::Engine.root
5
+
6
+ desc "Installs Mercury into your application by copying the configuration file."
7
+
8
+ def copy_config
9
+ copy_file 'vendor/assets/javascripts/mercury.js', 'app/assets/javascripts/mercury.js'
10
+ end
11
+
12
+ end
13
+ end
14
+ end
@@ -5,108 +5,43 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mercury-rails}
8
- s.version = "0.1.2"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeremy Jackson"]
12
- s.date = %q{2011-06-21}
12
+ s.date = %q{2011-09-25}
13
13
  s.description = %q{A fully featured and advanced HTML5 WYSIWYG editor written in CoffeeScript on top of Rails 3.1}
14
14
  s.email = %q{jejacks0n@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.md"
18
18
  ]
19
19
  s.files = [
20
20
  "LICENSE",
21
- "README.rdoc",
21
+ "README.md",
22
22
  "VERSION",
23
- "app/assets/images/mercury/button.png",
24
- "app/assets/images/mercury/clippy.png",
25
- "app/assets/images/mercury/default-snippet.png",
26
- "app/assets/images/mercury/loading-dark.gif",
27
- "app/assets/images/mercury/loading-light.gif",
28
- "app/assets/images/mercury/search-icon.png",
29
- "app/assets/images/mercury/toolbar/editable/buttons.png",
30
- "app/assets/images/mercury/toolbar/markupable/buttons.png",
31
- "app/assets/images/mercury/toolbar/primary/_expander.png",
32
- "app/assets/images/mercury/toolbar/primary/_pressed.png",
33
- "app/assets/images/mercury/toolbar/primary/historypanel.png",
34
- "app/assets/images/mercury/toolbar/primary/insertcharacter.png",
35
- "app/assets/images/mercury/toolbar/primary/insertlink.png",
36
- "app/assets/images/mercury/toolbar/primary/insertmedia.png",
37
- "app/assets/images/mercury/toolbar/primary/inserttable.png",
38
- "app/assets/images/mercury/toolbar/primary/inspectorpanel.png",
39
- "app/assets/images/mercury/toolbar/primary/notespanel.png",
40
- "app/assets/images/mercury/toolbar/primary/objectspanel.png",
41
- "app/assets/images/mercury/toolbar/primary/preview.png",
42
- "app/assets/images/mercury/toolbar/primary/redo.png",
43
- "app/assets/images/mercury/toolbar/primary/save.png",
44
- "app/assets/images/mercury/toolbar/primary/todospanel.png",
45
- "app/assets/images/mercury/toolbar/primary/undo.png",
46
- "app/assets/images/mercury/toolbar/snippetable/buttons.png",
47
- "app/assets/javascripts/mercury.js",
48
- "app/assets/javascripts/mercury/dialog.js.coffee",
49
- "app/assets/javascripts/mercury/dialogs/backcolor.js.coffee",
50
- "app/assets/javascripts/mercury/dialogs/forecolor.js.coffee",
51
- "app/assets/javascripts/mercury/dialogs/formatblock.js.coffee",
52
- "app/assets/javascripts/mercury/dialogs/objectspanel.js.coffee",
53
- "app/assets/javascripts/mercury/dialogs/style.js.coffee",
54
- "app/assets/javascripts/mercury/history_buffer.js.coffee",
55
- "app/assets/javascripts/mercury/mercury.js.coffee",
56
- "app/assets/javascripts/mercury/modal.js.coffee",
57
- "app/assets/javascripts/mercury/modals/htmleditor.js.coffee",
58
- "app/assets/javascripts/mercury/modals/insertcharacter.js.coffee",
59
- "app/assets/javascripts/mercury/modals/insertlink.js.coffee",
60
- "app/assets/javascripts/mercury/modals/insertmedia.js.coffee",
61
- "app/assets/javascripts/mercury/modals/insertsnippet.js.coffee",
62
- "app/assets/javascripts/mercury/modals/inserttable.js.coffee",
63
- "app/assets/javascripts/mercury/native_extensions.js.coffee",
64
- "app/assets/javascripts/mercury/page_editor.js.coffee",
65
- "app/assets/javascripts/mercury/palette.js.coffee",
66
- "app/assets/javascripts/mercury/panel.js.coffee",
67
- "app/assets/javascripts/mercury/region.js.coffee",
68
- "app/assets/javascripts/mercury/regions/editable.js.coffee",
69
- "app/assets/javascripts/mercury/regions/markupable.js.coffee",
70
- "app/assets/javascripts/mercury/regions/snippetable.js.coffee",
71
- "app/assets/javascripts/mercury/select.js.coffee",
72
- "app/assets/javascripts/mercury/snippet.js.coffee",
73
- "app/assets/javascripts/mercury/snippet_toolbar.js.coffee",
74
- "app/assets/javascripts/mercury/statusbar.js.coffee",
75
- "app/assets/javascripts/mercury/table_editor.js.coffee",
76
- "app/assets/javascripts/mercury/toolbar.button.js.coffee",
77
- "app/assets/javascripts/mercury/toolbar.button_group.js.coffee",
78
- "app/assets/javascripts/mercury/toolbar.expander.js.coffee",
79
- "app/assets/javascripts/mercury/toolbar.js.coffee",
80
- "app/assets/javascripts/mercury/tooltip.js.coffee",
81
- "app/assets/javascripts/mercury/uploader.js.coffee",
82
- "app/assets/javascripts/mercury_loader.js",
83
- "app/assets/stylesheets/mercury.css",
84
- "app/assets/stylesheets/mercury/dialog.scss",
85
- "app/assets/stylesheets/mercury/mercury.scss",
86
- "app/assets/stylesheets/mercury/modal.scss",
87
- "app/assets/stylesheets/mercury/statusbar.scss",
88
- "app/assets/stylesheets/mercury/toolbar.scss",
89
- "app/assets/stylesheets/mercury/tooltip.scss",
90
- "app/assets/stylesheets/mercury/uploader.scss",
23
+ "annotated_source.template",
91
24
  "app/controllers/images_controller.rb",
92
25
  "app/controllers/mercury_controller.rb",
93
26
  "app/models/image.rb",
94
- "app/views/layouts/mercury.html.haml",
95
- "app/views/mercury/modals/character.html.haml",
96
- "app/views/mercury/modals/htmleditor.html.haml",
97
- "app/views/mercury/modals/link.html.haml",
98
- "app/views/mercury/modals/media.html.haml",
99
- "app/views/mercury/modals/sanitizer.html.haml",
100
- "app/views/mercury/modals/table.html.haml",
101
- "app/views/mercury/palettes/backcolor.html.haml",
102
- "app/views/mercury/palettes/forecolor.html.haml",
103
- "app/views/mercury/panels/history.html.haml",
104
- "app/views/mercury/panels/notes.html.haml",
105
- "app/views/mercury/panels/snippets.html.haml",
106
- "app/views/mercury/selects/formatblock.html.haml",
107
- "app/views/mercury/selects/style.html.haml",
108
- "app/views/mercury/snippets/example.html.haml",
109
- "app/views/mercury/snippets/example_options.html.haml",
27
+ "app/views/layouts/mercury.html.erb",
28
+ "app/views/mercury/lightviews/about.html",
29
+ "app/views/mercury/lightviews/imageprocessor.html",
30
+ "app/views/mercury/modals/character.html",
31
+ "app/views/mercury/modals/htmleditor.html",
32
+ "app/views/mercury/modals/link.html",
33
+ "app/views/mercury/modals/media.html",
34
+ "app/views/mercury/modals/sanitizer.html",
35
+ "app/views/mercury/modals/table.html",
36
+ "app/views/mercury/palettes/backcolor.html",
37
+ "app/views/mercury/palettes/forecolor.html",
38
+ "app/views/mercury/panels/history.html",
39
+ "app/views/mercury/panels/notes.html",
40
+ "app/views/mercury/panels/snippets.html",
41
+ "app/views/mercury/selects/formatblock.html",
42
+ "app/views/mercury/selects/style.html",
43
+ "app/views/mercury/snippets/example.html.erb",
44
+ "app/views/mercury/snippets/example_options.html.erb",
110
45
  "config/engine.rb",
111
46
  "config/routes.rb",
112
47
  "db/migrate/20110526035601_create_images.rb",
@@ -116,17 +51,19 @@ Gem::Specification.new do |s|
116
51
  "features/support/env.rb",
117
52
  "features/support/paths.rb",
118
53
  "features/support/selectors.rb",
54
+ "lib/generators/mercury/install/install_generator.rb",
119
55
  "lib/mercury-rails.rb",
120
- "log/.gitkeep",
121
56
  "mercury-rails.gemspec",
122
57
  "spec/javascripts/mercury/dialog_spec.js.coffee",
123
58
  "spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee",
124
59
  "spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee",
125
60
  "spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee",
126
- "spec/javascripts/mercury/dialogs/objectspanel_spec.js.coffee",
61
+ "spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee",
127
62
  "spec/javascripts/mercury/dialogs/style_spec.js.coffee",
128
63
  "spec/javascripts/mercury/history_buffer_spec.js.coffee",
64
+ "spec/javascripts/mercury/lightview_spec.js.coffee",
129
65
  "spec/javascripts/mercury/mercury_spec.js.coffee",
66
+ "spec/javascripts/mercury/modal_spec.js.coffee",
130
67
  "spec/javascripts/mercury/modals/htmleditor_spec.js.coffee",
131
68
  "spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee",
132
69
  "spec/javascripts/mercury/modals/insertlink_spec.js.coffee",
@@ -138,8 +75,8 @@ Gem::Specification.new do |s|
138
75
  "spec/javascripts/mercury/palette_spec.js.coffee",
139
76
  "spec/javascripts/mercury/panel_spec.js.coffee",
140
77
  "spec/javascripts/mercury/region_spec.js.coffee",
141
- "spec/javascripts/mercury/regions/_markupable_.js.coffee",
142
78
  "spec/javascripts/mercury/regions/editable_spec.js.coffee",
79
+ "spec/javascripts/mercury/regions/markupable_spec.js.coffee",
143
80
  "spec/javascripts/mercury/regions/snippetable_spec.js.coffee",
144
81
  "spec/javascripts/mercury/select_spec.js.coffee",
145
82
  "spec/javascripts/mercury/snippet_spec.js.coffee",
@@ -158,8 +95,10 @@ Gem::Specification.new do |s|
158
95
  "spec/javascripts/templates/mercury/dialogs/backcolor.html",
159
96
  "spec/javascripts/templates/mercury/dialogs/forecolor.html",
160
97
  "spec/javascripts/templates/mercury/dialogs/formatblock.html",
161
- "spec/javascripts/templates/mercury/dialogs/objectspanel.html",
98
+ "spec/javascripts/templates/mercury/dialogs/snippetpanel.html",
162
99
  "spec/javascripts/templates/mercury/dialogs/style.html",
100
+ "spec/javascripts/templates/mercury/lightview.html",
101
+ "spec/javascripts/templates/mercury/modal.html",
163
102
  "spec/javascripts/templates/mercury/modals/htmleditor.html",
164
103
  "spec/javascripts/templates/mercury/modals/insertcharacter.html",
165
104
  "spec/javascripts/templates/mercury/modals/insertlink.html",
@@ -183,11 +122,81 @@ Gem::Specification.new do |s|
183
122
  "spec/javascripts/templates/mercury/toolbar.html",
184
123
  "spec/javascripts/templates/mercury/tooltip.html",
185
124
  "spec/javascripts/templates/mercury/uploader.html",
186
- "vendor/assets/javascripts/jquery-1.6.js",
187
- "vendor/assets/javascripts/jquery-ui-1.8.13.custom.js",
188
- "vendor/assets/javascripts/jquery.additions.js",
189
- "vendor/assets/javascripts/liquidmetal.js",
190
- "vendor/assets/javascripts/showdown.js"
125
+ "vendor/assets/images/mercury/button.png",
126
+ "vendor/assets/images/mercury/clippy.png",
127
+ "vendor/assets/images/mercury/default-snippet.png",
128
+ "vendor/assets/images/mercury/loading-dark.gif",
129
+ "vendor/assets/images/mercury/loading-light.gif",
130
+ "vendor/assets/images/mercury/search-icon.png",
131
+ "vendor/assets/images/mercury/temp-logo.png",
132
+ "vendor/assets/images/mercury/toolbar/editable/buttons.png",
133
+ "vendor/assets/images/mercury/toolbar/primary/_expander.png",
134
+ "vendor/assets/images/mercury/toolbar/primary/_pressed.png",
135
+ "vendor/assets/images/mercury/toolbar/primary/historypanel.png",
136
+ "vendor/assets/images/mercury/toolbar/primary/insertcharacter.png",
137
+ "vendor/assets/images/mercury/toolbar/primary/insertlink.png",
138
+ "vendor/assets/images/mercury/toolbar/primary/insertmedia.png",
139
+ "vendor/assets/images/mercury/toolbar/primary/inserttable.png",
140
+ "vendor/assets/images/mercury/toolbar/primary/inspectorpanel.png",
141
+ "vendor/assets/images/mercury/toolbar/primary/notespanel.png",
142
+ "vendor/assets/images/mercury/toolbar/primary/preview.png",
143
+ "vendor/assets/images/mercury/toolbar/primary/redo.png",
144
+ "vendor/assets/images/mercury/toolbar/primary/save.png",
145
+ "vendor/assets/images/mercury/toolbar/primary/snippetpanel.png",
146
+ "vendor/assets/images/mercury/toolbar/primary/undo.png",
147
+ "vendor/assets/images/mercury/toolbar/snippetable/buttons.png",
148
+ "vendor/assets/javascripts/mercury.js",
149
+ "vendor/assets/javascripts/mercury/dialog.js.coffee",
150
+ "vendor/assets/javascripts/mercury/dialogs/backcolor.js.coffee",
151
+ "vendor/assets/javascripts/mercury/dialogs/forecolor.js.coffee",
152
+ "vendor/assets/javascripts/mercury/dialogs/formatblock.js.coffee",
153
+ "vendor/assets/javascripts/mercury/dialogs/objectspanel.js.coffee",
154
+ "vendor/assets/javascripts/mercury/dialogs/style.js.coffee",
155
+ "vendor/assets/javascripts/mercury/history_buffer.js.coffee",
156
+ "vendor/assets/javascripts/mercury/lightview.js.coffee",
157
+ "vendor/assets/javascripts/mercury/lightviews/imageprocessor.js.coffee",
158
+ "vendor/assets/javascripts/mercury/mercury.js.coffee",
159
+ "vendor/assets/javascripts/mercury/modal.js.coffee",
160
+ "vendor/assets/javascripts/mercury/modals/htmleditor.js.coffee",
161
+ "vendor/assets/javascripts/mercury/modals/insertcharacter.js.coffee",
162
+ "vendor/assets/javascripts/mercury/modals/insertlink.js.coffee",
163
+ "vendor/assets/javascripts/mercury/modals/insertmedia.js.coffee",
164
+ "vendor/assets/javascripts/mercury/modals/insertsnippet.js.coffee",
165
+ "vendor/assets/javascripts/mercury/modals/inserttable.js.coffee",
166
+ "vendor/assets/javascripts/mercury/native_extensions.js.coffee",
167
+ "vendor/assets/javascripts/mercury/page_editor.js.coffee",
168
+ "vendor/assets/javascripts/mercury/palette.js.coffee",
169
+ "vendor/assets/javascripts/mercury/panel.js.coffee",
170
+ "vendor/assets/javascripts/mercury/region.js.coffee",
171
+ "vendor/assets/javascripts/mercury/regions/editable.js.coffee",
172
+ "vendor/assets/javascripts/mercury/regions/markupable.js.coffee",
173
+ "vendor/assets/javascripts/mercury/regions/snippetable.js.coffee",
174
+ "vendor/assets/javascripts/mercury/select.js.coffee",
175
+ "vendor/assets/javascripts/mercury/snippet.js.coffee",
176
+ "vendor/assets/javascripts/mercury/snippet_toolbar.js.coffee",
177
+ "vendor/assets/javascripts/mercury/statusbar.js.coffee",
178
+ "vendor/assets/javascripts/mercury/table_editor.js.coffee",
179
+ "vendor/assets/javascripts/mercury/toolbar.button.js.coffee",
180
+ "vendor/assets/javascripts/mercury/toolbar.button_group.js.coffee",
181
+ "vendor/assets/javascripts/mercury/toolbar.expander.js.coffee",
182
+ "vendor/assets/javascripts/mercury/toolbar.js.coffee",
183
+ "vendor/assets/javascripts/mercury/tooltip.js.coffee",
184
+ "vendor/assets/javascripts/mercury/uploader.js.coffee",
185
+ "vendor/assets/javascripts/mercury_dependencies/jquery-1.6.js",
186
+ "vendor/assets/javascripts/mercury_dependencies/jquery-ui-1.8.13.custom.js",
187
+ "vendor/assets/javascripts/mercury_dependencies/jquery.additions.js",
188
+ "vendor/assets/javascripts/mercury_dependencies/liquidmetal.js",
189
+ "vendor/assets/javascripts/mercury_dependencies/showdown.js",
190
+ "vendor/assets/javascripts/mercury_loader.js",
191
+ "vendor/assets/stylesheets/mercury.css",
192
+ "vendor/assets/stylesheets/mercury/dialog.css",
193
+ "vendor/assets/stylesheets/mercury/lightview.css",
194
+ "vendor/assets/stylesheets/mercury/mercury.css",
195
+ "vendor/assets/stylesheets/mercury/modal.css",
196
+ "vendor/assets/stylesheets/mercury/statusbar.css",
197
+ "vendor/assets/stylesheets/mercury/toolbar.css",
198
+ "vendor/assets/stylesheets/mercury/tooltip.css",
199
+ "vendor/assets/stylesheets/mercury/uploader.css"
191
200
  ]
192
201
  s.homepage = %q{http://github.com/jejacks0n/mercury}
193
202
  s.licenses = ["MIT"]
@@ -199,13 +208,13 @@ Gem::Specification.new do |s|
199
208
  s.specification_version = 3
200
209
 
201
210
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
202
- s.add_runtime_dependency(%q<rails>, ["= 3.1.0.rc4"])
211
+ s.add_runtime_dependency(%q<rails>, ["~> 3.1.0"])
203
212
  s.add_runtime_dependency(%q<paperclip>, [">= 0"])
204
213
  s.add_runtime_dependency(%q<formtastic>, [">= 0"])
205
214
  s.add_runtime_dependency(%q<json>, [">= 0"])
206
- s.add_runtime_dependency(%q<sass-rails>, ["~> 3.1.0.rc"])
215
+ s.add_runtime_dependency(%q<sass-rails>, [">= 0"])
207
216
  s.add_runtime_dependency(%q<coffee-script>, [">= 0"])
208
- s.add_runtime_dependency(%q<haml>, [">= 0"])
217
+ s.add_development_dependency(%q<rocco>, [">= 0"])
209
218
  s.add_development_dependency(%q<uglifier>, [">= 0"])
210
219
  s.add_development_dependency(%q<jquery-rails>, [">= 0"])
211
220
  s.add_development_dependency(%q<jeweler>, [">= 0"])
@@ -214,13 +223,13 @@ Gem::Specification.new do |s|
214
223
  s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
215
224
  s.add_development_dependency(%q<evergreen>, [">= 0"])
216
225
  else
217
- s.add_dependency(%q<rails>, ["= 3.1.0.rc4"])
226
+ s.add_dependency(%q<rails>, ["~> 3.1.0"])
218
227
  s.add_dependency(%q<paperclip>, [">= 0"])
219
228
  s.add_dependency(%q<formtastic>, [">= 0"])
220
229
  s.add_dependency(%q<json>, [">= 0"])
221
- s.add_dependency(%q<sass-rails>, ["~> 3.1.0.rc"])
230
+ s.add_dependency(%q<sass-rails>, [">= 0"])
222
231
  s.add_dependency(%q<coffee-script>, [">= 0"])
223
- s.add_dependency(%q<haml>, [">= 0"])
232
+ s.add_dependency(%q<rocco>, [">= 0"])
224
233
  s.add_dependency(%q<uglifier>, [">= 0"])
225
234
  s.add_dependency(%q<jquery-rails>, [">= 0"])
226
235
  s.add_dependency(%q<jeweler>, [">= 0"])
@@ -230,13 +239,13 @@ Gem::Specification.new do |s|
230
239
  s.add_dependency(%q<evergreen>, [">= 0"])
231
240
  end
232
241
  else
233
- s.add_dependency(%q<rails>, ["= 3.1.0.rc4"])
242
+ s.add_dependency(%q<rails>, ["~> 3.1.0"])
234
243
  s.add_dependency(%q<paperclip>, [">= 0"])
235
244
  s.add_dependency(%q<formtastic>, [">= 0"])
236
245
  s.add_dependency(%q<json>, [">= 0"])
237
- s.add_dependency(%q<sass-rails>, ["~> 3.1.0.rc"])
246
+ s.add_dependency(%q<sass-rails>, [">= 0"])
238
247
  s.add_dependency(%q<coffee-script>, [">= 0"])
239
- s.add_dependency(%q<haml>, [">= 0"])
248
+ s.add_dependency(%q<rocco>, [">= 0"])
240
249
  s.add_dependency(%q<uglifier>, [">= 0"])
241
250
  s.add_dependency(%q<jquery-rails>, [">= 0"])
242
251
  s.add_dependency(%q<jeweler>, [">= 0"])