sketchily 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -2
  3. data/app/assets/javascripts/sketchily.js +10 -10
  4. data/app/assets/javascripts/sketchily.js~ +10 -2
  5. data/app/assets/javascripts/{base64.js → sketchily/base64.js} +0 -0
  6. data/app/assets/javascripts/sketchily_embed.js +2 -2
  7. data/app/assets/javascripts/sketchily_embed.js~ +1 -4
  8. data/app/assets/stylesheets/sketchily.css +4 -4
  9. data/app/assets/stylesheets/sketchily.css~ +3 -2
  10. data/app/helpers/sketchily_helper.rb +1 -3
  11. data/app/helpers/sketchily_helper.rb~ +1 -1
  12. data/app/views/sketchily/_embed.html.erb +1 -1
  13. data/app/views/sketchily/_embed.html.erb~ +0 -1
  14. data/lib/sketchily.rb +1 -1
  15. data/lib/sketchily.rb~ +2 -2
  16. data/lib/sketchily/version.rb +1 -1
  17. data/lib/sketchily/version.rb~ +1 -1
  18. data/spec/dummy/log/test.log +120 -0
  19. data/spec/dummy/tmp/cache/assets/test/sprockets/1bf464000fcdb546c383cf7f69d46662 +0 -0
  20. data/spec/dummy/tmp/cache/assets/test/sprockets/23e9024449d6fb482717441645b0cd8c +0 -0
  21. data/spec/dummy/tmp/cache/assets/test/sprockets/2dda36ccc70570f77ad22a659af00a7e +0 -0
  22. data/spec/dummy/tmp/cache/assets/test/sprockets/413a1ea244e0c08b931057c16bfe0bc2 +0 -0
  23. data/spec/dummy/tmp/cache/assets/test/sprockets/56a18313459a66878cdaf82c4915f8f5 +0 -0
  24. data/spec/dummy/tmp/cache/assets/test/sprockets/e839e441b04ffc4a0f153b037b0c69b2 +0 -0
  25. data/vendor/assets/{svg-edit-2.6/browser-not-supported.html~ → javascripts/svg-edit-2.6/browser-not-supported.html} +3 -3
  26. data/vendor/assets/{svg-edit-2.6/browser-not-supported.html → javascripts/svg-edit-2.6/browser-not-supported.html~} +1 -1
  27. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/browser.js +0 -0
  28. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/canvg/canvg.js +0 -0
  29. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/canvg/rgbcolor.js +0 -0
  30. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/contextmenu.js +0 -0
  31. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/contextmenu/jquery.contextMenu.js +0 -0
  32. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/draw.js +0 -0
  33. data/vendor/assets/{svg-edit-2.6/embedapi.html~ → javascripts/svg-edit-2.6/embedapi.html} +1 -1
  34. data/vendor/assets/{svg-edit-2.6/embedapi.html → javascripts/svg-edit-2.6/embedapi.html~} +0 -0
  35. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/embedapi.js +0 -0
  36. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/closepath_icons.svg +0 -0
  37. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-arrows.js +0 -0
  38. data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-closepath.js +92 -0
  39. data/vendor/assets/{svg-edit-2.6/extensions/ext-closepath.js → javascripts/svg-edit-2.6/extensions/ext-closepath.js~} +0 -0
  40. data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-connector.js +587 -0
  41. data/vendor/assets/{svg-edit-2.6/extensions/ext-connector.js → javascripts/svg-edit-2.6/extensions/ext-connector.js~} +1 -1
  42. data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-eyedropper.js +109 -0
  43. data/vendor/assets/{svg-edit-2.6/extensions/ext-eyedropper.js → javascripts/svg-edit-2.6/extensions/ext-eyedropper.js~} +0 -0
  44. data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-foreignobject.js +277 -0
  45. data/vendor/assets/{svg-edit-2.6/extensions/ext-foreignobject.js → javascripts/svg-edit-2.6/extensions/ext-foreignobject.js~} +0 -0
  46. data/vendor/assets/{svg-edit-2.6/extensions/ext-grid.js~ → javascripts/svg-edit-2.6/extensions/ext-grid.js} +2 -2
  47. data/vendor/assets/{svg-edit-2.6/extensions/ext-grid.js → javascripts/svg-edit-2.6/extensions/ext-grid.js~} +0 -0
  48. data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-helloworld.js +78 -0
  49. data/vendor/assets/{svg-edit-2.6/extensions/ext-helloworld.js → javascripts/svg-edit-2.6/extensions/ext-helloworld.js~} +0 -0
  50. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-imagelib.js +2 -2
  51. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-imagelib.js~ +1 -1
  52. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-imagelib.xml +0 -0
  53. data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-markers.js +572 -0
  54. data/vendor/assets/{svg-edit-2.6/extensions/ext-markers.js → javascripts/svg-edit-2.6/extensions/ext-markers.js~} +0 -0
  55. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-server_moinsave.js +0 -0
  56. data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-server_opensave.js +180 -0
  57. data/vendor/assets/{svg-edit-2.6/extensions/ext-server_opensave.js → javascripts/svg-edit-2.6/extensions/ext-server_opensave.js~} +0 -0
  58. data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-shapes.js +387 -0
  59. data/vendor/assets/{svg-edit-2.6/extensions/ext-shapes.js → javascripts/svg-edit-2.6/extensions/ext-shapes.js~} +0 -0
  60. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-shapes.xml +0 -0
  61. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/eyedropper-icon.xml +0 -0
  62. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/eyedropper.png +0 -0
  63. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/fileopen.php +0 -0
  64. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/filesave.php +0 -0
  65. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/foreignobject-icons.xml +0 -0
  66. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/grid-icon.xml +0 -0
  67. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/helloworld-icon.xml +0 -0
  68. data/vendor/assets/javascripts/svg-edit-2.6/extensions/imagelib/index.html +64 -0
  69. data/vendor/assets/{svg-edit-2.6/extensions/imagelib/index.html → javascripts/svg-edit-2.6/extensions/imagelib/index.html~} +0 -0
  70. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/imagelib/smiley.svg +0 -0
  71. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/markers-icons.xml +0 -0
  72. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/animal.json +0 -0
  73. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/arrow.json +0 -0
  74. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/dialog_balloon.json +0 -0
  75. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/electronics.json +0 -0
  76. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/flowchart.json +0 -0
  77. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/game.json +0 -0
  78. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/math.json +0 -0
  79. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/misc.json +0 -0
  80. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/music.json +0 -0
  81. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/object.json +0 -0
  82. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/raphael.txt +0 -0
  83. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/raphael_1.json +0 -0
  84. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/raphael_2.json +0 -0
  85. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/symbol.json +0 -0
  86. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/history.js +0 -0
  87. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/README.txt +0 -0
  88. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-bottom.png +0 -0
  89. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-bottom.svg +0 -0
  90. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-center.png +0 -0
  91. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-center.svg +0 -0
  92. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-left.png +0 -0
  93. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-left.svg +0 -0
  94. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-middle.png +0 -0
  95. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-middle.svg +0 -0
  96. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-right.png +0 -0
  97. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-right.svg +0 -0
  98. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-top.png +0 -0
  99. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-top.svg +0 -0
  100. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/bold.png +0 -0
  101. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/cancel.png +0 -0
  102. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/circle.png +0 -0
  103. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/clear.png +0 -0
  104. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/clone.png +0 -0
  105. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/conn.svg +0 -0
  106. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/copy.png +0 -0
  107. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/cut.png +0 -0
  108. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/delete.png +0 -0
  109. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/document-properties.png +0 -0
  110. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/dropdown.gif +0 -0
  111. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/ellipse.png +0 -0
  112. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/eye.png +0 -0
  113. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/fhpath.png +0 -0
  114. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/flyouth.png +0 -0
  115. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/flyup.gif +0 -0
  116. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/freehand-circle.png +0 -0
  117. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/freehand-square.png +0 -0
  118. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/go-down.png +0 -0
  119. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/go-up.png +0 -0
  120. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/image.png +0 -0
  121. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/italic.png +0 -0
  122. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/line.png +0 -0
  123. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/link_controls.png +0 -0
  124. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/logo.png +0 -0
  125. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/logo.svg +0 -0
  126. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/move_bottom.png +0 -0
  127. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/move_top.png +0 -0
  128. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/node_clone.png +0 -0
  129. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/node_delete.png +0 -0
  130. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/none.png +0 -0
  131. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/open.png +0 -0
  132. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/paste.png +0 -0
  133. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/path.png +0 -0
  134. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/polygon.png +0 -0
  135. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/polygon.svg +0 -0
  136. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/rect.png +0 -0
  137. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/redo.png +0 -0
  138. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/reorient.png +0 -0
  139. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/rotate.png +0 -0
  140. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/save.png +0 -0
  141. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/select.png +0 -0
  142. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/select_node.png +0 -0
  143. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/sep.png +0 -0
  144. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/shape_group.png +0 -0
  145. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/shape_ungroup.png +0 -0
  146. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/source.png +0 -0
  147. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/spinbtn_updn_big.png +0 -0
  148. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/square.png +0 -0
  149. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/svg_edit_icons.svg +0 -0
  150. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/svg_edit_icons.svgz +0 -0
  151. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/text.png +0 -0
  152. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/text.svg +0 -0
  153. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/to_path.png +0 -0
  154. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/undo.png +0 -0
  155. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/view-refresh.png +0 -0
  156. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/wave.png +0 -0
  157. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/wireframe.png +0 -0
  158. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/zoom.png +0 -0
  159. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/LICENSE +0 -0
  160. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/README +0 -0
  161. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/css/jPicker.css +0 -0
  162. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/css/jgraduate.css +3 -3
  163. data/vendor/assets/javascripts/svg-edit-2.6/jgraduate/css/jgraduate.css~ +351 -0
  164. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/AlphaBar.png +0 -0
  165. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/Bars.png +0 -0
  166. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/Maps.png +0 -0
  167. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/NoColor.png +0 -0
  168. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/bar-opacity.png +0 -0
  169. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/map-opacity.png +0 -0
  170. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/mappoint.gif +0 -0
  171. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/mappoint_c.png +0 -0
  172. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/mappoint_f.png +0 -0
  173. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/picker.gif +0 -0
  174. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/preview-opacity.png +0 -0
  175. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/rangearrows.gif +0 -0
  176. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/rangearrows2.gif +0 -0
  177. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/jpicker.js +0 -0
  178. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/jpicker.min.js +0 -0
  179. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/jquery.jgraduate.js +0 -0
  180. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/jquery.jgraduate.min.js +0 -0
  181. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jquery-ui/jquery-ui-1.8.17.custom.min.js +0 -0
  182. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jquery-ui/jquery-ui-1.8.custom.min.js +0 -0
  183. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jquery.js +0 -0
  184. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jquerybbq/jquery.bbq.min.js +0 -0
  185. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/js-hotkeys/README.md +0 -0
  186. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/js-hotkeys/jquery.hotkeys.min.js +0 -0
  187. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/README.txt +0 -0
  188. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.af.js +0 -0
  189. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ar.js +0 -0
  190. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.az.js +0 -0
  191. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.be.js +0 -0
  192. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.bg.js +0 -0
  193. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ca.js +0 -0
  194. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.cs.js +0 -0
  195. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.cy.js +0 -0
  196. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.da.js +0 -0
  197. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.de.js +0 -0
  198. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.el.js +0 -0
  199. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.en.js +0 -0
  200. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.es.js +0 -0
  201. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.et.js +0 -0
  202. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.fa.js +0 -0
  203. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.fi.js +0 -0
  204. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.fr.js +0 -0
  205. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.fy.js +0 -0
  206. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ga.js +0 -0
  207. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.gl.js +0 -0
  208. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.he.js +0 -0
  209. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.hi.js +0 -0
  210. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.hr.js +0 -0
  211. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.hu.js +0 -0
  212. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.hy.js +0 -0
  213. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.id.js +0 -0
  214. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.is.js +0 -0
  215. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.it.js +0 -0
  216. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ja.js +0 -0
  217. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ko.js +0 -0
  218. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.lt.js +0 -0
  219. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.lv.js +0 -0
  220. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.mk.js +0 -0
  221. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ms.js +0 -0
  222. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.mt.js +0 -0
  223. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.nl.js +0 -0
  224. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.no.js +0 -0
  225. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.pl.js +0 -0
  226. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.pt-BR.js +0 -0
  227. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.pt-PT.js +0 -0
  228. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ro.js +0 -0
  229. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ro.js~ +0 -0
  230. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ru.js +0 -0
  231. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sk.js +0 -0
  232. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sl.js +0 -0
  233. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sq.js +0 -0
  234. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sr.js +0 -0
  235. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sv.js +0 -0
  236. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sw.js +0 -0
  237. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.test.js +0 -0
  238. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.th.js +0 -0
  239. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.tl.js +0 -0
  240. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.tr.js +0 -0
  241. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.uk.js +0 -0
  242. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.vi.js +0 -0
  243. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.yi.js +0 -0
  244. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.zh-CN.js +0 -0
  245. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.zh-HK.js +0 -0
  246. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.zh-TW.js +0 -0
  247. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/locale.js +0 -0
  248. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/math.js +0 -0
  249. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/path.js +0 -0
  250. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/sanitize.js +0 -0
  251. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/select.js +0 -0
  252. data/vendor/assets/{svg-edit-2.6/spinbtn/JQuerySpinBtn.css~ → javascripts/svg-edit-2.6/spinbtn/JQuerySpinBtn.css} +1 -1
  253. data/vendor/assets/{svg-edit-2.6/spinbtn/JQuerySpinBtn.css → javascripts/svg-edit-2.6/spinbtn/JQuerySpinBtn.css~} +1 -1
  254. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/spinbtn/JQuerySpinBtn.js +0 -0
  255. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/spinbtn/JQuerySpinBtn.min.js +0 -0
  256. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/spinbtn/spinbtn_updn.png +0 -0
  257. data/vendor/assets/javascripts/svg-edit-2.6/svg-editor.css +1494 -0
  258. data/vendor/assets/{svg-edit-2.6/svg-editor.css → javascripts/svg-edit-2.6/svg-editor.css~} +0 -0
  259. data/vendor/assets/{svg-edit-2.6/svg-editor.html~ → javascripts/svg-edit-2.6/svg-editor.html} +1 -2
  260. data/vendor/assets/{svg-edit-2.6/svg-editor.html → javascripts/svg-edit-2.6/svg-editor.html~} +0 -0
  261. data/vendor/assets/{svg-edit-2.6/svg-editor.js~ → javascripts/svg-edit-2.6/svg-editor.js} +9 -9
  262. data/vendor/assets/{svg-edit-2.6/svg-editor.js → javascripts/svg-edit-2.6/svg-editor.js~} +4 -4
  263. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svg-editor.manifest +0 -0
  264. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgcanvas.js +0 -0
  265. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgcanvas.js~ +0 -0
  266. data/vendor/assets/{svg-edit-2.6/svgedit.compiled.js~ → javascripts/svg-edit-2.6/svgedit.compiled.js} +4 -4
  267. data/vendor/assets/{svg-edit-2.6/svgedit.compiled.js → javascripts/svg-edit-2.6/svgedit.compiled.js~} +2 -2
  268. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgicons/jquery.svgicons.js +0 -0
  269. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgtransformlist.js +0 -0
  270. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgutils.js +0 -0
  271. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/touch.js +0 -0
  272. data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/units.js +0 -0
  273. metadata +259 -254
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 494ccf1bb3cc7f73e15b97ffe5abac1f58f36187
4
- data.tar.gz: 7f5d9080442bb38447c9277111fd3cb4454fd3bc
3
+ metadata.gz: 23e7f2cd0164ff73faab23b939478f168a48de5b
4
+ data.tar.gz: c2072e3e892e70f6e89aec7970a358b179efac13
5
5
  SHA512:
