shipyard-framework 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/assets/icons/logos/bitbucket.svg +3 -0
  4. data/assets/icons/logos/campfire-color.svg +10 -0
  5. data/assets/icons/logos/codeship.svg +6 -0
  6. data/assets/icons/logos/email-color.svg +7 -0
  7. data/assets/icons/logos/flowdock-color.svg +7 -0
  8. data/assets/icons/logos/github.svg +3 -0
  9. data/assets/icons/logos/gitlab.svg +3 -0
  10. data/assets/icons/logos/grove-color.svg +6 -0
  11. data/assets/icons/logos/hipchat-color.svg +3 -0
  12. data/assets/icons/logos/hipchat.svg +3 -0
  13. data/assets/icons/logos/invision.svg +3 -0
  14. data/assets/icons/logos/slack-color.svg +10 -0
  15. data/assets/icons/logos/slack.svg +3 -0
  16. data/assets/icons/logos/webhook-color.svg +4 -0
  17. data/assets/icons/logos/webhook.svg +3 -0
  18. data/assets/icons/tag.svg +3 -0
  19. data/assets/icons/x.svg +3 -3
  20. data/assets/stylesheets/shipyard/_components.sass +2 -0
  21. data/assets/stylesheets/shipyard/components/_buttons.sass +34 -11
  22. data/assets/stylesheets/shipyard/components/_empty.sass +5 -1
  23. data/assets/stylesheets/shipyard/components/_icons.sass +28 -7
  24. data/assets/stylesheets/shipyard/components/_modals.sass +1 -1
  25. data/assets/stylesheets/shipyard/utilities/_reset.sass +3 -0
  26. data/assets/stylesheets/shipyard/variables/_misc.scss +3 -0
  27. data/lib/{shipyard → shipyard-framework}/icons.rb +20 -8
  28. data/lib/{shipyard → shipyard-framework}/rails/alert_helper.rb +0 -0
  29. data/lib/{shipyard → shipyard-framework}/rails/button_helper.rb +0 -0
  30. data/lib/{shipyard → shipyard-framework}/rails/engine.rb +2 -2
  31. data/lib/{shipyard → shipyard-framework}/rails/icon_helper.rb +2 -1
  32. data/lib/shipyard-framework/rails/layout_helpers.rb +33 -0
  33. data/lib/{shipyard → shipyard-framework}/rails/railtie.rb +4 -4
  34. data/lib/{shipyard → shipyard-framework}/version.rb +1 -1
  35. data/lib/{shipyard.rb → shipyard-framework.rb} +4 -4
  36. data/shipyard.gemspec +8 -12
  37. data/spec/shipyard_spec.rb +11 -0
  38. data/spec/spec_helper.rb +2 -0
  39. metadata +39 -89
  40. data/lib/shipyard/rails/layout_helpers.rb +0 -34
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4824254449409a00d912f8309c3cc40e561603a
4
- data.tar.gz: 9573db7560645e025a48db179220b1754154f06f
3
+ metadata.gz: 45f6d633b4e9001ec75ee08e96b1bca97511658c
4
+ data.tar.gz: 2f983d2161dd39bedeec16d6ce9bde5a9501ebac
5
5
  SHA512:
6
- metadata.gz: dfd2812b24456c670699d17550a71813ed798d4ff476d035e221c9ad0cd360e2deb69ca81510e8651cdd822f71e22e6ff747c7e952a317dcbb655f6b322d928a
7
- data.tar.gz: 8b1c6279d9995f66084df92c511e0f76739beef170d19bf7dbde18cc2d8511cdd46d20a10025405f6a8454b9295ac730767fba76f44d53eb37c42f5b81b2264d
6
+ metadata.gz: d37c0b970ac8d04ade4f96b8f8152b27191f08593b771216b267df468be23468e11a24052d592e51d7d522adfd03ad853e1292d284c49bd21c0d81c7e9b35b01
7
+ data.tar.gz: b4af5e046fa932dcdc648e23a7340ad918a13723dbf801bdc43be05f54c1e88dc08777725df6a0192cebef76562a607c90f13cc8cf29057219b1785a726f7db0
data/README.md CHANGED
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'shipyard'
12
+ gem 'shipyard-framework'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,7 +18,7 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install shipyard
21
+ $ gem install shipyard-framework
22
22
 
23
23
  The add this line to your application's CSS file(s):
24
24
 
