color 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +3 -3
- data/.gemtest +0 -0
- data/.hoerc +2 -0
- data/Contributing.rdoc +57 -0
- data/{History.txt → History.rdoc} +18 -13
- data/{Licence.txt → Licence.rdoc} +4 -4
- data/Manifest.txt +4 -6
- data/README.rdoc +45 -0
- data/Rakefile +29 -111
- data/lib/color.rb +4 -16
- data/lib/color/cmyk.rb +0 -12
- data/lib/color/css.rb +0 -12
- data/lib/color/grayscale.rb +3 -17
- data/lib/color/hsl.rb +0 -12
- data/lib/color/palette.rb +0 -12
- data/lib/color/palette/adobecolor.rb +0 -12
- data/lib/color/palette/gimp.rb +0 -12
- data/lib/color/palette/monocontrast.rb +3 -15
- data/lib/color/rgb-colors.rb +0 -12
- data/lib/color/rgb.rb +4 -16
- data/lib/color/rgb/metallic.rb +0 -12
- data/lib/color/yiq.rb +1 -13
- data/test/test_adobecolor.rb +9 -23
- data/test/test_cmyk.rb +20 -36
- data/test/test_color.rb +4 -16
- data/test/test_css.rb +3 -15
- data/test/test_gimp.rb +8 -22
- data/test/test_grayscale.rb +11 -27
- data/test/test_hsl.rb +20 -38
- data/test/test_monocontrast.rb +13 -25
- data/test/test_rgb.rb +20 -32
- data/test/test_yiq.rb +12 -24
- metadata +271 -99
- metadata.gz.sig +1 -3
- data/Install.txt +0 -18
- data/README.txt +0 -32
- data/setup.rb +0 -1585
- data/test/test_all.rb +0 -23
metadata
CHANGED
@@ -1,106 +1,281 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: color
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.4.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Austin Ziegler
|
8
9
|
- Matt Lyon
|
9
10
|
autorequire:
|
10
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
+
eUJSURv5AgMBAAGjOTA3MAkGA1UdEwQCMAAwHQYDVR0OBBYEFAtJKMp6YYNqlgR3
|
36
|
+
|
37
|
+
9TiZLWqvLagSMAsGA1UdDwQEAwIEsDANBgkqhkiG9w0BAQUFAAOCAQEApTPkvDm8
|
38
|
+
|
39
|
+
7gJlUT4FfumXPvtuqP67LxUtGE8syvR0A4As+0P/wylLJFUOsGTTdZYtThhxCSJG
|
40
|
+
|
41
|
+
+7KG2FfIcH4Zz2d97arZGAzBoi8iPht2/UtSl1fCcUI5vmJa1MiXZT2oqdW7Wydq
|
42
|
+
|
43
|
+
rAZcBPlrYYuiwtGI0yqIOgBfXSZCWWsJsuyTKELep6mCLgz0YZUfmvKr8W/Ab3ax
|
44
|
+
|
45
|
+
DuLzH92LSRjZJyjyAUpw/Vc2rM4giiP5jtByrb1Y1dGnQhHTMHf1GfucWm7Nw/V9
|
46
|
+
|
47
|
+
twEPVw8+0f88JQucxOTmTF1NbLFpiRwQUZ1zoZbNg2e7mShc/eexnVLWKFKxRoP6
|
48
|
+
|
49
|
+
KPj3WoD+spB8fA==
|
50
|
+
|
32
51
|
-----END CERTIFICATE-----
|
33
52
|
|
34
|
-
|
35
|
-
|
36
|
-
dependencies:
|
37
|
-
- !ruby/object:Gem::Dependency
|
53
|
+
'
|
54
|
+
date: 2013-07-01 00:00:00.000000000 Z
|
55
|
+
dependencies:
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: minitest
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '5.0'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ~>
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '5.0'
|
72
|
+
- !ruby/object:Gem::Dependency
|
38
73
|
name: rubyforge
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 2.0.4
|
80
|
+
type: :development
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 2.0.4
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: rdoc
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '4.0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.0'
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: hoe-bundler
|
106
|
+
requirement: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '1.2'
|
39
112
|
type: :development
|
40
|
-
|
41
|
-
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ~>
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '1.2'
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: hoe-doofus
|
122
|
+
requirement: !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ~>
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '1.0'
|
49
128
|
type: :development
|
50
|
-
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name:
|
129
|
+
prerelease: false
|
130
|
+
version_requirements: !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
132
|
+
requirements:
|
133
|
+
- - ~>
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '1.0'
|
136
|
+
- !ruby/object:Gem::Dependency
|
137
|
+
name: hoe-gemspec2
|
138
|
+
requirement: !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ~>
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '1.1'
|
59
144
|
type: :development
|
60
|
-
|
61
|
-
version_requirements: !ruby/object:Gem::Requirement
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
- !ruby/object:Gem::Dependency
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
none: false
|
148
|
+
requirements:
|
149
|
+
- - ~>
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '1.1'
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: hoe-git
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
155
|
+
none: false
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.5'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
none: false
|
164
|
+
requirements:
|
165
|
+
- - ~>
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '1.5'
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: hoe-rubygems
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ~>
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '1.0'
|
176
|
+
type: :development
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: !ruby/object:Gem::Requirement
|
179
|
+
none: false
|
180
|
+
requirements:
|
181
|
+
- - ~>
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '1.0'
|
184
|
+
- !ruby/object:Gem::Dependency
|
185
|
+
name: hoe-travis
|
186
|
+
requirement: !ruby/object:Gem::Requirement
|
187
|
+
none: false
|
188
|
+
requirements:
|
189
|
+
- - ~>
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '1.2'
|
192
|
+
type: :development
|
193
|
+
prerelease: false
|
194
|
+
version_requirements: !ruby/object:Gem::Requirement
|
195
|
+
none: false
|
196
|
+
requirements:
|
197
|
+
- - ~>
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '1.2'
|
200
|
+
- !ruby/object:Gem::Dependency
|
201
|
+
name: rake
|
202
|
+
requirement: !ruby/object:Gem::Requirement
|
203
|
+
none: false
|
204
|
+
requirements:
|
205
|
+
- - ~>
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '10.0'
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
none: false
|
212
|
+
requirements:
|
213
|
+
- - ~>
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '10.0'
|
216
|
+
- !ruby/object:Gem::Dependency
|
68
217
|
name: hoe
|
218
|
+
requirement: !ruby/object:Gem::Requirement
|
219
|
+
none: false
|
220
|
+
requirements:
|
221
|
+
- - ~>
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '3.6'
|
69
224
|
type: :development
|
70
|
-
|
71
|
-
version_requirements: !ruby/object:Gem::Requirement
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
description:
|
225
|
+
prerelease: false
|
226
|
+
version_requirements: !ruby/object:Gem::Requirement
|
227
|
+
none: false
|
228
|
+
requirements:
|
229
|
+
- - ~>
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '3.6'
|
232
|
+
description: ! 'Color is a Ruby library to provide basic RGB, CMYK, HSL, and other
|
233
|
+
colourspace
|
234
|
+
|
235
|
+
manipulation support to applications that require it. It also provides 152
|
236
|
+
|
237
|
+
named RGB colours (184 with spelling variations) that are commonly supported in
|
238
|
+
|
239
|
+
HTML, SVG, and X11 applications. A technique for generating monochromatic
|
240
|
+
|
241
|
+
contrasting palettes is also included.
|
242
|
+
|
243
|
+
|
78
244
|
The capabilities of the Color library are limited to pure mathematical
|
245
|
+
|
79
246
|
manipulation of the colours based on colour theory without reference to colour
|
247
|
+
|
80
248
|
profiles (such as sRGB or Adobe RGB). For most purposes, when working with the
|
81
|
-
|
249
|
+
|
250
|
+
RGB and HSL colours, this won''t matter. However, some colour models (like CIE
|
251
|
+
|
82
252
|
L*a*b*) are not supported because Color does not yet support colour profiles,
|
253
|
+
|
83
254
|
giving no meaningful way to convert colours in absolute colour spaces (like
|
255
|
+
|
84
256
|
L*a*b*, XYZ) to non-absolute colour spaces (like RGB).
|
85
|
-
|
257
|
+
|
258
|
+
|
259
|
+
Color version 1.4.2 updates the release and install as a RubyGem to remove an
|
260
|
+
|
261
|
+
unnecessary dependency, adds code climate analysis, and Travis CI support.'
|
262
|
+
email:
|
86
263
|
- austin@rubyforge.org
|
87
264
|
- matt@postsomnia.com
|
88
265
|
executables: []
|
89
|
-
|
90
266
|
extensions: []
|
91
|
-
|
92
|
-
|
93
|
-
-
|
94
|
-
- Install.txt
|
95
|
-
- Licence.txt
|
267
|
+
extra_rdoc_files:
|
268
|
+
- History.rdoc
|
269
|
+
- Licence.rdoc
|
96
270
|
- Manifest.txt
|
97
|
-
- README.
|
98
|
-
|
99
|
-
|
100
|
-
-
|
101
|
-
-
|
271
|
+
- README.rdoc
|
272
|
+
- Contributing.rdoc
|
273
|
+
files:
|
274
|
+
- .hoerc
|
275
|
+
- History.rdoc
|
276
|
+
- Licence.rdoc
|
102
277
|
- Manifest.txt
|
103
|
-
- README.
|
278
|
+
- README.rdoc
|
104
279
|
- Rakefile
|
105
280
|
- lib/color.rb
|
106
281
|
- lib/color/cmyk.rb
|
@@ -115,9 +290,7 @@ files:
|
|
115
290
|
- lib/color/rgb.rb
|
116
291
|
- lib/color/rgb/metallic.rb
|
117
292
|
- lib/color/yiq.rb
|
118
|
-
- setup.rb
|
119
293
|
- test/test_adobecolor.rb
|
120
|
-
- test/test_all.rb
|
121
294
|
- test/test_cmyk.rb
|
122
295
|
- test/test_color.rb
|
123
296
|
- test/test_css.rb
|
@@ -127,38 +300,37 @@ files:
|
|
127
300
|
- test/test_monocontrast.rb
|
128
301
|
- test/test_rgb.rb
|
129
302
|
- test/test_yiq.rb
|
130
|
-
|
131
|
-
|
303
|
+
- Contributing.rdoc
|
304
|
+
- .gemtest
|
305
|
+
homepage: http://color.rubyforge.org
|
132
306
|
licenses: []
|
133
|
-
|
134
307
|
post_install_message:
|
135
|
-
rdoc_options:
|
308
|
+
rdoc_options:
|
136
309
|
- --main
|
137
|
-
- README.
|
138
|
-
require_paths:
|
310
|
+
- README.rdoc
|
311
|
+
require_paths:
|
139
312
|
- lib
|
140
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
313
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
314
|
+
none: false
|
315
|
+
requirements:
|
316
|
+
- - ! '>='
|
317
|
+
- !ruby/object:Gem::Version
|
318
|
+
version: '0'
|
319
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
320
|
+
none: false
|
321
|
+
requirements:
|
322
|
+
- - ! '>='
|
323
|
+
- !ruby/object:Gem::Version
|
324
|
+
version: '0'
|
152
325
|
requirements: []
|
153
|
-
|
154
326
|
rubyforge_project: color
|
155
|
-
rubygems_version: 1.
|
327
|
+
rubygems_version: 1.8.25
|
156
328
|
signing_key:
|
157
329
|
specification_version: 3
|
158
|
-
summary:
|
159
|
-
|
330
|
+
summary: Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace
|
331
|
+
manipulation support to applications that require it
|
332
|
+
test_files:
|
160
333
|
- test/test_adobecolor.rb
|
161
|
-
- test/test_all.rb
|
162
334
|
- test/test_cmyk.rb
|
163
335
|
- test/test_color.rb
|
164
336
|
- test/test_css.rb
|
metadata.gz.sig
CHANGED
data/Install.txt
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
== Installing Color
|
2
|
-
|
3
|
-
Color may be installed with:
|
4
|
-
|
5
|
-
% ruby setup.rb
|
6
|
-
|
7
|
-
Alternatively, the RubyGems version of Color may be installed from the usual
|
8
|
-
sources.
|
9
|
-
|
10
|
-
== Copyright
|
11
|
-
Color
|
12
|
-
Colour Management with Ruby
|
13
|
-
http://rubyforge.org/projects/color
|
14
|
-
|
15
|
-
Licensed under a MIT-style licence. See Licence.txt in the main
|
16
|
-
distribution for full licensing information.
|
17
|
-
|
18
|
-
Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon
|
data/README.txt
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
= Color
|
2
|
-
Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace
|
3
|
-
manipulation support to applications that require it. It also provides 152
|
4
|
-
named RGB colours (184 with spelling variations) that are commonly supported
|
5
|
-
in HTML, SVG, and X11 applications. A technique for generating monochromatic
|
6
|
-
contrasting palettes is also included.
|
7
|
-
|
8
|
-
The capabilities of the Color library are limited to pure mathematical
|
9
|
-
manipulation of the colours based on colour theory without reference to colour
|
10
|
-
profiles (such as sRGB or Adobe RGB). For most purposes, when working with the
|
11
|
-
RGB and HSL colours, this won't matter. However, some colour models (like CIE
|
12
|
-
L*a*b*) are not supported because Color does not yet support colour profiles,
|
13
|
-
giving no meaningful way to convert colours in absolute colour spaces (like
|
14
|
-
L*a*b*, XYZ) to non-absolute colour spaces (like RGB).
|
15
|
-
|
16
|
-
Color version 1.4 is the result of a project merge between color.rb 0.1.0 by
|
17
|
-
Matt Lyon and color-tools 1.3 by Austin Ziegler. Please see History.txt for
|
18
|
-
details on the changes this merge brings. Color version 1.4.1 changes
|
19
|
-
development to GitHub and fixes some small problems.
|
20
|
-
|
21
|
-
Copyright:: Copyright (c) 2005 - 2010 by Austin Ziegler and Matt Lyon
|
22
|
-
Version:: 1.4.1
|
23
|
-
Homepage:: http://rubyforge.org/projects/color/
|
24
|
-
Licence:: MIT-Style; see Licence.txt
|
25
|
-
|
26
|
-
Color::Palette was developed based on techniques described by Andy "Malarkey"
|
27
|
-
Clarke[1], implemented in JavaScript by Steve G. Chipman at SlayerOffice[2] and
|
28
|
-
by Patrick Fitzgerald of BarelyFitz[3] in PHP.
|
29
|
-
|
30
|
-
[1] http://www.stuffandnonsense.co.uk/archives/creating_colour_palettes.html
|
31
|
-
[2] http://slayeroffice.com/tools/color_palette/
|
32
|
-
[3] http://www.barelyfitz.com/projects/csscolor/
|