sketchily 1.5.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +3 -1
  3. data/Rakefile +2 -20
  4. data/app/views/sketchily/_embed.html.erb +2 -1
  5. data/app/views/sketchily/_embed.html.erb~ +3 -1
  6. data/app/views/sketchily/_sketchily.html.erb +7 -4
  7. data/app/views/sketchily/_sketchily.html.erb~ +9 -5
  8. data/app/views/sketchily/_sketchily_tag.html.erb +0 -1
  9. data/app/views/sketchily/_sketchily_tag.html.erb~ +2 -3
  10. data/lib/sketchily.rb +2 -2
  11. data/lib/sketchily.rb~ +2 -2
  12. data/lib/sketchily/sketchily.rb +2 -6
  13. data/lib/sketchily/sketchily.rb~ +1 -4
  14. data/lib/sketchily/sketchily_tag.rb +1 -3
  15. data/lib/sketchily/sketchily_tag.rb~ +0 -1
  16. data/lib/sketchily/version.rb +1 -1
  17. data/lib/sketchily/version.rb~ +1 -1
  18. data/spec/app/helpers/sketchily_helper_spec.rb +8 -0
  19. data/spec/app/helpers/sketchily_helper_spec.rb~ +12 -0
  20. data/spec/dummy/README.md +3 -0
  21. data/spec/dummy/README.md~ +3 -0
  22. data/spec/dummy/app/controllers/drawings_controller.rb +18 -0
  23. data/spec/dummy/app/controllers/drawings_controller.rb~ +16 -0
  24. data/spec/dummy/app/views/{sketchily → drawings}/sketchily.html.erb +0 -0
  25. data/spec/dummy/app/views/drawings/sketchily_tag.html.erb +3 -0
  26. data/spec/dummy/app/views/drawings/sketchily_tag.html.erb~ +3 -0
  27. data/spec/dummy/config/application.rb +4 -36
  28. data/spec/dummy/config/application.rb~ +27 -0
  29. data/spec/dummy/config/boot.rb +4 -9
  30. data/spec/dummy/config/environment.rb +2 -2
  31. data/spec/dummy/config/environments/development.rb +11 -19
  32. data/spec/dummy/config/environments/development.rb~ +31 -0
  33. data/spec/dummy/config/environments/production.rb +40 -27
  34. data/spec/dummy/config/environments/production.rb~ +67 -0
  35. data/spec/dummy/config/environments/test.rb +13 -14
  36. data/spec/dummy/config/environments/test.rb~ +31 -0
  37. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  38. data/spec/dummy/config/initializers/inflections.rb +6 -5
  39. data/spec/dummy/config/initializers/secret_token.rb +7 -2
  40. data/spec/dummy/config/initializers/secret_token.rb~ +12 -0
  41. data/spec/dummy/config/initializers/session_store.rb +0 -5
  42. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  43. data/spec/dummy/config/locales/en.yml +20 -2
  44. data/spec/dummy/config/routes.rb +6 -3
  45. data/spec/dummy/config/routes.rb~ +6 -3
  46. data/spec/dummy/db/development.sqlite3 +0 -0
  47. data/spec/dummy/db/migrate/{20130211122120_create_drawings.rb → 0_create_drawings.rb} +0 -0
  48. data/spec/dummy/db/schema.rb +1 -1
  49. data/spec/dummy/db/test.sqlite3 +0 -0
  50. data/spec/dummy/log/development.log +102 -0
  51. data/spec/dummy/log/test.log +1538 -0
  52. data/spec/dummy/tmp/cache/assets/test/sprockets/13c49b43c248f57a4f30cdf2e6500d86 +0 -0
  53. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  54. data/spec/dummy/tmp/cache/assets/test/sprockets/1439175e31c3d335f43d739fcf88b900 +0 -0
  55. data/spec/dummy/tmp/cache/assets/test/sprockets/16bffd70b9ec9a2fffbb79d5043eef68 +0 -0
  56. data/spec/dummy/tmp/cache/assets/test/sprockets/2d62197a09bc4950eba778882fe761c2 +0 -0
  57. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  58. data/spec/dummy/tmp/cache/assets/test/sprockets/34ba754a656c01caa63fa519ae3d9908 +0 -0
  59. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  60. data/spec/dummy/tmp/cache/assets/test/sprockets/4095cf2b90e468974429e72b082b79f8 +0 -0
  61. data/spec/dummy/tmp/cache/assets/test/sprockets/413a1ea244e0c08b931057c16bfe0bc2 +0 -0
  62. data/spec/dummy/tmp/cache/assets/test/sprockets/56a18313459a66878cdaf82c4915f8f5 +0 -0
  63. data/spec/dummy/tmp/cache/assets/test/sprockets/a28f5450252c1cb0a43ba212cbda8096 +0 -0
  64. data/spec/dummy/tmp/cache/assets/test/sprockets/ad2d481af24a144625930160404410ce +0 -0
  65. data/spec/dummy/tmp/cache/assets/test/sprockets/c33d0ad7fc68a2a2103e528aa3ca347a +0 -0
  66. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  67. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  68. data/spec/dummy/tmp/cache/assets/test/sprockets/e5886a1047655979cb0a1c7622c6f7ad +0 -0
  69. data/spec/dummy/tmp/cache/assets/test/sprockets/ed868bc354161d40e454aa89cc181731 +0 -0
  70. data/spec/dummy/tmp/cache/assets/test/sprockets/ee457cb1087f657c1a865aad13dda147 +0 -0
  71. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  72. data/spec/dummy/tmp/cache/assets/test/sprockets/fe75486f6c3fa184617f1e14a6758ad7 +0 -0
  73. data/spec/features/sketchily_spec.rb +3 -3
  74. data/spec/features/sketchily_spec.rb~ +4 -3
  75. data/spec/features/sketchily_tag_spec.rb +3 -2
  76. data/spec/features/sketchily_tag_spec.rb~ +4 -2
  77. data/spec/lib/sketchily/sketchily.rb~ +15 -0
  78. data/spec/lib/sketchily/sketchily_spec.rb +27 -0
  79. data/spec/lib/sketchily/sketchily_spec.rb~ +28 -0
  80. data/spec/lib/sketchily/sketchily_tag.rb~ +20 -0
  81. data/spec/lib/sketchily/sketchily_tag_spec.rb +19 -0
  82. data/spec/lib/sketchily/sketchily_tag_spec.rb~ +20 -0
  83. data/spec/lib/sketchily_spec.rb +11 -0
  84. data/spec/lib/sketchily_spec.rb~ +9 -0
  85. data/spec/test_helper.rb +24 -0
  86. data/spec/test_helper.rb~ +25 -0
  87. data/vendor/assets/svg-edit-2.6/svgcanvas.js +2 -2
  88. data/vendor/assets/svg-edit-2.6/svgcanvas.js~ +5 -5
  89. data/vendor/assets/svg-edit-2.6/svgedit.compiled.js +2 -2
  90. data/vendor/assets/svg-edit-2.6/svgedit.compiled.js~ +2 -2
  91. metadata +113 -46
  92. data/spec/dummy/README.rdoc +0 -261
  93. data/spec/dummy/app/controllers/sketchily_controller.rb +0 -9
  94. data/spec/dummy/app/views/sketchily/sketchily_tag.html.erb +0 -3
  95. data/spec/minitest_helper.rb +0 -12