@@ -0,0 +1,3 @@
1
+ <svg icon="icon-bitbucket" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path d="M8,0H8C4.18,0,1.07,1,1.07,2.3c0,.34.83,5.15,1.16,7.05.15.86,2.36,2.11,5.77,2.11H8c3.41,0,5.62-1.25,5.77-2.11.33-1.91,1.16-6.72,1.16-7.05C14.93,1,11.82,0,8,0ZM8,9.92a2.2,2.2,0,1,1,2.2-2.2A2.2,2.2,0,0,1,8,9.92ZM8,3c-2.45,0-4.44-.43-4.44-1s2-.94,4.44-.94,4.44.43,4.44,1S10.45,3,8,3Zm5,8.25a.32.32,0,0,0-.19.07A8.13,8.13,0,0,1,8,12.69a8.13,8.13,0,0,1-4.79-1.35A.32.32,0,0,0,3,11.26a.24.24,0,0,0-.25.27.32.32,0,0,0,0,.06C3,13,3.24,14,3.27,14.17,3.5,15.21,5.54,16,8,16H8c2.46,0,4.5-.79,4.73-1.83,0-.15.23-1.16.49-2.58a.32.32,0,0,0,0-.06A.24.24,0,0,0,13,11.26ZM8,6.61a1.1,1.1,0,1,1-1.1,1.1A1.1,1.1,0,0,1,8,6.61Z"/>
3
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path fill="#99d9e8" d="M8,1.33C3.69,1.33.32,6.81,0,11.44c1.35,2.35,4.61,3.23,8,3.23s6.65-.88,8-3.23C15.68,6.81,12.31,1.33,8,1.33Z"/>
3
+ <path fill="#70bf54" d="M14.75,11.16c0,1.38-3.1,2.68-6.93,2.78C4,13.84.87,12.53.88,11.16S3.87,7,7.82,6.95,14.75,9.81,14.75,11.16Z"/>
4
+ <ellipse fill="#695114" opacity="0.64" cx="7.82" cy="10.81" rx="2.96" ry="1.39"/>
5
+ <path fill="#ff7f00" d="M7.38,4.73c.25,1-.79,1.43-1.34,2.17-.94,1.18-1.59,3.6,0,4.58l.19.1a4.11,4.11,0,0,0,3.2-.14,1.45,1.45,0,0,0,.88-.94c.12-.65-.67-.89-.63-1.54A1.53,1.53,0,0,1,10,8.21c.22-.37.32-1.12-.29-1.18,0,.26-.4,1.05-.78.73-.23-.19,0-.61.08-.83A2.55,2.55,0,0,0,7.23,3.83"/>
6
+ <path fill="#ff0" d="M8.74,9.93a1.48,1.48,0,0,1,0,.53,1.18,1.18,0,0,1-.18.47,1,1,0,0,1-.17.2l-.1.07-.12,0-.22,0H7.66a1.07,1.07,0,0,1-.46-.15,1.67,1.67,0,0,1-.41-.3,1.57,1.57,0,0,1-.27-1.89c.28-.55.84-.95,1.13-1.49a1,1,0,0,0,.11-.31.75.75,0,0,0,0-.39l.12.06a.27.27,0,0,1,.08.1.46.46,0,0,1,0,.26.87.87,0,0,1-.08.27c-.06.11-.07.23-.12.35A1.88,1.88,0,0,1,7.6,8a.92.92,0,0,0-.15.31,2.33,2.33,0,0,0-.07.46,1.2,1.2,0,0,0,.22.57.43.43,0,0,0,.54.23,1.4,1.4,0,0,0,.7-.74A1.17,1.17,0,0,0,8.74,9.93Z"/>
7
+ <path fill="#fff" opacity="0.75" d="M7.61,10.83a.51.51,0,0,1-.46-.35,1.42,1.42,0,0,1-.07-.7c0-.07.06-.14.08-.22s0-.21.08-.27,0,.21,0,.22,0,.1,0,.13.06,0,.09,0,.14.29.2.41c.18.34.46.46.77.15a.93.93,0,0,1-.5.47"/>
8
+ <path fill="#695114" opacity="0.15" d="M14,9.74c-.79-.26-1.3,2-2.64,2.85a15.94,15.94,0,0,1-3.83,1.29,13,13,0,0,0,5.5-1c1.17-.48,2.54-1.54,1-3.11"/>
9
+ <path fill="#695114" opacity="0.15" d="M2,12.42C.68,11.58,3.36,8.8,3.84,8.05A6.34,6.34,0,0,0,1.42,10c-.66,1-.88,1.72.43,2.51"/>
10
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180 30" class="icon-codeship">
2
+ <circle class="icon-codeship-outline" vector-effect="non-scaling-stroke" r="14" cx="15" cy="15" />
3
+ <path class="icon-codeship-waves" d="M12.8,6.65V4.23c0-.35,1.37-.74,2.3-.74s2.35.39,2.35.74V6.64a13.16,13.16,0,0,0-2.32-.25A12.73,12.73,0,0,0,12.8,6.65Zm-5.32,14c1,.11,4.84,1.74,8.54-.38l-.91-.12a13.48,13.48,0,0,1-3.54-2S8,14.45,3.74,18.3a11.87,11.87,0,0,0,.51,1.44C5.24,19.33,6.4,20.55,7.47,20.66Z"/>
4
+ <path class="icon-codeship-ship" d="M4.25,19.75l0,0h0Zm15.83-8.58V8.65c0-.35-3-1.15-5-1.15s-4.86.8-4.86,1.15v2.49a17.94,17.94,0,0,1,4.82-2.37A17.54,17.54,0,0,1,20.08,11.17Zm1.21,5c-.74.14-1.61,1.21-2.74,2.29a11.58,11.58,0,0,1,2.71-4.91c-.39-.36-.79-.68-1.19-1h0A16,16,0,0,0,15.14,10h0a12.33,12.33,0,0,0-2.12.85A16.51,16.51,0,0,0,9,13.5H9A10.81,10.81,0,0,1,11.54,18l0,.1.37.33a7.38,7.38,0,0,0,3.14,1.69v0l-.47-3.79-.12-2.55.64-2.92.59,2.92-.14,2.56-.42,3.8v0l.86.1a6.86,6.86,0,0,1-5.82-.09,8.5,8.5,0,0,0-2.81-1,6.57,6.57,0,0,0-3.15.51h0l0,0a12,12,0,0,0,11.22,7.1,12,12,0,0,0,10.68-7.54q.14-.36.26-.72C24.81,17.43,22.27,15.94,21.29,16.13Zm0,0Z"/>
5
+ <path class="icon-codeship-text" d="M49.21,22.21a7.21,7.21,0,0,1,0-14.42,6.9,6.9,0,0,1,5.11,1.82,1,1,0,0,1,0,1.44,1,1,0,0,1-1.48,0,4.83,4.83,0,0,0-3.63-1.24,5.15,5.15,0,0,0,0,10.3A4.9,4.9,0,0,0,52.88,19a1,1,0,0,1,1.44,1.44A6.91,6.91,0,0,1,49.21,22.21ZM66.81,7.79A7.21,7.21,0,1,1,59.59,15,7.19,7.19,0,0,1,66.81,7.79Zm0,12.36A5.15,5.15,0,1,0,61.65,15,5.15,5.15,0,0,0,66.81,20.15ZM86.17,8a7,7,0,1,1,0,14H81.64a1,1,0,0,1-1-1V9a1,1,0,0,1,1-1Zm-3.5,2V20h3.5a5,5,0,1,0,0-10.05ZM110.9,20a1,1,0,1,1,0,2H101a1,1,0,0,1-1-1V9a1,1,0,0,1,1-1h9.89a1,1,0,1,1,0,2H102v3.87h6.8a1,1,0,1,1,0,2H102V20Zm36.55-4.41H138v5.44a1,1,0,1,1-2.06,0V8.94a1,1,0,0,1,2.06,0v4.7h9.48V8.94a1,1,0,0,1,2.06,0V21.06a1,1,0,1,1-2.06,0Zm12.36,5.44a1,1,0,1,1-2.06,0V8.94a1,1,0,0,1,2.06,0ZM175.51,8a4.49,4.49,0,0,1,0,9h-5.4V21.1a1,1,0,0,1-1,1,1,1,0,0,1-1-1V9a1,1,0,0,1,1-1Zm-5.4,2v5h5.4a2.51,2.51,0,0,0,0-5Zm-46.75,12.6-.51,0a6,6,0,0,1-3.69-1.46.83.83,0,0,1-.24-.66.78.78,0,0,1,.37-.55,1.24,1.24,0,0,1,.67-.19,1.09,1.09,0,0,1,.8.31,3.81,3.81,0,0,0,2.25.85h.34c1.78,0,3-.88,3.13-2.23s-1.42-2.19-3.22-3c-2.06-.92-4.4-2-4.17-4.51.19-2.12,2-3.38,4.78-3.38l.57,0a5.52,5.52,0,0,1,3.43,1.35.74.74,0,0,1-.08,1.2,1.38,1.38,0,0,1-.72.2,1.06,1.06,0,0,1-.79-.31,3.39,3.39,0,0,0-2-.77H124c-1.64,0-2.66.64-2.74,1.7-.15,1.59,1.42,2.29,3.24,3.11,2,.92,4.37,2,4.13,4.53C128.42,21,126.31,22.57,123.36,22.57Z"/>
6
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path fill="#e06158" d="M13,10.2l0,0c-.48.18-1.06-.06-1.63-.62V5.37a1,1,0,0,0-.65-.94c-2-.75-3.84-.69-5.09.18A4,4,0,0,0,4,8a3.89,3.89,0,0,0,2.17,3.66A3.82,3.82,0,0,0,7.8,12a4.79,4.79,0,0,0,2.43-.71,3.62,3.62,0,0,0,2.77.94ZM9.33,9.52A2.38,2.38,0,0,1,7,9.85,1.92,1.92,0,0,1,6,8a2.05,2.05,0,0,1,.75-1.75A2.28,2.28,0,0,1,8,5.91a5,5,0,0,1,1.29.19Z"/>
3
+ <path fill="#ff9f49" d="M12.22,3.76m1.44-1.41-1.43,1.4A6,6,0,0,1,14,8a2.3,2.3,0,0,1-1,2.2v2.05a2.93,2.93,0,0,0,.65-.16C15.1,11.56,16,10,16,8A8,8,0,0,0,13.65,2.35Z"/>
4
+ <path fill="#ffca49" d="M3.76,3.76,2.35,2.35a8,8,0,0,1,11.31,0l-1.43,1.4a6,6,0,0,0-8.47,0Z"/>
5
+ <path fill="#3acc7c" d="M2,8A6,6,0,0,1,3.76,3.76L2.35,2.35a8,8,0,0,0,0,11.31l1.41-1.41A6,6,0,0,1,2,8Z"/>
6
+ <path fill="#1ca1e3" d="M2.35,13.65a8,8,0,0,0,9.41,1.41,1,1,0,0,0-.94-1.77,6,6,0,0,1-7.05-1.06Z"/>
7
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path fill="#49495f" d="M9.6,4a1,1,0,0,1,1.05-.87,1.79,1.79,0,0,1,1.15.32.14.14,0,0,0,.19,0l1.16-1.36a.14.14,0,0,0,0-.2A5.43,5.43,0,0,0,10,.46,3.41,3.41,0,0,0,6.6,3.86h0v12a8,8,0,0,0,2.89,0,.14.14,0,0,0,.11-.14v-8a.14.14,0,0,1,.14-.14h2.12A.14.14,0,0,0,12,7.46V5.14A.14.14,0,0,0,11.86,5H9.74a.14.14,0,0,1-.14-.14Z"/>
3
+ <path fill="#1ba3fb" d="M.52,10.84a42.81,42.81,0,0,0,5.88.56v4.44A8,8,0,0,1,.52,10.84Z"/>
4
+ <path fill="#77fcff" d="M.16,9.6A15.71,15.71,0,0,1,6.4,8v3.4a42.81,42.81,0,0,1-5.88-.56A7.94,7.94,0,0,1,.16,9.6Z"/>
5
+ <path fill="#dff974" d="M0,8A8,8,0,0,0,.16,9.6,15.71,15.71,0,0,1,6.4,8V5A28.29,28.29,0,0,1,1.07,4,8,8,0,0,0,0,8Z"/>
6
+ <path fill="#fa4588" d="M6.4,3.84A3.56,3.56,0,0,1,10,.27h.12A8,8,0,0,0,1.07,4,28.27,28.27,0,0,0,6.4,5Z"/>
7
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="icon-github" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path d="M8,0A8.1,8.1,0,0,0,0,8.2,8.19,8.19,0,0,0,5.47,16c.4.08.55-.18.55-.4s0-.71,0-1.4c-2.23.5-2.69-1.1-2.69-1.1a2.16,2.16,0,0,0-.89-1.2c-.73-.51.05-.5.05-.5a1.69,1.69,0,0,1,1.23.85A1.68,1.68,0,0,0,6,12.92a1.77,1.77,0,0,1,.51-1.1c-1.78-.21-3.64-.91-3.64-4.05a3.22,3.22,0,0,1,.82-2.2A3,3,0,0,1,3.8,3.4s.67-.22,2.2.84a7.4,7.4,0,0,1,4,0c1.53-1.06,2.2-.84,2.2-.84a3,3,0,0,1,.08,2.17,3.21,3.21,0,0,1,.82,2.2c0,3.15-1.87,3.84-3.65,4A2,2,0,0,1,10,13.34c0,1.1,0,2,0,2.25s.14.47.55.39A8.19,8.19,0,0,0,16,8.2,8.1,8.1,0,0,0,8,0Z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="icon-gitlab" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path d="M.91,6.28,8,15.47.26,9.76a.58.58,0,0,1-.21-.69L.91,6.28h0L2.67.73a.32.32,0,0,1,.59,0L5,6.28ZM16,9.06l-.91-2.78h0L13.3.73a.32.32,0,0,0-.59,0L10.95,6.28H5.07L8,15.47l2.94-9.19h4.11L8,15.47H8l7.74-5.71A.58.58,0,0,0,16,9.06Z" />
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path fill="#9cbf5f" d="M3.33,9.69A5.34,5.34,0,0,0,8,12.44l-3-6Z"/>
3
+ <polygon fill="#517e4a" points="8 4.62 4.09 12.44 11.91 12.44 8 4.62"/>
4
+ <path fill="#9cbf5f" d="M13.33,7.11A5.32,5.32,0,0,0,11.7,3.27l-4.55,9.1a5.33,5.33,0,0,0,6.19-5.26Z"/>
5
+ <path fill="#000" d="M15.11,7.11a7.11,7.11,0,1,0-8.18,7v1.5a.36.36,0,0,0,.54.31l4.15-2.72h0A7.11,7.11,0,0,0,15.11,7.11ZM8,12.44a5.33,5.33,0,1,1,5.33-5.33A5.34,5.34,0,0,1,8,12.44Z"/>
6
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path fill="#172b4d" d="M12.37,9a.32.32,0,0,0-.32-.32.31.31,0,0,0-.21.08A5.86,5.86,0,0,1,8,10.1H8A6.1,6.1,0,0,1,4.16,8.73a.4.4,0,0,0-.22-.07A.32.32,0,0,0,3.63,9a.75.75,0,0,0,.18.38A5.16,5.16,0,0,0,8,11.32H8a5.16,5.16,0,0,0,4.17-1.93A.87.87,0,0,0,12.37,9Zm2.21,5.56a2.94,2.94,0,0,1-1.35-1.61.3.3,0,0,1,.11-.35A6.52,6.52,0,0,0,16,7.43c0-3.81-3.58-6.9-8-6.9S0,3.62,0,7.43s3.58,6.9,8,6.9a9.26,9.26,0,0,0,1.68-.15.45.45,0,0,1,.33.06,8.6,8.6,0,0,0,4.16,1.24.56.56,0,0,0,.64-.56A.43.43,0,0,0,14.58,14.53Zm-2.14-.67a.15.15,0,0,1,0,.09s0,.08-.1.08a6,6,0,0,1-2.29-1.21.43.43,0,0,0-.39-.06,8,8,0,0,1-1.7.18c-3.68,0-6.66-2.46-6.66-5.5s3-5.5,6.66-5.5,6.66,2.46,6.66,5.5A5.25,5.25,0,0,1,12,11.86a.44.44,0,0,0-.23.35A3.73,3.73,0,0,0,12.44,13.86Z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="icon-hipchat" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path d="M12.37,9a.32.32,0,0,0-.32-.32.31.31,0,0,0-.21.08A5.86,5.86,0,0,1,8,10.1H8A6.1,6.1,0,0,1,4.16,8.73a.4.4,0,0,0-.22-.07A.32.32,0,0,0,3.63,9a.75.75,0,0,0,.18.38A5.16,5.16,0,0,0,8,11.32H8a5.16,5.16,0,0,0,4.17-1.93A.87.87,0,0,0,12.37,9Zm2.21,5.56a2.94,2.94,0,0,1-1.35-1.61.3.3,0,0,1,.11-.35A6.52,6.52,0,0,0,16,7.43c0-3.81-3.58-6.9-8-6.9S0,3.62,0,7.43s3.58,6.9,8,6.9a9.26,9.26,0,0,0,1.68-.15.45.45,0,0,1,.33.06,8.6,8.6,0,0,0,4.16,1.24.56.56,0,0,0,.64-.56A.43.43,0,0,0,14.58,14.53Zm-2.14-.67a.15.15,0,0,1,0,.09s0,.08-.1.08a6,6,0,0,1-2.29-1.21.43.43,0,0,0-.39-.06,8,8,0,0,1-1.7.18c-3.68,0-6.66-2.46-6.66-5.5s3-5.5,6.66-5.5,6.66,2.46,6.66,5.5A5.25,5.25,0,0,1,12,11.86a.44.44,0,0,0-.23.35A3.73,3.73,0,0,0,12.44,13.86Z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="icon-invision" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.55,0H1.45A1.45,1.45,0,0,0,0,1.45v13.1A1.45,1.45,0,0,0,1.45,16h13.1A1.45,1.45,0,0,0,16,14.55V1.45A1.45,1.45,0,0,0,14.55,0ZM5.35,3.15a1,1,0,1,1-1,1A1,1,0,0,1,5.35,3.15Zm6.53,9.21A1.31,1.31,0,0,1,10.42,11a2.55,2.55,0,0,1,.1-.72L11,8.55A1.72,1.72,0,0,0,11.06,8a.8.8,0,0,0-.86-.88c-.68,0-1.12.47-1.35,1.41l-.92,3.67H6.32l.29-1.15a2.29,2.29,0,0,1-1.94,1.26,1.29,1.29,0,0,1-1.44-1.41,3.23,3.23,0,0,1,.09-.71l.73-3H2.92L3.26,6H6L4.92,10.24a2.69,2.69,0,0,0-.1.65c0,.27.13.35.34.4a1.79,1.79,0,0,0,1.7-1.22l.71-2.83H6.42L6.77,6H9.22L8.91,7.41A2.79,2.79,0,0,1,11,5.84,1.67,1.67,0,0,1,12.7,7.72a3.64,3.64,0,0,1-.16,1l-.46,1.65a1.91,1.91,0,0,0-.07.45c0,.29.11.43.33.43s.49-.16.8-1l.63.24C13.4,11.81,12.73,12.35,11.88,12.35Z" />
3
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path fill="#ecb32d" d="M10.37,1a1.43,1.43,0,0,0-2.72.88l3.69,11.34a1.42,1.42,0,0,0,1.73.88,1.4,1.4,0,0,0,1-1.76S10.37,1,10.37,1Z"/>
3
+ <path fill="#63c1a0" d="M4.66,2.84a1.43,1.43,0,0,0-2.72.88L5.63,15.06a1.42,1.42,0,0,0,1.73.88,1.4,1.4,0,0,0,1-1.76S4.66,2.84,4.66,2.84Z"/>
4
+ <path fill="#e01a59" d="M15,10.37a1.43,1.43,0,0,0-.88-2.72L2.79,11.36a1.42,1.42,0,0,0-.88,1.73,1.4,1.4,0,0,0,1.76,1Z"/>
5
+ <path fill="#331433" d="M5.15,13.59l2.72-.88L7,10l-2.72.88Z"/>
6
+ <path fill="#d62027" d="M10.87,11.73l2.72-.88-.88-2.72L10,9Z"/>
7
+ <path fill="#89d3df" d="M13.15,4.67a1.43,1.43,0,0,0-.88-2.72L.94,5.64A1.42,1.42,0,0,0,.06,7.37a1.4,1.4,0,0,0,1.76,1Z"/>
8
+ <path fill="#258b74" d="M3.3,7.87,6,7,5.13,4.27l-2.72.88Z"/>
9
+ <path fill="#819c3c" d="M9,6l2.72-.88-.88-2.72L8.13,3.3Z"/>
10
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="icon-slack" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path d="M6.59,7.34l2.13-.71.69,2.06L7.28,9.4Zm0,0,2.13-.71.69,2.06L7.28,9.4ZM15.33,5.8C13.68.3,11.3-1,5.8.67S-1,4.7.67,10.2s4,6.78,9.53,5.13S17,11.3,15.33,5.8ZM12.55,9.37l-1,.35.36,1.07a.83.83,0,0,1-.52,1,.71.71,0,0,1-.28,0,.85.85,0,0,1-.77-.56l-.36-1.07L7.81,11,8.17,12a.83.83,0,0,1-.52,1,.71.71,0,0,1-.28,0,.85.85,0,0,1-.77-.56l-.36-1.07-1,.35a.71.71,0,0,1-.28,0,.85.85,0,0,1-.77-.56.83.83,0,0,1,.52-1l1-.35L5,7.85,4,8.19a.71.71,0,0,1-.28,0,.85.85,0,0,1-.77-.56.83.83,0,0,1,.52-1l1-.35L4.14,5.2a.83.83,0,1,1,1.57-.52l.36,1.07L8.2,5,7.85,4a.83.83,0,0,1,1.57-.52l.36,1.07,1-.35a.83.83,0,1,1,.52,1.57l-1,.35L11,8.14l1-.35a.83.83,0,0,1,.52,1.57Z"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path fill="#788594" d="M7.37,12.45A3.72,3.72,0,1,1,2.52,8.18.74.74,0,0,1,3,9.59,2.23,2.23,0,1,0,6,11.7a.74.74,0,0,1,.7-.7H11a1.49,1.49,0,1,1,0,1.49ZM12.28,8a3.73,3.73,0,0,0-1.18.19L9.29,5A1.49,1.49,0,1,0,8,5.78H8L10.15,9.5h0a.74.74,0,0,0,1,.27A2.23,2.23,0,1,1,11,13.5a.75.75,0,1,0-.89,1.2A3.72,3.72,0,1,0,12.28,8Z"/>
3
+ <path fill="#f9657a" d="M3.72,10.22A1.49,1.49,0,1,0,5,11L7.15,7.25h0a.74.74,0,0,0-.27-1,2.23,2.23,0,1,1,3.35-1.93v.12a.75.75,0,1,0,1.49.08v-.2A3.72,3.72,0,1,0,5.53,7.08Z"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="icon-webhook" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path d="M7.37,12.45A3.72,3.72,0,1,1,2.52,8.18.74.74,0,1,1,3,9.59a2.23,2.23,0,1,0,3,2.11A.74.74,0,0,1,6.7,11H11a1.49,1.49,0,1,1,0,1.49ZM3.72,10.22A1.49,1.49,0,1,0,5,11L7.15,7.25h0a.74.74,0,0,0-.27-1,2.23,2.23,0,1,1,3.35-1.93s0,.08,0,.12a.74.74,0,1,0,1.49.08c0-.07,0-.13,0-.2A3.72,3.72,0,1,0,5.53,7.08L3.72,10.22ZM12.28,8a3.73,3.73,0,0,0-1.18.19L9.29,5A1.49,1.49,0,1,0,8,5.78H8L10.15,9.5h0a.74.74,0,0,0,1,.27A2.23,2.23,0,1,1,11,13.5a.74.74,0,0,0-.89,1.2A3.72,3.72,0,1,0,12.28,8Z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14">
2
+ <path d="M13.41,5.59l-5-5A2,2,0,0,0,7,0H2A2,2,0,0,0,0,2V7A2,2,0,0,0,.59,8.41l5,5a2,2,0,0,0,2.83,0l5-5A2,2,0,0,0,13.41,5.59ZM4,6A2,2,0,1,1,6,4,2,2,0,0,1,4,6Z"/>
3
+ </svg>
data/assets/icons/x.svg CHANGED
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8">
2
- <line vector-effect="non-scaling-stroke" x2="8" y2="8"/>
3
- <line vector-effect="non-scaling-stroke" y1="8" x2="8"/>
1
+ <svg class="icon-x" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 6">
2
+ <polyline vector-effect="non-scaling-stroke" points="0,0 6,6" />
3
+ <polyline vector-effect="non-scaling-stroke" points="0,6 6,0" />
4
4
  </svg>
