color 1.7.1 → 1.8

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 CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YWMzMTI3YmE1NGRlNzZmYTY1ZWQ3ZWE2MTk2MTM2ZTFlOTAyYWMzYw==
5
- data.tar.gz: !binary |-
6
- YTE5YzdlZmQ1ZjA0MjljMDIzZDU0NDdlOWQyOTQyYjNhY2ZkZGJkOA==
2
+ SHA1:
3
+ metadata.gz: 696c2ac0e8282a88cbe1626c779ad336b679f5a1
4
+ data.tar.gz: c9b3d3786799d258a32120f1560ed16c29a40f7f
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MzhkMTVmMmNlMWM3ZTBlNmRiNDY1ZmViY2YyOGMzMjI3NjFmODc4ZDhiZjgy
10
- NTM1NDhhNWViOTM2ZjE3NDYxZmI4NDFjNDdmMWI5MWFlNWU5YTEyNDZiOGJk
11
- ZjBhZjJlM2MyNGU4ZTU1M2FlYWVhOTJiZGQzNGY4YzJiNDUxMzU=
12
- data.tar.gz: !binary |-
13
- NzRkOWE3MjQwZDMxZmUxMjNmYjNjMjVhNmQ0MjQzNjEzNmJiZjYxNWZiZjgy
14
- MjE5MDQ5Y2ZjNmYzYzUzMjQ1NDk0Nzg0Yzk3NDcxOWQ1NmMyZGExMGE3Y2Nk
15
- MDBhMGUxZWQ3ZTZhYjk0MWQ3OGQ4OThiNjZjY2IwMjY5NTA3NzA=
6
+ metadata.gz: b78ecb062c1ddcc02a98d6b5aad1e060f0f1276dfd82f3f28f2f7c572659dcf98ef9853d519607fee8c44623de006604e6028dfe43d6ab765dc362a346c69978
7
+ data.tar.gz: f08e750ae6fbb4ac464f6de6657f30bab8e7866fe072aa948c828da8e5881305eaaa254d7e88ca7d2b60fa2aa569fa616a51f836fe4d7f131306493a4a7962ae
@@ -0,0 +1,2 @@
1
+ ---
2
+ service_name: travis-ci
@@ -1,19 +1,24 @@
1
1
  ---
2
2
  language: ruby
3
3
  rvm:
4
- - 2.1.0
5
- - 2.0.0
6
- - 1.9.3
7
- - jruby-19mode
4
+ - 2.2.3
5
+ - 2.1.7
6
+ - 2.0.0-p647
7
+ - ruby-head
8
+ - jruby-9.0
9
+ - jruby-head
8
10
  - rbx-2
11
+ - jruby-19mode
12
+ - 1.9.3
9
13
  - 1.8.7
10
14
  - jruby-18mode
11
15
  - ree
12
- - ruby-head
13
- - jruby-head
14
16
  matrix:
15
17
  allow_failures:
18
+ - rvm: 1.9.3
16
19
  - rvm: rbx-2
20
+ - rvm: jruby-head
21
+ - rvm: ruby-head
17
22
  gemfile:
18
23
  - Gemfile
19
24
  before_script:
@@ -30,6 +35,7 @@ after_script:
30
35
  notifications:
31
36
  email:
32
37
  recipients:
33
- - austin@rubyforge.org
38
+ - halostatue@gmail.com
34
39
  on_success: change
35
40
  on_failure: always
41
+ sudo: false
@@ -0,0 +1,41 @@
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/].
@@ -58,3 +58,5 @@ Here's the most direct way to get your work merged into the project:
58
58
  * Dave Heitzman (contrast comparison)
59
59
  * Thomas Sawyer
60
60
  * Aaron Hill (CIE94 colour matching)
61
+ * Luke Bennellick
62
+ * Matthew Draper
@@ -1,6 +1,28 @@
1
+ == 1.8 / 2015-10-26
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Add an optional +alpha+ parameter to all #css_rgba calls. Thanks to Luke
6
+ Bennellick (@bennell) and Alexander Popov (@AlexWayfer) for independently
7
+ implemented submissions. Merged from #15.
8
+
9
+ * 2 minor bug fixes:
10
+
11
+ * Improve constant detection to prevent incorrectly identified name
12
+ collisions with various other libraries such as Azure deployment tools.
13
+ Based on work by Matthew Draper (@matthewd) in #24.
14
+
15
+ * Prevent Color.equivalent? comparisons from using non-Color types for
16
+ comparison. Fix provided by Benjamin Guest (@bguest) in #18.
17
+
18
+ * 1 governance change
19
+
20
+ * This project now has a {Code of Conduct}[Code-of-Conduct_rdoc.html]
21
+
1
22
  == 1.7.1 / 2014-06-12
