color-tools 1.2.0 → 1.3.0
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.
- data/Changelog +35 -1
- data/Install +11 -2
- data/README +44 -12
- data/Rakefile +11 -2
- data/lib/color.rb +35 -158
- data/lib/color/cmyk.rb +62 -18
- data/lib/color/css.rb +27 -0
- data/lib/color/grayscale.rb +43 -13
- data/lib/color/hsl.rb +130 -0
- data/lib/color/palette.rb +4 -0
- data/lib/color/palette/gimp.rb +47 -12
- data/lib/color/palette/monocontrast.rb +41 -11
- data/lib/color/rgb-colors.rb +189 -0
- data/lib/color/rgb.rb +163 -27
- data/lib/color/rgb/metallic.rb +28 -0
- data/lib/color/yiq.rb +35 -9
- data/metaconfig +11 -2
- data/pre-setup.rb +12 -3
- data/tests/test_cmyk.rb +116 -0
- data/tests/test_css.rb +28 -0
- data/tests/test_gimp.rb +79 -0
- data/tests/test_grayscale.rb +87 -0
- data/tests/test_hsl.rb +93 -0
- data/tests/test_monocontrast.rb +145 -0
- data/tests/test_rgb.rb +160 -0
- data/tests/test_yiq.rb +81 -0
- data/tests/testall.rb +20 -0
- metadata +23 -8
data/tests/testall.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#--
|
3
|
+
# Colour management with Ruby.
|
4
|
+
#
|
5
|
+
# Copyright 2005 Austin Ziegler
|
6
|
+
# http://rubyforge.org/ruby-pdf/
|
7
|
+
#
|
8
|
+
# Licensed under a MIT-style licence.
|
9
|
+
#
|
10
|
+
# $Id: testall.rb,v 1.2 2005/08/08 02:53:16 austin Exp $
|
11
|
+
#++
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../lib") if __FILE__ == $0
|
14
|
+
|
15
|
+
puts "Checking for test cases:"
|
16
|
+
Dir['test_*.rb'].each do |testcase|
|
17
|
+
puts "\t#{testcase}"
|
18
|
+
require testcase
|
19
|
+
end
|
20
|
+
puts " "
|
metadata
CHANGED
@@ -3,19 +3,19 @@ rubygems_version: 0.8.10
|
|
3
3
|
specification_version: 1
|
4
4
|
name: color-tools
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.
|
7
|
-
date: 2005-07
|
8
|
-
summary: color-tools provides
|
6
|
+
version: 1.3.0
|
7
|
+
date: 2005-08-07
|
8
|
+
summary: color-tools provides colour space definition and manpiulation as well as commonly named RGB colours.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: austin@rubyforge.org
|
12
12
|
homepage: http://rubyforge.org/projects/ruby-pdf
|
13
13
|
rubyforge_project: ruby-pdf
|
14
|
-
description: "color-tools is a Ruby library to provide RGB, CMYK, and other
|
15
|
-
applications that require it. It provides
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
description: "color-tools is a Ruby library to provide RGB, CMYK, and other colourspace
|
15
|
+
support to applications that require it. It also provides 152 named RGB colours.
|
16
|
+
It offers 152 named RGB colours (184 with spelling variations) that are commonly
|
17
|
+
supported and used in HTML, SVG, and X11 applications. A technique for
|
18
|
+
generating a monochromatic contrasting palette is also included."
|
19
19
|
autorequire: color
|
20
20
|
default_executable:
|
21
21
|
bindir: bin
|
@@ -39,16 +39,31 @@ files:
|
|
39
39
|
- Rakefile
|
40
40
|
- README
|
41
41
|
- setup.rb
|
42
|
+
- tests
|
42
43
|
- lib/color
|
43
44
|
- lib/color.rb
|
44
45
|
- lib/color/cmyk.rb
|
46
|
+
- lib/color/css.rb
|
45
47
|
- lib/color/grayscale.rb
|
48
|
+
- lib/color/hsl.rb
|
46
49
|
- lib/color/palette
|
47
50
|
- lib/color/palette.rb
|
51
|
+
- lib/color/rgb
|
52
|
+
- lib/color/rgb-colors.rb
|
48
53
|
- lib/color/rgb.rb
|
49
54
|
- lib/color/yiq.rb
|
50
55
|
- lib/color/palette/gimp.rb
|
51
56
|
- lib/color/palette/monocontrast.rb
|
57
|
+
- lib/color/rgb/metallic.rb
|
58
|
+
- tests/testall.rb
|
59
|
+
- tests/test_cmyk.rb
|
60
|
+
- tests/test_css.rb
|
61
|
+
- tests/test_gimp.rb
|
62
|
+
- tests/test_grayscale.rb
|
63
|
+
- tests/test_hsl.rb
|
64
|
+
- tests/test_monocontrast.rb
|
65
|
+
- tests/test_rgb.rb
|
66
|
+
- tests/test_yiq.rb
|
52
67
|
test_files: []
|
53
68
|
rdoc_options:
|
54
69
|
- "--title"
|