colorant 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/Gemfile +0 -11
- data/Gemfile.lock +2 -2
- data/colorant.gemspec +3 -3
- data/features/cli.feature +20 -21
- data/lib/colorant/reporter.rb +1 -1
- data/lib/colorant/version.rb +1 -1
- metadata +16 -16
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm --create use ruby-1.9.2@
|
1
|
+
rvm --create use ruby-1.9.2@colorant
|
data/Gemfile
CHANGED
@@ -2,14 +2,3 @@ source :rubygems
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in colorist.gemspec
|
4
4
|
gemspec
|
5
|
-
# gem "color_namer", :git => 'git://github.com/retro/color-namer.git'
|
6
|
-
# gem "bundler"
|
7
|
-
# gem "rspec", :git => 'git://github.com/rspec/rspec.git'
|
8
|
-
# gem "rspec-expectations", :git => 'git://github.com/rspec/rspec-expectations.git'
|
9
|
-
# gem "rspec-mocks", :git => 'git://github.com/rspec/rspec-mocks.git'
|
10
|
-
# gem "rspec-core", :git => 'git://github.com/rspec/rspec-core.git'
|
11
|
-
#
|
12
|
-
# gem "aruba", :git => 'git://github.com/aslakhellesoy/aruba.git'
|
13
|
-
# gem "cucumber", :git => 'git://github.com/aslakhellesoy/cucumber.git'
|
14
|
-
# gem "watchr"
|
15
|
-
# gem "trollop"
|
data/Gemfile.lock
CHANGED
@@ -55,7 +55,7 @@ GIT
|
|
55
55
|
PATH
|
56
56
|
remote: .
|
57
57
|
specs:
|
58
|
-
|
58
|
+
colorant (0.1.2)
|
59
59
|
|
60
60
|
GEM
|
61
61
|
remote: http://rubygems.org/
|
@@ -79,7 +79,7 @@ DEPENDENCIES
|
|
79
79
|
aruba!
|
80
80
|
bundler
|
81
81
|
color_namer!
|
82
|
-
|
82
|
+
colorant!
|
83
83
|
cucumber!
|
84
84
|
rspec!
|
85
85
|
rspec-core!
|
data/colorant.gemspec
CHANGED
@@ -14,14 +14,14 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.required_rubygems_version = ">= 1.3.6"
|
15
15
|
s.rubyforge_project = "colorant"
|
16
16
|
|
17
|
+
s.add_runtime_dependency "color_namer"
|
18
|
+
s.add_runtime_dependency 'trollop'
|
19
|
+
|
17
20
|
s.add_development_dependency "bundler", ">= 1.0.3"
|
18
21
|
s.add_development_dependency 'rspec'
|
19
22
|
s.add_development_dependency 'cucumber'
|
20
23
|
s.add_development_dependency 'aruba'
|
21
24
|
|
22
|
-
s.add_runtime_dependency 'trollop'
|
23
|
-
s.add_runtime_dependency "color_namer"
|
24
|
-
|
25
25
|
s.files = `git ls-files`.split("\n")
|
26
26
|
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
27
27
|
s.require_path = 'lib'
|
data/features/cli.feature
CHANGED
@@ -3,28 +3,27 @@ Feature: Command line interpreter
|
|
3
3
|
You can use Colorist from the command line as well.
|
4
4
|
|
5
5
|
Scenario: get the most relevant colors out of the Arnolfini Portrait
|
6
|
-
When I run "
|
6
|
+
When I run "colorant arnolfini.jpg --colors 8 --depth 24"
|
7
7
|
|
8
|
-
Then the
|
9
|
-
And the output should
|
10
|
-
And the output should
|
11
|
-
And the output should
|
12
|
-
And the output should
|
13
|
-
And the output should
|
14
|
-
And the output should
|
15
|
-
And the output should
|
16
|
-
And the
|
8
|
+
Then the output should match /\tBrown\t\t\t\t\t\t-- 40.54 %/
|
9
|
+
And the output should match /\Red\t\t\t\t\t\t-- 17.88 %/
|
10
|
+
And the output should match /\tBrown\t\t\t\t\t\t-- 12.76 %/
|
11
|
+
And the output should match /\tRed\t\t\t\t\t\t-- 9.95 %/
|
12
|
+
And the output should match /\tBrown\t\t\t\t\t\t-- 8.03 %/
|
13
|
+
And the output should match /\tBrown\t\t\t\t\t\t-- 4.25 %/
|
14
|
+
And the output should match /\tRed\t\t\t\t\t\t-- 3.55 %/
|
15
|
+
And the output should match /\tBrown\t\t\t\t\t\t-- 3.03 %/
|
16
|
+
And the exit status should be 0
|
17
17
|
|
18
18
|
Scenario: get an extended report over the Arnolfini Portrait
|
19
|
-
When I run "
|
19
|
+
When I run "colorant arnolfini.jpg --extended"
|
20
20
|
|
21
|
-
Then the
|
22
|
-
And the output should
|
23
|
-
And the output should
|
24
|
-
And the output should
|
25
|
-
And the output should
|
26
|
-
And the output should
|
27
|
-
And the output should
|
28
|
-
And the output should
|
29
|
-
And the
|
30
|
-
|
21
|
+
Then the output should match /\tCocoa Brown\t\t\t\t\t\t-- 40.54 %/
|
22
|
+
And the output should match /\tMoccaccino Red\t\t\t\t\t\t-- 17.88 %/
|
23
|
+
And the output should match /\tRock Brown\t\t\t\t\t\t-- 12.76 %/
|
24
|
+
And the output should match /\tMojo Red\t\t\t\t\t\t-- 9.95 %/
|
25
|
+
And the output should match /\tBrown Derby\t\t\t\t\t\t-- 8.03 %/
|
26
|
+
And the output should match /\tDark Tan Brown\t\t\t\t\t\t-- 4.25 %/
|
27
|
+
And the output should match /\tBrandy Rose Red\t\t\t\t\t\t-- 3.55 %/
|
28
|
+
And the output should match /\tVanilla Brown\t\t\t\t\t\t-- 3.03 %/
|
29
|
+
And the exit status should be 0
|
data/lib/colorant/reporter.rb
CHANGED
data/lib/colorant/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Josep M. Bach
|
@@ -20,7 +20,7 @@ date: 2010-11-10 00:00:00 +01:00
|
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
name:
|
23
|
+
name: color_namer
|
24
24
|
prerelease: false
|
25
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
26
|
none: false
|
@@ -28,14 +28,12 @@ dependencies:
|
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
segments:
|
31
|
-
- 1
|
32
31
|
- 0
|
33
|
-
|
34
|
-
|
35
|
-
type: :development
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
36
34
|
version_requirements: *id001
|
37
35
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
36
|
+
name: trollop
|
39
37
|
prerelease: false
|
40
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
@@ -45,10 +43,10 @@ dependencies:
|
|
45
43
|
segments:
|
46
44
|
- 0
|
47
45
|
version: "0"
|
48
|
-
type: :
|
46
|
+
type: :runtime
|
49
47
|
version_requirements: *id002
|
50
48
|
- !ruby/object:Gem::Dependency
|
51
|
-
name:
|
49
|
+
name: bundler
|
52
50
|
prerelease: false
|
53
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
52
|
none: false
|
@@ -56,12 +54,14 @@ dependencies:
|
|
56
54
|
- - ">="
|
57
55
|
- !ruby/object:Gem::Version
|
58
56
|
segments:
|
57
|
+
- 1
|
59
58
|
- 0
|
60
|
-
|
59
|
+
- 3
|
60
|
+
version: 1.0.3
|
61
61
|
type: :development
|
62
62
|
version_requirements: *id003
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
64
|
+
name: rspec
|
65
65
|
prerelease: false
|
66
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
type: :development
|
75
75
|
version_requirements: *id004
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
|
-
name:
|
77
|
+
name: cucumber
|
78
78
|
prerelease: false
|
79
79
|
requirement: &id005 !ruby/object:Gem::Requirement
|
80
80
|
none: false
|
@@ -84,10 +84,10 @@ dependencies:
|
|
84
84
|
segments:
|
85
85
|
- 0
|
86
86
|
version: "0"
|
87
|
-
type: :
|
87
|
+
type: :development
|
88
88
|
version_requirements: *id005
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
90
|
+
name: aruba
|
91
91
|
prerelease: false
|
92
92
|
requirement: &id006 !ruby/object:Gem::Requirement
|
93
93
|
none: false
|
@@ -97,7 +97,7 @@ dependencies:
|
|
97
97
|
segments:
|
98
98
|
- 0
|
99
99
|
version: "0"
|
100
|
-
type: :
|
100
|
+
type: :development
|
101
101
|
version_requirements: *id006
|
102
102
|
description: Easily extract the colors of any image file!
|
103
103
|
email:
|