spectrum 0.0.1 → 0.2.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.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/HISTORY.md +56 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +255 -0
  5. data/lib/spectrum/describe.rb +55 -0
  6. data/lib/spectrum/feature/advice.rb +31 -0
  7. data/lib/spectrum/feature/feature.rb +192 -0
  8. data/lib/spectrum/feature/featurette.rb +68 -0
  9. data/lib/spectrum/feature/scenario.rb +203 -0
  10. data/lib/spectrum/feature/step.rb +50 -0
  11. data/lib/spectrum/feature.rb +45 -0
  12. data/lib/spectrum/spec/context.rb +409 -0
  13. data/lib/spectrum/spec/example.rb +231 -0
  14. data/lib/spectrum/spec/hooks.rb +83 -0
  15. data/lib/spectrum/testcase/test_case.rb +328 -0
  16. data/lib/spectrum/testcase/test_proc.rb +143 -0
  17. data/lib/spectrum/testcase.rb +28 -0
  18. data/lib/spectrum/version.rb +3 -0
  19. data/lib/spectrum/world.rb +15 -0
  20. data/lib/spectrum.rb +14 -138
  21. metadata +71 -72
  22. data/History.txt +0 -93
  23. data/Install.txt +0 -18
  24. data/Licence.txt +0 -27
  25. data/README.txt +0 -35
  26. data/lib/spectrum/cmyk.rb +0 -281
  27. data/lib/spectrum/css.rb +0 -28
  28. data/lib/spectrum/grayscale.rb +0 -212
  29. data/lib/spectrum/hsl.rb +0 -221
  30. data/lib/spectrum/palette/adobecolor.rb +0 -272
  31. data/lib/spectrum/palette/gimp.rb +0 -116
  32. data/lib/spectrum/palette/monocontrast.rb +0 -180
  33. data/lib/spectrum/palette.rb +0 -16
  34. data/lib/spectrum/rgb/metallic.rb +0 -43
  35. data/lib/spectrum/rgb-colors.rb +0 -355
  36. data/lib/spectrum/rgb.rb +0 -453
  37. data/lib/spectrum/yiq.rb +0 -84
  38. data/test/test_adobecolor.rb +0 -419
  39. data/test/test_all.rb +0 -23
  40. data/test/test_cmyk.rb +0 -128
  41. data/test/test_color.rb +0 -141
  42. data/test/test_css.rb +0 -29
  43. data/test/test_gimp.rb +0 -101
  44. data/test/test_grayscale.rb +0 -121
  45. data/test/test_hsl.rb +0 -153
  46. data/test/test_monocontrast.rb +0 -142
  47. data/test/test_rgb.rb +0 -344
  48. data/test/test_yiq.rb +0 -73