@@ -1,10 +1,10 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  # To be handled correctly by Capybara this spec must end with "Feature Test"
4
4
  feature "Sketchily Feature Test" do
5
5
  scenario "should render the sketchily html" do
6
- visit sketchily_path
6
+ @drawing = Drawing.create
7
+ visit sketchily_drawing_path(@drawing)
7
8
  page.must_have_selector("#svgedit_drawing_svg")
8
9
  end
9
10
  end
10
-
@@ -1,9 +1,10 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
+ # To be handled correctly by Capybara this spec must end with "Feature Test"
3
4
  feature "Sketchily Feature Test" do
4
5
  scenario "should render the sketchily html" do
5
- visit sketchily_path
6
+ @drawing = Drawing.create
7
+ visit sketchily_drawing_path(@drawing)
6
8
  page.must_have_selector("#svgedit_drawing_svg")
7
9
  end
8
10
  end
9
-
@@ -1,9 +1,10 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  # To be handled correctly by Capybara this spec must end with "Feature Test"
4
4
  feature "Sketchily Tag Feature Test" do
5
5
  scenario "should render the sketchily_tag html" do
6
- visit sketchily_tag_path
6
+ @drawing = Drawing.create
7
+ visit sketchily_tag_drawing_path(@drawing)
7
8
  page.must_have_selector("#svgedit_drawing")
8
9
  end
9
10
  end
@@ -1,8 +1,10 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
+ # To be handled correctly by Capybara this spec must end with "Feature Test"
3
4
  feature "Sketchily Tag Feature Test" do
4
5
  scenario "should render the sketchily_tag html" do
5
- visit sketchily_tag_path
6
+ @drawing = Drawing.create
7
+ visit drawing_path(@drawing)
6
8
  page.must_have_selector("#svgedit_drawing")
7
9
  end
8
10
  end
@@ -0,0 +1,15 @@
1
+ require 'test_helper'
2
+
3
+ module Sketchily
4
+ describe SketchilyTag do
5
+ it 'must add methods to ActionView::Base' do
6
+ ActionView::Base.must_respond_to :sketchily_tag
7
+ end
8
+
9
+ it 'must show sketchily tag' do
10
+ sketchily_tag = ActionView::Base.new.sketchily_tag
11
+ sketchily_tag.wont_be_nil
12
+ sketchily_tag.wont_be_empty
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ require 'test_helper'
2
+
3
+ module Sketchily
4
+ describe Sketchily do
5
+ before do
6
+ setup_lib_spec
7
+ @view.form_for(@drawing) do |f|
8
+ @form_builder = f
9
+ end
10
+ end
11
+
12
+ it 'must add methods to ActionView::Helpers::FormBuilder and ActionView::Base' do
13
+ @form_builder.must_respond_to :sketchily
14
+ @view.must_respond_to :sketchily
15
+ end
16
+
17
+ it 'must show sketchily' do
18
+ sketchily = @form_builder.sketchily('svg')
19
+ sketchily.wont_be_nil
20
+ sketchily.wont_be_empty
21
+
22
+ sketchily = @view.sketchily('drawing', 'svg')
23
+ sketchily.wont_be_nil
24
+ sketchily.wont_be_empty
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,28 @@
1
+ require 'test_helper'
2
+
3
+ module Sketchily
4
+ describe Sketchily do
5
+ before do
6
+ setup_lib_spec
7
+ @view = ActionView::Base.new
8
+ @view.form_for(@drawing) do |f|
9
+ @form_builder = f
10
+ end
11
+ end
12
+
13
+ it 'must add methods to ActionView::Helpers::FormBuilder and ActionView::Base' do
14
+ @form_builder.must_respond_to :sketchily
15
+ @view.must_respond_to :sketchily
16
+ end
17
+
18
+ it 'must show sketchily' do
19
+ sketchily = @form_builder.sketchily('svg')
20
+ sketchily.wont_be_nil
21
+ sketchily.wont_be_empty
22
+
23
+ sketchily = @view.sketchily('drawing', 'svg')
24
+ sketchily.wont_be_nil
25
+ sketchily.wont_be_empty
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,20 @@
1
+ require 'test_helper'
2
+
3
+ module Sketchily
4
+ describe SketchilyTag do
5
+ it 'must add methods to ActionView::Base' do
6
+ ActionView::Base.must_respond_to :sketchily_tag
7
+ end
8
+
9
+ it 'must show sketchily tag' do
10
+ controller = DummyModelsController.new
11
+ # Workaround for https://github.com/rails/rails/issues/11662
12
+ controller.define_singleton_method(:params) do
13
+ {}
14
+ end
15
+ sketchily_tag = ActionView::Base.new.sketchily_tag
16
+ thread_link.wont_be_nil
17
+ thread_link.wont_be_empty
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,19 @@
1
+ require 'test_helper'
2
+
3
+ module Sketchily
4
+ describe SketchilyTag do
5
+ before do
6
+ setup_lib_spec
7
+ end
8
+
9
+ it 'must add methods to ActionView::Base' do
10
+ @view.must_respond_to :sketchily_tag
11
+ end
12
+
13
+ it 'must show sketchily tag' do
14
+ sketchily_tag = @view.sketchily_tag('drawing', 'svg')
15
+ sketchily_tag.wont_be_nil
16
+ sketchily_tag.wont_be_empty
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,20 @@
1
+ require 'test_helper'
2
+
3
+ module Sketchily
4
+ describe SketchilyTag do
5
+ before do
6
+ setup_lib_spec
7
+ @view = ActionView::Base.new
8
+ end
9
+
10
+ it 'must add methods to ActionView::Base' do
11
+ @view.must_respond_to :sketchily_tag
12
+ end
13
+
14
+ it 'must show sketchily tag' do
15
+ sketchily_tag = @view.sketchily_tag('drawing', 'svg')
16
+ sketchily_tag.wont_be_nil
17
+ sketchily_tag.wont_be_empty
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,11 @@
1
+ require 'test_helper'
2
+
3
+ module Sketchily
4
+ describe Sketchily do
5
+ it 'must precompile assets' do
6
+ ASSET_FILES.each do |af|
7
+ Rails.configuration.assets.precompile.must_include af
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Sketchily
4
+ describe Sketchily do
5
+ it 'must precompile assets' do
6
+ Rails.configuration.assets.precompile.must_include "sketchily.css"
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,24 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path("../dummy/config/environment", __FILE__)
3
+ require "rails/test_help"
4
+ require "minitest/rails"
5
+
6
+ # To add Capybara feature tests add `gem "minitest-rails-capybara"`
7
+ # to the test group in the Gemfile and uncomment the following:
8
+ require "minitest/rails/capybara"
9
+
10
+ # Uncomment for awesome colorful output
11
+ # require "minitest/pride"
12
+
13
+ Rails.backtrace_cleaner.remove_silencers!
14
+
15
+ def setup_lib_spec
16
+ @drawing = Drawing.create
17
+ controller = DrawingsController.new
18
+ controller.request = ActionController::TestRequest.new
19
+ # Workaround for https://github.com/rails/rails/issues/11662
20
+ controller.define_singleton_method(:params) do
21
+ {}
22
+ end
23
+ @view = controller.view_context
24
+ end
@@ -0,0 +1,25 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path("../dummy/config/environment", __FILE__)
3
+ require "rails/test_help"
4
+ require "minitest/rails"
5
+
6
+ # To add Capybara feature tests add `gem "minitest-rails-capybara"`
7
+ # to the test group in the Gemfile and uncomment the following:
8
+ require "minitest/rails/capybara"
9
+
10
+ # Uncomment for awesome colorful output
11
+ # require "minitest/pride"
12
+
13
+ Rails.backtrace_cleaner.remove_silencers!
14
+
15
+ def setup_lib_spec
16
+ @drawing = Drawing.create
17
+ controller = DrawingsController.new
18
+ controller.request = ActionController::TestRequest.new
19
+ # Workaround for https://github.com/rails/rails/issues/11662
20
+ controller.define_singleton_method(:params) do
21
+ {}
22
+ end
23
+
24
+ @view = controller.view_context
25
+ end
@@ -2363,7 +2363,7 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
2363
2363
  svgCanvas.cloneSelectedElements(0,0);
2364
2364
  }
2365
2365
 
2366
- root_sctm = svgcontent.getScreenCTM().inverse();
2366
+ root_sctm = $('#svgcontent g')[0].getScreenCTM().inverse();
2367
2367
 
2368
2368
  var pt = transformPoint( evt.pageX, evt.pageY, root_sctm ),
2369
2369
  mouse_x = pt.x * current_zoom,
@@ -3480,7 +3480,7 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
3480
3480
  if(!e.shiftKey) return;
3481
3481
  e.preventDefault();
3482
3482
 
3483
- root_sctm = svgcontent.getScreenCTM().inverse();
3483
+ root_sctm = $('#svgcontent g')[0].getScreenCTM().inverse();
3484
3484
  var pt = transformPoint( e.pageX, e.pageY, root_sctm );
3485
3485
  var bbox = {
3486
3486
  'x': pt.x,
@@ -2363,7 +2363,7 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
2363
2363
  svgCanvas.cloneSelectedElements(0,0);
2364
2364
  }
2365
2365
 
2366
- root_sctm = svgcontent.getScreenCTM().inverse();
2366
+ root_sctm = $('#svgcontent g')[0].getScreenCTM().inverse();
2367
2367
 
2368
2368
  var pt = transformPoint( evt.pageX, evt.pageY, root_sctm ),
2369
2369
  mouse_x = pt.x * current_zoom,
@@ -5219,11 +5219,11 @@ this.svgToString = function(elem, indent) {
5219
5219
  }
5220
5220
 
5221
5221
  // Embed images when saving
