colver 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +3 -0
  2. data/Rakefile +0 -4
  3. data/VERSION +1 -1
  4. data/colver.gemspec +1 -13
  5. metadata +3 -64
@@ -3,7 +3,10 @@
3
3
  If you are a <b>col</b>or lo<b>ver</b>, then this gem is for you! Play with colors and make them happy.
4
4
 
5
5
  Color.new [127, 63, 255] #=> #<Color: hex: 7f3fff, rgb: [127, 63, 255]>
6
+ [127, 63, 255].to_color #=> #<Color: hex: 7f3fff, rgb: [127, 63, 255]>
6
7
  Color.new 'a4cf13' #=> #<Color: hex: a4cf13, rgb: [164, 207, 19]>
8
+ 'a4cf13'.to_color #=> #<Color: hex: a4cf13, rgb: [164, 207, 19]>
9
+ 672904.to_color #=> #<Color: hex: 672904, rgb: [103, 41, 4]>
7
10
  Color.new 'colver' #=> #<Color: hex: 16b558, rgb: [22, 181, 88]>
8
11
 
9
12
  Yeah - if you pass a non-hex string, colver will generate a color from it! You can also invert colors:
data/Rakefile CHANGED
@@ -23,10 +23,6 @@ Jeweler::Tasks.new do |gem|
23
23
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
24
  # spec.add_runtime_dependency 'jabber4r', '> 0.1'
25
25
  # spec.add_development_dependency 'rspec', '> 1.2.3'
26
- gem.add_development_dependency "rspec", "~> 2.0.0"
27
- gem.add_development_dependency "bundler", "~> 1.0.0"
28
- gem.add_development_dependency "jeweler", "~> 1.5.0.pre5"
29
- gem.add_development_dependency "simplecov", "~> 0.3.5"
30
26
  end
31
27
  Jeweler::RubygemsDotOrgTasks.new
32
28
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{colver}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rafał Cieślak"]
@@ -52,29 +52,17 @@ Gem::Specification.new do |s|
52
52
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
53
53
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.0.pre5"])
54
54
  s.add_development_dependency(%q<simplecov>, ["~> 0.3.5"])
55
- s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
56
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
57
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.0.pre5"])
58
- s.add_development_dependency(%q<simplecov>, ["~> 0.3.5"])
59
55
  else
60
56
  s.add_dependency(%q<rspec>, ["~> 2.0.0"])
61
57
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
62
58
  s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre5"])
63
59
  s.add_dependency(%q<simplecov>, ["~> 0.3.5"])
64
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
65
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
66
- s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre5"])
67
- s.add_dependency(%q<simplecov>, ["~> 0.3.5"])
68
60
  end
69
61
  else
70
62
  s.add_dependency(%q<rspec>, ["~> 2.0.0"])
71
63
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
72
64
  s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre5"])
73
65
  s.add_dependency(%q<simplecov>, ["~> 0.3.5"])
74
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
75
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
76
- s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre5"])
77
- s.add_dependency(%q<simplecov>, ["~> 0.3.5"])
78
66
  end
79
67
  end
80
68
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Rafa\xC5\x82 Cie\xC5\x9Blak"
@@ -78,67 +78,6 @@ dependencies:
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: *id004
81
- - !ruby/object:Gem::Dependency
82
- name: rspec
83
- requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ~>
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 2
90
- - 0
91
- - 0
92
- version: 2.0.0
93
- type: :development
94
- prerelease: false
95
- version_requirements: *id005
96
- - !ruby/object:Gem::Dependency
97
- name: bundler
98
- requirement: &id006 !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
101
- - - ~>
102
- - !ruby/object:Gem::Version
103
- segments:
104
- - 1
105
- - 0
106
- - 0
107
- version: 1.0.0
108
- type: :development
109
- prerelease: false
110
- version_requirements: *id006
111
- - !ruby/object:Gem::Dependency
112
- name: jeweler
113
- requirement: &id007 !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ~>
117
- - !ruby/object:Gem::Version
118
- segments:
119
- - 1
120
- - 5
121
- - 0
122
- - pre5
123
- version: 1.5.0.pre5
124
- type: :development
125
- prerelease: false
126
- version_requirements: *id007
127
- - !ruby/object:Gem::Dependency
128
- name: simplecov
129
- requirement: &id008 !ruby/object:Gem::Requirement
130
- none: false
131
- requirements:
132
- - - ~>
133
- - !ruby/object:Gem::Version
134
- segments:
135
- - 0
136
- - 3
137
- - 5
138
- version: 0.3.5
139
- type: :development
140
- prerelease: false
141
- version_requirements: *id008
142
81
  description: A simple gem for playing with colors.
143
82
  email: ravicious@gmail.com
144
83
  executables: []
@@ -178,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
117
  requirements:
179
118
  - - ">="
180
119
  - !ruby/object:Gem::Version
181
- hash: 695985747
120
+ hash: -1024736813
182
121
  segments:
183
122
  - 0
184
123
  version: "0"