falu 0.0.6 → 0.0.7

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
  SHA1:
3
- metadata.gz: c9cf101dce7df5ca6b2fce26f93b4d4674a1309e
4
- data.tar.gz: 2add354bc4af13ac45bebf2096e604c72593cccb
3
+ metadata.gz: ced00c13089a9e5c749ddd0a593301b5b13f0ccf
4
+ data.tar.gz: bda7d2f154fafc88ec2be84e40b55f4f0f914c4c
5
5
  SHA512:
6
- metadata.gz: 81f6cadb12f936c722fdaaa9c20903c276810b2dc6bc07d0b619a5710e14d177c7fae7249870f0b234024e69e8dd6796d9cf3e92e16909cc337e4d69a3448570
7
- data.tar.gz: 5619ad841a14db8530e598b131d56ed121c29cd3834abfc1635f98887a511e2818e4b1d52c7558ef91d343213d58efd1e61d8eb1bae2c4ef913d2839462a0571
6
+ metadata.gz: d1c4bfbdd97bce559983d7eed04018f96ca22e3c1118ce8a4a85ff23be3400a57212ecc8d56c10d08a4355adcfa0bdd10c438311e9e9b88d95aaac59ff83a240
7
+ data.tar.gz: 476e8e3f7ae7f4a0991858f57b671da9e02982b6baddbebfa8023246e9229b52720ed867114ba3db2998a04684331c4705b8d17667f13558ef8a24a7c2a6b55f
@@ -110,8 +110,8 @@ module Falu
110
110
 
111
111
  def primary=(pri)
112
112
  # TODO check that the color exists in the palette
113
- if pri.nil?
114
- @primary = pri
113
+ if pri.blank?
114
+ @primary = nil
115
115
  else
116
116
  @primary = pri.is_a?(Falu::Swatch) ? pri : Falu::Swatch.new(pri)
117
117
  end
@@ -123,8 +123,8 @@ module Falu
123
123
 
124
124
  def secondary=(sec)
125
125
  # TODO check that the color exists in the palette
126
- if sec.nil?
127
- @secondary = sec
126
+ if sec.blank?
127
+ @secondary = nil
128
128
  else
129
129
  @secondary = sec.is_a?(Falu::Swatch) ? sec : Falu::Swatch.new(sec)
130
130
  end
@@ -138,8 +138,8 @@ module Falu
138
138
 
139
139
  def accent=(acc)
140
140
  # TODO check that the color exists in the palette
141
- if acc.nil?
142
- @accent = acc
141
+ if acc.blank?
142
+ @accent = nil
143
143
  else
144
144
  @accent = acc.is_a?(Falu::Swatch) ? acc : Falu::Swatch.new(acc)
145
145
  end
@@ -2,7 +2,7 @@ module Falu
2
2
  module Version
3
3
  MAJOR = '0'
4
4
  MINOR = '0'
5
- PATCH = '6'
5
+ PATCH = '7'
6
6
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
 
8
8
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec