kmandrup-colorist 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/kmandrup-colorist.gemspec +1 -1
- data/lib/colorist/color_names.rb +0 -1
- data/test/colorist_test.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/kmandrup-colorist.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{kmandrup-colorist}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Bleigh", "oleg dashevskii", "Slippy Douglas", "Kristian Mandrup"]
|
data/lib/colorist/color_names.rb
CHANGED
@@ -377,7 +377,6 @@ module Colorist
|
|
377
377
|
name = hexify(name.to_s) if hex?(name)
|
378
378
|
options.flatten!
|
379
379
|
col = name
|
380
|
-
puts "name: #{name}"
|
381
380
|
col = COLORS[name.downcase.strip] if !hex?(name)
|
382
381
|
raise ArgumentError, "The color name '#{name}' cannot be coerced into a color." if !col
|
383
382
|
res = if options.include?(:hex)
|
data/test/colorist_test.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require '../lib/kmandrup-colorist'
|
2
2
|
|
3
3
|
# puts Colorist::ColorNames.color('0xfff', :lower)
|
4
|
-
|
4
|
+
puts Colorist::ColorNames.color('blue', :lower, :simple)
|
5
5
|
# puts x = Colorist::ColorNames.color(:'#FFFFAA', :lower)
|
6
6
|
# puts x = Colorist::ColorNames.color('0xFFFFAA', [:hex, :lower])
|
7
7
|
# puts x = Colorist::ColorNames.color(:red, :hex, :lower)
|