color 1.8 → 2.0.1
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 -5
- data/CHANGELOG.md +314 -0
- data/CODE_OF_CONDUCT.md +128 -0
- data/CONTRIBUTING.md +84 -0
- data/CONTRIBUTORS.md +11 -0
- data/LICENCE.md +50 -0
- data/Manifest.txt +12 -23
- data/README.md +54 -0
- data/Rakefile +72 -61
- data/SECURITY.md +39 -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 +211 -161
- data/lib/color/rgb.rb +527 -551
- 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 +204 -142
- data/licences/dco.txt +34 -0
- data/test/fixtures/cielab.json +444 -0
- data/test/minitest_helper.rb +20 -4
- data/test/test_cmyk.rb +49 -72
- data/test/test_color.rb +58 -112
- data/test/test_grayscale.rb +35 -57
- data/test/test_hsl.rb +71 -77
- data/test/test_rgb.rb +195 -267
- data/test/test_yiq.rb +12 -30
- metadata +104 -121
- data/.autotest +0 -5
- data/.coveralls.yml +0 -2
- data/.gemtest +0 -0
- data/.hoerc +0 -2
- data/.minitest.rb +0 -2
- data/.travis.yml +0 -41
- data/Code-of-Conduct.rdoc +0 -41
- data/Contributing.rdoc +0 -62
- data/Gemfile +0 -9
- data/History.rdoc +0 -194
- data/Licence.rdoc +0 -27
- data/README.rdoc +0 -52
- 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
metadata
CHANGED
@@ -1,32 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: color
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Ziegler
|
8
8
|
- Matt Lyon
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - "~>"
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '5.8'
|
21
|
-
type: :development
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - "~>"
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '5.8'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: rdoc
|
14
|
+
name: hoe
|
30
15
|
requirement: !ruby/object:Gem::Requirement
|
31
16
|
requirements:
|
32
17
|
- - "~>"
|
@@ -40,33 +25,25 @@ dependencies:
|
|
40
25
|
- !ruby/object:Gem::Version
|
41
26
|
version: '4.0'
|
42
27
|
- !ruby/object:Gem::Dependency
|
43
|
-
name: hoe-
|
28
|
+
name: hoe-halostatue
|
44
29
|
requirement: !ruby/object:Gem::Requirement
|
45
30
|
requirements:
|
46
31
|
- - "~>"
|
47
32
|
- !ruby/object:Gem::Version
|
48
|
-
version: '1
|
49
|
-
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '1.0'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: hoe-gemspec2
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - "~>"
|
33
|
+
version: '2.1'
|
34
|
+
- - ">="
|
61
35
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
36
|
+
version: 2.1.1
|
63
37
|
type: :development
|
64
38
|
prerelease: false
|
65
39
|
version_requirements: !ruby/object:Gem::Requirement
|
66
40
|
requirements:
|
67
41
|
- - "~>"
|
68
42
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
43
|
+
version: '2.1'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.1.1
|
70
47
|
- !ruby/object:Gem::Dependency
|
71
48
|
name: hoe-git
|
72
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,244 +59,250 @@ dependencies:
|
|
82
59
|
- !ruby/object:Gem::Version
|
83
60
|
version: '1.6'
|
84
61
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
62
|
+
name: minitest
|
86
63
|
requirement: !ruby/object:Gem::Requirement
|
87
64
|
requirements:
|
88
65
|
- - "~>"
|
89
66
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
67
|
+
version: '5.8'
|
91
68
|
type: :development
|
92
69
|
prerelease: false
|
93
70
|
version_requirements: !ruby/object:Gem::Requirement
|
94
71
|
requirements:
|
95
72
|
- - "~>"
|
96
73
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
74
|
+
version: '5.8'
|
98
75
|
- !ruby/object:Gem::Dependency
|
99
|
-
name: minitest-
|
76
|
+
name: minitest-autotest
|
100
77
|
requirement: !ruby/object:Gem::Requirement
|
101
78
|
requirements:
|
102
79
|
- - "~>"
|
103
80
|
- !ruby/object:Gem::Version
|
104
|
-
version: '0
|
81
|
+
version: '1.0'
|
105
82
|
type: :development
|
106
83
|
prerelease: false
|
107
84
|
version_requirements: !ruby/object:Gem::Requirement
|
108
85
|
requirements:
|
109
86
|
- - "~>"
|
110
87
|
- !ruby/object:Gem::Version
|
111
|
-
version: '0
|
88
|
+
version: '1.0'
|
112
89
|
- !ruby/object:Gem::Dependency
|
113
|
-
name: minitest-
|
90
|
+
name: minitest-focus
|
114
91
|
requirement: !ruby/object:Gem::Requirement
|
115
92
|
requirements:
|
116
93
|
- - "~>"
|
117
94
|
- !ruby/object:Gem::Version
|
118
|
-
version: '1.
|
95
|
+
version: '1.1'
|
119
96
|
type: :development
|
120
97
|
prerelease: false
|
121
98
|
version_requirements: !ruby/object:Gem::Requirement
|
122
99
|
requirements:
|
123
100
|
- - "~>"
|
124
101
|
- !ruby/object:Gem::Version
|
125
|
-
version: '1.
|
102
|
+
version: '1.1'
|
126
103
|
- !ruby/object:Gem::Dependency
|
127
|
-
name: minitest-
|
104
|
+
name: minitest-moar
|
128
105
|
requirement: !ruby/object:Gem::Requirement
|
129
106
|
requirements:
|
130
107
|
- - "~>"
|
131
108
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
109
|
+
version: '0.0'
|
133
110
|
type: :development
|
134
111
|
prerelease: false
|
135
112
|
version_requirements: !ruby/object:Gem::Requirement
|
136
113
|
requirements:
|
137
114
|
- - "~>"
|
138
115
|
- !ruby/object:Gem::Version
|
139
|
-
version: '
|
116
|
+
version: '0.0'
|
140
117
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
118
|
+
name: rake
|
142
119
|
requirement: !ruby/object:Gem::Requirement
|
143
120
|
requirements:
|
144
|
-
- - "
|
121
|
+
- - ">="
|
145
122
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
123
|
+
version: '10.0'
|
124
|
+
- - "<"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '14'
|
147
127
|
type: :development
|
148
128
|
prerelease: false
|
149
129
|
version_requirements: !ruby/object:Gem::Requirement
|
150
130
|
requirements:
|
151
|
-
- - "
|
131
|
+
- - ">="
|
152
132
|
- !ruby/object:Gem::Version
|
153
|
-
version: '
|
133
|
+
version: '10.0'
|
134
|
+
- - "<"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '14'
|
154
137
|
- !ruby/object:Gem::Dependency
|
155
|
-
name:
|
138
|
+
name: rdoc
|
156
139
|
requirement: !ruby/object:Gem::Requirement
|
157
140
|
requirements:
|
158
|
-
- - "
|
141
|
+
- - ">="
|
159
142
|
- !ruby/object:Gem::Version
|
160
143
|
version: '0.0'
|
144
|
+
- - "<"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '7'
|
161
147
|
type: :development
|
162
148
|
prerelease: false
|
163
149
|
version_requirements: !ruby/object:Gem::Requirement
|
164
150
|
requirements:
|
165
|
-
- - "
|
151
|
+
- - ">="
|
166
152
|
- !ruby/object:Gem::Version
|
167
153
|
version: '0.0'
|
154
|
+
- - "<"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '7'
|
168
157
|
- !ruby/object:Gem::Dependency
|
169
|
-
name:
|
158
|
+
name: standard
|
170
159
|
requirement: !ruby/object:Gem::Requirement
|
171
160
|
requirements:
|
172
161
|
- - "~>"
|
173
162
|
- !ruby/object:Gem::Version
|
174
|
-
version: '0
|
163
|
+
version: '1.0'
|
175
164
|
type: :development
|
176
165
|
prerelease: false
|
177
166
|
version_requirements: !ruby/object:Gem::Requirement
|
178
167
|
requirements:
|
179
168
|
- - "~>"
|
180
169
|
- !ruby/object:Gem::Version
|
181
|
-
version: '0
|
170
|
+
version: '1.0'
|
182
171
|
- !ruby/object:Gem::Dependency
|
183
|
-
name:
|
172
|
+
name: json
|
184
173
|
requirement: !ruby/object:Gem::Requirement
|
185
174
|
requirements:
|
186
|
-
- - "
|
175
|
+
- - ">="
|
187
176
|
- !ruby/object:Gem::Version
|
188
|
-
version: '
|
177
|
+
version: '0.0'
|
189
178
|
type: :development
|
190
179
|
prerelease: false
|
191
180
|
version_requirements: !ruby/object:Gem::Requirement
|
192
181
|
requirements:
|
193
|
-
- - "
|
182
|
+
- - ">="
|
194
183
|
- !ruby/object:Gem::Version
|
195
|
-
version: '
|
184
|
+
version: '0.0'
|
196
185
|
- !ruby/object:Gem::Dependency
|
197
186
|
name: simplecov
|
198
187
|
requirement: !ruby/object:Gem::Requirement
|
199
188
|
requirements:
|
200
189
|
- - "~>"
|
201
190
|
- !ruby/object:Gem::Version
|
202
|
-
version: '0.
|
191
|
+
version: '0.22'
|
203
192
|
type: :development
|
204
193
|
prerelease: false
|
205
194
|
version_requirements: !ruby/object:Gem::Requirement
|
206
195
|
requirements:
|
207
196
|
- - "~>"
|
208
197
|
- !ruby/object:Gem::Version
|
209
|
-
version: '0.
|
198
|
+
version: '0.22'
|
210
199
|
- !ruby/object:Gem::Dependency
|
211
|
-
name:
|
200
|
+
name: simplecov-lcov
|
212
201
|
requirement: !ruby/object:Gem::Requirement
|
213
202
|
requirements:
|
214
203
|
- - "~>"
|
215
204
|
- !ruby/object:Gem::Version
|
216
|
-
version: '
|
205
|
+
version: '0.8'
|
217
206
|
type: :development
|
218
207
|
prerelease: false
|
219
208
|
version_requirements: !ruby/object:Gem::Requirement
|
220
209
|
requirements:
|
221
210
|
- - "~>"
|
222
211
|
- !ruby/object:Gem::Version
|
223
|
-
version: '
|
212
|
+
version: '0.8'
|
224
213
|
description: |-
|
225
|
-
Color is a Ruby library to provide
|
226
|
-
manipulation support to applications that require it. It
|
227
|
-
|
228
|
-
HTML, SVG, and X11 applications. A technique for generating monochromatic
|
229
|
-
contrasting palettes is also included.
|
214
|
+
Color is a Ruby library to provide RGB, CMYK, HSL, and other color space
|
215
|
+
manipulation support to applications that require it. It provides optional named
|
216
|
+
RGB colors that are commonly supported in HTML, SVG, and X11 applications.
|
230
217
|
|
231
|
-
The Color library performs purely mathematical manipulation of the
|
232
|
-
|
233
|
-
Adobe RGB). For most purposes, when working with RGB and HSL
|
234
|
-
|
235
|
-
|
236
|
-
|
218
|
+
The Color library performs purely mathematical manipulation of the colors based
|
219
|
+
on color theory without reference to device color profiles (such as sRGB or
|
220
|
+
Adobe RGB). For most purposes, when working with RGB and HSL color spaces, this
|
221
|
+
won't matter. Absolute color spaces (like CIE LAB and CIE XYZ) cannot be
|
222
|
+
reliably converted to relative color spaces (like RGB) without color profiles.
|
223
|
+
When necessary for conversions, Color provides D65 and D50 reference white
|
224
|
+
values in Color::XYZ.
|
237
225
|
|
238
|
-
Color
|
239
|
-
|
240
|
-
|
226
|
+
Color 2.0 is a major release, dropping support for all versions of Ruby prior to
|
227
|
+
3.2 as well as removing or renaming a number of features. The main breaking
|
228
|
+
changes are:
|
241
229
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
230
|
+
- Color classes are immutable Data objects; they are no longer mutable.
|
231
|
+
- RGB named colors are no longer loaded on gem startup, but must be required
|
232
|
+
explicitly (this is _not_ done via `autoload` because there are more than 100
|
233
|
+
named colors with spelling variations) with `require "color/rgb/colors"`.
|
234
|
+
- Color palettes have been removed.
|
235
|
+
- `Color::CSS` and `Color::CSS#[]` have been removed.
|
246
236
|
email:
|
247
237
|
- halostatue@gmail.com
|
248
238
|
- matt@postsomnia.com
|
249
239
|
executables: []
|
250
240
|
extensions: []
|
251
241
|
extra_rdoc_files:
|
252
|
-
-
|
253
|
-
-
|
254
|
-
-
|
255
|
-
-
|
242
|
+
- CHANGELOG.md
|
243
|
+
- CODE_OF_CONDUCT.md
|
244
|
+
- CONTRIBUTING.md
|
245
|
+
- CONTRIBUTORS.md
|
246
|
+
- LICENCE.md
|
256
247
|
- Manifest.txt
|
257
|
-
- README.
|
248
|
+
- README.md
|
249
|
+
- SECURITY.md
|
250
|
+
- licences/dco.txt
|
258
251
|
files:
|
259
|
-
-
|
260
|
-
-
|
261
|
-
-
|
262
|
-
-
|
263
|
-
-
|
264
|
-
- ".travis.yml"
|
265
|
-
- Code-of-Conduct.rdoc
|
266
|
-
- Contributing.rdoc
|
267
|
-
- Gemfile
|
268
|
-
- History.rdoc
|
269
|
-
- Licence.rdoc
|
252
|
+
- CHANGELOG.md
|
253
|
+
- CODE_OF_CONDUCT.md
|
254
|
+
- CONTRIBUTING.md
|
255
|
+
- CONTRIBUTORS.md
|
256
|
+
- LICENCE.md
|
270
257
|
- Manifest.txt
|
271
|
-
- README.
|
258
|
+
- README.md
|
272
259
|
- Rakefile
|
260
|
+
- SECURITY.md
|
273
261
|
- lib/color.rb
|
262
|
+
- lib/color/cielab.rb
|
274
263
|
- lib/color/cmyk.rb
|
275
|
-
- lib/color/css.rb
|
276
264
|
- lib/color/grayscale.rb
|
277
265
|
- lib/color/hsl.rb
|
278
|
-
- lib/color/palette.rb
|
279
|
-
- lib/color/palette/adobecolor.rb
|
280
|
-
- lib/color/palette/gimp.rb
|
281
|
-
- lib/color/palette/monocontrast.rb
|
282
266
|
- lib/color/rgb.rb
|
283
267
|
- lib/color/rgb/colors.rb
|
284
|
-
- lib/color/
|
285
|
-
- lib/color/
|
268
|
+
- lib/color/version.rb
|
269
|
+
- lib/color/xyz.rb
|
286
270
|
- lib/color/yiq.rb
|
271
|
+
- licences/dco.txt
|
272
|
+
- test/fixtures/cielab.json
|
287
273
|
- test/minitest_helper.rb
|
288
|
-
- test/test_adobecolor.rb
|
289
274
|
- test/test_cmyk.rb
|
290
275
|
- test/test_color.rb
|
291
|
-
- test/test_css.rb
|
292
|
-
- test/test_gimp.rb
|
293
276
|
- test/test_grayscale.rb
|
294
277
|
- test/test_hsl.rb
|
295
|
-
- test/test_monocontrast.rb
|
296
278
|
- test/test_rgb.rb
|
297
279
|
- test/test_yiq.rb
|
298
280
|
homepage: https://github.com/halostatue/color
|
299
281
|
licenses:
|
300
282
|
- MIT
|
301
|
-
metadata:
|
302
|
-
|
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'
|
303
288
|
rdoc_options:
|
304
289
|
- "--main"
|
305
|
-
- README.
|
290
|
+
- README.md
|
306
291
|
require_paths:
|
307
292
|
- lib
|
308
293
|
required_ruby_version: !ruby/object:Gem::Requirement
|
309
294
|
requirements:
|
310
295
|
- - ">="
|
311
296
|
- !ruby/object:Gem::Version
|
312
|
-
version: '
|
297
|
+
version: '3.2'
|
313
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
314
299
|
requirements:
|
315
300
|
- - ">="
|
316
301
|
- !ruby/object:Gem::Version
|
317
302
|
version: '0'
|
318
303
|
requirements: []
|
319
|
-
|
320
|
-
rubygems_version: 2.4.8
|
321
|
-
signing_key:
|
304
|
+
rubygems_version: 3.6.9
|
322
305
|
specification_version: 4
|
323
|
-
summary: Color is a Ruby library to provide
|
306
|
+
summary: Color is a Ruby library to provide RGB, CMYK, HSL, and other color space
|
324
307
|
manipulation support to applications that require it
|
325
308
|
test_files: []
|
data/.autotest
DELETED
data/.coveralls.yml
DELETED
data/.gemtest
DELETED
File without changes
|
data/.hoerc
DELETED
data/.minitest.rb
DELETED
data/.travis.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.2.3
|
5
|
-
- 2.1.7
|
6
|
-
- 2.0.0-p647
|
7
|
-
- ruby-head
|
8
|
-
- jruby-9.0
|
9
|
-
- jruby-head
|
10
|
-
- rbx-2
|
11
|
-
- jruby-19mode
|
12
|
-
- 1.9.3
|
13
|
-
- 1.8.7
|
14
|
-
- jruby-18mode
|
15
|
-
- ree
|
16
|
-
matrix:
|
17
|
-
allow_failures:
|
18
|
-
- rvm: 1.9.3
|
19
|
-
- rvm: rbx-2
|
20
|
-
- rvm: jruby-head
|
21
|
-
- rvm: ruby-head
|
22
|
-
gemfile:
|
23
|
-
- Gemfile
|
24
|
-
before_script:
|
25
|
-
- |
|
26
|
-
case "${TRAVIS_RUBY_VERSION}" in
|
27
|
-
rbx*)
|
28
|
-
gem install psych
|
29
|
-
;;
|
30
|
-
esac
|
31
|
-
- rake travis:before -t
|
32
|
-
script: rake travis
|
33
|
-
after_script:
|
34
|
-
- rake travis:after -t
|
35
|
-
notifications:
|
36
|
-
email:
|
37
|
-
recipients:
|
38
|
-
- halostatue@gmail.com
|
39
|
-
on_success: change
|
40
|
-
on_failure: always
|
41
|
-
sudo: false
|
data/Code-of-Conduct.rdoc
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
== Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, and in the interest of
|
4
|
-
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
-
contribute through reporting issues, posting feature requests, updating
|
6
|
-
documentation, submitting pull requests or patches, and other activities.
|
7
|
-
|
8
|
-
We are committed to making participation in this project a harassment-free
|
9
|
-
experience for everyone, regardless of level of experience, gender, gender
|
10
|
-
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
-
body size, race, ethnicity, age, religion, or nationality.
|
12
|
-
|
13
|
-
Examples of unacceptable behavior by participants include:
|
14
|
-
|
15
|
-
* The use of sexualized language or imagery
|
16
|
-
* Personal attacks
|
17
|
-
* Trolling or insulting/derogatory comments
|
18
|
-
* Public or private harassment
|
19
|
-
* Publishing other's private information, such as physical or electronic
|
20
|
-
addresses, without explicit permission
|
21
|
-
* Other unethical or unprofessional conduct.
|
22
|
-
|
23
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
-
that are not aligned to this Code of Conduct. By adopting this Code of Conduct,
|
26
|
-
project maintainers commit themselves to fairly and consistently applying these
|
27
|
-
principles to every aspect of managing this project. Project maintainers who do
|
28
|
-
not follow or enforce the Code of Conduct may be permanently removed from the
|
29
|
-
project team.
|
30
|
-
|
31
|
-
This code of conduct applies both within project spaces and in public spaces
|
32
|
-
when an individual is representing the project or its community.
|
33
|
-
|
34
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
35
|
-
reported by opening an issue or contacting one or more of the project
|
36
|
-
maintainers.
|
37
|
-
|
38
|
-
This Code of Conduct is adapted from the
|
39
|
-
{Contributor Covenant}[http://contributor-covenant.org], version 1.2.0,
|
40
|
-
available at
|
41
|
-
{http://contributor-covenant.org/version/1/2/0/}[http://contributor-covenant.org/version/1/2/0/].
|
data/Contributing.rdoc
DELETED
@@ -1,62 +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)
|
61
|
-
* Luke Bennellick
|
62
|
-
* Matthew Draper
|