colorist 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG.rdoc +3 -0
  2. data/lib/colorist/color.rb +1 -1
  3. metadata +4 -3
@@ -0,0 +1,3 @@
1
+ = 0.0.2 - 2007-09-17
2
+
3
+ * Colorist::Color.from_string and String#to_color now work with capitalized colors as well as lowercase.
@@ -50,7 +50,7 @@ module Colorist
50
50
  def self.from_string(some_string)
51
51
  if matched = some_string.match(/\A#([0-9a-f]{3})\z/i)
52
52
  color = Colorist::Color.from_rgb(*matched[1].split(//).collect{|v| "#{v}#{v}".hex })
53
- elsif matched = some_string.match(/\A#([0-9a-f]{6})\z/)
53
+ elsif matched = some_string.match(/\A#([0-9a-f]{6})\z/i)
54
54
  color = Colorist::Color.new
55
55
  color.r = matched[1][0..1].hex
56
56
  color.g = matched[1][2..3].hex
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colorist
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
  - Michael Bleigh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-16 00:00:00 -05:00
12
+ date: 2008-08-16 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -25,6 +25,7 @@ extra_rdoc_files:
25
25
  files:
26
26
  - MIT_LICENSE.rdoc
27
27
  - README.rdoc
28
+ - CHANGELOG.rdoc
28
29
  - lib/colorist.rb
29
30
  - lib/colorist/color.rb
30
31
  - lib/colorist/core_extensions.rb
@@ -54,6 +55,6 @@ rubyforge_project:
54
55
  rubygems_version: 1.2.0
55
56
  signing_key:
56
57
  specification_version: 2
57
- summary: A library built to handle the easy conversion and manipulation of colors.
58
+ summary: A library built to handle the easy conversion and simple manipulation of colors.
58
59
  test_files: []
59
60