shipyard-framework 0.5.60 → 0.5.61
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/icons/card.svg +3 -0
- data/assets/stylesheets/shipyard/components/_icons.sass +3 -0
- data/lib/shipyard-framework.rb +7 -3
- data/{app/helpers/shipyard → lib/shipyard-framework/helpers}/alert_helper.rb +0 -0
- data/{app/helpers/shipyard → lib/shipyard-framework/helpers}/box_helper.rb +0 -0
- data/{app/helpers/shipyard → lib/shipyard-framework/helpers}/button_helper.rb +0 -0
- data/{app/helpers/shipyard → lib/shipyard-framework/helpers}/form_helper.rb +0 -0
- data/{app/helpers/shipyard → lib/shipyard-framework/helpers}/icon_helper.rb +0 -0
- data/{app/helpers/shipyard → lib/shipyard-framework/helpers}/layout_helper.rb +0 -0
- data/{app/helpers/shipyard → lib/shipyard-framework/helpers}/note_helper.rb +0 -0
- data/lib/shipyard-framework/jekyll/tags/alert_tag.rb +1 -1
- data/lib/shipyard-framework/jekyll/tags/box_tag.rb +1 -1
- data/lib/shipyard-framework/jekyll/tags/button_tag.rb +1 -1
- data/lib/shipyard-framework/jekyll/tags/icon_tag.rb +1 -1
- data/lib/shipyard-framework/jekyll/tags/note_tag.rb +1 -1
- data/lib/shipyard-framework/rails/railtie.rb +10 -0
- data/lib/shipyard-framework/version.rb +1 -1
- data/styleguide/Gemfile.lock +1 -1
- data/styleguide/_plugins/icon_item.rb +11 -4
- data/styleguide/components/icons.md +29 -108
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec8883156f4ee570b274d1facff3419dd619ecc7bd553e86b161ebe64c57762
|
4
|
+
data.tar.gz: 9cbcaac470539a48ee4d22eaa4e3fdb08364a5383f9ece430bed6316db9ae890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22332c747878998438ec02cbc0a161c83387d510b598512084c43b1f1264443898eb13d447e725989be63687a9908f540f2b15a06d991516258c37850366fc43
|
7
|
+
data.tar.gz: 2bd296f304c880b8e1feb00ab9a4f93ee588ab2215d71e8cf4dd80dcf8c6eb579d0f8466eada991d9de1d0eaa7b05d544c80aabf17c1ab0e952fa193073b08f0
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 14">
|
2
|
+
<path d="M14,0H2A2,2,0,0,0,0,2V12a2,2,0,0,0,2,2H14a2,2,0,0,0,2-2V2A2,2,0,0,0,14,0Zm0,12H2V5H14Zm0-9H2V2H14ZM3,10.5a.5.5,0,0,1,.5-.5h1a.5.5,0,0,1,.5.5.5.5,0,0,1-.5.5h-1A.5.5,0,0,1,3,10.5Zm3,0a.5.5,0,0,1,.5-.5h3a.5.5,0,0,1,.5.5.5.5,0,0,1-.5.5h-3A.5.5,0,0,1,6,10.5Z"/>
|
3
|
+
</svg>
|
data/lib/shipyard-framework.rb
CHANGED
@@ -102,9 +102,13 @@ module Shipyard
|
|
102
102
|
end
|
103
103
|
|
104
104
|
def register_helpers
|
105
|
-
|
106
|
-
|
107
|
-
|
105
|
+
require 'shipyard-framework/helpers/alert_helper'
|
106
|
+
require 'shipyard-framework/helpers/box_helper'
|
107
|
+
require 'shipyard-framework/helpers/button_helper'
|
108
|
+
require 'shipyard-framework/helpers/form_helper'
|
109
|
+
require 'shipyard-framework/helpers/icon_helper'
|
110
|
+
require 'shipyard-framework/helpers/layout_helper'
|
111
|
+
require 'shipyard-framework/helpers/note_helper'
|
108
112
|
end
|
109
113
|
|
110
114
|
def load_icons
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,6 +1,16 @@
|
|
1
1
|
module Shipyard
|
2
2
|
module Rails
|
3
3
|
class Railtie < ::Rails::Railtie
|
4
|
+
initializer 'shipyard.view_helpers' do
|
5
|
+
ActionView::Base.send :include, AlertHelper
|
6
|
+
ActionView::Base.send :include, BoxHelper
|
7
|
+
ActionView::Base.send :include, ButtonHelper
|
8
|
+
ActionView::Base.send :include, FormHelper
|
9
|
+
ActionView::Base.send :include, IconHelper
|
10
|
+
ActionView::Base.send :include, LayoutHelpers
|
11
|
+
ActionView::Base.send :include, NoteHelper
|
12
|
+
end
|
13
|
+
|
4
14
|
initializer 'shipyard.reload_cached_icons' do
|
5
15
|
# TODO: Use rake task or hook into asset pipeline instead?
|
6
16
|
# rake shipyard:icons["#{::Rails.root}/app/assets/icons/", "#{::Rails.root}/public/assets"]
|
data/styleguide/Gemfile.lock
CHANGED
@@ -1,14 +1,21 @@
|
|
1
|
+
require 'shipyard-framework/helpers/icon_helper'
|
2
|
+
|
1
3
|
module Jekyll
|
2
|
-
class IconItem < Liquid::
|
3
|
-
|
4
|
+
class IconItem < Liquid::Tag
|
5
|
+
include Shipyard::IconHelper
|
6
|
+
|
7
|
+
def initialize(tag_name, args, options)
|
4
8
|
super
|
9
|
+
args = args.strip.split(',')
|
10
|
+
@name = eval(args[0])
|
11
|
+
@options = args[1] ? eval("{#{args[1]}}") : {}
|
5
12
|
end
|
6
13
|
|
7
14
|
def render(context)
|
8
15
|
%(
|
9
|
-
<li class="col col-50 col-x1-20 margin-bottom-xs margin-bottom-x1-md margin-bottom-x2-lg">
|
16
|
+
<li class="col col-50 col-x1-20 margin-bottom-xs margin-bottom-x1-md margin-bottom-x2-lg" tooltip=":#{@name}">
|
10
17
|
<div class="box box-md box-x1-xxl">
|
11
|
-
#{
|
18
|
+
#{icon @name, @options}
|
12
19
|
</div>
|
13
20
|
</li>
|
14
21
|
)
|
@@ -11,33 +11,14 @@ description: Shipyard comes with several default icons that you're welcome to us
|
|
11
11
|
<p class="text-light margin-bottom-md" markdown="1">The following icons are the most frequently used in just about any application.</p>
|
12
12
|
|
13
13
|
<ul class="icon-list col-container">
|
14
|
-
{% iconitem %}
|
15
|
-
|
16
|
-
{%
|
17
|
-
|
18
|
-
{% iconitem %}
|
19
|
-
|
20
|
-
{%
|
21
|
-
|
22
|
-
{% iconitem %}
|
23
|
-
{% icon :gear, class: 'center' %}
|
24
|
-
{% endiconitem %}
|
25
|
-
|
26
|
-
{% iconitem %}
|
27
|
-
{% icon :lock, class: 'center' %}
|
28
|
-
{% endiconitem %}
|
29
|
-
|
30
|
-
{% iconitem %}
|
31
|
-
{% icon :tag, class: 'center' %}
|
32
|
-
{% endiconitem %}
|
33
|
-
|
34
|
-
{% iconitem %}
|
35
|
-
{% icon :x, class: 'center' %}
|
36
|
-
{% endiconitem %}
|
37
|
-
|
38
|
-
{% iconitem %}
|
39
|
-
{% icon :arrow_down, class: 'center' %}
|
40
|
-
{% endiconitem %}
|
14
|
+
{% iconitem :plus, class: 'center' %}
|
15
|
+
{% iconitem :restart, class: 'center' %}
|
16
|
+
{% iconitem :gear, class: 'center' %}
|
17
|
+
{% iconitem :lock, class: 'center' %}
|
18
|
+
{% iconitem :card, class: 'center' %}
|
19
|
+
{% iconitem :tag, class: 'center' %}
|
20
|
+
{% iconitem :x, class: 'center' %}
|
21
|
+
{% iconitem :arrow_down, class: 'center' %}
|
41
22
|
</ul>
|
42
23
|
|
43
24
|
---
|
@@ -46,61 +27,20 @@ description: Shipyard comes with several default icons that you're welcome to us
|
|
46
27
|
<p class="text-light margin-bottom-md" markdown="1">If you need to style several paths inside of the icon, it's important to make sure you use the *injected* version of the icon.</p>
|
47
28
|
|
48
29
|
<ul class="icon-list col-container">
|
49
|
-
{% iconitem %}
|
50
|
-
|
51
|
-
{%
|
52
|
-
|
53
|
-
{% iconitem %}
|
54
|
-
|
55
|
-
{%
|
56
|
-
|
57
|
-
{% iconitem %}
|
58
|
-
|
59
|
-
{%
|
60
|
-
|
61
|
-
{% iconitem %}
|
62
|
-
|
63
|
-
{% endiconitem %}
|
64
|
-
|
65
|
-
{% iconitem %}
|
66
|
-
{% icon :flowdock_color, class: 'center' %}
|
67
|
-
{% endiconitem %}
|
68
|
-
|
69
|
-
{% iconitem %}
|
70
|
-
{% icon :github, class: 'center' %}
|
71
|
-
{% endiconitem %}
|
72
|
-
|
73
|
-
{% iconitem %}
|
74
|
-
{% icon :gitlab, class: 'center' %}
|
75
|
-
{% endiconitem %}
|
76
|
-
|
77
|
-
{% iconitem %}
|
78
|
-
{% icon :grove_color, class: 'center' %}
|
79
|
-
{% endiconitem %}
|
80
|
-
|
81
|
-
{% iconitem %}
|
82
|
-
{% icon :hipchat, class: 'center' %}
|
83
|
-
{% endiconitem %}
|
84
|
-
|
85
|
-
{% iconitem %}
|
86
|
-
{% icon :hipchat_color, class: 'center' %}
|
87
|
-
{% endiconitem %}
|
88
|
-
|
89
|
-
{% iconitem %}
|
90
|
-
{% icon :slack, class: 'center' %}
|
91
|
-
{% endiconitem %}
|
92
|
-
|
93
|
-
{% iconitem %}
|
94
|
-
{% icon :slack_color, class: 'center' %}
|
95
|
-
{% endiconitem %}
|
96
|
-
|
97
|
-
{% iconitem %}
|
98
|
-
{% icon :webhook, class: 'center' %}
|
99
|
-
{% endiconitem %}
|
100
|
-
|
101
|
-
{% iconitem %}
|
102
|
-
{% icon :webhook_color, class: 'center' %}
|
103
|
-
{% endiconitem %}
|
30
|
+
{% iconitem :bitbucket, class: 'center' %}
|
31
|
+
{% iconitem :campfire_color, class: 'center' %}
|
32
|
+
{% iconitem :codeship, class: 'center' %}
|
33
|
+
{% iconitem :email_color, class: 'center' %}
|
34
|
+
{% iconitem :flowdock_color, class: 'center' %}
|
35
|
+
{% iconitem :github, class: 'center' %}
|
36
|
+
{% iconitem :gitlab, class: 'center' %}
|
37
|
+
{% iconitem :grove_color, class: 'center' %}
|
38
|
+
{% iconitem :hipchat, class: 'center' %}
|
39
|
+
{% iconitem :hipchat_color, class: 'center' %}
|
40
|
+
{% iconitem :slack, class: 'center' %}
|
41
|
+
{% iconitem :slack_color, class: 'center' %}
|
42
|
+
{% iconitem :webhook, class: 'center' %}
|
43
|
+
{% iconitem :webhook_color, class: 'center' %}
|
104
44
|
</ul>
|
105
45
|
|
106
46
|
---
|
@@ -109,9 +49,7 @@ description: Shipyard comes with several default icons that you're welcome to us
|
|
109
49
|
<p class="text-light margin-bottom-md" markdown="1">If you need to style several paths inside of the icon, it's important to make sure you use the *injected* version of the icon.</p>
|
110
50
|
|
111
51
|
<ul class="icon-list col-container">
|
112
|
-
{% iconitem %}
|
113
|
-
{% icon 'email-color', class: 'icon-xl center' %}
|
114
|
-
{% endiconitem %}
|
52
|
+
{% iconitem 'email-color', class: 'icon-xl center' %}
|
115
53
|
</ul>
|
116
54
|
```html
|
117
55
|
<%= icon 'email-color' %>
|
@@ -123,29 +61,12 @@ description: Shipyard comes with several default icons that you're welcome to us
|
|
123
61
|
<p class="text-light margin-bottom-md">The icon size utility classes can be applied to any icon, and are useful when you want to override the default icon size.</p>
|
124
62
|
|
125
63
|
<ul class="icon-list col-container">
|
126
|
-
{% iconitem %}
|
127
|
-
|
128
|
-
{%
|
129
|
-
|
130
|
-
{% iconitem %}
|
131
|
-
|
132
|
-
{% endiconitem %}
|
133
|
-
|
134
|
-
{% iconitem %}
|
135
|
-
{% icon :gear, class: 'center icon-sm' %}
|
136
|
-
{% endiconitem %}
|
137
|
-
|
138
|
-
{% iconitem %}
|
139
|
-
{% icon :gear, class: 'center icon-md' %}
|
140
|
-
{% endiconitem %}
|
141
|
-
|
142
|
-
{% iconitem %}
|
143
|
-
{% icon :gear, class: 'center icon-lg' %}
|
144
|
-
{% endiconitem %}
|
145
|
-
|
146
|
-
{% iconitem %}
|
147
|
-
{% icon :gear, class: 'center icon-xl' %}
|
148
|
-
{% endiconitem %}
|
64
|
+
{% iconitem :gear, class: 'center icon-xxs' %}
|
65
|
+
{% iconitem :gear, class: 'center icon-xs' %}
|
66
|
+
{% iconitem :gear, class: 'center icon-sm' %}
|
67
|
+
{% iconitem :gear, class: 'center icon-md' %}
|
68
|
+
{% iconitem :gear, class: 'center icon-lg' %}
|
69
|
+
{% iconitem :gear, class: 'center icon-xl' %}
|
149
70
|
</ul>
|
150
71
|
|
151
72
|
```html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shipyard-framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.61
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codeship
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -170,15 +170,9 @@ files:
|
|
170
170
|
- LICENSE.txt
|
171
171
|
- README.md
|
172
172
|
- Rakefile
|
173
|
-
- app/helpers/shipyard/alert_helper.rb
|
174
|
-
- app/helpers/shipyard/box_helper.rb
|
175
|
-
- app/helpers/shipyard/button_helper.rb
|
176
|
-
- app/helpers/shipyard/form_helper.rb
|
177
|
-
- app/helpers/shipyard/icon_helper.rb
|
178
|
-
- app/helpers/shipyard/layout_helper.rb
|
179
|
-
- app/helpers/shipyard/note_helper.rb
|
180
173
|
- app/views/shipyard/_alerts.slim
|
181
174
|
- assets/icons/arrows/arrow-down.svg
|
175
|
+
- assets/icons/card.svg
|
182
176
|
- assets/icons/gear.svg
|
183
177
|
- assets/icons/lock.svg
|
184
178
|
- assets/icons/logos/bitbucket.svg
|
@@ -262,6 +256,13 @@ files:
|
|
262
256
|
- ci/percy
|
263
257
|
- ci/setup
|
264
258
|
- lib/shipyard-framework.rb
|
259
|
+
- lib/shipyard-framework/helpers/alert_helper.rb
|
260
|
+
- lib/shipyard-framework/helpers/box_helper.rb
|
261
|
+
- lib/shipyard-framework/helpers/button_helper.rb
|
262
|
+
- lib/shipyard-framework/helpers/form_helper.rb
|
263
|
+
- lib/shipyard-framework/helpers/icon_helper.rb
|
264
|
+
- lib/shipyard-framework/helpers/layout_helper.rb
|
265
|
+
- lib/shipyard-framework/helpers/note_helper.rb
|
265
266
|
- lib/shipyard-framework/icons.rb
|
266
267
|
- lib/shipyard-framework/jekyll/hooks.rb
|
267
268
|
- lib/shipyard-framework/jekyll/shipyard_css_classes.rb
|
@@ -345,7 +346,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
345
346
|
version: '0'
|
346
347
|
requirements: []
|
347
348
|
rubyforge_project:
|
348
|
-
rubygems_version: 2.7.
|
349
|
+
rubygems_version: 2.7.2
|
349
350
|
signing_key:
|
350
351
|
specification_version: 4
|
351
352
|
summary: A lightweight CSS framework for developing mobile-first projects in Ruby
|