piccolor 0.0.1 → 0.0.2
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/piccolor/version.rb +1 -1
- data/test/hex_test.rb +22 -0
- 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: 9a5867e50e96f7b8f3a2bb25c849dc4d3ee4005f
|
|
4
|
+
data.tar.gz: bac7beaa7499188bfc417f0ec9e33fae811d939f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87576017e6b1df2481e1528d2a0e0133c21bec03a3adacb2a04b8c8726822ac829c40562d619ef77992739b2413d0655772a88aae56143447ca6b8a1ba9517ae
|
|
7
|
+
data.tar.gz: fd5054441838311c2110af2e4f848d94937bb610307337208902c88e7c7ba508a9127e0836ae385be5493af6806e19c567483a0b1dbb3b3ca0365b02c7e0bc56
|
data/lib/piccolor/version.rb
CHANGED
data/test/hex_test.rb
CHANGED
|
@@ -71,4 +71,26 @@ describe "hex" do
|
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
+
it "should convert doubles" do
|
|
75
|
+
colors = {
|
|
76
|
+
"#091e3a" => "dark blue",
|
|
77
|
+
"#063b52" => "blue",
|
|
78
|
+
"#376ab0" => "blue",
|
|
79
|
+
"#256b85" => "blue",
|
|
80
|
+
"#127a9d" => "blue",
|
|
81
|
+
"#8a8988" => "grey",
|
|
82
|
+
"#c0e7f1" => "light blue",
|
|
83
|
+
"#4ab9d8" => "light blue",
|
|
84
|
+
"#77b0c4" => "light blue",
|
|
85
|
+
"#5399f2" => "blue",
|
|
86
|
+
"#85ade8" => "light blue",
|
|
87
|
+
"#a3b6d7" => "light blue",
|
|
88
|
+
"#dde5f5" => "light blue",
|
|
89
|
+
"#f5f4f5" => "white"
|
|
90
|
+
}
|
|
91
|
+
colors.each do |hex, value|
|
|
92
|
+
Piccolor.to_human(hex).must_equal value
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
74
96
|
end
|