@@ -0,0 +1,143 @@
1
+ module Spectrum
2
+
3
+ class TestCase
4
+
5
+ # Test procedure: a single test of a test case.
6
+ #
7
+ class TestProc
8
+
9
+ # New unit test procedure.
10
+ #
11
+ def initialize(options={}, &procedure)
12
+ @context = options[:context]
13
+ @label = options[:label]
14
+ @tags = options[:tags] || []
15
+ @skip = options[:skip]
16
+ @file = options[:file]
17
+ @line = options[:line]
18
+
19
+ @procedure = procedure
20
+ end
21
+
22
+ #
23
+ # The parent testcase to which this test belongs.
24
+ #
25
+ attr :context
26
+
27
+ #
28
+ # Alias for `#context`.
29
+ #
30
+ alias :parent :context
31
+
32
+ #
33
+ # Description of test.
34
+ #
35
+ attr :label
36
+
37
+ #
38
+ # Symbol list of tags. Trailing element may be Hash
39
+ # of `symbol => object`.
40
+ #
41
+ attr :tags
42
+
43
+ #
44
+ # Test procedure, in which test assertions should be made.
45
+ #
46
+ attr :procedure
47
+
48
+ #
49
+ # Rubytest uses `type` to describe the nature of a test object.
50
+ #
51
+ def type
52
+ 'test'
53
+ end
54
+
55
+ #
56
+ # Whether to skip this test.
57
+ #
58
+ # @return [Boolean,String]
59
+ #
60
+ def skip? ; @skip ; end
61
+
62
+ #
63
+ # Set whether this test should be skipped of not.
64
+ #
65
+ # @param [Boolean,String] reason
66
+ # Reason to skip, or simple boolean flag.
67
+ #
68
+ def skip=(reason)
69
+ @skip = reason
70
+ end
71
+
72
+ #
73
+ # The unit under test, from the test's case.
74
+ #
75
+ def unit
76
+ context.unit if context
77
+ end
78
+
79
+ #
80
+ # Test description.
81
+ #
82
+ # @return [String]
83
+ #
84
+ def to_s
85
+ label.to_s
86
+ end
87
+
88
+ #
89
+ # Location of test definition.
90
+ #
91
+ def source_location
92
+ [@file, @line]
93
+ end
94
+
95
+ #
96
+ # Match test's label and/or tags.
97
+ #
98
+ # @param [String,Symbol,Regexp,Hash] match
99
+ # Pattern to match against.
100
+ #
101
+ # @return [Boolean]
102
+ #
103
+ def match?(match)
104
+ case match
105
+ when Symbol
106
+ tags.include?(match)
107
+ when Hash
108
+ if Hash === tags.last
109
+ tags.last.any?{ |k,v| match[k] == v }
110
+ end
111
+ else
112
+ match === label
113
+ end
114
+ end
115
+
116
+ #
117
+ # Run this test in its scope: setup, the test, and the teardown,
118
+ # which runs whether or not the test passes.
119
+ #
120
+ def call
121
+ @scope.setup
122
+ begin
123
+ @scope.instance_eval(&procedure)
124
+ ensure
125
+ @scope.teardown
126
+ end
127
+ end
128
+
129
+ #
130
+ # Return a copy of the test bound to +scope+, an instance of its
131
+ # test case.
132
+ #
133
+ def for(scope)
134
+ test = dup
135
+ test.instance_variable_set(:@scope, scope)
136
+ test
137
+ end
138
+
139
+ end
140
+
141
+ end
142
+
143
+ end
@@ -0,0 +1,28 @@
1
+ require_relative '../spectrum'
2
+ require_relative 'testcase/test_proc'
3
+ require_relative 'testcase/test_case'
4
+
5
+ module Spectrum
6
+
7
+ class TestCase
8
+
9
+ # The words the test case structure adds to the toplevel.
10
+ module DSL
11
+ #
12
+ # Define a general test case.
13
+ #
14
+ def test_case(label, *tags, &block)
15
+ testcase = Spectrum::TestCase.context(label, *tags, &block)
16
+ $TEST_SUITE << testcase.new
17
+ testcase
18
+ end
19
+
20
+ alias :TestCase :test_case
21
+ alias :testcase :test_case
22
+ end
23
+
24
+ end
25
+
26
+ end
27
+
28
+ extend Spectrum::TestCase::DSL
@@ -0,0 +1,3 @@
1
+ module Spectrum
2
+ VERSION = '0.2.0'
3
+ end
@@ -0,0 +1,15 @@
1
+ module Spectrum
2
+
3
+ # Methods defined in Spectrum::World are available inside every test,
4
+ # whichever structure it is written in.
5
+ #
6
+ # module Spectrum::World
7
+ # def fixture(name)
8
+ # File.read("test/fixtures/#{name}")
9
+ # end
10
+ # end
11
+ #
12
+ module World
13
+ end
14
+
15
+ end
data/lib/spectrum.rb CHANGED
@@ -1,145 +1,21 @@
1
- # :title: Color -- Colour Management with Ruby
2
- # :main: README.txt
1
+ require_relative 'spectrum/version'
2
+ require_relative 'spectrum/world'
3
3
 
4
- #--
5
- # Color
6
- # Colour management with Ruby
7
- # http://rubyforge.org/projects/color
8
- # Version 1.4.1
4
+ # Spectrum is a library of test structures: the words that organize tests
5
+ # into cases, specifications or features. Each is loaded on its own.
9
6
  #
10
- # Licensed under a MIT-style licence. See Licence.txt in the main
11
- # distribution for full licensing information.
7
+ # require 'spectrum/testcase' # TestCase "..." do ... test "..." do
8
+ # require 'spectrum/describe' # describe "..." do ... it "..." do
9
+ # require 'spectrum/feature' # Feature "..." do ... Scenario "..." do
12
10
  #
13
- # Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon
14
- #++
15
-
16
- # = Colour Management with Ruby
11
+ # The tests they build are run by Rubytest, and what a test asserts is
12
+ # left to an assertion library, such as Assay.
17
13
  module Spectrum
18
- COLOR_VERSION = '1.4.1'
19
-
20
- class RGB; end
21
- class CMYK; end
22
- class GrayScale; end
23
- class YIQ; end
24
-
25
- # The maximum "resolution" for colour math; if any value is less than or
26
- # equal to this value, it is treated as zero.
27
- COLOR_EPSILON = 1e-5
28
- # The tolerance for comparing the components of two colours. In general,
29
- # colours are considered equal if all of their components are within this
30
- # tolerance value of each other.
31
- COLOR_TOLERANCE = 1e-4
32
-
33
- class << self
34
- # Returns +true+ if the value is less than COLOR_EPSILON.
35
- def near_zero?(value)
36
- (value.abs <= COLOR_EPSILON)
37
- end
38
-
39
- # Returns +true+ if the value is within COLOR_EPSILON of zero or less than
40
- # zero.
41
- def near_zero_or_less?(value)
42
- (value < 0.0 or near_zero?(value))
43
- end
44
-
45
- # Returns +true+ if the value is within COLOR_EPSILON of one.
46
- def near_one?(value)
47
- near_zero?(value - 1.0)
48
- end
49
-
50
- # Returns +true+ if the value is within COLOR_EPSILON of one or more than
51
- # one.
52
- def near_one_or_more?(value)
53
- (value > 1.0 or near_one?(value))
54
- end
55
-
56
- # Normalizes the value to the range (0.0) .. (1.0).
57
- def normalize(value)
58
- if near_zero_or_less? value
59
- 0.0
60
- elsif near_one_or_more? value
61
- 1.0
62
- else
63
- value
64
- end
65
- end
66
- alias normalize_fractional normalize
67
-
68
- def normalize_to_range(value, range)
69
- range = (range.end..range.begin) if (range.end < range.begin)
70
-
71
- if value <= range.begin
72
- range.begin
73
- elsif value >= range.end
74
- range.end
75
- else
76
- value
77
- end
78
- end
79
-
80
- # Normalize the value to the range (0) .. (255).
81
- def normalize_byte(value)
82
- normalize_to_range(value, 0..255).to_i
83
- end
84
- alias normalize_8bit normalize_byte
85
-
86
- # Normalize the value to the range (0) .. (65535).
87
- def normalize_word(value)
88
- normalize_to_range(value, 0..65535).to_i
89
- end
90
- alias normalize_16bit normalize_word
91
- end
92
14
  end
93
15
 
94
- require 'spectrum/rgb'
95
- require 'spectrum/cmyk'
96
- require 'spectrum/grayscale'
97
- require 'spectrum/hsl'
98
- require 'spectrum/yiq'
99
- require 'spectrum/rgb/metallic'
100
-
101
- module Color
102
- def self.const_missing(name) #:nodoc:
103
- case name
104
- when "VERSION", :VERSION, "COLOR_TOOLS_VERSION", :COLOR_TOOLS_VERSION
105
- warn "Spectrum::#{name} has been deprecated. Use Spectrum::COLOR_VERSION instead."
106
- Spectrum::COLOR_VERSION
107
- else
108
- if Spectrum::RGB.const_defined?(name)
109
- warn "Spectrum::#{name} has been deprecated. Use Spectrum::RGB::#{name} instead."
110
- Spectrum::RGB.const_get(name)
111
- else
112
- super
113
- end
114
- end
115
- end
16
+ # The global test suite, which Rubytest runs.
17
+ $TEST_SUITE ||= []
116
18
 
117
- # Provides a thin veneer over the Color module to make it seem like this
118
- # is Color 0.1.0 (a class) and not Color 1.4.1 (a module). This
119
- # "constructor" will be removed in the future.
120
- #
121
- # mode = :hsl:: +values+ must be an array of [ hue deg, sat %, lum % ].
122
- # A Spectrum::HSL object will be created.
123
- # mode = :rgb:: +values+ will either be an HTML-style colour string or
124
- # an array of [ red, green, blue ] (range 0 .. 255). A
125
- # Spectrum::RGB object will be created.
126
- # mode = :cmyk:: +values+ must be an array of [ cyan %, magenta %, yellow
127
- # %, black % ]. A Spectrum::CMYK object will be created.
128
- def self.new(values, mode = :rgb)
129
- warn "Color.new has been deprecated. Use Spectrum::#{mode.to_s.upcase}.new instead."
130
- color = case mode
131
- when :hsl
132
- Spectrum::HSL.new(*values)
133
- when :rgb
134
- values = [ values ].flatten
135
- if values.size == 1
136
- Spectrum::RGB.from_html(*values)
137
- else
138
- Spectrum::RGB.new(*values)
139
- end
140
- when :cmyk
141
- Spectrum::CMYK.new(*values)
142
- end
143
- color.to_hsl
144
- end
145
- end
19
+ # Leave Spectrum's own lines out of the backtraces in test reports.
20
+ $RUBY_IGNORE_CALLERS ||= []
21
+ $RUBY_IGNORE_CALLERS << Regexp.new(Regexp.escape(File.join(__dir__, 'spectrum')))
metadata CHANGED
@@ -1,108 +1,107 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectrum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
- - Austin Ziegler
9
- - Matt Lyon
10
- autorequire:
7
+ - Thomas Sawyer
11
8
  bindir: bin
12
9
  cert_chain: []
13
- date: 2012-02-27 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
14
11
  dependencies:
15
12
  - !ruby/object:Gem::Dependency
16
- name: detroit
17
- requirement: &12014640 !ruby/object:Gem::Requirement
18
- none: false
13
+ name: rubytest
14
+ requirement: !ruby/object:Gem::Requirement
19
15
  requirements:
20
- - - ! '>='
16
+ - - ">="
21
17
  - !ruby/object:Gem::Version
22
- version: '0'
18
+ version: 0.11.1
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 0.11.1
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '13'
23
33
  type: :development
24
34
  prerelease: false
25
- version_requirements: *12014640
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '13'
26
40
  - !ruby/object:Gem::Dependency
27
- name: mast
28
- requirement: &12011760 !ruby/object:Gem::Requirement
29
- none: false
41
+ name: assay
42
+ requirement: !ruby/object:Gem::Requirement
30
43
  requirements:
31
- - - ! '>='
44
+ - - ">="
32
45
  - !ruby/object:Gem::Version
33
- version: '0'
46
+ version: '0.5'
34
47
  type: :development
35
48
  prerelease: false
36
- version_requirements: *12011760
37
- description: Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace
38
- manipulation support to applications that require it. It also provides 152 named
39
- RGB colours (184 with spelling variations) that are commonly supported in HTML,
40
- SVG, and X11 applications. A technique for generating monochromatic contrasting
41
- palettes is also included.
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0.5'
54
+ description: 'Spectrum provides the words that organize tests, in three styles, each
55
+ loaded on its own: test cases and tests, describe and it, or features and scenarios.
56
+ The tests are run by Rubytest, and what they assert is left to an assertion library
57
+ such as Assay.'
42
58
  email:
43
- - austin@rubyforge.org
44
- - matt@postsomnia.com
59
+ - transfire@gmail.com
45
60
  executables: []
46
61
  extensions: []
47
- extra_rdoc_files:
48
- - README.txt
49
- - Install.txt
50
- - Licence.txt
51
- - History.txt
62
+ extra_rdoc_files: []
52
63
  files:
53
- - lib/spectrum/cmyk.rb
54
- - lib/spectrum/css.rb
55
- - lib/spectrum/grayscale.rb
56
- - lib/spectrum/hsl.rb
57
- - lib/spectrum/palette/adobecolor.rb
58
- - lib/spectrum/palette/gimp.rb
59
- - lib/spectrum/palette/monocontrast.rb
60
- - lib/spectrum/palette.rb
61
- - lib/spectrum/rgb/metallic.rb
62
- - lib/spectrum/rgb-colors.rb
63
- - lib/spectrum/rgb.rb
64
- - lib/spectrum/yiq.rb
64
+ - HISTORY.md
65
+ - LICENSE.txt
66
+ - README.md
65
67
  - lib/spectrum.rb
66
- - test/test_adobecolor.rb
67
- - test/test_all.rb
68
- - test/test_cmyk.rb
69
- - test/test_color.rb
70
- - test/test_css.rb
71
- - test/test_gimp.rb
72
- - test/test_grayscale.rb
73
- - test/test_hsl.rb
74
- - test/test_monocontrast.rb
75
- - test/test_rgb.rb
76
- - test/test_yiq.rb
77
- - README.txt
78
- - Install.txt
79
- - Licence.txt
80
- - History.txt
81
- homepage: http://rubyworks.github.com/spectrum
68
+ - lib/spectrum/describe.rb
69
+ - lib/spectrum/feature.rb
70
+ - lib/spectrum/feature/advice.rb
71
+ - lib/spectrum/feature/feature.rb
72
+ - lib/spectrum/feature/featurette.rb
73
+ - lib/spectrum/feature/scenario.rb
74
+ - lib/spectrum/feature/step.rb
75
+ - lib/spectrum/spec/context.rb
76
+ - lib/spectrum/spec/example.rb
77
+ - lib/spectrum/spec/hooks.rb
78
+ - lib/spectrum/testcase.rb
79
+ - lib/spectrum/testcase/test_case.rb
80
+ - lib/spectrum/testcase/test_proc.rb
81
+ - lib/spectrum/version.rb
82
+ - lib/spectrum/world.rb
83
+ homepage: https://github.com/rubyworks/spectrum
82
84
  licenses:
83
- - BSD-3-Clause
84
- - BSD-3-Clause
85
- post_install_message:
85
+ - BSD-2-Clause
86
+ metadata:
87
+ source_code_uri: https://github.com/rubyworks/spectrum
88
+ changelog_uri: https://github.com/rubyworks/spectrum/blob/master/HISTORY.md
89
+ bug_tracker_uri: https://github.com/rubyworks/spectrum/issues
86
90
  rdoc_options: []
87
91
  require_paths:
88
92
  - lib
89
93
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
94
  requirements:
92
- - - ! '>='
95
+ - - ">="
93
96
  - !ruby/object:Gem::Version
94
- version: '0'
97
+ version: '2.7'
95
98
  required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
99
  requirements:
98
- - - ! '>='
100
+ - - ">="
99
101
  - !ruby/object:Gem::Version
100
102
  version: '0'
101
103
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 1.8.11
104
- signing_key:
105
- specification_version: 3
106
- summary: Colour management with Ruby
104
+ rubygems_version: 3.6.9
105
+ specification_version: 4
106
+ summary: 'A choice of test structures: test cases, specifications or features'
107
107
  test_files: []
