betabrite 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ === 1.0.5
2
+
3
+ * 1 Bugfix:
4
+
5
+ * Enable String#rainbow_1 and String#color_mix
6
+
1
7
  === 1.0.4
2
8
 
3
9
  * 1 Bugfix:
@@ -1,5 +1,5 @@
1
1
  module BetaBrite
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
 
4
4
  class Device
5
5
  include BetaBrite::Files
@@ -100,19 +100,17 @@ module BetaBrite
100
100
  alias :to_str :to_s
101
101
 
102
102
  Color.constants.each do |constant|
103
- next unless constant =~ /^[A-Z_]*$/
104
- define_method(:"#{constant.downcase}") do
103
+ define_method("#{constant.downcase}") do
105
104
  @color = Color.const_get(constant)
106
105
  self
107
106
  end
108
- define_method(:"#{constant.downcase}?") do
107
+ define_method("#{constant.downcase}?") do
109
108
  @color == Color.const_get(constant)
110
109
  end
111
110
  end
112
111
 
113
112
  CharSet.constants.each do |constant|
114
- next unless constant =~ /^[A-Z1-9_]*$/
115
- define_method(:"#{constant.downcase}") do
113
+ define_method("#{constant.downcase}") do
116
114
  @charset = CharSet.const_get(constant)
117
115
  self
118
116
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betabrite
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aaron Patterson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-20 00:00:00 Z
18
+ date: 2011-08-24 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: hoe