jekyll_patternbot 1.2.0 → 1.3.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: 4f68472848b7cf670739fe8f37292241cbac4be69f9d5bd28c6dc8c57120046f
4
- data.tar.gz: bff3006c2cdc439afbcad0cdfaa5ecc821e02cd32d061f2d04027d37f93bf27c
3
+ metadata.gz: 8620071049971e43430845f49fe188b9bb90c4fe5d6aaf75d08dfa994a169a55
4
+ data.tar.gz: 59193bd0277b3a73312e03e5cca0b4046fc97ff8daded6563718b8ae53c27a7c
5
5
  SHA512:
6
- metadata.gz: 986326fd6a2bd735143296fce311a1793318fa5a8c1dc57f814855bdbdf62a7ca208353f1f08fdfc9eb2335cb11faf5ca4137ee75e8b7137ffba1ee411a991f9
7
- data.tar.gz: 061ebbfbce1f7df69de51cee6f72570223eb92741c50b0947ae757fe7821a31030b982f337404a9c68dcdaa96e11c89106a894da452d6e7e88a4c19c9e9ebf5f
6
+ metadata.gz: e42f8a87bba0ca7ce0e504929a02ff21e2993b737f0cb369f46a40e4a9343875ff45e09ba7280ddd0ffbb3a07ee5513b0442d3bc153697024c14ac9407b665eb
7
+ data.tar.gz: c80c542ecf19b81f34e8fa52946b02494395a9e94db9bfc9dd032dd19e0d5e66588276f698eb05899dc79f4dd76fe6ba1ea3ef2297cd2b5a444241a3edfd0225
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ Jekyll Patternbot adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ---
7
7
 
8
+ ## [1.3.0] — 2019-01-29
9
+
10
+ ### Added
11
+
12
+ - Added a quaternary level of colours, per user suggestion, for helping with colour-matched groupings.
13
+
14
+ ---
15
+
8
16
  ## [1.2.0] — 2019-01-28
9
17
 
10
18
  ### Added
@@ -16,6 +16,11 @@
16
16
  {% include patternbot_pattern_brand_color_swatches.html style="small" title="Tertiary" key="tertiary" colors=page._PatternbotData.css.theme.colors.tertiary show_hr=show_hr %}
17
17
  {% endunless %}
18
18
 
19
+ {% unless page._PatternbotData.css.theme.colors.quaternary == empty %}
20
+ {% assign show_hr = true %}
21
+ {% include patternbot_pattern_brand_color_swatches.html style="small" title="Quaternary" key="quaternary" colors=page._PatternbotData.css.theme.colors.quaternary show_hr=show_hr %}
22
+ {% endunless %}
23
+
19
24
  {% unless page._PatternbotData.css.theme.colors.accent == empty %}
20
25
  {% assign show_hr = true %}
21
26
  {% include patternbot_pattern_brand_color_swatches.html style="small" title="Accent" key="accent" colors=page._PatternbotData.css.theme.colors.accent show_hr=show_hr %}
@@ -6,6 +6,7 @@ module JekyllPatternbot
6
6
  :primary => [],
7
7
  :secondary => [],
8
8
  :tertiary => [],
9
+ :quaternary => [],
9
10
  :neutral => [],
10
11
  :accent => [],
11
12
  :raw => {},
@@ -44,8 +45,9 @@ module JekyllPatternbot
44
45
  colors[:primary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-primary/)
45
46
  colors[:secondary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-secondary/)
46
47
  colors[:tertiary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-tertiary/)
48
+ colors[:quaternary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-quaternary/)
47
49
  colors[:neutral].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-neutral/)
48
- colors[:accent].push(self.parse_color(dec, val)) unless dec.match(/\-\-color\-(primary|secondary|tertiary|neutral)/)
50
+ colors[:accent].push(self.parse_color(dec, val)) unless dec.match(/\-\-color\-(primary|secondary|tertiary|quaternary|neutral)/)
49
51
  colors[:raw][dec] = val
50
52
  end
51
53
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JekyllPatternbot
2
- VERSION = '1.2.0'
2
+ VERSION = '1.3.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: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas J Bradley