falu 0.0.6 → 0.0.7
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 +4 -4
- data/lib/falu/palette.rb +6 -6
- data/lib/falu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ced00c13089a9e5c749ddd0a593301b5b13f0ccf
|
4
|
+
data.tar.gz: bda7d2f154fafc88ec2be84e40b55f4f0f914c4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1c4bfbdd97bce559983d7eed04018f96ca22e3c1118ce8a4a85ff23be3400a57212ecc8d56c10d08a4355adcfa0bdd10c438311e9e9b88d95aaac59ff83a240
|
7
|
+
data.tar.gz: 476e8e3f7ae7f4a0991858f57b671da9e02982b6baddbebfa8023246e9229b52720ed867114ba3db2998a04684331c4705b8d17667f13558ef8a24a7c2a6b55f
|
data/lib/falu/palette.rb
CHANGED
@@ -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.
|
114
|
-
@primary =
|
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.
|
127
|
-
@secondary =
|
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.
|
142
|
-
@accent =
|
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
|
data/lib/falu/version.rb
CHANGED