6
- metadata.gz: c8fe19a98e0b3752a01475557f5ea091db010e7aca516aedec4e832af46b80670ba54e36ff4d19d3c06cc4abcfa3d33f774b5044948447481593cbb258cf3004
7
- data.tar.gz: 5687890cced694174de97afe510fa0e5913ea71da2caa70d976c01e0be0fd5ac6636ac31159a870fbb69b7f6e4672a1981be0a67e71feba5f1c5354c5b2c57c1
6
+ metadata.gz: 54afeffd563d8a22c86ec27cd91dda819b9121befe280550756ecf4edaa16648765b5a87079f390075413d3565e35d017780c0782ee53119af4fb1982591d82f
7
+ data.tar.gz: 5ab0934864678e4ad1cd426319950ea67aff9786be37778de05bd55038937b3ba46eca9a0bcef6e36fbfb3ea04d18e506b8966da3c98943225701956492804b9
data/README.md CHANGED
@@ -24,15 +24,17 @@ Or install it yourself:
24
24
  $ gem install sketchily
25
25
  ```
26
26
 
27
- Also make sure your `application.js` requires jquery (it usually does by default):
27
+ Also make sure your `application.js` includes some version of jquery. It usually does by default.
28
+ If you use the jquery-rails gem, you will have something like this:
28
29
 
29
30
  ```js
30
31
  //= require jquery
32
+ //= require jquery_ujs
31
33
  ```
32
34
 
33
35
  **Note:** sketchily will **automatically** add the following files to your asset precompilation list:
34
36
 
35
- sketchily.css sketchily.js sketchily_embed.js canvg/canvg.js canvg/rgbcolor.js extensions/ext-*.js locale/lang.*.js
37
+ sketchily.css sketchily.js sketchily_embed.js svg-edit-2.6/canvg/canvg.js svg-edit-2.6/canvg/rgbcolor.js svg-edit-2.6/extensions/ext-*.js svg-edit-2.6/locale/lang.*.js
36
38
 
37
39
  Other html files and images used by svg-edit will also be precompiled.
38
40
 
@@ -1,10 +1,10 @@
1
- //= require jquery
2
- //= require js-hotkeys/jquery.hotkeys.min
3
- //= require jquerybbq/jquery.bbq.min
4
- //= require svgicons/jquery.svgicons
5
- //= require jgraduate/jquery.jgraduate.min
6
- //= require spinbtn/JQuerySpinBtn.min
7
- //= require touch
8
- //= require svgedit.compiled
9
- //= require jquery-ui/jquery-ui-1.8.17.custom.min
10
- //= require jgraduate/jpicker
1
+ //= require svg-edit-2.6/jquery
2
+ //= require svg-edit-2.6/js-hotkeys/jquery.hotkeys.min
3
+ //= require svg-edit-2.6/jquerybbq/jquery.bbq.min
4
+ //= require svg-edit-2.6/svgicons/jquery.svgicons
5
+ //= require svg-edit-2.6/jgraduate/jquery.jgraduate.min
6
+ //= require svg-edit-2.6/spinbtn/JQuerySpinBtn.min
7
+ //= require svg-edit-2.6/touch
8
+ //= require svg-edit-2.6/svgedit.compiled
9
+ //= require svg-edit-2.6/jquery-ui/jquery-ui-1.8.17.custom.min
10
+ //= require svg-edit-2.6/jgraduate/jpicker
@@ -1,2 +1,10 @@
1
- //= require jquery
2
- //= require
1
+ //= require svg-edit-2.6/jquery
2
+ //= require js-hotkeys/jquery.hotkeys.min
3
+ //= require jquerybbq/jquery.bbq.min
4
+ //= require svgicons/jquery.svgicons
5
+ //= require jgraduate/jquery.jgraduate.min
6
+ //= require spinbtn/JQuerySpinBtn.min
7
+ //= require touch
8
+ //= require svgedit.compiled
9
+ //= require jquery-ui/jquery-ui-1.8.17.custom.min
10
+ //= require jgraduate/jpicker
@@ -1,5 +1,5 @@
1
- //= require embedapi
2
- //= require base64
1
+ //= require svg-edit-2.6/embedapi
2
+ //= require sketchily/base64
3
3
 
4
4
  var svgCanvas = svgCanvas || {};
5
5
 
@@ -1,11 +1,10 @@
1
- //= require embedapi
1
+ //= require svg-edit-2.6/embedapi
2
2
  //= require base64
3
3
 
4
4
  var svgCanvas = svgCanvas || {};
5
5
 
6
6
  function submitHandler(event) {
7
7
  var id = event.data;
8
- alert('sub' + id);
9
8
  svgCanvas[id].getSvgString()(function (data, error) {
10
9
  handleSvgData(data, error, id);
11
10
  });
@@ -15,7 +14,6 @@ alert('sub' + id);
15
14
 
16
15
  function attachSubmitHandler(event) {
17
16
  var id = event.data;
18
- alert('attach' + id);
19
17
  $("input#" + id).closest("form").on("submit.svgedit_" + id, null, id, submitHandler);
20
18
  }
21
19
 
@@ -24,7 +22,6 @@ function handleSvgData(data, error, id) {
24
22
  alert('Error: ' + error);
25
23
  }
26
24
  else {
27
- alert('handle' + id);
28
25
  var input = $("input#" + id);
29
26
  var form = input.closest("form");
30
27
  input.attr("value", sketchily_encode64("<?xml version=\"1.0\"?>\n" + data));
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *= require_self
3
- *= require jgraduate/css/jPicker
4
- *= require jgraduate/css/jgraduate
5
- *= require svg-editor
6
- *= require spinbtn/JQuerySpinBtn
3
+ *= require svg-edit-2.6/jgraduate/css/jPicker
4
+ *= require svg-edit-2.6/jgraduate/css/jgraduate
5
+ *= require svg-edit-2.6/svg-editor
6
+ *= require svg-edit-2.6/spinbtn/JQuerySpinBtn
7
7
  */
@@ -1,6 +1,7 @@
1
1
  /*
2
2
  *= require_self
3
- *= require jgraduate/css/jPicker
3
+ *= require svg-edit-2.6/jgraduate/css/jPicker
4
4
  *= require jgraduate/css/jgraduate
5
- *= svg-editor
5
+ *= require svg-editor
6
+ *= require spinbtn/JQuerySpinBtn
6
7
  */
@@ -30,8 +30,6 @@ module SketchilyHelper
30
30
  "<img src='data:image/svg+xml;base64,#{uri}' #{"width='#{options[:width]}'" if options[:width]} #{"height='#{options[:height]}'" if options[:height]}/>".html_safe
31
31
  end
32
32
 
33
- def svg_show(uri, options = {})
34
- sketchily_show(uri, options)
35
- end
33
+ alias_method :svg_show, :sketchily_show
36
34
  end
37
35
 
@@ -11,7 +11,7 @@ module SketchilyHelper
11
11
  xml.title 'Background Image Layer'
12
12
  xml.image :id => 'background_image', :width => '100%', :height => '100%', :preserveAspectRatio => 'xMinYMin', 'xlink:href' => data_uri
13
13
  end
14
- doc.root.add_namespace "xmlns:xlink", "http://www.w3.org/1999/xlink"
14
+ doc.root.add_namespace "xlink", "http://www.w3.org/1999/xlink"
15
15
  doc.at('g').before(bkgd_file_node)
16
16
  end
17
17
 
@@ -19,7 +19,7 @@
19
19
  extensions ||= nil
20
20
  %>
21
21
 
22
- <% iframe_src = URI.parse("/assets/svg-editor.html")
22
+ <% iframe_src = URI.parse("/assets/svg-edit-2.6/svg-editor.html")
23
23
 
24
24
  query_hash = {:dimensions => [canvas_width, canvas_height].join(','),
25
25
  :bkgd_color => bkgd_color,
@@ -51,4 +51,3 @@
51
51
  <%= show_hyperlink_tool %>,
52
52
  "<%= url %>");
53
53
  </script>
54
-
@@ -3,7 +3,7 @@ require "sketchily/sketchily"
3
3
  require "sketchily/sketchily_tag"
4
4
 
5
5
  module Sketchily
6
- ASSET_FILES = %w(sketchily.css sketchily.js sketchily_embed.js canvg/canvg.js canvg/rgbcolor.js extensions/ext-*.js locale/lang.*.js)
6
+ ASSET_FILES = %w(sketchily.css sketchily.js sketchily_embed.js svg-edit-2.6/canvg/canvg.js svg-edit-2.6/canvg/rgbcolor.js svg-edit-2.6/extensions/ext-*.js svg-edit-2.6/locale/lang.*.js)
7
7
 
8
8
  SKETCHILY_OPTIONS = [:width, :height, :bkgd_color, :bkgd_url, :canvas_width, :canvas_height, :canvas_expansion, :hide_rulers, :hide_menu, :hide_image_tool, :show_hyperlink_tool, :show_layers, :url, :extensions]
9
9
  TAG_OPTIONS = [:id, :value, :index]
@@ -3,9 +3,9 @@ require "sketchily/sketchily"
3
3
  require "sketchily/sketchily_tag"
4
4
 
5
5
  module Sketchily
6
- ASSET_FILES = %w(sketchily.css sketchily.js sketchily_embed.js canvg/canvg.js canvg/rgbcolor.js extensions/ext-*.js locale/lang.*.js)
6
+ ASSET_FILES = %w(sketchily.css sketchily.js sketchily_embed.js svg-edit-2.6/canvg/canvg.js svg-edit-2.6/canvg/rgbcolor.js extensions/ext-*.js locale/lang.*.js)
7
7
 
8
- SKETCHILY_OPTIONS = [:width, :height, :bkgd_color, :bkgd_url, :canvas_width, :canvas_height, :canvas_expansion, :hide_rulers, :hide_menu, :hide_image_tool, :show_hyperlink_tool, :show_layers, :url, ]
8
+ SKETCHILY_OPTIONS = [:width, :height, :bkgd_color, :bkgd_url, :canvas_width, :canvas_height, :canvas_expansion, :hide_rulers, :hide_menu, :hide_image_tool, :show_hyperlink_tool, :show_layers, :url, :extensions]
9
9
  TAG_OPTIONS = [:id, :value, :index]
10
10
  OPTIONS = SKETCHILY_OPTIONS + TAG_OPTIONS
11
11
 
@@ -1,3 +1,3 @@
1
1
  module Sketchily
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.1"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Sketchily
2
- VERSION = "1.5.0"
2
+ VERSION = "4.0.0"
3
3
  end
@@ -1611,3 +1611,123 @@ SketchilyHelper: test_0001_must show svg image
1611
1611
   (0.0ms) begin transaction
1612
1612
  SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1613
1613
   (4.2ms) commit transaction
1614
+  (15.4ms) CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text) 
1615
+  (5.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1616
+  (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1617
+  (0.1ms) SELECT version FROM "schema_migrations"
1618
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
1619
+  (0.0ms) begin transaction
1620
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1621
+  (12.6ms) commit transaction
1622
+  (0.1ms) begin transaction
1623
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1624
+  (3.7ms) commit transaction
1625
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (7.4ms)
1626
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (9.7ms)
1627
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
1628
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (0.6ms)
1629
+  (0.1ms) begin transaction
1630
+ -------------------------------------------------------------------------------
1631
+ Sketchily Feature Test Feature Test: test_0001_should render the sketchily html
1632
+ -------------------------------------------------------------------------------
1633
+  (0.1ms) SAVEPOINT active_record_1
1634
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1636
+ Started GET "/drawings/3/sketchily" for 127.0.0.1 at 2013-10-10 17:55:47 -0500
1637
+ Processing by DrawingsController#sketchily as HTML
1638
+ Parameters: {"id"=>"3"}
1639
+ Drawing Load (0.1ms) SELECT "drawings".* FROM "drawings" WHERE "drawings"."id" = ? LIMIT 1 [["id", "3"]]
1640
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
1641
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (0.9ms)
1642
+ Rendered drawings/sketchily.html.erb within layouts/application (2.1ms)
1643
+ Completed 200 OK in 28ms (Views: 26.4ms | ActiveRecord: 0.1ms)
1644
+  (0.1ms) rollback transaction
1645
+  (0.1ms) begin transaction
1646
+ ---------------------------------------------------------------------------------------
1647
+ Sketchily Tag Feature Test Feature Test: test_0001_should render the sketchily_tag html
1648
+ ---------------------------------------------------------------------------------------
1649
+  (0.0ms) SAVEPOINT active_record_1
1650
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1651
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1652
+ Started GET "/drawings/3/sketchily_tag" for 127.0.0.1 at 2013-10-10 17:55:47 -0500
1653
+ Processing by DrawingsController#sketchily_tag as HTML
1654
+ Parameters: {"id"=>"3"}
1655
+ Drawing Load (0.0ms) SELECT "drawings".* FROM "drawings" WHERE "drawings"."id" = ? LIMIT 1 [["id", "3"]]
1656
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
1657
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (0.7ms)
1658
+ Rendered drawings/sketchily_tag.html.erb within layouts/application (1.7ms)
1659
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
1660
+  (0.1ms) rollback transaction
1661
+  (0.0ms) begin transaction
1662
+ ----------------------------------------------
1663
+ SketchilyHelper: test_0001_must show svg image
1664
+ ----------------------------------------------
1665
+  (0.0ms) rollback transaction
1666
+  (0.0ms) begin transaction
1667
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1668
+  (7.6ms) commit transaction
1669
+  (0.0ms) begin transaction
1670
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1671
+  (3.5ms) commit transaction
1672
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
1673
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (0.9ms)
1674
+  (15.3ms) CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text) 
1675
+  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1676
+  (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1677
+  (0.1ms) SELECT version FROM "schema_migrations"
1678
+  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
1679
+  (0.0ms) begin transaction
1680
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1681
+  (12.0ms) commit transaction
1682
+  (0.1ms) begin transaction
1683
+ SQL (0.2ms) INSERT INTO "drawings" DEFAULT VALUES
1684
+  (4.8ms) commit transaction
1685
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (4.5ms)
1686
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (6.6ms)
1687
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.2ms)
1688
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (0.4ms)
1689
+  (0.0ms) begin transaction
1690
+ -------------------------------------------------------------------------------
1691
+ Sketchily Feature Test Feature Test: test_0001_should render the sketchily html
1692
+ -------------------------------------------------------------------------------
1693
+  (0.0ms) SAVEPOINT active_record_1
1694
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1696
+ Started GET "/drawings/3/sketchily" for 127.0.0.1 at 2013-10-10 18:01:58 -0500
1697
+ Processing by DrawingsController#sketchily as HTML
1698
+ Parameters: {"id"=>"3"}
1699
+ Drawing Load (0.1ms) SELECT "drawings".* FROM "drawings" WHERE "drawings"."id" = ? LIMIT 1 [["id", "3"]]
1700
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
1701
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (0.9ms)
1702
+ Rendered drawings/sketchily.html.erb within layouts/application (2.1ms)
1703
+ Completed 200 OK in 27ms (Views: 25.4ms | ActiveRecord: 0.1ms)
1704
+  (0.1ms) rollback transaction
1705
+  (0.1ms) begin transaction
1706
+ ---------------------------------------------------------------------------------------
1707
+ Sketchily Tag Feature Test Feature Test: test_0001_should render the sketchily_tag html
1708
+ ---------------------------------------------------------------------------------------
1709
+  (0.0ms) SAVEPOINT active_record_1
1710
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1712
+ Started GET "/drawings/3/sketchily_tag" for 127.0.0.1 at 2013-10-10 18:01:58 -0500
1713
+ Processing by DrawingsController#sketchily_tag as HTML
1714
+ Parameters: {"id"=>"3"}
1715
+ Drawing Load (0.0ms) SELECT "drawings".* FROM "drawings" WHERE "drawings"."id" = ? LIMIT 1 [["id", "3"]]
1716
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
1717
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (0.7ms)
1718
+ Rendered drawings/sketchily_tag.html.erb within layouts/application (1.6ms)
1719
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
1720
+  (0.1ms) rollback transaction
1721
+  (0.1ms) begin transaction
1722
+ ----------------------------------------------
1723
+ SketchilyHelper: test_0001_must show svg image
1724
+ ----------------------------------------------
1725
+  (0.0ms) rollback transaction
1726
+  (0.0ms) begin transaction
1727
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1728
+  (6.9ms) commit transaction
1729
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
1730
+ Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (0.8ms)
1731
+  (0.0ms) begin transaction
1732
+ SQL (0.1ms) INSERT INTO "drawings" DEFAULT VALUES
1733
+  (4.1ms) commit transaction
@@ -3,15 +3,15 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
5
5
  <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
6
- <link rel="icon" type="image/png" href="/assets/images/logo.png"/>
6
+ <link rel="icon" type="image/png" href="/assets/svg-edit-2.6/images/logo.png"/>
7
7
  <link rel="stylesheet" href="/assets/sketchily.css" type="text/css"/>
8
- <script type="text/javascript" src="/assets/jquery.js"></script>
8
+ <script type="text/javascript" src="/assets/sketchily.js"></script>
9
9
  <title>Browser does not support SVG | SVG-edit</title>
10
10
  </head>
11
11
  <body>
12
12
 
13
13
  <div id="browser-not-supported">
14
- <img style="float:left;padding:10px;" src="/assets/images/logo.png" width="48" height="48" alt="SVG-edit logo" /><br />
14
+ <img style="float:left;padding:10px;" src="/assets/svg-edit-2.6/images/logo.png" width="48" height="48" alt="SVG-edit logo" /><br />
15
15
  <p>Sorry, but your browser does not support SVG. Below is a list of alternate browsers and versions that support SVG and SVG-edit (from <a href="http://caniuse.com/#cats=SVG">caniuse.com</a>).</p>
16
16
  <p>Try the latest version of <a href="http://www.getfirefox.com">Firefox</a>, <a href="http://www.google.com/chrome/">Google Chrome</a>, <a href="http://www.apple.com/safari/download/">Safari</a>, <a href="http://www.opera.com/download/">Opera</a> or <a href="http://windows.microsoft.com/ie9">Internet Explorer<a/>.</p>
17
17
  <p>If you are unable to install one of these and must use an old version of Internet Explorer, you can install the <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame plugin</a>.</p>
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
5
5
  <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
6
- <link rel="icon" type="image/png" href="/assets/images/logo.png"/>
6
+ <link rel="icon" type="image/png" href="/assets/svg-edit-2.6/images/logo.png"/>
7
7
  <link rel="stylesheet" href="/assets/sketchily.css" type="text/css"/>
8
8
  <script type="text/javascript" src="/assets/sketchily.js"></script>
9
9
  <title>Browser does not support SVG | SVG-edit</title>
@@ -51,6 +51,6 @@
51
51
  <button onclick="saveSvg();">Save data</button>
52
52
  <br/>
53
53
 
54
- <iframe src="/assets/svg-editor" width="900px" height="600px" id="svgedit" onload="init_embed()"></iframe>
54
+ <iframe src="/assets/svg-edit-2.6/svg-editor.html" width="900px" height="600px" id="svgedit" onload="init_embed()"></iframe>
55
55
  </body>
56
56
  </html>
@@ -0,0 +1,92 @@
1
+ /*
2
+ * ext-closepath.js
3
+ *
4
+ * Licensed under the MIT License
5
+ *
6
+ * Copyright(c) 2010 Jeff Schiller
7
+ *
8
+ */
9
+
10
+ // This extension adds a simple button to the contextual panel for paths
11
+ // The button toggles whether the path is open or closed
12
+ svgEditor.addExtension("ClosePath", function(S) {
13
+ var selElems,
14
+ updateButton = function(path) {
15
+ var seglist = path.pathSegList,
16
+ closed = seglist.getItem(seglist.numberOfItems - 1).pathSegType==1,
17
+ showbutton = closed ? '#tool_openpath' : '#tool_closepath',
18
+ hidebutton = closed ? '#tool_closepath' : '#tool_openpath';
19
+ $(hidebutton).hide();
20
+ $(showbutton).show();
21
+ },
22
+ showPanel = function(on) {
23
+ $('#closepath_panel').toggle(on);
24
+ if (on) {
25
+ var path = selElems[0];
26
+ if (path) updateButton(path);
27
+ }
28
+ },
29
+
30
+ toggleClosed = function() {
31
+ var path = selElems[0];
32
+ if (path) {
33
+ var seglist = path.pathSegList,
34
+ last = seglist.numberOfItems - 1;
35
+ // is closed
36
+ if(seglist.getItem(last).pathSegType == 1) {
37
+ seglist.removeItem(last);
38
+ }
39
+ else {
40
+ seglist.appendItem(path.createSVGPathSegClosePath());
41
+ }
42
+ updateButton(path);
43
+ }
44
+ };
45
+
46
+ return {
47
+ name: "ClosePath",
48
+ svgicons: "/assets/svg-edit-2.6/extensions/closepath_icons.svg",
49
+ buttons: [{
50
+ id: "tool_openpath",
51
+ type: "context",
52
+ panel: "closepath_panel",
53
+ title: "Open path",
54
+ events: {
55
+ 'click': function() {
56
+ toggleClosed();
57
+ }
58
+ }
59
+ },
60
+ {
61
+ id: "tool_closepath",
62
+ type: "context",
63
+ panel: "closepath_panel",
64
+ title: "Close path",
65
+ events: {
66
+ 'click': function() {
67
+ toggleClosed();
68
+ }
69
+ }
70
+ }],
71
+ callback: function() {
72
+ $('#closepath_panel').hide();
73
+ },
74
+ selectedChanged: function(opts) {
75
+ selElems = opts.elems;
76
+ var i = selElems.length;
77
+
78
+ while(i--) {
79
+ var elem = selElems[i];
80
+ if(elem && elem.tagName == 'path') {
81
+ if(opts.selectedElement && !opts.multiselected) {
82
+ showPanel(true);
83
+ } else {
84
+ showPanel(false);
85
+ }
86
+ } else {
87
+ showPanel(false);
88
+ }
89
+ }
90
+ }
91
+ };
92
+ });