108
- has_rdoc:
data/History.txt DELETED
@@ -1,93 +0,0 @@
1
- == Color 1.4.1 / 2010.02.03
2
- * Imported to github.
3
- * Converted to Hoe 2.5 spec format.
4
-
5
- == Color 1.4.0 / 2007.02.11
6
- * Merged Austin Ziegler's color-tools library (previously part of the Ruby
7
- PDF Tools project) with Matt Lyon's color library.
8
- - The HSL implementation from the Color class has been merged into
9
- Color::HSL. Color is a module the way it was for color-tools.
10
- - A thin veneer has been written to allow Color::new to return a Color::HSL
11
- instance; Color::HSL supports as many methods as possible that were
12
- previously supported by the Color class.
13
- - Values that were previously rounded by Color are no longer rounded;
14
- fractional values matter.
15
- * Converted to hoe for project management.
16
- * Moved to the next step of deprecating Color::Name values; printing a
17
- warning for each use (see the history for color-tools 1.3.0).
18
- * Print a warning on the access of either VERSION or COLOR_TOOLS_VERSION; the
19
- version constant is now COLOR_VERSION.
20
- * Added humanized versions of accessors (e.g., CMYK colours now have both #cyan
21
- and #c to access the cyan component of the colour; #cyan provides the value
22
- as a percentage).
23
- * Added CSS3 formatters for RGB, RGBA, HSL, and HSLA outputs. Note that the
24
- Color library does not yet have a way of setting alpha opacity, so the
25
- output for RGBA and HSLA are at full alpha opacity (1.0). The values are
26
- output with two decimal places.
27
- * Applied a patch to provide simple arithmetic colour addition and subtraction
28
- to Color::GrayScale and Color::RGB. The patch was contributed by Jeremy
29
- Hinegardner <jeremy@hinegardner.org>. This patch also provides the ability to
30
- return the maximum RGB value as a grayscale colour.
31
- * Fixed two problems reported by Jean Krohn <jb.krohn@free.fr> against
32
- color-tools relating to RGB-to-HSL and HSL-to-RGB conversion. (Color and
33
- color-tools use the same formulas, but the ordering of the calculations is
34
- slightly different with Color and did not suffer from this problem;
35
- color-tools was more sensitive to floating-point values and precision
36
- errors.)
37
- * Fixed an issue with HSL/RGB conversions reported by Adam Johnson
38
- <adam.sven.johnson@gmail.com>.
39
- * Added an Adobe Color swatch (Photoshop) palette reader,
40
- Color::Palette::AdobeColor (for .aco files only).
41
-
42
- == Color 0.1.0 / 2006.08.05
43
- * Added HSL (degree, percent, percent) interface.
44
- * Removed RGB instance variable; color is managed internally as HSL floating
45
- point.
46
- * Tests!
47
-
48
- == color-tools 1.3.0
49
- * Added new metallic colours suggested by Jim Freeze <jfn@freeze.org>. These
50
- are in the namespace Color::Metallic.
51
- * Colours that were defined in the Color namespace (e.g., Color::Red,
52
- Color::AliceBlue) are now defined in Color::RGB (e.g., Color::RGB::Red,
53
- Color::RGB::AliceBlue). They are added back to the Color namespace on the
54
- first use of the old colours and a warning is printed. In version 1.4, this
55
- warning will be printed on every use of the old colours. In version 1.5,
56
- the backwards compatible support for colours like Color::Red will be
57
- removed completely.
58
- * Added the Color::CSS module, color/css or Color::CSS that provides a name
59
- lookup of Color::RGB-namespaced constants with Color::CSS[name]. Most of
60
- these colours (which are mirrored from the Color::RGB default colours) are
61
- only "officially" recognised under the CSS3 colour module or SVG.
62
- * Added the Color::HSL colour space and some helper utilities to Color::RGB
63
- for colour manipulation using the HSL value.
64
- * Controlled internal value replacement to be between 0 and 1 for all
65
- colours.
66
- * Updated Color::Palette::Gimp to more meaningfully deal with duplicate named
67
- colours. Named colours now return an array of colours.
68
- * Indicated the plans for some methods and constants out to color-tools 2.0.
69
- * Added unit tests and fixed a number of hidden bugs because of them.
70
-
71
- == color-tools 1.2.0
72
- * Changed installer from a custom-written install.rb to setup.rb
73
- 3.3.1-modified.
74
- * Added Color::GreyScale (or Color::GrayScale).
75
- * Added Color::YIQ. This colour definition is incomplete; it does not have
76
- conversions from YIQ to other colour spaces.
77
-
78
- == color-tools 1.1.0
79
- * Added color/palette/gimp to support the reading and use of GIMP color
80
- palettes.
81
-
82
- == color-tools 1.0.0
83
- * Initial release.
84
-
85
- == Copyright
86
- Color
87
- Colour Management with Ruby
88
- http://rubyforge.org/projects/color
89
-
90
- Licensed under a MIT-style licence. See Licence.txt in the main
91
- distribution for full licensing information.
92
-
93
- Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon
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/Licence.txt DELETED
@@ -1,27 +0,0 @@
1
- Color
2
- Colour management in Ruby
3
- http://rubyforge.org/projects/color/
4
-
5
- Copyright (c) 2005 - 2010 Austin Ziegler, Matt Lyon, and other contributors
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy of
8
- this software and associated documentation files (the "Software"), to deal in
9
- the Software without restriction, including without limitation the rights to
10
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
11
- of the Software, and to permit persons to whom the Software is furnished to do
12
- so, subject to the following conditions:
13
-
14
- * The names of its contributors may not be used to endorse or promote
15
- products derived from this software without specific prior written
16
- permission.
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.