2
23
 
3
24
  * Minor enhancements:
25
+
4
26
  * Renamed Color::RGB::BeccaPurple to Color::RGB::RebeccaPurple as stipulated
5
27
  by Eric Meyer. http://meyerweb.com/eric/thoughts/2014/06/19/rebeccapurple/
6
28
  For purposes of backwards compatibility, the previous name is still
@@ -1,8 +1,10 @@
1
1
  .autotest
2
+ .coveralls.yml
2
3
  .gemtest
3
4
  .hoerc
4
5
  .minitest.rb
5
6
  .travis.yml
7
+ Code-of-Conduct.rdoc
6
8
  Contributing.rdoc
7
9
  Gemfile
8
10
  History.rdoc
@@ -22,14 +22,14 @@ this won't matter. Absolute colour spaces (like CIE L*a*b* and XYZ) and cannot
22
22
  be reliably converted to relative colour spaces (like RGB) without colour
23
23
  profiles.
24
24
 
25
- Color version 1.7.1 adds Color::RGB::RebeccaPurple for the colour #663399 in
26
- honour of Rebecca Meyer, the daughter of Eric Meyer, who passed away on the 7th
27
- of June, 2014. Her favourite colour was purple.
28
- {rebeccapurple}[http://meyerweb.com/eric/thoughts/2014/06/19/rebeccapurple/]
25
+ Color 1.8 adds an alpha parameter to all <tt>#css_rgba</tt> calls, fixes a bug
26
+ exposed by new constant lookup semantics in Ruby 2, and ensures that
27
+ <tt>Color.equivalent?</tt> can only be called on Color instances.
29
28
 
30
- Barring bugs introduced in this release, this is the last version of color that
31
- supports Ruby 1.8, so make sure that your gem specification is set properly (to
32
- <tt>~> 1.6</tt>) if that matters for your application.
29
+ Barring bugs introduced in this release, this (really) is the last version of
30
+ color that supports Ruby 1.8, so make sure that your gem specification is set
31
+ properly (to <tt>~> 1.8</tt>) if that matters for your application. This
32
+ version will no longer be supported one year after the release of color 2.0.
33
33
 
34
34
  == History
35
35
 
@@ -45,6 +45,8 @@ SlayerOffice[2] and by Patrick Fitzgerald of BarelyFitz[3] in PHP.
45
45
  [2] http://slayeroffice.com/tools/color_palette/
46
46
  [3] http://www.barelyfitz.com/projects/csscolor/
47
47
 
48
+ :include: Code-of-Conduct.rdoc
49
+
48
50
  :include: Contributing.rdoc
49
51
 
50
52
  :include: Licence.rdoc
data/Rakefile CHANGED
@@ -1,10 +1,10 @@
1
- # -*- ruby encoding: utf-8 -*-
1
+ # -*- ruby -*-
2
2
 
3
3
  require 'rubygems'
4
4
  require 'hoe'
5
+ require 'rake/clean'
5
6
 
6
7
  Hoe.plugin :doofus
7
- Hoe.plugin :email
8
8
  Hoe.plugin :gemspec2
9
9
  Hoe.plugin :git
10
10
  Hoe.plugin :minitest
@@ -17,39 +17,45 @@ spec = Hoe.spec 'color' do
17
17
 
18
18
  license 'MIT'
19
19
 
20
- self.need_tar = true
21
-
22
20
  self.history_file = 'History.rdoc'
23
21
  self.readme_file = 'README.rdoc'
24
- self.extra_rdoc_files = FileList["*.rdoc"].to_a
25
22
 
26
- self.extra_dev_deps << ['hoe-doofus', '~> 1.0']
27
- self.extra_dev_deps << ['hoe-gemspec2', '~> 1.1']
28
- self.extra_dev_deps << ['hoe-git', '~> 1.5']
29
- self.extra_dev_deps << ['hoe-rubygems', '~> 1.0']
30
- self.extra_dev_deps << ['hoe-travis', '~> 1.2']
31
- self.extra_dev_deps << ['minitest', '~> 5.0']
32
- self.extra_dev_deps << ['rake', '~> 10.0']
23
+ extra_dev_deps << ['hoe-doofus', '~> 1.0']
24
+ extra_dev_deps << ['hoe-gemspec2', '~> 1.1']
25
+ extra_dev_deps << ['hoe-git', '~> 1.6']
26
+ extra_dev_deps << ['hoe-travis', '~> 1.2']
27
+ extra_dev_deps << ['minitest', '~> 5.8']
28
+ extra_dev_deps << ['minitest-around', '~> 0.3']
29
+ extra_dev_deps << ['minitest-autotest', '~> 1.0']
30
+ extra_dev_deps << ['minitest-bisect', '~> 1.2']
31
+ extra_dev_deps << ['minitest-focus', '~> 1.1']
32
+ extra_dev_deps << ['minitest-moar', '~> 0.0']
33
+ extra_dev_deps << ['minitest-pretty_diff', '~> 0.1']
34
+ extra_dev_deps << ['rake', '~> 10.0']
33
35
 
34
- if RUBY_VERSION >= '1.9' and (ENV['CI'] or ENV['TRAVIS'])
35
- self.extra_dev_deps << ['simplecov', '~> 0.7']
36
- self.extra_dev_deps << ['coveralls', '~> 0.7']
36
+ if RUBY_VERSION >= '1.9'
37
+ extra_dev_deps << ['simplecov', '~> 0.7']
38
+ extra_dev_deps << ['coveralls', '~> 0.7'] if ENV['CI'] or ENV['TRAVIS']
37
39
  end
38
40
  end
39
41
 
40
42
  if RUBY_VERSION >= '1.9'
41
43
  namespace :test do
42
- desc "Submit test coverage to Coveralls"
43
- task :coveralls do
44
- spec.test_prelude = [
45
- 'require "psych"',
46
- 'require "simplecov"',
47
- 'require "coveralls"',
48
- 'SimpleCov.formatter = Coveralls::SimpleCov::Formatter',
49
- 'SimpleCov.start("test_frameworks") { command_name "Minitest" }',
50
- 'gem "minitest"'
51
- ].join('; ')
52
- Rake::Task['test'].execute
44
+ if ENV['CI'] or ENV['TRAVIS']
45
+ desc "Submit test coverage to Coveralls"
46
+ task :coveralls do
47
+ spec.test_prelude = [
48
+ 'require "psych"',
49
+ 'require "simplecov"',
50
+ 'require "coveralls"',
51
+ 'SimpleCov.formatter = Coveralls::SimpleCov::Formatter',
52
+ 'SimpleCov.start("test_frameworks") { command_name "Minitest" }',
53
+ 'gem "minitest"'
54
+ ].join('; ')
55
+ Rake::Task['test'].execute
56
+ end
57
+
58
+ Rake::Task['travis'].prerequisites.replace(%w(test:coveralls))
53
59
  end
54
60
 
55
61
  desc "Runs test coverage. Only works Ruby 1.9+ and assumes 'simplecov' is installed."
@@ -61,7 +67,9 @@ if RUBY_VERSION >= '1.9'
61
67
  ].join('; ')
62
68
  Rake::Task['test'].execute
63
69
  end
64
- end
65
70
 
66
- Rake::Task['travis'].prerequisites.replace(%w(test:coveralls))
71
+ CLOBBER << 'coverage'
72
+ end
67
73
  end
74
+
75
+ # vim: syntax=ruby
@@ -3,7 +3,7 @@
3
3
 
4
4
  # = Colour Management with Ruby
5
5
  module Color
6
- COLOR_VERSION = '1.7.1'
6
+ COLOR_VERSION = '1.8'
7
7
 
8
8
  class RGB; end
9
9
  class CMYK; end
@@ -82,6 +82,7 @@ class << Color
82
82
  # conversions are required, this all conversions will be implemented
83
83
  # using the default conversion mechanism.
84
84
  def equivalent?(a, b)
85
+ return false unless a.kind_of?(Color) && b.kind_of?(Color)
85
86
  a.to_a.zip(a.coerce(b).to_a).all? { |(x, y)| near?(x, y) }
86
87
  end
87
88
 
@@ -70,8 +70,8 @@ class Color::CMYK
70
70
  # Present the colour as an RGBA (with alpha) HTML/CSS colour string (e.g.,
71
71
  # "rgb(0%, 50%, 100%, 1)"). Note that this will perform a #to_rgb
