colorant 0.1.1 → 0.1.2

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.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm --create use ruby-1.9.2@colorist > /dev/null
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
- colorist (0.0.1)
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
- colorist!
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 "colorist arnolfini.jpg --colors 8 --depth 24"
6
+ When I run "colorant arnolfini.jpg --colors 8 --depth 24"
7
7
 
8
- Then the exit status should be 0
9
- And the output should contain "Brown -- 40.54 %"
10
- And the output should contain "Red -- 17.88 %"
11
- And the output should contain "Brown -- 12.76 %"
12
- And the output should contain "Red -- 9.95 %"
13
- And the output should contain "Brown -- 8.03 %"
14
- And the output should contain "Brown -- 4.25 %"
15
- And the output should contain "Red -- 3.55 %"
16
- And the output should contain "Brown -- 3.03 %"
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 "colorist arnolfini.jpg --extended"
19
+ When I run "colorant arnolfini.jpg --extended"
20
20
 
21
- Then the exit status should be 0
22
- And the output should contain "Cocoa Brown -- 40.54 %"
23
- And the output should contain "Moccaccino Red -- 17.88 %"
24
- And the output should contain "Rock Brown -- 12.76 %"
25
- And the output should contain "Mojo Red -- 9.95 %"
26
- And the output should contain "Brown Derby -- 8.03 %"
27
- And the output should contain "Dark Tan Brown -- 4.25 %"
28
- And the output should contain "Brandy Rose Red -- 3.55 %"
29
- And the output should contain "Vanilla Brown -- 3.03 %"
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
@@ -30,7 +30,7 @@ module Colorant
30
30
 
31
31
  def stdout_report(array)
32
32
  array.each do |line|
33
- stdout << "\t#{line.first}\t\t-- #{line.last} %\n"
33
+ stdout << "\t#{line.first}\t\t\t\t\t\t-- #{line.last} %\n"
34
34
  end
35
35
  stdout << "\n"
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module Colorant
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.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: bundler
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
- - 3
34
- version: 1.0.3
35
- type: :development
32
+ version: "0"
33
+ type: :runtime
36
34
  version_requirements: *id001
37
35
  - !ruby/object:Gem::Dependency
38
- name: rspec
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: :development
46
+ type: :runtime
49
47
  version_requirements: *id002
50
48
  - !ruby/object:Gem::Dependency
51
- name: cucumber
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
- version: "0"
59
+ - 3
60
+ version: 1.0.3
61
61
  type: :development
62
62
  version_requirements: *id003
63
63
  - !ruby/object:Gem::Dependency
64
- name: aruba
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: trollop
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: :runtime
87
+ type: :development
88
88
  version_requirements: *id005
89
89
  - !ruby/object:Gem::Dependency
90
- name: color_namer
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: :runtime
100
+ type: :development
101
101
  version_requirements: *id006
102
102
  description: Easily extract the colors of any image file!
103
103
  email: