jekyll_patternbot 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0aa8450c59d5bfab197311319c7d4cc6059de8e6709fea7ea9a21ced39aac30
4
- data.tar.gz: cad32d4461dc454e02d4ea0f3beac31a0a66cd769f8d4038ff8bc5f498fc4a64
3
+ metadata.gz: 82f8b059936643c58415f90f6470c2405dd73e79b3089dafa034d671621035cd
4
+ data.tar.gz: efa04e422afaecbdacd75a7fc176db63602ef4fa82d04064f5a825161bcb9b2a
5
5
  SHA512:
6
- metadata.gz: a319d837026f00a9f1124ea28dc2b9d5ab66e610e301a8b40eff5e1fa0b90fb42a14c7ffb10c2c0c30661b0c721eb176f77bd907d98b70de65686d989bee140b
7
- data.tar.gz: 7f904821cd89794b801bd7d631b591e81af5ef85624866c899d8a36b8f5496295c8b2097a27d3f55b10c122b5b046c5cfb5f6927c0695a9814b6dd3bfc32e7e8
6
+ metadata.gz: 468ba36e3ce045f90f76609be33324178e6a62b6da575aa705744be686bedbf86a272c377d72369fa13586720a3c17a4c215a212c175a54b41436cbe0f7ad0ce
7
+ data.tar.gz: 8a1b724e6ea115ce536c2a21f44cc59e805f1c069b926b8e331331fe43cecac2ec09639f7a5d7c3e0c076ecbe98a41259bd15c8766fcb7100536570b75175fe6
@@ -5,6 +5,14 @@ Jekyll Patternbot adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ---
7
7
 
8
+ ## [0.15.0] — 2019-01-16
9
+
10
+ ### Fixed
11
+
12
+ - Hide a few patterns that shouldn’t be shown in brand when the `theme.css` file is missing specific features.
13
+
14
+ ---
15
+
8
16
  ## [0.14.0] — 2019-01-15
9
17
 
10
18
  ### Fixed
@@ -124,7 +124,7 @@
124
124
  </a>
125
125
  </li>
126
126
  {% endif %}
127
- {% if page._PatternbotData.css.theme.utilities %}
127
+ {% unless page._PatternbotData.css.theme.utilities == empty %}
128
128
  <li role="presentation">
129
129
  <a class="gutter pad-t-1-4 pad-b-1-4 block" role="tab" aria-controls="utilities" href="#utilities">
130
130
  <div class="relative">
@@ -135,7 +135,7 @@
135
135
  </div>
136
136
  </a>
137
137
  </li>
138
- {% endif %}
138
+ {% endunless %}
139
139
  {% unless page._PatternbotData.icons == empty %}
140
140
  <li role="presentation">
141
141
  <a class="gutter pad-t-1-4 pad-b-1-4 block" role="tab" aria-controls="icons" href="#icons">
@@ -1,23 +1,23 @@
1
1
  <div class="patternbot-font-primary text-left">
2
2
  {% assign show_hr = false %}
3
3
 
4
- {% if page._PatternbotData.css.theme.colors.primary %}
4
+ {% unless page._PatternbotData.css.theme.colors.primary == empty %}
5
5
  {% assign show_hr = true %}
6
6
  {% include patternbot_pattern_brand_color_swatches.html style="large" title="Primary" key="primary" colors=page._PatternbotData.css.theme.colors.primary extra_class="patternbot-color-swatches-primary" %}
7
- {% endif %}
7
+ {% endunless %}
8
8
 
9
- {% if page._PatternbotData.css.theme.colors.secondary %}
9
+ {% unless page._PatternbotData.css.theme.colors.secondary == empty %}
10
10
  {% assign show_hr = true %}
11
11
  {% include patternbot_pattern_brand_color_swatches.html style="large" title="Secondary" key="secondary" colors=page._PatternbotData.css.theme.colors.secondary extra_class="patternbot-color-swatches-secondary" show_hr=show_hr %}
12
- {% endif %}
12
+ {% endunless %}
13
13
 
14
- {% if page._PatternbotData.css.theme.colors.accent %}
14
+ {% unless page._PatternbotData.css.theme.colors.accent == empty %}
15
15
  {% assign show_hr = true %}
16
16
  {% include patternbot_pattern_brand_color_swatches.html style="small" title="Accent" key="accent" colors=page._PatternbotData.css.theme.colors.accent show_hr=show_hr %}
17
- {% endif %}
17
+ {% endunless %}
18
18
 
19
- {% if page._PatternbotData.css.theme.colors.neutral %}
19
+ {% unless page._PatternbotData.css.theme.colors.neutral == empty %}
20
20
  {% assign show_hr = true %}
21
21
  {% include patternbot_pattern_brand_color_swatches.html style="small" title="Neutral" key="neutral" colors=page._PatternbotData.css.theme.colors.neutral show_hr=show_hr %}
22
- {% endif %}
22
+ {% endunless %}
23
23
  </div>
@@ -8,7 +8,7 @@ module JekyllPatternbot
8
8
  end
9
9
 
10
10
  def remove_typefaces
11
- unless PatternbotData[:css].key? :theme and PatternbotData[:css][:theme].key? :fonts
11
+ unless PatternbotData[:css].key? :theme and PatternbotData[:css][:theme].key? :fonts and PatternbotData[:css][:theme][:fonts].key :primary
12
12
  PatternbotData[:patterns][:internal]['brand'][:config]['patterns'].delete 'typefaces'
13
13
  end
14
14
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JekyllPatternbot
2
- VERSION = '0.14.0'
2
+ VERSION = '0.15.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_patternbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas J Bradley