color 1.7.1 → 2.0.0.pre.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.
- checksums.yaml +5 -13
- data/CHANGELOG.md +298 -0
- data/CODE_OF_CONDUCT.md +128 -0
- data/CONTRIBUTING.md +70 -0
- data/CONTRIBUTORS.md +10 -0
- data/LICENCE.md +27 -0
- data/Manifest.txt +11 -21
- data/README.md +54 -0
- data/Rakefile +74 -53
- data/SECURITY.md +34 -0
- data/lib/color/cielab.rb +348 -0
- data/lib/color/cmyk.rb +279 -213
- data/lib/color/grayscale.rb +128 -160
- data/lib/color/hsl.rb +205 -173
- data/lib/color/rgb/colors.rb +177 -163
- data/lib/color/rgb.rb +534 -537
- data/lib/color/version.rb +5 -0
- data/lib/color/xyz.rb +214 -0
- data/lib/color/yiq.rb +91 -46
- data/lib/color.rb +208 -141
- data/test/fixtures/cielab.json +444 -0
- data/test/minitest_helper.rb +20 -4
- data/test/test_cmyk.rb +49 -71
- data/test/test_color.rb +58 -106
- data/test/test_grayscale.rb +35 -56
- data/test/test_hsl.rb +72 -76
- data/test/test_rgb.rb +195 -267
- data/test/test_yiq.rb +12 -30
- metadata +165 -150
- checksums.yaml.gz.sig +0 -0
- data/.autotest +0 -5
- data/.gemtest +0 -0
- data/.hoerc +0 -2
- data/.minitest.rb +0 -2
- data/.travis.yml +0 -35
- data/Contributing.rdoc +0 -60
- data/Gemfile +0 -9
- data/History.rdoc +0 -172
- data/Licence.rdoc +0 -27
- data/README.rdoc +0 -50
- data/lib/color/css.rb +0 -7
- data/lib/color/palette/adobecolor.rb +0 -260
- data/lib/color/palette/gimp.rb +0 -104
- data/lib/color/palette/monocontrast.rb +0 -164
- data/lib/color/palette.rb +0 -4
- data/lib/color/rgb/contrast.rb +0 -57
- data/lib/color/rgb/metallic.rb +0 -28
- data/test/test_adobecolor.rb +0 -405
- data/test/test_css.rb +0 -19
- data/test/test_gimp.rb +0 -87
- data/test/test_monocontrast.rb +0 -130
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
metadata
CHANGED
@@ -1,293 +1,308 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: color
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.pre.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Ziegler
|
8
8
|
- Matt Lyon
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
-
|
13
|
-
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUROakNDQWg2Z0F3SUJB
|
14
|
-
Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJCTVE4d0RRWURWUVFEREFaaGRY
|
15
|
-
TjAKYVc0eEdUQVhCZ29Ka2lhSmsvSXNaQUVaRmdseWRXSjVabTl5WjJVeEV6
|
16
|
-
QVJCZ29Ka2lhSmsvSXNaQUVaRmdOdgpjbWN3SGhjTk1UUXdNakl5TURNME1U
|
17
|
-
UXpXaGNOTVRVd01qSXlNRE0wTVRReldqQkJNUTh3RFFZRFZRUUREQVpoCmRY
|
18
|
-
TjBhVzR4R1RBWEJnb0praWFKay9Jc1pBRVpGZ2x5ZFdKNVptOXlaMlV4RXpB
|
19
|
-
UkJnb0praWFKay9Jc1pBRVoKRmdOdmNtY3dnZ0VpTUEwR0NTcUdTSWIzRFFF
|
20
|
-
QkFRVUFBNElCRHdBd2dnRUtBb0lCQVFDMm1QTmY0TDM3R2hLSQpTUENZc3ZZ
|
21
|
-
V1hBMi9SOXU1K3B5VW5iSjJSMW8yQ2lScTJaQS9BSXpZNk4zaEduc2dvV25o
|
22
|
-
NVJ6dmdUTjFMdDA4CkROSXJzSUcyVkRZay9KVnQ2ZjlKNnpaOEVRSGJ6bldh
|
23
|
-
M2NXWW9DRmFhSUNkazdqVjFuLzQyaGc3MGpFRFlYbDkKZ0RPbDBrNkpteUYv
|
24
|
-
cnRmRnUvT0lrRkdXZUZZSXVGSHZSdUx5VWJ3NjYrUURUT3pLYjN0OG81NUlo
|
25
|
-
Z3kxR1Z3VAppNnBrRHM4TGhaV1hkT0QrOTIxbDJaMU5aR1phOUtOYkpJZzZ2
|
26
|
-
dGdZS1U5OGpRNXFyOWlZM2lrQkFzcEhyRmFzCks2VVN2R2dBZzhmQ0Q1WWlv
|
27
|
-
dEJFdkNCTVl0ZnFtZnJocGRVMnArZ3ZUZ2VMVzFLYWV2d3FkN25nUW1GVXJG
|
28
|
-
RzEKZVVKU1VSdjVBZ01CQUFHak9UQTNNQWtHQTFVZEV3UUNNQUF3Q3dZRFZS
|
29
|
-
MFBCQVFEQWdTd01CMEdBMVVkRGdRVwpCQlFMU1NqS2VtR0RhcFlFZC9VNG1T
|
30
|
-
MXFyeTJvRWpBTkJna3Foa2lHOXcwQkFRVUZBQU9DQVFFQU5tMmFnVGRECjlT
|
31
|
-
Mk53WE1XMGphbnNJblh0UW1CNDRxay9wc1d1anRHbm4rb1QrYTlLWE81cC9n
|
32
|
-
eDJtbXg4aE1GMDJ3VUJ4MUgKazk2SFVJL2pSM0hkaFlDZkc2b0p1RXpnWHJG
|
33
|
-
aVNCSncvY09KaU04djNhSHNBd0kzTmVMZUlyUndCWUIza0kzagoxcWZKWGNP
|
34
|
-
V3c3YzYzVHJzRFgzN3hqMmU0UDBETkoxY1RyRG15RDJ5VFE1Nzc2TTEzR2I2
|
35
|
-
blhqcmVTZXEwdC9uCjYwTmo5MUoxb0hZazZMRmEwZW8vZ3lrVGJMeWFacnNh
|
36
|
-
WGxOYjNqN0NqaFV6T3BZT2hpQ1VIM3M5dEtUR1hkLysKTG1aN0J4VE1zRGha
|
37
|
-
SHkzay9FVEZoaSs3cElVV2xGbzBpbXJkeUxoZCtKdzNib1ZqM0NtdnloY3dt
|
38
|
-
cG9NMEs5bApBT21yVWlFbFVxTE9aQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
|
39
|
-
LS0tLS0K
|
40
|
-
date: 2014-07-17 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
41
12
|
dependencies:
|
42
13
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
14
|
+
name: hoe
|
44
15
|
requirement: !ruby/object:Gem::Requirement
|
45
16
|
requirements:
|
46
|
-
- - ~>
|
17
|
+
- - "~>"
|
47
18
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
19
|
+
version: '4.0'
|
49
20
|
type: :development
|
50
21
|
prerelease: false
|
51
22
|
version_requirements: !ruby/object:Gem::Requirement
|
52
23
|
requirements:
|
53
|
-
- - ~>
|
24
|
+
- - "~>"
|
54
25
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
26
|
+
version: '4.0'
|
56
27
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
28
|
+
name: hoe-halostatue
|
58
29
|
requirement: !ruby/object:Gem::Requirement
|
59
30
|
requirements:
|
60
|
-
- - ~>
|
31
|
+
- - "~>"
|
61
32
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
33
|
+
version: '2.0'
|
63
34
|
type: :development
|
64
35
|
prerelease: false
|
65
36
|
version_requirements: !ruby/object:Gem::Requirement
|
66
37
|
requirements:
|
67
|
-
- - ~>
|
38
|
+
- - "~>"
|
68
39
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
40
|
+
version: '2.0'
|
70
41
|
- !ruby/object:Gem::Dependency
|
71
42
|
name: hoe-doofus
|
72
43
|
requirement: !ruby/object:Gem::Requirement
|
73
44
|
requirements:
|
74
|
-
- - ~>
|
45
|
+
- - "~>"
|
75
46
|
- !ruby/object:Gem::Version
|
76
47
|
version: '1.0'
|
77
48
|
type: :development
|
78
49
|
prerelease: false
|
79
50
|
version_requirements: !ruby/object:Gem::Requirement
|
80
51
|
requirements:
|
81
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: hoe-rubygems
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
82
67
|
- !ruby/object:Gem::Version
|
83
68
|
version: '1.0'
|
84
69
|
- !ruby/object:Gem::Dependency
|
85
70
|
name: hoe-gemspec2
|
86
71
|
requirement: !ruby/object:Gem::Requirement
|
87
72
|
requirements:
|
88
|
-
- - ~>
|
73
|
+
- - "~>"
|
89
74
|
- !ruby/object:Gem::Version
|
90
|
-
version: '1.
|
75
|
+
version: '1.4'
|
91
76
|
type: :development
|
92
77
|
prerelease: false
|
93
78
|
version_requirements: !ruby/object:Gem::Requirement
|
94
79
|
requirements:
|
95
|
-
- - ~>
|
80
|
+
- - "~>"
|
96
81
|
- !ruby/object:Gem::Version
|
97
|
-
version: '1.
|
82
|
+
version: '1.4'
|
98
83
|
- !ruby/object:Gem::Dependency
|
99
84
|
name: hoe-git
|
100
85
|
requirement: !ruby/object:Gem::Requirement
|
101
86
|
requirements:
|
102
|
-
- - ~>
|
87
|
+
- - "~>"
|
103
88
|
- !ruby/object:Gem::Version
|
104
|
-
version: '1.
|
89
|
+
version: '1.6'
|
105
90
|
type: :development
|
106
91
|
prerelease: false
|
107
92
|
version_requirements: !ruby/object:Gem::Requirement
|
108
93
|
requirements:
|
109
|
-
- - ~>
|
94
|
+
- - "~>"
|
110
95
|
- !ruby/object:Gem::Version
|
111
|
-
version: '1.
|
96
|
+
version: '1.6'
|
112
97
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
98
|
+
name: minitest
|
114
99
|
requirement: !ruby/object:Gem::Requirement
|
115
100
|
requirements:
|
116
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '5.8'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '5.8'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: minitest-autotest
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
117
116
|
- !ruby/object:Gem::Version
|
118
117
|
version: '1.0'
|
119
118
|
type: :development
|
120
119
|
prerelease: false
|
121
120
|
version_requirements: !ruby/object:Gem::Requirement
|
122
121
|
requirements:
|
123
|
-
- - ~>
|
122
|
+
- - "~>"
|
124
123
|
- !ruby/object:Gem::Version
|
125
124
|
version: '1.0'
|
126
125
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
126
|
+
name: minitest-focus
|
128
127
|
requirement: !ruby/object:Gem::Requirement
|
129
128
|
requirements:
|
130
|
-
- - ~>
|
129
|
+
- - "~>"
|
131
130
|
- !ruby/object:Gem::Version
|
132
|
-
version: '1.
|
131
|
+
version: '1.1'
|
133
132
|
type: :development
|
134
133
|
prerelease: false
|
135
134
|
version_requirements: !ruby/object:Gem::Requirement
|
136
135
|
requirements:
|
137
|
-
- - ~>
|
136
|
+
- - "~>"
|
138
137
|
- !ruby/object:Gem::Version
|
139
|
-
version: '1.
|
138
|
+
version: '1.1'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: minitest-moar
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.0'
|
140
153
|
- !ruby/object:Gem::Dependency
|
141
154
|
name: rake
|
142
155
|
requirement: !ruby/object:Gem::Requirement
|
143
156
|
requirements:
|
144
|
-
- -
|
157
|
+
- - ">="
|
145
158
|
- !ruby/object:Gem::Version
|
146
159
|
version: '10.0'
|
160
|
+
- - "<"
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '14'
|
147
163
|
type: :development
|
148
164
|
prerelease: false
|
149
165
|
version_requirements: !ruby/object:Gem::Requirement
|
150
166
|
requirements:
|
151
|
-
- -
|
167
|
+
- - ">="
|
152
168
|
- !ruby/object:Gem::Version
|
153
169
|
version: '10.0'
|
170
|
+
- - "<"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '14'
|
154
173
|
- !ruby/object:Gem::Dependency
|
155
|
-
name:
|
174
|
+
name: rdoc
|
156
175
|
requirement: !ruby/object:Gem::Requirement
|
157
176
|
requirements:
|
158
|
-
- -
|
177
|
+
- - ">="
|
159
178
|
- !ruby/object:Gem::Version
|
160
|
-
version: '
|
179
|
+
version: '0.0'
|
161
180
|
type: :development
|
162
181
|
prerelease: false
|
163
182
|
version_requirements: !ruby/object:Gem::Requirement
|
164
183
|
requirements:
|
165
|
-
- -
|
184
|
+
- - ">="
|
166
185
|
- !ruby/object:Gem::Version
|
167
|
-
version: '
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
186
|
+
version: '0.0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: standard
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '1.0'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '1.0'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: json
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0.0'
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '0.0'
|
215
|
+
description: |-
|
216
|
+
Color is a Ruby library to provide RGB, CMYK, HSL, and other color space
|
217
|
+
manipulation support to applications that require it. It provides optional named
|
218
|
+
RGB colors that are commonly supported in HTML, # SVG, and X11 applications.
|
201
219
|
|
202
|
-
|
220
|
+
The Color library performs purely mathematical manipulation of the colors based
|
221
|
+
on color theory without reference to device color profiles (such as sRGB or
|
222
|
+
Adobe RGB). For most purposes, when working with RGB and HSL color spaces, this
|
223
|
+
won't matter. Absolute color spaces (like CIE LAB and CIE XYZ) cannot be
|
224
|
+
reliably converted to relative color spaces (like RGB) without color profiles.
|
225
|
+
When necessary for conversions, Color provides D65 and D50 reference white
|
226
|
+
values in Color::XYZ.
|
203
227
|
|
204
|
-
|
228
|
+
Color 2.0 is a major release, dropping support for all versions of Ruby prior to
|
229
|
+
3.2 as well as removing or renaming a number of features. The main breaking
|
230
|
+
changes are:
|
205
231
|
|
206
|
-
|
232
|
+
- Color classes are immutable Data objects; they are no longer mutable.
|
233
|
+
- RGB named colors are no longer loaded on gem startup, but must be required
|
234
|
+
explicitly (this is _not_ done via `autoload` because there are more than 100
|
235
|
+
named colors with spelling variations) with `require "color/rgb/colors"`.
|
236
|
+
- Color palettes have been removed.
|
237
|
+
- `Color::CSS` and `Color::CSS#[]` have been removed.
|
207
238
|
email:
|
208
239
|
- halostatue@gmail.com
|
209
240
|
- matt@postsomnia.com
|
210
241
|
executables: []
|
211
242
|
extensions: []
|
212
243
|
extra_rdoc_files:
|
213
|
-
-
|
214
|
-
-
|
215
|
-
-
|
244
|
+
- CHANGELOG.md
|
245
|
+
- CODE_OF_CONDUCT.md
|
246
|
+
- CONTRIBUTING.md
|
247
|
+
- CONTRIBUTORS.md
|
248
|
+
- LICENCE.md
|
216
249
|
- Manifest.txt
|
217
|
-
- README.
|
250
|
+
- README.md
|
251
|
+
- SECURITY.md
|
218
252
|
files:
|
219
|
-
- .
|
220
|
-
- .
|
221
|
-
- .
|
222
|
-
- .
|
223
|
-
- .
|
224
|
-
- Contributing.rdoc
|
225
|
-
- Gemfile
|
226
|
-
- History.rdoc
|
227
|
-
- Licence.rdoc
|
253
|
+
- CHANGELOG.md
|
254
|
+
- CODE_OF_CONDUCT.md
|
255
|
+
- CONTRIBUTING.md
|
256
|
+
- CONTRIBUTORS.md
|
257
|
+
- LICENCE.md
|
228
258
|
- Manifest.txt
|
229
|
-
- README.
|
259
|
+
- README.md
|
230
260
|
- Rakefile
|
261
|
+
- SECURITY.md
|
231
262
|
- lib/color.rb
|
263
|
+
- lib/color/cielab.rb
|
232
264
|
- lib/color/cmyk.rb
|
233
|
-
- lib/color/css.rb
|
234
265
|
- lib/color/grayscale.rb
|
235
266
|
- lib/color/hsl.rb
|
236
|
-
- lib/color/palette.rb
|
237
|
-
- lib/color/palette/adobecolor.rb
|
238
|
-
- lib/color/palette/gimp.rb
|
239
|
-
- lib/color/palette/monocontrast.rb
|
240
267
|
- lib/color/rgb.rb
|
241
268
|
- lib/color/rgb/colors.rb
|
242
|
-
- lib/color/
|
243
|
-
- lib/color/
|
269
|
+
- lib/color/version.rb
|
270
|
+
- lib/color/xyz.rb
|
244
271
|
- lib/color/yiq.rb
|
272
|
+
- test/fixtures/cielab.json
|
245
273
|
- test/minitest_helper.rb
|
246
|
-
- test/test_adobecolor.rb
|
247
274
|
- test/test_cmyk.rb
|
248
275
|
- test/test_color.rb
|
249
|
-
- test/test_css.rb
|
250
|
-
- test/test_gimp.rb
|
251
276
|
- test/test_grayscale.rb
|
252
277
|
- test/test_hsl.rb
|
253
|
-
- test/test_monocontrast.rb
|
254
278
|
- test/test_rgb.rb
|
255
279
|
- test/test_yiq.rb
|
256
280
|
homepage: https://github.com/halostatue/color
|
257
281
|
licenses:
|
258
282
|
- MIT
|
259
|
-
metadata:
|
260
|
-
|
283
|
+
metadata:
|
284
|
+
source_code_uri: https://github.com/halostatue/color
|
285
|
+
bug_tracker_uri: https://github.com/halostatue/color/issues
|
286
|
+
changelog_uri: https://github.com/halostatue/color/blob/main/CHANGELOG.md
|
287
|
+
rubygems_mfa_required: 'true'
|
261
288
|
rdoc_options:
|
262
|
-
- --main
|
263
|
-
- README.
|
289
|
+
- "--main"
|
290
|
+
- README.md
|
264
291
|
require_paths:
|
265
292
|
- lib
|
266
293
|
required_ruby_version: !ruby/object:Gem::Requirement
|
267
294
|
requirements:
|
268
|
-
- -
|
295
|
+
- - ">="
|
269
296
|
- !ruby/object:Gem::Version
|
270
|
-
version: '
|
297
|
+
version: '3.2'
|
271
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
272
299
|
requirements:
|
273
|
-
- -
|
300
|
+
- - ">="
|
274
301
|
- !ruby/object:Gem::Version
|
275
302
|
version: '0'
|
276
303
|
requirements: []
|
277
|
-
|
278
|
-
rubygems_version: 2.2.1
|
279
|
-
signing_key:
|
304
|
+
rubygems_version: 3.6.9
|
280
305
|
specification_version: 4
|
281
|
-
summary: Color is a Ruby library to provide
|
306
|
+
summary: Color is a Ruby library to provide RGB, CMYK, HSL, and other color space
|
282
307
|
manipulation support to applications that require it
|
283
|
-
test_files:
|
284
|
-
- test/test_adobecolor.rb
|
285
|
-
- test/test_cmyk.rb
|
286
|
-
- test/test_color.rb
|
287
|
-
- test/test_css.rb
|
288
|
-
- test/test_gimp.rb
|
289
|
-
- test/test_grayscale.rb
|
290
|
-
- test/test_hsl.rb
|
291
|
-
- test/test_monocontrast.rb
|
292
|
-
- test/test_rgb.rb
|
293
|
-
- test/test_yiq.rb
|
308
|
+
test_files: []
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data/.autotest
DELETED
data/.gemtest
DELETED
File without changes
|
data/.hoerc
DELETED
data/.minitest.rb
DELETED
data/.travis.yml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.1.0
|
5
|
-
- 2.0.0
|
6
|
-
- 1.9.3
|
7
|
-
- jruby-19mode
|
8
|
-
- rbx-2
|
9
|
-
- 1.8.7
|
10
|
-
- jruby-18mode
|
11
|
-
- ree
|
12
|
-
- ruby-head
|
13
|
-
- jruby-head
|
14
|
-
matrix:
|
15
|
-
allow_failures:
|
16
|
-
- rvm: rbx-2
|
17
|
-
gemfile:
|
18
|
-
- Gemfile
|
19
|
-
before_script:
|
20
|
-
- |
|
21
|
-
case "${TRAVIS_RUBY_VERSION}" in
|
22
|
-
rbx*)
|
23
|
-
gem install psych
|
24
|
-
;;
|
25
|
-
esac
|
26
|
-
- rake travis:before -t
|
27
|
-
script: rake travis
|
28
|
-
after_script:
|
29
|
-
- rake travis:after -t
|
30
|
-
notifications:
|
31
|
-
email:
|
32
|
-
recipients:
|
33
|
-
- austin@rubyforge.org
|
34
|
-
on_success: change
|
35
|
-
on_failure: always
|
data/Contributing.rdoc
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
== Contributing
|
2
|
-
|
3
|
-
I value any contribution to Color you can provide: a bug report, a feature
|
4
|
-
request, or code contributions.
|
5
|
-
|
6
|
-
Code contributions to Color are especially <del>welcome</del>encouraged.
|
7
|
-
Because Color is a complex codebase, there are a few guidelines:
|
8
|
-
|
9
|
-
* Changes <strong>will not</strong> be accepted without tests.
|
10
|
-
* Match my coding style.
|
11
|
-
* Use a thoughtfully-named topic branch that contains your change. Rebase your
|
12
|
-
commits into logical chunks as necessary.
|
13
|
-
* Use {quality commit messages}[http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html].
|
14
|
-
* Do not change the version number; when your patch is accepted and a release
|
15
|
-
is made, the version will be updated at that point.
|
16
|
-
* Submit a GitHub pull request with your changes.
|
17
|
-
* New features require new documentation.
|
18
|
-
|
19
|
-
=== Test Dependencies
|
20
|
-
|
21
|
-
To run the test suite, you will need to install the development dependencies
|
22
|
-
for Color. If you have Bundler, you can accomplish this easily:
|
23
|
-
|
24
|
-
$ bundle install
|
25
|
-
|
26
|
-
Color uses Ryan Davis’s excellent {Hoe}[https://github.com/seattlerb/hoe]
|
27
|
-
to manage the release process, and it adds a number of rake tasks. You will
|
28
|
-
mostly be interested in:
|
29
|
-
|
30
|
-
$ rake
|
31
|
-
|
32
|
-
which runs the tests the same way that:
|
33
|
-
|
34
|
-
$ rake spec
|
35
|
-
$ rake test
|
36
|
-
$ rake travis
|
37
|
-
|
38
|
-
will do.
|
39
|
-
|
40
|
-
=== Workflow
|
41
|
-
|
42
|
-
Here's the most direct way to get your work merged into the project:
|
43
|
-
|
44
|
-
* Fork the project.
|
45
|
-
* Clone down your fork (+git clone git://github.com/<username>/color.git+).
|
46
|
-
* Create a topic branch to contain your change (+git checkout -b my\_awesome\_feature+).
|
47
|
-
* Hack away, add tests. Not necessarily in that order.
|
48
|
-
* Make sure everything still passes by running `rake`.
|
49
|
-
* If necessary, rebase your commits into logical chunks, without errors.
|
50
|
-
* Push the branch up (+git push origin my\_awesome\_feature+).
|
51
|
-
* Create a pull request against halostatue/color and describe what your
|
52
|
-
change does and the why you think it should be merged.
|
53
|
-
|
54
|
-
=== Contributors
|
55
|
-
|
56
|
-
* Austin Ziegler created color-tools.
|
57
|
-
* Matt Lyons created color.
|
58
|
-
* Dave Heitzman (contrast comparison)
|
59
|
-
* Thomas Sawyer
|
60
|
-
* Aaron Hill (CIE94 colour matching)
|