72
72
  # operation using the default conversion formula.
73
- def css_rgba
74
- to_rgb.css_rgba
73
+ def css_rgba(alpha = 1)
74
+ to_rgb.css_rgba(alpha)
75
75
  end
76
76
 
77
77
  # Present the colour as an HSL HTML/CSS colour string (e.g., "hsl(180,
@@ -68,8 +68,8 @@ class Color::GrayScale
68
68
 
69
69
  # Present the colour as an RGBA (with alpha) HTML/CSS colour string (e.g.,
70
70
  # "rgb(0%, 50%, 100%, 1)").
71
- def css_rgba
72
- "rgba(%3.2f%%, %3.2f%%, %3.2f%%, %1.2f)" % [ gray, gray, gray, 1 ]
71
+ def css_rgba(alpha = 1)
72
+ "rgba(%3.2f%%, %3.2f%%, %3.2f%%, %1.2f)" % [ gray, gray, gray, alpha ]
73
73
  end
74
74
 
75
75
  # Present the colour as an HSL HTML/CSS colour string (e.g., "hsl(180,
@@ -42,8 +42,8 @@ class Color::HSL
42
42
  # Present the colour as an RGBA (with alpha) HTML/CSS colour string (e.g.,
43
43
  # "rgb(0%, 50%, 100%, 1)"). Note that this will perform a #to_rgb
44
44
  # operation using the default conversion formula.
45
- def css_rgba
46
- to_rgb.css_rgba
45
+ def css_rgba(alpha = 1)
46
+ to_rgb.css_rgba(alpha)
47
47
  end
48
48
 
49
49
  # Present the colour as an HSL HTML/CSS colour string (e.g., "hsl(180,
@@ -59,11 +59,16 @@ class Color::RGB
59
59
  "rgb(%3.2f%%, %3.2f%%, %3.2f%%)" % [ red_p, green_p, blue_p ]
60
60
  end
61
61
 
62
- # Present the colour as an RGBA (with alpha) HTML/CSS colour string (e.g.,
63
- # "rgb(0%, 50%, 100%, 1)"). Note that this will perform a #to_rgb
64
- # operation using the default conversion formula.
65
- def css_rgba
66
- "rgba(%3.2f%%, %3.2f%%, %3.2f%%, %3.2f)" % [ red_p, green_p, blue_p, 1 ]
62
+ # Present the colour as an RGBA (with an optional alpha that defaults to 1)
63
+ # HTML/CSS colour string (e.g.,"rgb(0%, 50%, 100%, 1)"). Note that this will
64
+ # perform a #to_rgb operation using the default conversion formula.
65
+ #
66
+ # Color::RGB.by_hex('ff0000').css_rgba
67
+ # => 'rgba(100.00%, 0.00%, 0.00%, 1.00)'
68
+ # Color::RGB.by_hex('ff0000').css_rgba(0.2)
69
+ # => 'rgba(100.00%, 0.00%, 0.00%, 0.20)'
70
+ def css_rgba(alpha = 1)
71
+ "rgba(%3.2f%%, %3.2f%%, %3.2f%%, %3.2f)" % [ red_p, green_p, blue_p, alpha ]
67
72
  end
68
73
 
69
74
  # Present the colour as an HSL HTML/CSS colour string (e.g., "hsl(180,
@@ -671,8 +676,10 @@ end
671
676
 
672
677
  class << Color::RGB
673
678
  private
679
+
674
680
  def __named_color(mod, rgb, *names)
675
- if names.any? { |n| mod.const_defined? n }
681
+ used = names - mod.constants.map(&:to_sym)
682
+ if used.length < names.length
676
683
  raise ArgumentError, "#{names.join(', ')} already defined in #{mod}"
677
684
  end
678
685
 
@@ -95,6 +95,7 @@ module TestColor
95
95
  assert_equal("#8a7a6b", @cmyk.html)
96
96
  assert_equal("rgb(54.00%, 48.00%, 42.00%)", @cmyk.css_rgb)
97
97
  assert_equal("rgba(54.00%, 48.00%, 42.00%, 1.00)", @cmyk.css_rgba)
98
+ assert_equal("rgba(54.00%, 48.00%, 42.00%, 0.20)", @cmyk.css_rgba(0.2))
98
99
  end
99
100
 
100
101
  def test_inspect
