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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8b3c3beda760bcf1cdeb8ce4e55e0805554f37f
4
- data.tar.gz: 5f76112afaf0e0be04ff600e3bea5b3a64b5ac43
3
+ metadata.gz: 9a5867e50e96f7b8f3a2bb25c849dc4d3ee4005f
4
+ data.tar.gz: bac7beaa7499188bfc417f0ec9e33fae811d939f
5
5
  SHA512:
6
- metadata.gz: 57c9db9cb4126437a416b5a1d70ec03069fdbc56a9d8a8f1bb21215c90b2d94b80b7c2cf49c6572976a3ffac82b82b6becea27b5a329065335b2f2a60a1ef826
7
- data.tar.gz: ab43ccfb840d7a45f270ee1f48d8fb0412858bad77aad2a7dbdb78ecf5777355cc14f1e1058e151f0cc46873ffeb4904f9021be516558c1e1c6c94e7c2833c90
6
+ metadata.gz: 87576017e6b1df2481e1528d2a0e0133c21bec03a3adacb2a04b8c8726822ac829c40562d619ef77992739b2413d0655772a88aae56143447ca6b8a1ba9517ae
7
+ data.tar.gz: fd5054441838311c2110af2e4f848d94937bb610307337208902c88e7c7ba508a9127e0836ae385be5493af6806e19c567483a0b1dbb3b3ca0365b02c7e0bc56
@@ -1,3 +1,3 @@
1
1
  module Piccolor
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piccolor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rik Lomas