jekyll_patternbot 0.16.0 → 0.17.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 290cf39f418238dd85d67c792bafb1b97bf2095850420c398c1d780627bd887f
4
- data.tar.gz: 3f604ab155d22c2dfde02c71e6bf5bfa81935aaa1bc594098d3632b727725bdc
3
+ metadata.gz: a5b1b48946d4900088590b0f4918e67e8ca2c9416cd3ff1f113e88bb85f3e32a
4
+ data.tar.gz: 9eea4a3a6c4b2f9d544d4eb8ea0d07a5aad159b68f48939dd91633d36618bf2d
5
5
  SHA512:
6
- metadata.gz: 4061d32dbcdac18f98ecdc68554b98418032b7387a1f1509f67bd1052bb30e8ec027465884b63314dfb05158dfa1b8a6832ce22e5fb0b550a7ea152cb93abd0c
7
- data.tar.gz: 4ecdbd2c196780a7e46bf2d0f48a4c9f19d20fdd20031fa38f5865dc31eab7b033ba1e8483c203fc402051bbc7f56b06d765cec6d20add9e256b4d1e45bdf72d
6
+ metadata.gz: 319b5d729cf3bd8e1cdd2479a2296d366ef2fae0bd2e142f1e604df64b41ffeefc9c5b2547a7a965221b45a098a050905f98a62984436f1426f4c8d94907f1d1
7
+ data.tar.gz: 0f4ac5c853d28a81550f98056ec792653b38b5440d370d8fb7eb195f6e829845854efbcfcdcd492df9f9f1931532f07ad8c64e383b5cd82d0909ef4a70e6fbdc
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ Jekyll Patternbot adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ---
7
7
 
8
+ ## [0.17.0] — 2019-01-16
9
+
10
+ ### Fixed
11
+
12
+ - Added more checking for missing fonts and colours inside `theme.css`
13
+
14
+ ---
15
+
8
16
  ## [0.16.0] — 2019-01-16
9
17
 
10
18
  ### Added
@@ -2,13 +2,13 @@ module JekyllPatternbot
2
2
  class BrandProcessor
3
3
 
4
4
  def remove_colors
5
- unless PatternbotData[:css].key? :theme and PatternbotData[:css][:theme].key? :colors
5
+ unless PatternbotData[:css].key? :theme and PatternbotData[:css][:theme].key? :colors and PatternbotData[:css][:theme][:colors] and PatternbotData[:css][:theme][:colors].key? :primary and PatternbotData[:css][:theme][:colors][:primary].length > 0
6
6
  PatternbotData[:patterns][:internal]['brand'][:config]['patterns'].delete 'colors'
7
7
  end
8
8
  end
9
9
 
10
10
  def remove_typefaces
11
- unless PatternbotData[:css].key? :theme and PatternbotData[:css][:theme].key? :fonts and PatternbotData[:css][:theme][:fonts].key :primary
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.16.0'
2
+ VERSION = '0.17.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.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas J Bradley