5222
- if(save_options.apply
5223
- && elem.nodeName === 'image'
5222
+ if(/*save_options.apply
5223
+ && */elem.nodeName === 'image'
5224
5224
  && attr.localName === 'href'
5225
- && save_options.images
5226
- && save_options.images === 'embed')
5225
+ /*&& save_options.images
5226
+ && save_options.images === 'embed'*/)
5227
5227
  {
5228
5228
  var img = encodableImages[attrVal];
5229
5229
  if(img) attrVal = img;
@@ -183,7 +183,7 @@ o.points=Array(q);for(w=0;w<q;++w){u=i.getItem(w);o.points[w]={x:u.x,y:u.y}}}cas
183
183
  L)},gb=this.addToSelection=function(b,c){if(b.length!=0){for(var d=0;d<L.length;){if(L[d]==null)break;++d}for(var m=b.length;m--;){var i=b[m];if(i&&svgedit.utilities.getBBox(i)){if(i.tagName==="a"&&i.childNodes.length===1)i=i.firstChild;if(L.indexOf(i)==-1){L[d]=i;d++;i=ra.requestSelector(i);L.length>1&&i.showGrips(false)}}}ha("selected",L);c||L.length==1?ra.requestSelector(L[0]).showGrips(true):ra.requestSelector(L[0]).showGrips(false);for(L.sort(function(z,o){if(z&&o&&z.compareDocumentPosition)return 3-
184
184
  (o.compareDocumentPosition(z)&6);else if(z==null)return 1});L[0]==null;)L.shift(0)}},Wa=this.selectOnly=function(b,c){za(true);gb(b,c)};this.removeFromSelection=function(b){if(L[0]!=null)if(b.length!=0){var c=Array(L.length);j=0;len=L.length;for(var d=0;d<len;++d){var m=L[d];if(m)if(b.indexOf(m)==-1){c[j]=m;j++}else ra.releaseSelector(m)}L=c}};this.selectAllInCurrentLayer=function(){var b=B().getCurrentLayer();if(b){sa="select";Wa($(O||b).children())}};var Pb=this.getMouseTarget=function(b){if(b==
185
185
  null)return null;b=b.target;if(b.correspondingUseElement)b=b.correspondingUseElement;if(["http://www.w3.org/1998/Math/MathML","http://www.w3.org/1999/xhtml"].indexOf(b.namespaceURI)>=0&&b.id!="svgcanvas")for(;b.nodeName!="foreignObject";){b=b.parentNode;if(!b)return k}var c=B().getCurrentLayer();if([k,a,n,c].indexOf(b)>=0)return k;if($(b).closest("#selectorParentGroup").length)return ra.selectorParentGroup;for(;b.parentNode!==(O||c);)b=b.parentNode;return b};(function(){var b=null,c=null,d=null,m=
186
- null,i=null,z={},o={minx:null,miny:null,maxx:null,maxy:null};$(a).mousedown(function(h){if(!(e.spaceKey||h.button===1)){var q=h.button===2;h.altKey&&svgCanvas.cloneSelectedElements(0,0);nb=n.getScreenCTM().inverse();var w=oa(h.pageX,h.pageY,nb),u=w.x*A,t=w.y*A;h.preventDefault();if(q){sa="select";Vb=w}w=u/A;t=t/A;var C=Pb(h);if(C.tagName==="a"&&C.childNodes.length===1)C=C.firstChild;u=m=c=w;var E=i=d=t;if(v.gridSnapping){w=la(w);t=la(t);c=la(c);d=la(d)}if(C==ra.selectorParentGroup&&L[0]!=null){C=
186
+ null,i=null,z={},o={minx:null,miny:null,maxx:null,maxy:null};$(a).mousedown(function(h){if(!(e.spaceKey||h.button===1)){var q=h.button===2;h.altKey&&svgCanvas.cloneSelectedElements(0,0);nb=$('#svgcontent g')[0].getScreenCTM().inverse();var w=oa(h.pageX,h.pageY,nb),u=w.x*A,t=w.y*A;h.preventDefault();if(q){sa="select";Vb=w}w=u/A;t=t/A;var C=Pb(h);if(C.tagName==="a"&&C.childNodes.length===1)C=C.firstChild;u=m=c=w;var E=i=d=t;if(v.gridSnapping){w=la(w);t=la(t);c=la(c);d=la(d)}if(C==ra.selectorParentGroup&&L[0]!=null){C=
187
187
  h.target;var H=Ab(C,"type");if(H=="rotate")sa="rotate";else if(H=="resize"){sa="resize";cb=Ab(C,"dir")}C=L[0]}Qa=C.getAttribute("transform");H=ca(C);switch(sa){case "select":xa=true;cb="none";if(q)xa=false;if(C!=k){if(L.indexOf(C)==-1){h.shiftKey||za(true);gb([C]);La=C;qa.clear()}if(!q)for(q=0;q<L.length;++q)if(L[q]!=null){var I=ca(L[q]);I.numberOfItems?I.insertItemBefore(k.createSVGTransform(),0):I.appendItem(k.createSVGTransform())}}else if(!q){za();sa="multiselect";if(wa==null)wa=ra.getRubberBandBox();
188
188
  m*=A;i*=A;Ga(wa,{x:m,y:i,width:0,height:0,display:"inline"},100)}break;case "zoom":xa=true;if(wa==null)wa=ra.getRubberBandBox();Ga(wa,{x:u*A,y:u*A,width:0,height:0,display:"inline"},100);break;case "resize":xa=true;c=w;d=t;z=svgedit.utilities.getBBox($("#selectedBox0")[0]);var P={};$.each(z,function(W,Y){P[W]=Y/A});z=P;q=bb(C)?1:0;if(ia(H)){H.insertItemBefore(k.createSVGTransform(),q);H.insertItemBefore(k.createSVGTransform(),q);H.insertItemBefore(k.createSVGTransform(),q)}else{H.appendItem(k.createSVGTransform());
189
189
  H.appendItem(k.createSVGTransform());H.appendItem(k.createSVGTransform());if(svgedit.browser.supportsNonScalingStroke()){if(w=svgedit.browser.isWebkit())I=function(W){var Y=W.getAttributeNS(null,"stroke");W.removeAttributeNS(null,"stroke");setTimeout(function(){W.setAttributeNS(null,"stroke",Y)},0)};C.style.vectorEffect="non-scaling-stroke";w&&I(C);t=C.getElementsByTagName("*");u=t.length;for(q=0;q<u;q++){t[q].style.vectorEffect="non-scaling-stroke";w&&I(t[q])}}}break;case "fhellipse":case "fhrect":case "fhpath":xa=
@@ -206,7 +206,7 @@ t+1)>=0:q.indexOf(" ",q.indexOf(" ")+1)>=0)E=qa.smoothPolylineIntoPath(E);break;
206
206
  attr:{cx:(o.minx+o.maxx)/2,cy:(o.miny+o.maxy)/2,rx:(o.maxx-o.minx)/2,ry:(o.maxy-o.miny)/2,id:db()}});ha("changed",[E]);H=true}break;case "fhrect":if(o.maxx-o.minx>0&&o.maxy-o.miny>0){E=na({element:"rect",curStyles:true,attr:{x:o.minx,y:o.miny,width:o.maxx-o.minx,height:o.maxy-o.miny,id:db()}});ha("changed",[E]);H=true}break;case "text":H=true;Wa([E]);Ra.start(E);break;case "path":E=null;xa=true;q=qa.mouseUp(h,E,u,w);E=q.element;H=q.keep;break;case "pathedit":H=true;E=null;qa.mouseUp(h);break;case "textedit":H=
207
207
  false;E=null;Ra.mouseUp(h,u,w);break;case "rotate":H=true;E=null;sa="select";q=e.undoMgr.finishUndoableChange();q.isEmpty()||ma(q);Ob();ha("changed",L)}u=Db("mouseUp",{event:h,mouse_x:u,mouse_y:w},true);$.each(u,function(W,Y){if(Y){H=Y.keep||H;E=Y.element;xa=Y.started||xa}});if(!H&&E!=null){B().releaseId(db());E.parentNode.removeChild(E);E=null;for(u=h.target;u.parentNode.parentNode.tagName=="g";)u=u.parentNode;if((sa!="path"||!drawn_path)&&u.parentNode.id!="selectorParentGroup"&&u.id!="svgcanvas"&&
208
208
  u.id!="svgroot"){e.setMode("select");Wa([u],true)}}else if(E!=null){e.addedNew=true;h=0.2;var I;if(Ib.beginElement&&E.getAttribute("opacity")!=N.opacity){I=$(Ib).clone().attr({to:N.opacity,dur:h}).appendTo(E);try{I[0].beginElement()}catch(P){}}else h=0;setTimeout(function(){I&&I.remove();E.setAttribute("opacity",N.opacity);E.setAttribute("style","pointer-events:inherit");Oa(E);if(sa==="path")qa.toEditMode(E);else v.selectNew&&Wa([E],true);ma(new Ha(E));ha("changed",[E])},h*1E3)}Qa=null}}});$(a).bind("mousewheel DOMMouseScroll",
209
- function(h){if(h.shiftKey){h.preventDefault();nb=n.getScreenCTM().inverse();var q=oa(h.pageX,h.pageY,nb);q={x:q.x,y:q.y,width:0,height:0};if(h.wheelDelta)if(h.wheelDelta>=120)q.factor=2;else{if(h.wheelDelta<=-120)q.factor=0.5}else if(h.detail)if(h.detail>0)q.factor=0.5;else if(h.detail<0)q.factor=2;q.factor&&ha("zoomed",q)}})})();var Mb=function(b){$(b).click(function(c){c.preventDefault()})},Ra=e.textActions=function(){function b(R){var T=w.value==="";$(w).focus();if(!arguments.length)if(T)R=0;else{if(w.selectionEnd!==
209
+ function(h){if(h.shiftKey){h.preventDefault();nb=$('#svgcontent g')[0].getScreenCTM().inverse();var q=oa(h.pageX,h.pageY,nb);q={x:q.x,y:q.y,width:0,height:0};if(h.wheelDelta)if(h.wheelDelta>=120)q.factor=2;else{if(h.wheelDelta<=-120)q.factor=0.5}else if(h.detail)if(h.detail>0)q.factor=0.5;else if(h.detail<0)q.factor=2;q.factor&&ha("zoomed",q)}})})();var Mb=function(b){$(b).click(function(c){c.preventDefault()})},Ra=e.textActions=function(){function b(R){var T=w.value==="";$(w).focus();if(!arguments.length)if(T)R=0;else{if(w.selectionEnd!==
210
210
  w.selectionStart)return;R=w.selectionEnd}var V;V=E[R];T||w.setSelectionRange(R,R);u=va("text_cursor");if(!u){u=document.createElementNS(s,"line");Ga(u,{id:"text_cursor",stroke:"#333","stroke-width":1});u=va("selectorParentGroup").appendChild(u)}C||(C=setInterval(function(){var aa=u.getAttribute("display")==="none";u.setAttribute("display",aa?"inline":"none")},600));T=z(V.x,H.y);V=z(V.x,H.y+H.height);Ga(u,{x1:T.x,y1:T.y,x2:V.x,y2:V.y,visibility:"visible",display:"inline"});t&&t.setAttribute("d","")}
211
211
  function c(R,T,V){if(R===T)b(T);else{V||w.setSelectionRange(R,T);t=va("text_selectblock");if(!t){t=document.createElementNS(s,"path");Ga(t,{id:"text_selectblock",fill:"green",opacity:0.5,style:"pointer-events:none"});va("selectorParentGroup").appendChild(t)}R=E[R];var aa=E[T];u.setAttribute("visibility","hidden");T=z(R.x,H.y);V=z(R.x+(aa.x-R.x),H.y);var Ja=z(R.x,H.y+H.height);R=z(R.x+(aa.x-R.x),H.y+H.height);Ga(t,{d:"M"+T.x+","+T.y+" L"+V.x+","+V.y+" "+R.x+","+R.y+" "+Ja.x+","+Ja.y+"z",display:"inline"})}}
212
212
  function d(R,T){var V=k.createSVGPoint();V.x=R;V.y=T;if(E.length==1)return 0;V=q.getCharNumAtPosition(V);if(V<0){V=E.length-2;if(R<=E[0].x)V=0}else if(V>=E.length-2)V=E.length-2;var aa=E[V];R>aa.x+aa.width/2&&V++;return V}function m(R,T,V){var aa=w.selectionStart;R=d(R,T);c(Math.min(aa,R),Math.max(aa,R),!V)}function i(R,T){var V={x:R,y:T};V.x/=A;V.y/=A;if(I){var aa=oa(V.x,V.y,I.inverse());V.x=aa.x;V.y=aa.y}return V}function z(R,T){var V={x:R,y:T};if(I){var aa=oa(V.x,V.y,I);V.x=aa.x;V.y=aa.y}V.x*=
@@ -183,7 +183,7 @@ o.points=Array(q);for(w=0;w<q;++w){u=i.getItem(w);o.points[w]={x:u.x,y:u.y}}}cas
183
183
  L)},gb=this.addToSelection=function(b,c){if(b.length!=0){for(var d=0;d<L.length;){if(L[d]==null)break;++d}for(var m=b.length;m--;){var i=b[m];if(i&&svgedit.utilities.getBBox(i)){if(i.tagName==="a"&&i.childNodes.length===1)i=i.firstChild;if(L.indexOf(i)==-1){L[d]=i;d++;i=ra.requestSelector(i);L.length>1&&i.showGrips(false)}}}ha("selected",L);c||L.length==1?ra.requestSelector(L[0]).showGrips(true):ra.requestSelector(L[0]).showGrips(false);for(L.sort(function(z,o){if(z&&o&&z.compareDocumentPosition)return 3-
184
184
  (o.compareDocumentPosition(z)&6);else if(z==null)return 1});L[0]==null;)L.shift(0)}},Wa=this.selectOnly=function(b,c){za(true);gb(b,c)};this.removeFromSelection=function(b){if(L[0]!=null)if(b.length!=0){var c=Array(L.length);j=0;len=L.length;for(var d=0;d<len;++d){var m=L[d];if(m)if(b.indexOf(m)==-1){c[j]=m;j++}else ra.releaseSelector(m)}L=c}};this.selectAllInCurrentLayer=function(){var b=B().getCurrentLayer();if(b){sa="select";Wa($(O||b).children())}};var Pb=this.getMouseTarget=function(b){if(b==
185
185
  null)return null;b=b.target;if(b.correspondingUseElement)b=b.correspondingUseElement;if(["http://www.w3.org/1998/Math/MathML","http://www.w3.org/1999/xhtml"].indexOf(b.namespaceURI)>=0&&b.id!="svgcanvas")for(;b.nodeName!="foreignObject";){b=b.parentNode;if(!b)return k}var c=B().getCurrentLayer();if([k,a,n,c].indexOf(b)>=0)return k;if($(b).closest("#selectorParentGroup").length)return ra.selectorParentGroup;for(;b.parentNode!==(O||c);)b=b.parentNode;return b};(function(){var b=null,c=null,d=null,m=
186
- null,i=null,z={},o={minx:null,miny:null,maxx:null,maxy:null};$(a).mousedown(function(h){if(!(e.spaceKey||h.button===1)){var q=h.button===2;h.altKey&&svgCanvas.cloneSelectedElements(0,0);nb=n.getScreenCTM().inverse();var w=oa(h.pageX,h.pageY,nb),u=w.x*A,t=w.y*A;h.preventDefault();if(q){sa="select";Vb=w}w=u/A;t=t/A;var C=Pb(h);if(C.tagName==="a"&&C.childNodes.length===1)C=C.firstChild;u=m=c=w;var E=i=d=t;if(v.gridSnapping){w=la(w);t=la(t);c=la(c);d=la(d)}if(C==ra.selectorParentGroup&&L[0]!=null){C=
186
+ null,i=null,z={},o={minx:null,miny:null,maxx:null,maxy:null};$(a).mousedown(function(h){if(!(e.spaceKey||h.button===1)){var q=h.button===2;h.altKey&&svgCanvas.cloneSelectedElements(0,0);nb=$('#svgcontent g')[0].getScreenCTM().inverse();var w=oa(h.pageX,h.pageY,nb),u=w.x*A,t=w.y*A;h.preventDefault();if(q){sa="select";Vb=w}w=u/A;t=t/A;var C=Pb(h);if(C.tagName==="a"&&C.childNodes.length===1)C=C.firstChild;u=m=c=w;var E=i=d=t;if(v.gridSnapping){w=la(w);t=la(t);c=la(c);d=la(d)}if(C==ra.selectorParentGroup&&L[0]!=null){C=
187
187
  h.target;var H=Ab(C,"type");if(H=="rotate")sa="rotate";else if(H=="resize"){sa="resize";cb=Ab(C,"dir")}C=L[0]}Qa=C.getAttribute("transform");H=ca(C);switch(sa){case "select":xa=true;cb="none";if(q)xa=false;if(C!=k){if(L.indexOf(C)==-1){h.shiftKey||za(true);gb([C]);La=C;qa.clear()}if(!q)for(q=0;q<L.length;++q)if(L[q]!=null){var I=ca(L[q]);I.numberOfItems?I.insertItemBefore(k.createSVGTransform(),0):I.appendItem(k.createSVGTransform())}}else if(!q){za();sa="multiselect";if(wa==null)wa=ra.getRubberBandBox();
188
188
  m*=A;i*=A;Ga(wa,{x:m,y:i,width:0,height:0,display:"inline"},100)}break;case "zoom":xa=true;if(wa==null)wa=ra.getRubberBandBox();Ga(wa,{x:u*A,y:u*A,width:0,height:0,display:"inline"},100);break;case "resize":xa=true;c=w;d=t;z=svgedit.utilities.getBBox($("#selectedBox0")[0]);var P={};$.each(z,function(W,Y){P[W]=Y/A});z=P;q=bb(C)?1:0;if(ia(H)){H.insertItemBefore(k.createSVGTransform(),q);H.insertItemBefore(k.createSVGTransform(),q);H.insertItemBefore(k.createSVGTransform(),q)}else{H.appendItem(k.createSVGTransform());
189
189
  H.appendItem(k.createSVGTransform());H.appendItem(k.createSVGTransform());if(svgedit.browser.supportsNonScalingStroke()){if(w=svgedit.browser.isWebkit())I=function(W){var Y=W.getAttributeNS(null,"stroke");W.removeAttributeNS(null,"stroke");setTimeout(function(){W.setAttributeNS(null,"stroke",Y)},0)};C.style.vectorEffect="non-scaling-stroke";w&&I(C);t=C.getElementsByTagName("*");u=t.length;for(q=0;q<u;q++){t[q].style.vectorEffect="non-scaling-stroke";w&&I(t[q])}}}break;case "fhellipse":case "fhrect":case "fhpath":xa=
@@ -242,7 +242,7 @@ t;V+=t;u=P;t=W}Za([[T,V],[P,W]])}}return C}}}(),fc=this.removeUnusedDefElems=fun
242
242
  defelem_ids=[];for(h=b.length;h--;){m=b[h];i=m.id;if(c.indexOf(i)<0){Ub[i]=m;m.parentNode.removeChild(m);d++}}return d};this.svgCanvasToString=function(){for(;fc()>0;);qa.clear(true);$.each(n.childNodes,function(d,m){d&&m.nodeType===8&&m.data.indexOf("Created with")>=0&&n.insertBefore(m,n.firstChild)});if(O){Qb();Wa([O])}var b=[];$(n).find("g:data(gsvg)").each(function(){for(var d=this.attributes,m=d.length,i=0;i<m;i++)if(d[i].nodeName=="id"||d[i].nodeName=="style")m--;if(m<=0){d=this.firstChild;
243
243
  b.push(d);$(this).replaceWith(d)}});var c=this.svgToString(n,0);b.length&&$(b).each(function(){cc(this)});return c};this.svgToString=function(b,c){var d=[],m=svgedit.utilities.toXml,i=v.baseUnit,z=RegExp("^-?[\\d\\.]+"+i+"$");if(b){Oa(b);var o=b.attributes,h,q,w=b.childNodes;for(q=0;q<c;q++)d.push(" ");d.push("<");d.push(b.nodeName);if(b.id==="svgcontent"){q=xb();if(i!=="px"){q.w=svgedit.units.convertUnit(q.w,i)+i;q.h=svgedit.units.convertUnit(q.h,i)+i}d.push(' width="'+q.w+'" height="'+q.h+'" xmlns="'+
244
244
  s+'"');var u={};$(b).find("*").andSelf().each(function(){$.each(this.attributes,function(H,I){var P=I.namespaceURI;if(P&&!u[P]&&hb[P]!=="xmlns"&&hb[P]!=="xml"){u[P]=true;d.push(" xmlns:"+hb[P]+'="'+P+'"')}})});q=o.length;for(i=["width","height","xmlns","x","y","viewBox","id","overflow"];q--;){h=o.item(q);var t=m(h.nodeValue);if(h.nodeName.indexOf("xmlns:")!==0)if(t!=""&&i.indexOf(h.localName)==-1)if(!h.namespaceURI||hb[h.namespaceURI]){d.push(" ");d.push(h.nodeName);d.push('="');d.push(t);d.push('"')}}}else{if(b.nodeName===
245
- "defs"&&!b.firstChild)return;var C=["-moz-math-font-style","_moz-math-font-style"];for(q=o.length-1;q>=0;q--){h=o.item(q);t=m(h.nodeValue);if(!(C.indexOf(h.localName)>=0))if(t!="")if(t.indexOf("pointer-events")!==0)if(!(h.localName==="class"&&t.indexOf("se_")===0)){d.push(" ");if(h.localName==="d")t=qa.convertPath(b,true);if(isNaN(t)){if(z.test(t))t=svgedit.units.shortFloat(t)+i}else t=svgedit.units.shortFloat(t);if(Na.apply&&b.nodeName==="image"&&h.localName==="href"&&Na.images&&Na.images==="embed"){var E=
245
+ "defs"&&!b.firstChild)return;var C=["-moz-math-font-style","_moz-math-font-style"];for(q=o.length-1;q>=0;q--){h=o.item(q);t=m(h.nodeValue);if(!(C.indexOf(h.localName)>=0))if(t!="")if(t.indexOf("pointer-events")!==0)if(!(h.localName==="class"&&t.indexOf("se_")===0)){d.push(" ");if(h.localName==="d")t=qa.convertPath(b,true);if(isNaN(t)){if(z.test(t))t=svgedit.units.shortFloat(t)+i}else t=svgedit.units.shortFloat(t);if(/*Na.apply&&*/b.nodeName==="image"&&h.localName==="href"/*&&Na.images&&Na.images==="embed"*/){var E=
246
246
  Jb[t];if(E)t=E}if(!h.namespaceURI||h.namespaceURI==s||hb[h.namespaceURI]){d.push(h.nodeName);d.push('="');d.push(t);d.push('"')}}}}if(b.hasChildNodes()){d.push(">");c++;o=false;for(q=0;q<w.length;q++){i=w.item(q);switch(i.nodeType){case 1:d.push("\n");d.push(this.svgToString(w.item(q),c));break;case 3:i=i.nodeValue.replace(/^\s+|\s+$/g,"");if(i!=""){o=true;d.push(m(i)+"")}break;case 4:d.push("\n");d.push(Array(c+1).join(" "));d.push("<![CDATA[");d.push(i.nodeValue);d.push("]]\>");break;case 8:d.push("\n");
247
247
  d.push(Array(c+1).join(" "));d.push("<!--");d.push(i.data);d.push("--\>")}}c--;if(!o){d.push("\n");for(q=0;q<c;q++)d.push(" ")}d.push("</");d.push(b.nodeName);d.push(">")}else d.push("/>")}return d.join("")};this.embedImage=function(b,c){$(new Image).load(function(){var d=document.createElement("canvas");d.width=this.width;d.height=this.height;d.getContext("2d").drawImage(this,0,0);try{var m=";svgedit_url="+encodeURIComponent(b);m=d.toDataURL().replace(";base64",m+";base64");Jb[b]=m}catch(i){Jb[b]=
248
248
  false}Bb=b;c&&c(Jb[b])}).attr("src",b)};this.setGoodImage=function(b){Bb=b};this.open=function(){};this.save=function(b){za();b&&$.extend(Na,b);Na.apply=true;b=this.svgCanvasToString();ha("saved",b)};this.rasterExport=function(){za();var b=[],c={feGaussianBlur:ub.exportNoBlur,foreignObject:ub.exportNoforeignObject,"[stroke-dasharray]":ub.exportNoDashArray},d=$(n);if(!("font"in $("<canvas>")[0].getContext("2d")))c.text=ub.exportNoText;$.each(c,function(m,i){d.find(m).length&&b.push(i)});c=this.svgCanvasToString();
metadata CHANGED
@@ -1,110 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sketchily
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
5
- prerelease:
4
+ version: 4.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dante Soares
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-08 00:00:00.000000000 Z
11
+ date: 2013-10-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.1'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3.1'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: jquery-rails
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: nokogiri
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: sqlite3
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: minitest-rails
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: minitest-rails-capybara
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  description: Sketchily adds another form input tag to your application designed to
@@ -381,7 +368,9 @@ files:
381
368
  - MIT-LICENSE
382
369
  - Rakefile
383
370
  - README.md
384
- - spec/minitest_helper.rb
371
+ - spec/app/helpers/sketchily_helper_spec.rb
372
+ - spec/app/helpers/sketchily_helper_spec.rb~
373
+ - spec/test_helper.rb
385
374
  - spec/features/sketchily_tag_spec.rb~
386
375
  - spec/features/sketchily_tag.rb~
387
376
  - spec/features/sketchily_tag_spec.rb
@@ -391,25 +380,52 @@ files:
391
380
  - spec/features/sketchily.rb~
392
381
  - spec/dummy/script/rails
393
382
  - spec/dummy/Rakefile
394
- - spec/dummy/README.rdoc
395
- - spec/dummy/app/controllers/sketchily_controller.rb
383
+ - spec/dummy/app/controllers/drawings_controller.rb
384
+ - spec/dummy/app/controllers/drawings_controller.rb~
396
385
  - spec/dummy/app/controllers/application_controller.rb
397
386
  - spec/dummy/app/assets/stylesheets/application.css
398
387
  - spec/dummy/app/assets/javascripts/application.js
399
388
  - spec/dummy/app/models/drawing.rb
400
389
  - spec/dummy/app/models/drawing.rb~
401
390
  - spec/dummy/app/helpers/application_helper.rb
402
- - spec/dummy/app/views/sketchily/sketchily.html.erb
403
- - spec/dummy/app/views/sketchily/sketchily_tag.html.erb
404
391
  - spec/dummy/app/views/layouts/application.html.erb
392
+ - spec/dummy/app/views/drawings/sketchily.html.erb
393
+ - spec/dummy/app/views/drawings/sketchily_tag.html.erb
394
+ - spec/dummy/app/views/drawings/sketchily_tag.html.erb~
395
+ - spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
396
+ - spec/dummy/tmp/cache/assets/test/sprockets/a28f5450252c1cb0a43ba212cbda8096
397
+ - spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
398
+ - spec/dummy/tmp/cache/assets/test/sprockets/413a1ea244e0c08b931057c16bfe0bc2
399
+ - spec/dummy/tmp/cache/assets/test/sprockets/c33d0ad7fc68a2a2103e528aa3ca347a
400
+ - spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
401
+ - spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
402
+ - spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
403
+ - spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
404
+ - spec/dummy/tmp/cache/assets/test/sprockets/ee457cb1087f657c1a865aad13dda147
405
+ - spec/dummy/tmp/cache/assets/test/sprockets/e5886a1047655979cb0a1c7622c6f7ad
406
+ - spec/dummy/tmp/cache/assets/test/sprockets/16bffd70b9ec9a2fffbb79d5043eef68
407
+ - spec/dummy/tmp/cache/assets/test/sprockets/13c49b43c248f57a4f30cdf2e6500d86
408
+ - spec/dummy/tmp/cache/assets/test/sprockets/ad2d481af24a144625930160404410ce
409
+ - spec/dummy/tmp/cache/assets/test/sprockets/34ba754a656c01caa63fa519ae3d9908
410
+ - spec/dummy/tmp/cache/assets/test/sprockets/56a18313459a66878cdaf82c4915f8f5
411
+ - spec/dummy/tmp/cache/assets/test/sprockets/2d62197a09bc4950eba778882fe761c2
412
+ - spec/dummy/tmp/cache/assets/test/sprockets/ed868bc354161d40e454aa89cc181731
413
+ - spec/dummy/tmp/cache/assets/test/sprockets/4095cf2b90e468974429e72b082b79f8
414
+ - spec/dummy/tmp/cache/assets/test/sprockets/1439175e31c3d335f43d739fcf88b900
415
+ - spec/dummy/tmp/cache/assets/test/sprockets/fe75486f6c3fa184617f1e14a6758ad7
405
416
  - spec/dummy/config/locales/en.yml
406
417
  - spec/dummy/config/environment.rb
407
418
  - spec/dummy/config/routes.rb
408
419
  - spec/dummy/config/environments/production.rb
420
+ - spec/dummy/config/environments/production.rb~
421
+ - spec/dummy/config/environments/test.rb~
422
+ - spec/dummy/config/environments/development.rb~
409
423
  - spec/dummy/config/environments/test.rb
410
424
  - spec/dummy/config/environments/development.rb
425
+ - spec/dummy/config/initializers/secret_token.rb~
411
426
  - spec/dummy/config/initializers/wrap_parameters.rb
412
427
  - spec/dummy/config/initializers/secret_token.rb
428
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
413
429
  - spec/dummy/config/initializers/mime_types.rb
414
430
  - spec/dummy/config/initializers/session_store.rb
415
431
  - spec/dummy/config/initializers/backtrace_silencers.rb
@@ -418,6 +434,9 @@ files:
418
434
  - spec/dummy/config/routes.rb~
419
435
  - spec/dummy/config/application.rb
420
436
  - spec/dummy/config/database.yml
437
+ - spec/dummy/config/application.rb~
438
+ - spec/dummy/README.md~
439
+ - spec/dummy/README.md
421
440
  - spec/dummy/public/500.html
422
441
  - spec/dummy/public/422.html
423
442
  - spec/dummy/public/favicon.ico
@@ -427,36 +446,46 @@ files:
427
446
  - spec/dummy/config.ru
428
447
  - spec/dummy/db/schema.rb
429
448
  - spec/dummy/db/development.sqlite3
430
- - spec/dummy/db/migrate/20130211122120_create_drawings.rb
449
+ - spec/dummy/db/migrate/0_create_drawings.rb
431
450
  - spec/dummy/db/test.sqlite3
451
+ - spec/test_helper.rb~
432
452
  - spec/spec_helper.rb~
453
+ - spec/lib/sketchily/sketchily_tag_spec.rb~
454
+ - spec/lib/sketchily/sketchily_tag.rb~
455
+ - spec/lib/sketchily/sketchily_tag_spec.rb
456
+ - spec/lib/sketchily/sketchily_spec.rb
457
+ - spec/lib/sketchily/sketchily_spec.rb~
458
+ - spec/lib/sketchily/sketchily.rb~
433
459
  - spec/lib/sketchily_spec.rb
460
+ - spec/lib/sketchily_spec.rb~
434
461
  homepage: http://github.com/lml/sketchily
435
- licenses: []
462
+ licenses:
463
+ - MIT
464
+ metadata: {}
436
465
  post_install_message:
437
466
  rdoc_options: []
438
467
  require_paths:
439
468
  - lib
440
469
  required_ruby_version: !ruby/object:Gem::Requirement
441
- none: false
442
470
  requirements:
443
- - - ! '>='
471
+ - - '>='
444
472
  - !ruby/object:Gem::Version
445
473
  version: '0'
446
474
  required_rubygems_version: !ruby/object:Gem::Requirement
447
- none: false
448
475
  requirements:
449
- - - ! '>='
476
+ - - '>='
450
477
  - !ruby/object:Gem::Version
451
478
  version: '0'
452
479
  requirements: []
453
480
  rubyforge_project:
454
- rubygems_version: 1.8.24
481
+ rubygems_version: 2.0.3
455
482
  signing_key:
456
- specification_version: 3
483
+ specification_version: 4
457
484
  summary: Easy svg-edit integration for any rails application.
458
485
  test_files:
459
- - spec/minitest_helper.rb
486
+ - spec/app/helpers/sketchily_helper_spec.rb
487
+ - spec/app/helpers/sketchily_helper_spec.rb~
488
+ - spec/test_helper.rb
460
489
  - spec/features/sketchily_tag_spec.rb~
461
490
  - spec/features/sketchily_tag.rb~
462
491
  - spec/features/sketchily_tag_spec.rb
@@ -466,25 +495,52 @@ test_files:
466
495
  - spec/features/sketchily.rb~
467
496
  - spec/dummy/script/rails
468
497
  - spec/dummy/Rakefile
469
- - spec/dummy/README.rdoc
470
- - spec/dummy/app/controllers/sketchily_controller.rb
498
+ - spec/dummy/app/controllers/drawings_controller.rb
499
+ - spec/dummy/app/controllers/drawings_controller.rb~
471
500
  - spec/dummy/app/controllers/application_controller.rb
472
501
  - spec/dummy/app/assets/stylesheets/application.css
473
502
  - spec/dummy/app/assets/javascripts/application.js
474
503
  - spec/dummy/app/models/drawing.rb
475
504
  - spec/dummy/app/models/drawing.rb~
476
505
  - spec/dummy/app/helpers/application_helper.rb
477
- - spec/dummy/app/views/sketchily/sketchily.html.erb
478
- - spec/dummy/app/views/sketchily/sketchily_tag.html.erb
479
506
  - spec/dummy/app/views/layouts/application.html.erb
507
+ - spec/dummy/app/views/drawings/sketchily.html.erb
508
+ - spec/dummy/app/views/drawings/sketchily_tag.html.erb
509
+ - spec/dummy/app/views/drawings/sketchily_tag.html.erb~
510
+ - spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
511
+ - spec/dummy/tmp/cache/assets/test/sprockets/a28f5450252c1cb0a43ba212cbda8096
512
+ - spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
513
+ - spec/dummy/tmp/cache/assets/test/sprockets/413a1ea244e0c08b931057c16bfe0bc2
514
+ - spec/dummy/tmp/cache/assets/test/sprockets/c33d0ad7fc68a2a2103e528aa3ca347a
515
+ - spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
516
+ - spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
517
+ - spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
518
+ - spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
519
+ - spec/dummy/tmp/cache/assets/test/sprockets/ee457cb1087f657c1a865aad13dda147
520
+ - spec/dummy/tmp/cache/assets/test/sprockets/e5886a1047655979cb0a1c7622c6f7ad
521
+ - spec/dummy/tmp/cache/assets/test/sprockets/16bffd70b9ec9a2fffbb79d5043eef68
522
+ - spec/dummy/tmp/cache/assets/test/sprockets/13c49b43c248f57a4f30cdf2e6500d86
523
+ - spec/dummy/tmp/cache/assets/test/sprockets/ad2d481af24a144625930160404410ce
524
+ - spec/dummy/tmp/cache/assets/test/sprockets/34ba754a656c01caa63fa519ae3d9908
525
+ - spec/dummy/tmp/cache/assets/test/sprockets/56a18313459a66878cdaf82c4915f8f5
526
+ - spec/dummy/tmp/cache/assets/test/sprockets/2d62197a09bc4950eba778882fe761c2
527
+ - spec/dummy/tmp/cache/assets/test/sprockets/ed868bc354161d40e454aa89cc181731
528
+ - spec/dummy/tmp/cache/assets/test/sprockets/4095cf2b90e468974429e72b082b79f8
529
+ - spec/dummy/tmp/cache/assets/test/sprockets/1439175e31c3d335f43d739fcf88b900
530
+ - spec/dummy/tmp/cache/assets/test/sprockets/fe75486f6c3fa184617f1e14a6758ad7
480
531
  - spec/dummy/config/locales/en.yml
481
532
  - spec/dummy/config/environment.rb
482
533
  - spec/dummy/config/routes.rb
483
534
  - spec/dummy/config/environments/production.rb
535
+ - spec/dummy/config/environments/production.rb~
536
+ - spec/dummy/config/environments/test.rb~
537
+ - spec/dummy/config/environments/development.rb~
484
538
  - spec/dummy/config/environments/test.rb
485
539
  - spec/dummy/config/environments/development.rb
540
+ - spec/dummy/config/initializers/secret_token.rb~
486
541
  - spec/dummy/config/initializers/wrap_parameters.rb
487
542
  - spec/dummy/config/initializers/secret_token.rb
543
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
488
544
  - spec/dummy/config/initializers/mime_types.rb
489
545
  - spec/dummy/config/initializers/session_store.rb
490
546
  - spec/dummy/config/initializers/backtrace_silencers.rb
@@ -493,6 +549,9 @@ test_files:
493
549
  - spec/dummy/config/routes.rb~
494
550
  - spec/dummy/config/application.rb
495
551
  - spec/dummy/config/database.yml
552
+ - spec/dummy/config/application.rb~
553
+ - spec/dummy/README.md~
554
+ - spec/dummy/README.md
496
555
  - spec/dummy/public/500.html
497
556
  - spec/dummy/public/422.html
498
557
  - spec/dummy/public/favicon.ico
@@ -502,7 +561,15 @@ test_files:
502
561
  - spec/dummy/config.ru
503
562
  - spec/dummy/db/schema.rb
504
563
  - spec/dummy/db/development.sqlite3
505
- - spec/dummy/db/migrate/20130211122120_create_drawings.rb
564
+ - spec/dummy/db/migrate/0_create_drawings.rb
506
565
  - spec/dummy/db/test.sqlite3
566
+ - spec/test_helper.rb~
507
567
  - spec/spec_helper.rb~
568
+ - spec/lib/sketchily/sketchily_tag_spec.rb~
569
+ - spec/lib/sketchily/sketchily_tag.rb~
570
+ - spec/lib/sketchily/sketchily_tag_spec.rb
571
+ - spec/lib/sketchily/sketchily_spec.rb
572
+ - spec/lib/sketchily/sketchily_spec.rb~
573
+ - spec/lib/sketchily/sketchily.rb~
508
574
  - spec/lib/sketchily_spec.rb
575
+ - spec/lib/sketchily_spec.rb~