@@ -49,6 +49,12 @@ module TestColor
49
49
  assert_raises(NameError) { assert(Color::MISSING_VALUE) }
50
50
  end
51
51
 
52
+ def test_equivalent
53
+ assert Color.equivalent?(Color::RGB::Red, Color::HSL.new(0, 100, 50))
54
+ refute Color.equivalent?(Color::RGB::Red, nil)
55
+ refute Color.equivalent?(nil, Color::RGB::Red)
56
+ end
57
+
52
58
  def test_normalize
53
59
  (1..10).each do |i|
54
60
  assert_equal(0.0, Color.normalize(-7 * i))
@@ -32,6 +32,7 @@ module TestColor
32
32
  assert_equal("#545454", @gs.html)
33
33
  assert_equal("rgb(33.00%, 33.00%, 33.00%)", @gs.css_rgb)
34
34
  assert_equal("rgba(33.00%, 33.00%, 33.00%, 1.00)", @gs.css_rgba)
35
+ assert_equal("rgba(33.00%, 33.00%, 33.00%, 0.20)", @gs.css_rgba(0.2))
35
36
  end
36
37
 
37
38
  def test_lighten_by
@@ -92,6 +92,8 @@ module TestColor
92
92
  assert_equal "#3d5c4a", @hsl.html
93
93
  assert_equal "rgb(24.00%, 36.00%, 29.00%)", @hsl.css_rgb
94
94
  assert_equal "rgba(24.00%, 36.00%, 29.00%, 1.00)", @hsl.css_rgba
95
+ assert_equal "rgba(24.00%, 36.00%, 29.00%, 0.20)", @hsl.css_rgba(0.2)
96
+
95
97
  # The following tests address a bug reported by Jean Krohn on June 6,
96
98
  # 2006 and excercise some previously unexercised code in to_rgb.
97
99
  assert_equal Color::RGB::Black, Color::HSL.new(75, 75, 0)
@@ -91,8 +91,8 @@ module TestColor
91
91
  assert_equal("rgba(0.00%, 0.00%, 100.00%, 1.00)", Color::RGB::Blue.css_rgba)
92
92
  assert_equal("rgba(0.00%, 100.00%, 0.00%, 1.00)", Color::RGB::Lime.css_rgba)
93
93
  assert_equal("rgba(100.00%, 0.00%, 0.00%, 1.00)", Color::RGB::Red.css_rgba)
94
- assert_equal("rgba(100.00%, 100.00%, 100.00%, 1.00)",
95
- Color::RGB::White.css_rgba)
94
+ assert_equal("rgba(100.00%, 100.00%, 100.00%, 1.00)", Color::RGB::White.css_rgba)
95
+ assert_equal("rgba(100.00%, 0.00%, 0.00%, 0.50)", Color::RGB::Red.css_rgba(0.5))
96
96
  end
97
97
 
98
98
  def test_lighten_by
metadata CHANGED
@@ -1,226 +1,268 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: color
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: '1.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  - Matt Lyon
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain:
12
- - !binary |-
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
11
+ cert_chain: []
12
+ date: 2015-10-26 00:00:00.000000000 Z
41
13
  dependencies:
42
14
  - !ruby/object:Gem::Dependency
43
15
  name: minitest
44
16
  requirement: !ruby/object:Gem::Requirement
45
17
  requirements:
46
- - - ~>
18
+ - - "~>"
47
19
  - !ruby/object:Gem::Version
48
- version: '5.3'
20
+ version: '5.8'
49
21
  type: :development
50
22
  prerelease: false
51
23
  version_requirements: !ruby/object:Gem::Requirement
52
24
  requirements:
53
- - - ~>
25
+ - - "~>"
54
26
  - !ruby/object:Gem::Version
55
- version: '5.3'
27
+ version: '5.8'
56
28
  - !ruby/object:Gem::Dependency
57
29
  name: rdoc
58
30
  requirement: !ruby/object:Gem::Requirement
59
31
  requirements:
60
- - - ~>
32
+ - - "~>"
61
33
  - !ruby/object:Gem::Version
62
34
  version: '4.0'
63
35
  type: :development
64
36
  prerelease: false
65
37
  version_requirements: !ruby/object:Gem::Requirement
66
38
  requirements:
67
- - - ~>
39
+ - - "~>"
68
40
  - !ruby/object:Gem::Version
69
41
  version: '4.0'
70
42
  - !ruby/object:Gem::Dependency
71
43
  name: hoe-doofus
