svg_hearts_you 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +265 -0
  7. data/Rakefile +46 -0
  8. data/features/middleman.feature +19 -0
  9. data/features/step_definitions/steps.rb +3 -0
  10. data/features/support/env.rb +8 -0
  11. data/fixtures/middleman-extension-config-style/config.rb +1 -0
  12. data/fixtures/middleman-extension-config-style/source/circle.svg +7 -0
  13. data/fixtures/middleman-extension-config-style/source/index.html.erb +2 -0
  14. data/fixtures/middleman-extension-default-config/config.rb +1 -0
  15. data/fixtures/middleman-extension-default-config/source/images/circle.svg +7 -0
  16. data/fixtures/middleman-extension-default-config/source/index.html.erb +2 -0
  17. data/fixtures/middleman-svg_hearts_you-config-style/config.rb +6 -0
  18. data/fixtures/middleman-svg_hearts_you-config-style/source/circle.svg +7 -0
  19. data/fixtures/middleman-svg_hearts_you-config-style/source/index.html.erb +2 -0
  20. data/lib/svg_hearts_you.rb +11 -0
  21. data/lib/svg_hearts_you/configuration.rb +23 -0
  22. data/lib/svg_hearts_you/helpers.rb +165 -0
  23. data/lib/svg_hearts_you/middleman_extension.rb +31 -0
  24. data/lib/svg_hearts_you/module.rb +19 -0
  25. data/lib/svg_hearts_you/railtie.rb +9 -0
  26. data/lib/svg_hearts_you/version.rb +3 -0
  27. data/spec/module/configuration_spec.rb +18 -0
  28. data/spec/module/svg_hearts_you_spec.rb +192 -0
  29. data/spec/module/svgs/circle.svg +7 -0
  30. data/spec/module/svgs/logos/back-icon.svg +12 -0
  31. data/spec/module/svgs/logos/logout-icon.svg +15 -0
  32. data/spec/module/svgs/logos/plus-icon.svg +12 -0
  33. data/spec/module/svgs/logos/search-icon.svg +12 -0
  34. data/spec/module/svgs/logos/x-icon.svg +12 -0
  35. data/spec/module/svgs/sapphire.svg +15 -0
  36. data/spec/module/svgs/shapes/polygon.svg +10 -0
  37. data/spec/module/svgs/shapes/star.svg +10 -0
  38. data/spec/module/svgs/shapes/triangle.svg +10 -0
  39. data/spec/rails/dummy/README.rdoc +28 -0
  40. data/spec/rails/dummy/Rakefile +6 -0
  41. data/spec/rails/dummy/app/assets/images/.keep +0 -0
  42. data/spec/rails/dummy/app/assets/images/circle.svg +7 -0
  43. data/spec/rails/dummy/app/assets/images/circle_and_gems.svg +34 -0
  44. data/spec/rails/dummy/app/assets/images/logos/back-icon.svg +12 -0
  45. data/spec/rails/dummy/app/assets/images/logos/logout-icon.svg +15 -0
  46. data/spec/rails/dummy/app/assets/images/logos/plus-icon.svg +12 -0
  47. data/spec/rails/dummy/app/assets/images/logos/search-icon.svg +12 -0
  48. data/spec/rails/dummy/app/assets/images/logos/x-icon.svg +12 -0
  49. data/spec/rails/dummy/app/assets/images/shapes/polygon.svg +10 -0
  50. data/spec/rails/dummy/app/assets/images/shapes/star.svg +10 -0
  51. data/spec/rails/dummy/app/assets/images/shapes/triangle.svg +10 -0
  52. data/spec/rails/dummy/app/assets/javascripts/application.js +13 -0
  53. data/spec/rails/dummy/app/assets/stylesheets/application.css +15 -0
  54. data/spec/rails/dummy/app/controllers/application_controller.rb +5 -0
  55. data/spec/rails/dummy/app/controllers/concerns/.keep +0 -0
  56. data/spec/rails/dummy/app/controllers/pages_controller.rb +7 -0
  57. data/spec/rails/dummy/app/helpers/application_helper.rb +2 -0
  58. data/spec/rails/dummy/app/mailers/.keep +0 -0
  59. data/spec/rails/dummy/app/models/.keep +0 -0
  60. data/spec/rails/dummy/app/models/concerns/.keep +0 -0
  61. data/spec/rails/dummy/app/views/layouts/application.html.erb +13 -0
  62. data/spec/rails/dummy/app/views/pages/basic.html.erb +13 -0
  63. data/spec/rails/dummy/app/views/pages/folder.html.erb +8 -0
  64. data/spec/rails/dummy/bin/bundle +3 -0
  65. data/spec/rails/dummy/bin/rails +4 -0
  66. data/spec/rails/dummy/bin/rake +4 -0
  67. data/spec/rails/dummy/config.ru +4 -0
  68. data/spec/rails/dummy/config/application.rb +27 -0
  69. data/spec/rails/dummy/config/boot.rb +5 -0
  70. data/spec/rails/dummy/config/database.yml +25 -0
  71. data/spec/rails/dummy/config/environment.rb +5 -0
  72. data/spec/rails/dummy/config/environments/development.rb +37 -0
  73. data/spec/rails/dummy/config/environments/production.rb +82 -0
  74. data/spec/rails/dummy/config/environments/test.rb +39 -0
  75. data/spec/rails/dummy/config/initializers/assets.rb +8 -0
  76. data/spec/rails/dummy/config/initializers/backtrace_silencers.rb +7 -0
  77. data/spec/rails/dummy/config/initializers/cookies_serializer.rb +3 -0
  78. data/spec/rails/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  79. data/spec/rails/dummy/config/initializers/inflections.rb +16 -0
  80. data/spec/rails/dummy/config/initializers/mime_types.rb +4 -0
  81. data/spec/rails/dummy/config/initializers/session_store.rb +3 -0
  82. data/spec/rails/dummy/config/initializers/wrap_parameters.rb +14 -0
  83. data/spec/rails/dummy/config/locales/en.yml +23 -0
  84. data/spec/rails/dummy/config/routes.rb +60 -0
  85. data/spec/rails/dummy/config/secrets.yml +22 -0
  86. data/spec/rails/dummy/db/development.sqlite3 +0 -0
  87. data/spec/rails/dummy/db/schema.rb +16 -0
  88. data/spec/rails/dummy/db/test.sqlite3 +0 -0
  89. data/spec/rails/dummy/lib/assets/.keep +0 -0
  90. data/spec/rails/dummy/log/.keep +0 -0
  91. data/spec/rails/dummy/public/404.html +67 -0
  92. data/spec/rails/dummy/public/422.html +67 -0
  93. data/spec/rails/dummy/public/500.html +66 -0
  94. data/spec/rails/dummy/public/favicon.ico +0 -0
  95. data/spec/rails/features/rails_svg_spec.rb +56 -0
  96. data/spec/spec_helper.rb +23 -0
  97. data/svg_hearts_you.gemspec +46 -0
  98. metadata +463 -0
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="100" height="100" viewBox="0, 0, 100, 100">
4
+ <g id="Layer_1">
5
+ <path d="M50,100 C22.386,100 0,77.614 0,50 C0,22.386 22.386,0 50,-0 C77.614,-0 100,22.386 100,50 C100,77.614 77.614,100 50,100 z" fill="#4B5A65"/>
6
+ </g>
7
+ </svg>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="9px" height="14px" viewBox="0 0 9 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.2 (9964) - http://www.bohemiancoding.com/sketch -->
4
+ <title>back</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-195.000000, -814.000000)" fill="#4A4A4A">
9
+ <path d="M197.569641,816.57538 C197.243715,816.803518 197.030688,817.180868 197.030688,817.60701 L197.030688,824.575686 C197.030688,825.271582 197.59225,825.835717 198.295853,825.835717 C198.994584,825.835717 199.561018,825.27057 199.561018,824.575686 L199.561018,818.561018 L205.575686,818.561018 C206.271582,818.561018 206.835717,817.999456 206.835717,817.295853 C206.835717,816.597122 206.27057,816.030688 205.575686,816.030688 L198.60701,816.030688 C198.176821,816.030688 197.796984,816.245288 197.569641,816.57538 Z" id="back" sketch:type="MSShapeGroup" transform="translate(201.933203, 820.933203) rotate(-45.000000) translate(-201.933203, -820.933203) "></path>
10
+ </g>
11
+ </g>
12
+ </svg>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="15px" height="17px" viewBox="0 0 15 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
4
+ <title>logout</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-162.000000, -864.000000)" fill="#4A4A4A">
9
+ <g id="logout" sketch:type="MSLayerGroup" transform="translate(162.000000, 864.000000)">
10
+ <path d="M10.8461538,8.06410256 L7.15384615,8.06410256 L7.15384615,5.50102564 L10.8461538,5.50102564 L10.8461538,4.21948718 L15,6.7825641 L10.8461538,9.34564103 L10.8461538,8.06410256 L10.8461538,8.06410256 Z" id="Rectangle-88" sketch:type="MSShapeGroup"></path>
11
+ <path d="M5.38723875,13.6 L7.50279461,13.6 C8.68471851,13.6 9.64285714,12.5777896 9.64285714,11.3236658 L9.64285714,9.63333333 L9.64285714,9.63333333 L8.57142857,9.63333333 L8.57142857,11.3236658 C8.57142857,11.9545645 8.09042989,12.4666667 7.50279461,12.4666667 L5.38723875,12.4666667 L5.38723875,7.54669985 C5.38723875,6.44763363 4.85099431,5.10514152 4.19163586,4.54995546 L1.19560288,2.02726729 C1.16768477,2.00375998 1.13999015,1.98203833 1.11255004,1.96207625 C1.24077169,1.48380722 1.65392699,1.13333333 2.14006254,1.13333333 L7.50279461,1.13333333 C8.09066123,1.13333333 8.57142857,1.64443233 8.57142857,2.27633423 L8.57142857,3.96666667 L9.64285714,3.96666667 L9.64285714,2.27633423 C9.64285714,1.01914955 8.68300949,0 7.50279461,0 L2.14006254,0 C0.958138634,0 0,1.02221041 0,2.27633423 L0,11.3236658 C0,11.7447615 0.107687635,12.1391515 0.295273965,12.4774823 C0.51458906,13.0796262 0.836875324,13.614718 1.19560288,13.91677 L4.19163586,16.4394581 C4.8519491,16.9954481 5.38723875,16.552522 5.38723875,15.4561317 L5.38723875,13.6 L5.38723875,13.6 Z" id="Rectangle-87" sketch:type="MSShapeGroup"></path>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </svg>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
4
+ <title>plus-icon</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-162.000000, -885.000000)" fill="#4A4A4A">
9
+ <path d="M169.5,895 L163.258557,895 C162.562436,895 162,894.440356 162,893.75 C162,893.054831 162.563475,892.5 163.258557,892.5 L169.5,892.5 L169.5,886.258557 C169.5,885.562436 170.059644,885 170.75,885 C171.445169,885 172,885.563475 172,886.258557 L172,892.5 L178.241443,892.5 C178.937564,892.5 179.5,893.059644 179.5,893.75 C179.5,894.445169 178.936525,895 178.241443,895 L172,895 L172,901.241443 C172,901.937564 171.440356,902.5 170.75,902.5 C170.054831,902.5 169.5,901.936525 169.5,901.241443 L169.5,895 L169.5,895 Z" id="plus-icon" sketch:type="MSShapeGroup"></path>
10
+ </g>
11
+ </g>
12
+ </svg>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="17px" height="17px" viewBox="0 0 17 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
4
+ <title>search-icon</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-189.000000, -885.000000)" fill="#4A4A4A">
9
+ <path d="M195.8,898.6 C192.044464,898.6 189,895.555536 189,891.8 C189,888.044464 192.044464,885 195.8,885 C199.555536,885 202.6,888.044464 202.6,891.8 C202.6,893.268608 202.134437,894.628478 201.342848,895.740072 L205.42916,899.826385 C205.877726,900.274951 205.875928,900.990739 205.433333,901.433333 C204.987653,901.879013 204.271284,901.874059 203.826385,901.42916 L199.740072,897.342848 C198.628478,898.134437 197.268608,898.6 195.8,898.6 Z M195.8,896.333333 C198.303691,896.333333 200.333333,894.303691 200.333333,891.8 C200.333333,889.296309 198.303691,887.266667 195.8,887.266667 C193.296309,887.266667 191.266667,889.296309 191.266667,891.8 C191.266667,894.303691 193.296309,896.333333 195.8,896.333333 L195.8,896.333333 Z" id="search-icon" sketch:type="MSShapeGroup"></path>
10
+ </g>
11
+ </g>
12
+ </svg>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
4
+ <title>x-icon</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-140.000000, -887.000000)" fill="#4A4A4A">
9
+ <path d="M147,895.320586 L142.586633,899.733953 C142.094401,900.226185 141.300971,900.228159 140.812816,899.740003 C140.321257,899.248445 140.327369,898.457683 140.818866,897.966186 L145.232233,893.552819 L140.818866,889.139452 C140.326634,888.64722 140.32466,887.85379 140.812816,887.365635 C141.304374,886.874076 142.095136,886.880188 142.586633,887.371685 L147,891.785052 L151.413367,887.371685 C151.905599,886.879453 152.699029,886.877479 153.187184,887.365635 C153.678743,887.857193 153.672631,888.647955 153.181134,889.139452 L148.767767,893.552819 L153.181134,897.966186 C153.673366,898.458418 153.67534,899.251848 153.187184,899.740003 C152.695626,900.231562 151.904864,900.22545 151.413367,899.733953 L147,895.320586 L147,895.320586 Z" id="x-icon" sketch:type="MSShapeGroup"></path>
10
+ </g>
11
+ </g>
12
+ </svg>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="64" height="52" viewBox="0, 0, 64, 52">
4
+ <g id="sapphire" transform="translate(-0, -0)">
5
+ <g>
6
+ <path d="M32,52 L64,24 L48,0 L16,0 L0,24 z" fill="#5855A3"/>
7
+ <path d="M32,52 L48,24 L16,24 L32,52 z" fill="#7676BA"/>
8
+ <path d="M32,0 L16,24 L48,24 L32,0 z" fill="#B0B3DE"/>
9
+ <path d="M16,24 L16,0 L32,0 L16,24 z" fill="#919CD5"/>
10
+ <path d="M32,0 L48,24 L48,0 L32,0 z" fill="#919CD5"/>
11
+ <path d="M16,0 L16,24 L0,24 L16,0 z" fill="#7071C1"/>
12
+ <path d="M48,24 L64,24 L48,0 L48,24 z" fill="#7071C1"/>
13
+ </g>
14
+ </g>
15
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="49px" height="46px" viewBox="0 0 49 46" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch -->
4
+ <title>Polygon 1</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <polygon id="Polygon-1" stroke="#979797" fill="#D8D8D8" sketch:type="MSShapeGroup" points="24.5 1 47.8008846 17.9290836 38.9007387 45.3209164 10.0992613 45.3209164 1.19911535 17.9290836 "></polygon>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="47px" height="45px" viewBox="0 0 47 45" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch -->
4
+ <title>Star 1</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <polygon id="Star-1" stroke="#979797" fill="#D8D8D8" sketch:type="MSShapeGroup" points="23.5 36.75 9.09926132 44.3209164 11.8495577 28.2854582 0.199115351 16.9290836 16.2996307 14.5895418 23.5 0 30.7003693 14.5895418 46.8008846 16.9290836 35.1504423 28.2854582 37.9007387 44.3209164 "></polygon>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="47px" height="46px" viewBox="0 0 47 46" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch -->
4
+ <title>Triangle 1</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <polygon id="Triangle-1" stroke="#979797" fill="#D8D8D8" sketch:type="MSShapeGroup" points="23.5 0 46 45 1 45 "></polygon>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="100" height="100" viewBox="0, 0, 100, 100">
4
+ <g id="Layer_1">
5
+ <path d="M50,100 C22.386,100 0,77.614 0,50 C0,22.386 22.386,0 50,-0 C77.614,-0 100,22.386 100,50 C100,77.614 77.614,100 50,100 z" fill="#4B5A65"/>
6
+ </g>
7
+ </svg>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="100" height="100" viewBox="0, 0, 100, 100">
4
+ <g id="Layer_1">
5
+ <path d="M50,100 C22.386,100 0,77.614 0,50 C0,22.386 22.386,0 50,-0 C77.614,-0 100,22.386 100,50 C100,77.614 77.614,100 50,100 z" fill="#4B5A65"/>
6
+ <g id="emerald">
7
+ <path d="M50,88 L66,74 L58,62 L42,62 L34,74 z" fill="#55A359"/>
8
+ <path d="M50,88 L58,74 L42,74 L50,88 z" fill="#76BA76"/>
9
+ <path d="M50,62 L42,74 L58,74 L50,62 z" fill="#B2DEB0"/>
10
+ <path d="M42,74 L42,62 L50,62 L42,74 z" fill="#91D593"/>
11
+ <path d="M50,62 L58,74 L58,62 L50,62 z" fill="#91D593"/>
12
+ <path d="M42,62 L42,74 L34,74 L42,62 z" fill="#71C170"/>
13
+ <path d="M58,74 L66,74 L58,62 L58,74 z" fill="#71C170"/>
14
+ </g>
15
+ <g id="ruby">
16
+ <path d="M50,62 L66,48 L58,36 L42,36 L34,48 z" fill="#A35556"/>
17
+ <path d="M50,62 L58,48 L42,48 L50,62 z" fill="#BB7273"/>
18
+ <path d="M50,36 L42,48 L58,48 L50,36 z" fill="#E2AFAF"/>
19
+ <path d="M42,48 L42,36 L50,36 L42,48 z" fill="#D59191"/>
20
+ <path d="M50,36 L58,48 L58,36 L50,36 z" fill="#D59191"/>
21
+ <path d="M42,36 L42,48 L34,48 L42,36 z" fill="#C1645F"/>
22
+ <path d="M58,48 L66,48 L58,36 L58,48 z" fill="#C1645F"/>
23
+ </g>
24
+ <g id="sapphire">
25
+ <path d="M50,36 L66,22 L58,10 L42,10 L34,22 z" fill="#5855A3"/>
26
+ <path d="M50,36 L58,22 L42,22 L50,36 z" fill="#7676BA"/>
27
+ <path d="M50,10 L42,22 L58,22 L50,10 z" fill="#B0B3DE"/>
28
+ <path d="M42,22 L42,10 L50,10 L42,22 z" fill="#919CD5"/>
29
+ <path d="M50,10 L58,22 L58,10 L50,10 z" fill="#919CD5"/>
30
+ <path d="M42,10 L42,22 L34,22 L42,10 z" fill="#7071C1"/>
31
+ <path d="M58,22 L66,22 L58,10 L58,22 z" fill="#7071C1"/>
32
+ </g>
33
+ </g>
34
+ </svg>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="9px" height="14px" viewBox="0 0 9 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.2 (9964) - http://www.bohemiancoding.com/sketch -->
4
+ <title>back</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-195.000000, -814.000000)" fill="#4A4A4A">
9
+ <path d="M197.569641,816.57538 C197.243715,816.803518 197.030688,817.180868 197.030688,817.60701 L197.030688,824.575686 C197.030688,825.271582 197.59225,825.835717 198.295853,825.835717 C198.994584,825.835717 199.561018,825.27057 199.561018,824.575686 L199.561018,818.561018 L205.575686,818.561018 C206.271582,818.561018 206.835717,817.999456 206.835717,817.295853 C206.835717,816.597122 206.27057,816.030688 205.575686,816.030688 L198.60701,816.030688 C198.176821,816.030688 197.796984,816.245288 197.569641,816.57538 Z" id="back" sketch:type="MSShapeGroup" transform="translate(201.933203, 820.933203) rotate(-45.000000) translate(-201.933203, -820.933203) "></path>
10
+ </g>
11
+ </g>
12
+ </svg>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="15px" height="17px" viewBox="0 0 15 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
4
+ <title>logout</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-162.000000, -864.000000)" fill="#4A4A4A">
9
+ <g id="logout" sketch:type="MSLayerGroup" transform="translate(162.000000, 864.000000)">
10
+ <path d="M10.8461538,8.06410256 L7.15384615,8.06410256 L7.15384615,5.50102564 L10.8461538,5.50102564 L10.8461538,4.21948718 L15,6.7825641 L10.8461538,9.34564103 L10.8461538,8.06410256 L10.8461538,8.06410256 Z" id="Rectangle-88" sketch:type="MSShapeGroup"></path>
11
+ <path d="M5.38723875,13.6 L7.50279461,13.6 C8.68471851,13.6 9.64285714,12.5777896 9.64285714,11.3236658 L9.64285714,9.63333333 L9.64285714,9.63333333 L8.57142857,9.63333333 L8.57142857,11.3236658 C8.57142857,11.9545645 8.09042989,12.4666667 7.50279461,12.4666667 L5.38723875,12.4666667 L5.38723875,7.54669985 C5.38723875,6.44763363 4.85099431,5.10514152 4.19163586,4.54995546 L1.19560288,2.02726729 C1.16768477,2.00375998 1.13999015,1.98203833 1.11255004,1.96207625 C1.24077169,1.48380722 1.65392699,1.13333333 2.14006254,1.13333333 L7.50279461,1.13333333 C8.09066123,1.13333333 8.57142857,1.64443233 8.57142857,2.27633423 L8.57142857,3.96666667 L9.64285714,3.96666667 L9.64285714,2.27633423 C9.64285714,1.01914955 8.68300949,0 7.50279461,0 L2.14006254,0 C0.958138634,0 0,1.02221041 0,2.27633423 L0,11.3236658 C0,11.7447615 0.107687635,12.1391515 0.295273965,12.4774823 C0.51458906,13.0796262 0.836875324,13.614718 1.19560288,13.91677 L4.19163586,16.4394581 C4.8519491,16.9954481 5.38723875,16.552522 5.38723875,15.4561317 L5.38723875,13.6 L5.38723875,13.6 Z" id="Rectangle-87" sketch:type="MSShapeGroup"></path>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </svg>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
4
+ <title>plus-icon</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-162.000000, -885.000000)" fill="#4A4A4A">
9
+ <path d="M169.5,895 L163.258557,895 C162.562436,895 162,894.440356 162,893.75 C162,893.054831 162.563475,892.5 163.258557,892.5 L169.5,892.5 L169.5,886.258557 C169.5,885.562436 170.059644,885 170.75,885 C171.445169,885 172,885.563475 172,886.258557 L172,892.5 L178.241443,892.5 C178.937564,892.5 179.5,893.059644 179.5,893.75 C179.5,894.445169 178.936525,895 178.241443,895 L172,895 L172,901.241443 C172,901.937564 171.440356,902.5 170.75,902.5 C170.054831,902.5 169.5,901.936525 169.5,901.241443 L169.5,895 L169.5,895 Z" id="plus-icon" sketch:type="MSShapeGroup"></path>
10
+ </g>
11
+ </g>
12
+ </svg>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="17px" height="17px" viewBox="0 0 17 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
4
+ <title>search-icon</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-189.000000, -885.000000)" fill="#4A4A4A">
9
+ <path d="M195.8,898.6 C192.044464,898.6 189,895.555536 189,891.8 C189,888.044464 192.044464,885 195.8,885 C199.555536,885 202.6,888.044464 202.6,891.8 C202.6,893.268608 202.134437,894.628478 201.342848,895.740072 L205.42916,899.826385 C205.877726,900.274951 205.875928,900.990739 205.433333,901.433333 C204.987653,901.879013 204.271284,901.874059 203.826385,901.42916 L199.740072,897.342848 C198.628478,898.134437 197.268608,898.6 195.8,898.6 Z M195.8,896.333333 C198.303691,896.333333 200.333333,894.303691 200.333333,891.8 C200.333333,889.296309 198.303691,887.266667 195.8,887.266667 C193.296309,887.266667 191.266667,889.296309 191.266667,891.8 C191.266667,894.303691 193.296309,896.333333 195.8,896.333333 L195.8,896.333333 Z" id="search-icon" sketch:type="MSShapeGroup"></path>
10
+ </g>
11
+ </g>
12
+ </svg>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
4
+ <title>x-icon</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="Notes" sketch:type="MSArtboardGroup" transform="translate(-140.000000, -887.000000)" fill="#4A4A4A">
9
+ <path d="M147,895.320586 L142.586633,899.733953 C142.094401,900.226185 141.300971,900.228159 140.812816,899.740003 C140.321257,899.248445 140.327369,898.457683 140.818866,897.966186 L145.232233,893.552819 L140.818866,889.139452 C140.326634,888.64722 140.32466,887.85379 140.812816,887.365635 C141.304374,886.874076 142.095136,886.880188 142.586633,887.371685 L147,891.785052 L151.413367,887.371685 C151.905599,886.879453 152.699029,886.877479 153.187184,887.365635 C153.678743,887.857193 153.672631,888.647955 153.181134,889.139452 L148.767767,893.552819 L153.181134,897.966186 C153.673366,898.458418 153.67534,899.251848 153.187184,899.740003 C152.695626,900.231562 151.904864,900.22545 151.413367,899.733953 L147,895.320586 L147,895.320586 Z" id="x-icon" sketch:type="MSShapeGroup"></path>
10
+ </g>
11
+ </g>
12
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="49px" height="46px" viewBox="0 0 49 46" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch -->
4
+ <title>Polygon 1</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <polygon id="Polygon-1" stroke="#979797" fill="#D8D8D8" sketch:type="MSShapeGroup" points="24.5 1 47.8008846 17.9290836 38.9007387 45.3209164 10.0992613 45.3209164 1.19911535 17.9290836 "></polygon>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="47px" height="45px" viewBox="0 0 47 45" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch -->
4
+ <title>Star 1</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <polygon id="Star-1" stroke="#979797" fill="#D8D8D8" sketch:type="MSShapeGroup" points="23.5 36.75 9.09926132 44.3209164 11.8495577 28.2854582 0.199115351 16.9290836 16.2996307 14.5895418 23.5 0 30.7003693 14.5895418 46.8008846 16.9290836 35.1504423 28.2854582 37.9007387 44.3209164 "></polygon>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="47px" height="46px" viewBox="0 0 47 46" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch -->
4
+ <title>Triangle 1</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <polygon id="Triangle-1" stroke="#979797" fill="#D8D8D8" sketch:type="MSShapeGroup" points="23.5 0 46 45 1 45 "></polygon>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -0,0 +1,7 @@
1
+ class PagesController < ApplicationController
2
+ def basic
3
+ end
4
+
5
+ def folder
6
+ end
7
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
File without changes
File without changes
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+ <%= yield %>
11
+
12
+ </body>
13
+ </html>
@@ -0,0 +1,13 @@
1
+ <h1>Test of SvgHeartsYou Helper Methods</h1>
2
+
3
+ <h2>#svg_inline</h2>
4
+ <%= svg_inline 'circle.svg' %>
5
+
6
+ <h2>#svg_symbol</h2>
7
+ <%= svg_symbol 'circle.svg' %>
8
+
9
+ <h2>#svg_use 'circle'</h2>
10
+ <%= svg_use 'circle' %>
11
+
12
+ <h2>#svg_use 'circle.svg'</h2>
13
+ <%= svg_use 'circle.svg' %>
@@ -0,0 +1,8 @@
1
+ <%= svg_symbol ['shapes', 'logos'], folder: true, each: {viewbox: '0, 0, 100, 100'} %>
2
+
3
+ <%= svg_symbol 'shapes', folder: true do |attributes| %>
4
+ <% attributes[:id] = attributes[:id] + '-logo' %>
5
+ <% attributes[:class] = 'shape' %>
6
+ <% end %>
7
+
8
+ <%= svg_use 'logout-icon' %>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application