@@ -3,3 +3,5 @@
3
3
  @import shipyard/components/alerts
4
4
  @import shipyard/components/boxes
5
5
  @import shipyard/components/forms
6
+ @import shipyard/components/empty
7
+ @import shipyard/components/modals
@@ -5,14 +5,17 @@
5
5
  border: 0
6
6
  cursor: pointer
7
7
  color: #fff
8
- transition: background 300ms ease, color 300ms ease, border-color 300ms ease, opacity 300ms ease
8
+ transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, opacity 300ms ease
9
9
  outline: none
10
10
  border-width: 2px
11
11
  border-style: solid
12
- font: $bold 16px / 1.6 $font-family
12
+ font-weight: $bold
13
+ font-family: $font-family
14
+ text-align: center
15
+ text-decoration: none
13
16
  +btn-size($size)
14
17
  +btn-color($bg, #fff)
15
- +btn-hover(darken($bg, 10%))
18
+ +btn-hover(darken($bg, 10%), #fff)
16
19
 
17
20
  @mixin btn-color($color, $text-color: null, $border-color: null)
18
21
  background: $color
@@ -25,10 +28,17 @@
25
28
 
26
29
  @mixin btn-hover($color, $text-color: null, $border-color: null)
27
30
  &:hover, &:focus, &:active
31
+ text-decoration: none
28
32
  +btn-color($color, $text-color, $border-color)
29
33
 
30
34
  @mixin btn-size($size)
31
- @if $size == xs
35
+ @if $size == xxs
36
+ font-size: 12px
37
+ padding: 0 8px
38
+ height: 20px
39
+ min-width: 20px
40
+ line-height: 16px
41
+ @else if $size == xs
32
42
  font-size: 12px
33
43
  padding: 0 10px
34
44
  height: 30px
@@ -64,12 +74,12 @@
64
74
 
65
75
  // Button: Sizes
66
76
  +all-media-sizes
67
- @each $size in (xs, sm, md, lg, xl)
77
+ @each $size in (xxs, xs, sm, md, lg, xl)
68
78
  &-#{$size}
69
79
  +btn-size($size)
70
80
 
71
- &-margin
72
- margin: 0 5px
81
+ &-rounded
82
+ border-radius: 100px
73
83
 
74
84
  // Button: Types
75
85
  &-full
@@ -78,19 +88,32 @@
78
88
  max-width: 600px
79
89
  margin: 0 auto
80
90
 
91
+ &-margin
92
+ margin: 0 5px
93
+ &-lg
94
+ margin: 0 10px
95
+
81
96
  &-primary
82
97
  +btn-color($blue)
83
98
  +btn-hover(darken($blue, 10%))
99
+ &-dark
100
+ +btn-color(darken($blue, 7%))
101
+ +btn-hover(darken($blue, 12%))
84
102
 
85
103
  &-secondary
86
104
  +btn-color(none, $text-color-light, darken($gray-lightest, 7%))
87
105
  +btn-hover(none, darken($text-color-light, 15%), darken($gray-lightest, 17%))
106
+ &-dark
107
+ +btn-color(none, darken($text-color-light, 5%), lighten($gray-light, 5%))
108
+ +btn-hover(none, darken($text-color-light, 20%), darken($gray-light, 5%))
109
+
110
+ &-checked
111
+ +btn-color($green-dark, #fff)
88
112
 
89
113
  &-disabled
90
114
  cursor: not-allowed
91
115
  &, &:hover, &:focus
92
- color: $text-color-lightest
93
- +btn-color(darken($gray-lightest, 7%))
116
+ +btn-color(lighten($gray-lighter, 1%), $text-color-lightest)
94
117
  &:active
95
118
  animation: shake .35s infinite
96
119
 
@@ -100,8 +123,8 @@
100
123
  &.btn-current
101
124
  +btn-hover(#fff, inherit)
102
125
  &-secondary
103
- +btn-color(lighten($gray-dark, 10%))
104
- +btn-hover($blue, #fff)
126
+ +btn-color(transparent, #fff, rgba(#fff,.2))
127
+ +btn-hover(transparent, #fff, rgba(#fff,.5))
105
128
 
106
129
  &-current
107
130
  cursor: default
@@ -7,7 +7,11 @@
7
7
  margin: 12px 0 20px
8
8
  font-size: 18px
9
9
  font-weight: $medium
10
- color: $text-color-light
10
+ color: $text-color-lighter
11
+ &-sm
12
+ @extend .empty-txt
13
+ font-size: $font-size
14
+ margin: 0 0 15px
11
15
  &-dark
12
16
  @extend .empty-txt
13
17
  color: darken($gray, 10%)
@@ -2,15 +2,27 @@ svg, path, circle, polyline
2
2
  transition: fill 300ms ease, stroke 300ms ease, opacity 300ms ease
3
3
 
4
4
  +component('icon')
5
- fill: $gray
5
+ fill: currentColor
6
6
  display: inline-block
7
- transition: fill 300ms ease, stroke 300ms ease, opacity 300ms ease
7
+ transition: fill 300ms ease, stroke 300ms ease, opacity 300ms ease, transform 300ms ease
8
8
  overflow: visible
9
+ line-height: 1
9
10
  transform-origin: center center
11
+ +width-height(1em)
12
+
13
+ // Icons w/ Margins
14
+ &-margin-left
15
+ margin-left: 5px
16
+ &-margin-left-lg
17
+ margin-left: 8px
18
+ &-margin-right
19
+ margin-right: 5px
20
+ &-margin-right-lg
21
+ margin-right: 8px
10
22
 
11
23
  // Icons w/ Strokes
12
24
  &-outline
13
- stroke: $gray
25
+ stroke: currentColor
14
26
  &, &-inverse
15
27
  fill: transparent
16
28
  stroke-width: 2px
@@ -19,20 +31,29 @@ svg, path, circle, polyline
19
31
  &-inverse
20
32
  stroke: #fff !important
21
33
 
34
+ &-slack,
35
+ &-github,
36
+ &-gitlab,
37
+ &-hipchat,
38
+ &-webhook,
39
+ &-invision,
40
+ &-bitbucket
41
+ +width-height(16px)
42
+
22
43
  &-arrow-down
23
44
  @extend .icon-outline
24
45
  +width-height(10px, 6px)
25
46
 
26
47
  &-plus
27
48
  @extend .icon-outline
28
- +width-height(6px, 6px)
49
+ +width-height(6px)
29
50
 
30
51
  // Icon: Sizes
31
- $sizes: (xs: 8px, sm: 16px, md: 24px, lg: 32px, xl: 44px)
52
+ $sizes: (xxs: 8px, xs: 10px, sm: 12px, md: 16px, lg: 24px, xl: 32px)
32
53
  +all-media-sizes
33
54
  @each $size, $value in $sizes
34
55
  &-#{$size}
35
- +width-height($value, $value)
56
+ +width-height($value)
36
57
 
37
58
  &-btn
38
59
  position: relative
@@ -43,7 +64,7 @@ svg, path, circle, polyline
43
64
  transition: border-color 300ms ease
44
65
  @each $size, $value in (xs: 16px, sm: 24px, md: 32px, lg: 40px, xl: 48px)
45
66
  &-#{$size}
46
- +width-height($value, $value)
67
+ +width-height($value)
47
68
  a:hover &
48
69
  border-color: darken($gray, 12%)
49
70
 
@@ -10,7 +10,7 @@
10
10
  bottom: 0
11
11
  left: 0
12
12
  background: rgba($gray-darkest,.9)
13
- z-index: 200
13
+ +z-index
14
14
 
15
15
  &-content
16
16
  background: #fff
@@ -9,3 +9,6 @@
9
9
  animation-duration: 0s !important
10
10
  transition-duration: 0s !important
11
11
  transition-delay: 0s !important
12
+
13
+ button
14
+ font: inherit
@@ -1,3 +1,6 @@
1
+ // Component Layering
2
+ $z-index: (modal: 200);
3
+
1
4
  $bg-color: $gray-lightest;
2
5
 
3
6
  $border-radius: 5px;
@@ -9,6 +9,7 @@ module Shipyard
9
9
  def initialize
10
10
  @path = "#{::Rails.root}/app/assets/icons/"
11
11
  @public = "#{::Rails.root}/public/assets"
12
+ @fingerprint = ::Rails.application.config.try(:icons_version)
12
13
  reload
13
14
  end
14
15
 
@@ -23,6 +24,18 @@ module Shipyard
23
24
  icon
24
25
  end
25
26
 
27
+ def base_path
28
+ if @fingerprint && !::Rails.env.development?
29
+ "/assets/icons-#{@fingerprint}.svg"
30
+ else
31
+ '/assets/icons.svg'
32
+ end
33
+ end
34
+
35
+ def asset_path(svg_id)
36
+ "#{base_path}##{svg_id}"
37
+ end
38
+
26
39
  private
27
40
 
28
41
  def load_svgs
@@ -44,28 +57,27 @@ module Shipyard
44
57
  def save_external_svg_defs
45
58
  html = []
46
59
  @icons.each do |icon|
47
- html << svg_group(icon)
60
+ html << svg_symbol(icon)
48
61
  end
49
62
  Dir.mkdir(@public) unless File.exists?(@public) || Dir.exists?(@public)
50
63
  File.write("#{@public}/icons.svg", svg_template(html.join))
64
+ File.write("#{@public}/icons-#{@fingerprint}.svg", svg_template(html.join)) if @fingerprint
51
65
  end
52
66
 
53
67
  def sanitize_svg(html)
54
68
  sanitize(html,
55
- tags: %w(g circle rect path line polyline),
56
- attributes: %w(x x1 x2 y y1 y2 d cx cy r vector-effect points class))
69
+ tags: %w(g circle rect path line polyline polygon ellipse),
70
+ attributes: %w(x x1 x2 y y1 y2 d cx cy r rx ry vector-effect points class fill stroke opacity))
57
71
  end
58
72
 
59
- def svg_group(icon)
73
+ def svg_symbol(icon)
60
74
  %(<g id="#{icon[:id]}">#{icon[:inner_html]}</g>)
61
75
  end
62
76
 
63
77
  def svg_template(html)
64
78
  %(
65
- <?xml version="1.0" standalone="no"?>
66
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
67
- <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
68
- <defs>#{html}</defs>
79
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
80
+ #{html}
69
81
  </svg>
70
82
  ).gsub(/\n|\s+\s+/, '')
71
83
  end
@@ -1,8 +1,8 @@
1
1
  module Shipyard
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
- initializer 'shipyard.assets.precompile', group: :all do |app|
5
- %w(stylesheets javascripts).each do |sub|
4
+ initializer 'shipyard-framework.assets.precompile' do |app|
5
+ %w(stylesheets javascripts icons).each do |sub|
6
6
  app.config.assets.paths << root.join('assets', sub).to_s
7
7
  end
8
8
  end
@@ -29,6 +29,7 @@ module Shipyard
29
29
  css_classes << 'icon'
30
30
  css_classes << "icon-#{svg[:id]}"
31
31
  css_classes << 'icon-outline' if svg[:is_outlined] == true
32
+ css_classes << "#{options[:prefix]}-icon" if options[:prefix]
32
33
  css_classes << "#{options[:prefix]}-icon-#{svg[:id]}" if options[:prefix]
33
34
  css_classes << options[:class]
34
35
  css_classes.join(' ').strip
@@ -36,7 +37,7 @@ module Shipyard
36
37
 
37
38
  def svg_use_tag(svg, options)
38
39
  content_tag :svg, svg_options(svg, options) do
39
- content_tag :use, nil, 'xlink:href' => "/assets/icons.svg##{svg[:id]}"
40
+ content_tag :use, nil, 'xlink:href' => Icons.instance.asset_path(svg[:id])
40
41
  end
41
42
  end
42
43
 
@@ -0,0 +1,33 @@
1
+ module Shipyard
2
+ module Rails
3
+ module LayoutHelpers
4
+ def shipyard_css_classes
5
+ css_classes = []
6
+ css_classes << current_page
7
+ css_classes << current_controller
8
+ css_classes << "env-#{::Rails.env}"
9
+ css_classes.join(' ')
10
+ end
11
+
12
+ def current_controller
13
+ controller.controller_name.dasherize
14
+ end
15
+
16
+ def current_action
17
+ controller.action_name.dasherize
18
+ end
19
+
20
+ def current_page
21
+ "#{current_controller}-#{current_action}"
22
+ end
23
+
24
+ def current_route
25
+ "#{controller.controller_name}##{controller.action_name}"
26
+ end
27
+
28
+ def current_route_is?(routes)
29
+ routes.tr(' ', '').split(',').include? current_route
30
+ end
31
+ end
32
+ end
33
+ end
@@ -1,7 +1,7 @@
1
- require 'shipyard/rails/layout_helpers'
2
- require 'shipyard/rails/icon_helper'
3
- require 'shipyard/rails/button_helper'
4
- require 'shipyard/rails/alert_helper'
1
+ require 'shipyard-framework/rails/layout_helpers'
2
+ require 'shipyard-framework/rails/icon_helper'
3
+ require 'shipyard-framework/rails/button_helper'
4
+ require 'shipyard-framework/rails/alert_helper'
5
5
 
6
6
  module Shipyard
7
7
  module Rails
@@ -1,3 +1,3 @@
1
1
  module Shipyard
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -1,4 +1,4 @@
1
- require 'shipyard/version'
1
+ require 'shipyard-framework/version'
2
2
 
3
3
  module Shipyard
4
4
  class << self
@@ -50,9 +50,9 @@ module Shipyard
50
50
  end
51
51
 
52
52
  def register_rails_engine
53
- require 'shipyard/icons'
54
- require 'shipyard/rails/engine'
55
- require 'shipyard/rails/railtie'
53
+ require 'shipyard-framework/icons'
54
+ require 'shipyard-framework/rails/engine'
55
+ require 'shipyard-framework/rails/railtie'
56
56
  end
57
57
 
58
58
  def register_sprockets
data/shipyard.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  lib = File.expand_path('../lib', __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'shipyard/version'
3
+ require 'shipyard-framework/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'shipyard-framework'
@@ -11,17 +11,13 @@ Gem::Specification.new do |spec|
11
11
  spec.homepage = 'https://github.com/shipyard-framework'
12
12
  spec.license = 'MIT'
13
13
 
14
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
15
- f.match(%r{^(test|spec|features)/})
16
- end
17
- spec.bindir = "exe"
18
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
- spec.require_paths = ["lib"]
14
+ # Rails Dependencies
15
+ # spec.add_runtime_dependency 'sassc-rails', '~> 1.3', '>= 1.3.0'
16
+ # spec.add_runtime_dependency 'slim-rails', '~> 3.1', '>= 3.1.0'
17
+ # spec.add_runtime_dependency 'sassc', '~> 1.11.4'
20
18
 
21
- spec.add_runtime_dependency 'sassc-rails', '~> 1.3', '>= 1.3.0'
22
- spec.add_runtime_dependency 'slim-rails', '~> 3.1', '>= 3.1.0'
19
+ spec.add_development_dependency 'bundler', '~> 1.15.3'
23
20
 
24
- spec.add_development_dependency 'bundler', '~> 1.13'
25
- spec.add_development_dependency 'rake', '~> 10.0'
26
- spec.add_development_dependency 'rspec', '~> 3.0'
21
+ spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
+ spec.files = `git ls-files`.split("\n")
27
23
  end
@@ -0,0 +1,11 @@
1
+ require "spec_helper"
2
+
3
+ describe Shipyard do
4
+ it "has a version number" do
5
+ expect(Shipyard::VERSION).not_to be nil
6
+ end
7
+
8
+ it "does something useful" do
9
+ expect(false).to eq(true)
10
+ end
11
+ end
@@ -0,0 +1,2 @@
1
+ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
+ require "shipyard"
metadata CHANGED
@@ -1,97 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipyard-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shipyard
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-27 00:00:00.000000000 Z
11
+ date: 2017-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: sassc-rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.3'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.3.0
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1.3'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 1.3.0
33
- - !ruby/object:Gem::Dependency
34
- name: slim-rails
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '3.1'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 3.1.0
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '3.1'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 3.1.0
53
13
  - !ruby/object:Gem::Dependency
54
14
  name: bundler
55
15
  requirement: !ruby/object:Gem::Requirement
56
16
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '1.13'
60
- type: :development
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: '1.13'
67
- - !ruby/object:Gem::Dependency
68
- name: rake
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '10.0'
74
- type: :development
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: '10.0'
81
- - !ruby/object:Gem::Dependency
82
- name: rspec
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
17
+ - - ~>
86
18
  - !ruby/object:Gem::Version
87
- version: '3.0'
19
+ version: 1.15.3
88
20
  type: :development
89
21
  prerelease: false
90
22
  version_requirements: !ruby/object:Gem::Requirement
91
23
  requirements:
92
- - - "~>"
24
+ - - ~>
93
25
  - !ruby/object:Gem::Version
94
- version: '3.0'
26
+ version: 1.15.3
95
27
  description:
96
28
  email:
97
29
  - ryanwilke@gmail.com
@@ -99,8 +31,8 @@ executables: []
99
31
  extensions: []
100
32
  extra_rdoc_files: []
101
33
  files:
102
- - ".gitignore"
103
- - ".rspec"
34
+ - .gitignore
35
+ - .rspec
104
36
  - CODE_OF_CONDUCT.md
105
37
  - Gemfile
106
38
  - LICENSE.txt
@@ -109,7 +41,23 @@ files:
109
41
  - app/views/shipyard/_alerts.slim
110
42
  - assets/icons/arrows/arrow-down.svg
111
43
  - assets/icons/gear.svg
44
+ - assets/icons/logos/bitbucket.svg
45
+ - assets/icons/logos/campfire-color.svg
46
+ - assets/icons/logos/codeship.svg
47
+ - assets/icons/logos/email-color.svg
48
+ - assets/icons/logos/flowdock-color.svg
49
+ - assets/icons/logos/github.svg
50
+ - assets/icons/logos/gitlab.svg
51
+ - assets/icons/logos/grove-color.svg
52
+ - assets/icons/logos/hipchat-color.svg
53
+ - assets/icons/logos/hipchat.svg
54
+ - assets/icons/logos/invision.svg
55
+ - assets/icons/logos/slack-color.svg
56
+ - assets/icons/logos/slack.svg
57
+ - assets/icons/logos/webhook-color.svg
58
+ - assets/icons/logos/webhook.svg
112
59
  - assets/icons/plus.svg
60
+ - assets/icons/tag.svg
113
61
  - assets/icons/x.svg
114
62
  - assets/javascripts/shipyard.es6
115
63
  - assets/javascripts/shipyard/alert.es6
@@ -143,16 +91,18 @@ files:
143
91
  - assets/stylesheets/shipyard/variables/_grid.scss
144
92
  - assets/stylesheets/shipyard/variables/_misc.scss
145
93
  - assets/stylesheets/shipyard/variables/_typography.scss
146
- - lib/shipyard.rb
147
- - lib/shipyard/icons.rb
148
- - lib/shipyard/rails/alert_helper.rb
149
- - lib/shipyard/rails/button_helper.rb
150
- - lib/shipyard/rails/engine.rb
151
- - lib/shipyard/rails/icon_helper.rb
152
- - lib/shipyard/rails/layout_helpers.rb
153
- - lib/shipyard/rails/railtie.rb
154
- - lib/shipyard/version.rb
94
+ - lib/shipyard-framework.rb
95
+ - lib/shipyard-framework/icons.rb
96
+ - lib/shipyard-framework/rails/alert_helper.rb
97
+ - lib/shipyard-framework/rails/button_helper.rb
98
+ - lib/shipyard-framework/rails/engine.rb
99
+ - lib/shipyard-framework/rails/icon_helper.rb
100
+ - lib/shipyard-framework/rails/layout_helpers.rb
101
+ - lib/shipyard-framework/rails/railtie.rb
102
+ - lib/shipyard-framework/version.rb
155
103
  - shipyard.gemspec
104
+ - spec/shipyard_spec.rb
105
+ - spec/spec_helper.rb
156
106
  homepage: https://github.com/shipyard-framework
157
107
  licenses:
158
108
  - MIT
@@ -163,17 +113,17 @@ require_paths:
163
113
  - lib
164
114
  required_ruby_version: !ruby/object:Gem::Requirement
165
115
  requirements:
166
- - - ">="
116
+ - - '>='
167
117
  - !ruby/object:Gem::Version
168
118
  version: '0'
169
119
  required_rubygems_version: !ruby/object:Gem::Requirement
170
120
  requirements:
171
- - - ">="
121
+ - - '>='
172
122
  - !ruby/object:Gem::Version
173
123
  version: '0'
174
124
  requirements: []
175
125
  rubyforge_project:
176
- rubygems_version: 2.5.1
126
+ rubygems_version: 2.0.14.1
177
127
  signing_key:
178
128
  specification_version: 4
179
129
  summary: A lightweight CSS framework for developing mobile-first projects in Ruby
@@ -1,34 +0,0 @@
1
- module Shipyard
2
- module Rails
3
- module LayoutHelpers
4
- def layout_classes(layout_name)
5
- "#{layout_name}-layout #{current_page} #{'legacy-content' unless content_for? :new_layout}"
6
- end
7
-
8
- def current_page
9
- "#{controller.controller_name.dasherize}-#{controller.action_name}"
10
- end
11
-
12
- def current_route
13
- "#{controller.controller_name}##{controller.action_name}"
14
- end
15
-
16
- def current_route_is?(routes)
17
- routes.tr(' ', '').split(',').include? current_route
18
- end
19
-
20
- def content(options={}, &block)
21
- type, options = options, {} if options.is_a? Symbol
22
- options[:class] ||= ''
23
- options[:class] += type ? " content-#{type.to_s.dasherize}" : ' content'
24
- options[:class] += " #{current_page}-content"
25
- options[:data] ||= {}
26
- options[:data][:content] = current_page
27
- content_tag :div, options do
28
- concat render(partial: 'shipyard/alerts')
29
- concat capture(&block)
30
- end
31
- end
32
- end
33
- end
34
- end