72
44
  requirement: !ruby/object:Gem::Requirement
73
45
  requirements:
74
- - - ~>
46
+ - - "~>"
75
47
  - !ruby/object:Gem::Version
76
48
  version: '1.0'
77
49
  type: :development
78
50
  prerelease: false
79
51
  version_requirements: !ruby/object:Gem::Requirement
80
52
  requirements:
81
- - - ~>
53
+ - - "~>"
82
54
  - !ruby/object:Gem::Version
83
55
  version: '1.0'
84
56
  - !ruby/object:Gem::Dependency
85
57
  name: hoe-gemspec2
86
58
  requirement: !ruby/object:Gem::Requirement
87
59
  requirements:
88
- - - ~>
60
+ - - "~>"
89
61
  - !ruby/object:Gem::Version
90
62
  version: '1.1'
91
63
  type: :development
92
64
  prerelease: false
93
65
  version_requirements: !ruby/object:Gem::Requirement
94
66
  requirements:
95
- - - ~>
67
+ - - "~>"
96
68
  - !ruby/object:Gem::Version
97
69
  version: '1.1'
98
70
  - !ruby/object:Gem::Dependency
99
71
  name: hoe-git
100
72
  requirement: !ruby/object:Gem::Requirement
101
73
  requirements:
102
- - - ~>
74
+ - - "~>"
103
75
  - !ruby/object:Gem::Version
104
- version: '1.5'
76
+ version: '1.6'
105
77
  type: :development
106
78
  prerelease: false
107
79
  version_requirements: !ruby/object:Gem::Requirement
108
80
  requirements:
109
- - - ~>
81
+ - - "~>"
110
82
  - !ruby/object:Gem::Version
111
- version: '1.5'
83
+ version: '1.6'
112
84
  - !ruby/object:Gem::Dependency
113
- name: hoe-rubygems
85
+ name: hoe-travis
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '1.2'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.2'
98
+ - !ruby/object:Gem::Dependency
99
+ name: minitest-around
114
100
  requirement: !ruby/object:Gem::Requirement
115
101
  requirements:
116
- - - ~>
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '0.3'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '0.3'
112
+ - !ruby/object:Gem::Dependency
113
+ name: minitest-autotest
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
118
  version: '1.0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ~>
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: '1.0'
126
126
  - !ruby/object:Gem::Dependency
127
- name: hoe-travis
127
+ name: minitest-bisect
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ~>
130
+ - - "~>"
131
131
  - !ruby/object:Gem::Version
132
132
  version: '1.2'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ~>
137
+ - - "~>"
138
138
  - !ruby/object:Gem::Version
139
139
  version: '1.2'
140
+ - !ruby/object:Gem::Dependency
141
+ name: minitest-focus
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '1.1'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '1.1'
154
+ - !ruby/object:Gem::Dependency
155
+ name: minitest-moar
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: '0.0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '0.0'
168
+ - !ruby/object:Gem::Dependency
169
+ name: minitest-pretty_diff
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '0.1'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '0.1'
140
182
  - !ruby/object:Gem::Dependency
141
183
  name: rake
142
184
  requirement: !ruby/object:Gem::Requirement
143
185
  requirements:
144
- - - ~>
186
+ - - "~>"
145
187
  - !ruby/object:Gem::Version
146
188
  version: '10.0'
147
189
  type: :development
148
190
  prerelease: false
149
191
  version_requirements: !ruby/object:Gem::Requirement
150
192
  requirements:
151
- - - ~>
193
+ - - "~>"
152
194
  - !ruby/object:Gem::Version
153
195
  version: '10.0'
196
+ - !ruby/object:Gem::Dependency
197
+ name: simplecov
198
+ requirement: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - "~>"
201
+ - !ruby/object:Gem::Version
202
+ version: '0.7'
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - "~>"
208
+ - !ruby/object:Gem::Version
209
+ version: '0.7'
154
210
  - !ruby/object:Gem::Dependency
155
211
  name: hoe
156
212
  requirement: !ruby/object:Gem::Requirement
157
213
  requirements:
158
- - - ~>
214
+ - - "~>"
159
215
  - !ruby/object:Gem::Version
160
- version: '3.12'
216
+ version: '3.14'
161
217
  type: :development
162
218
  prerelease: false
163
219
  version_requirements: !ruby/object:Gem::Requirement
164
220
  requirements:
