rcade_colors 0.0.2 → 0.0.3
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/rcade_colors.rb +2 -2
- data/rcade_colors.gemspec +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: 86baefcf7b3c44a6b4ef159b43ebe8bfb5d8e183
|
4
|
+
data.tar.gz: 5a2da83763653c1035529e0b6714330611dda0f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f2fe6f095ac0ee2cbc1931a837540073b5c28bab8f9df98ba9ade0d66f8e2d81d334da0d2362033151bf6c15187bcc542393a24f4443f646ee85b16e5d46d14
|
7
|
+
data.tar.gz: 169cf78c1a28113d8dda252e9a20d1c38ea0a4d88250e34f59807157a33511e60e7a1e9e8515bcb0f4e63e9acf95c2e90fc40297be2d73f966eec92f2526d8be
|
data/lib/rcade_colors.rb
CHANGED
@@ -12,12 +12,12 @@ module Rcade
|
|
12
12
|
# "cabbed"
|
13
13
|
# "#cabbed"
|
14
14
|
def self.from_hex(hex)
|
15
|
-
color = Color::RGB.from_html(hex).to_hsl
|
15
|
+
color = ::Color::RGB.from_html(hex).to_hsl
|
16
16
|
self.from_hsv(color.hue.to_i, color.s, color.l) # 255, 1.0, 1.0
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.named(color_name)
|
20
|
-
color = Color::CSS[color_name]
|
20
|
+
color = ::Color::CSS[color_name]
|
21
21
|
raise 'Invalid color name' unless color
|
22
22
|
self.from_hex(color.html)
|
23
23
|
end
|
data/rcade_colors.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "rcade_colors"
|
5
|
-
spec.version = "0.0.
|
5
|
+
spec.version = "0.0.3"
|
6
6
|
spec.authors = ["Andrew Havens"]
|
7
7
|
spec.email = ["email@andrewhavens.com"]
|
8
8
|
spec.description = %q{Provides additional CSS Hex value and opacity support for Gosu.}
|