165
- - - ~>
221
+ - - "~>"
166
222
  - !ruby/object:Gem::Version
167
- version: '3.12'
168
- description: ! 'Color is a Ruby library to provide basic RGB, CMYK, HSL, and other
169
- colourspace
170
-
223
+ version: '3.14'
224
+ description: |-
225
+ Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace
171
226
  manipulation support to applications that require it. It also provides 152
172
-
173
227
  named RGB colours (184 with spelling variations) that are commonly supported in
174
-
175
228
  HTML, SVG, and X11 applications. A technique for generating monochromatic
176
-
177
229
  contrasting palettes is also included.
178
230
 
179
-
180
231
  The Color library performs purely mathematical manipulation of the colours
181
-
182
232
  based on colour theory without reference to colour profiles (such as sRGB or
183
-
184
233
  Adobe RGB). For most purposes, when working with RGB and HSL colour spaces,
185
-
186
- this won''t matter. Absolute colour spaces (like CIE L*a*b* and XYZ) and cannot
187
-
234
+ this won't matter. Absolute colour spaces (like CIE L*a*b* and XYZ) and cannot
188
235
  be reliably converted to relative colour spaces (like RGB) without colour
189
-
190
236
  profiles.
191
237
 
238
+ Color 1.8 adds an alpha parameter to all <tt>#css_rgba</tt> calls, fixes a bug
239
+ exposed by new constant lookup semantics in Ruby 2, and ensures that
240
+ <tt>Color.equivalent?</tt> can only be called on Color instances.
192
241
 
193
- Color version 1.7.1 adds Color::RGB::RebeccaPurple for the colour #663399 in
194
-
195
- honour of Rebecca Meyer, the daughter of Eric Meyer, who passed away on the 7th
196
-
197
- of June, 2014. Her favourite colour was purple.
198
-
199
- {rebeccapurple}[http://meyerweb.com/eric/thoughts/2014/06/19/rebeccapurple/]
200
-
201
-
202
- Barring bugs introduced in this release, this is the last version of color that
203
-
204
- supports Ruby 1.8, so make sure that your gem specification is set properly (to
205
-
206
- <tt>~> 1.6</tt>) if that matters for your application.'
242
+ Barring bugs introduced in this release, this (really) is the last version of
243
+ color that supports Ruby 1.8, so make sure that your gem specification is set
244
+ properly (to <tt>~> 1.8</tt>) if that matters for your application. This
245
+ version will no longer be supported one year after the release of color 2.0.
207
246
  email:
208
247
  - halostatue@gmail.com
209
248
  - matt@postsomnia.com
210
249
  executables: []
211
250
  extensions: []
212
251
  extra_rdoc_files:
252
+ - Code-of-Conduct.rdoc
213
253
  - Contributing.rdoc
214
254
  - History.rdoc
215
255
  - Licence.rdoc
216
256
  - Manifest.txt
217
257
  - README.rdoc
218
258
  files:
219
- - .autotest
220
- - .gemtest
221
- - .hoerc
222
- - .minitest.rb
223
- - .travis.yml
259
+ - ".autotest"
260
+ - ".coveralls.yml"
261
+ - ".gemtest"
262
+ - ".hoerc"
263
+ - ".minitest.rb"
264
+ - ".travis.yml"
265
+ - Code-of-Conduct.rdoc
224
266
  - Contributing.rdoc
225
267
  - Gemfile
226
268
  - History.rdoc
@@ -259,35 +301,25 @@ licenses:
259
301
  metadata: {}
260
302
  post_install_message:
261
303
  rdoc_options:
262
- - --main
304
+ - "--main"
263
305
  - README.rdoc
264
306
  require_paths:
265
307
  - lib
266
308
  required_ruby_version: !ruby/object:Gem::Requirement
267
309
  requirements:
268
- - - ! '>='
310
+ - - ">="
269
311
  - !ruby/object:Gem::Version
270
312
  version: '0'
271
313
  required_rubygems_version: !ruby/object:Gem::Requirement
272
314
  requirements:
273
- - - ! '>='
315
+ - - ">="
274
316
  - !ruby/object:Gem::Version
275
317
  version: '0'
276
318
  requirements: []
277
319
  rubyforge_project:
278
- rubygems_version: 2.2.1
320
+ rubygems_version: 2.4.8
279
321
  signing_key:
280
322
  specification_version: 4
281
323
  summary: Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace
282
324
  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
325
+ test_files: []
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file