iron-web 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Version.txt +1 -1
- data/lib/iron/web/color.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/Version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/lib/iron/web/color.rb
CHANGED
@@ -187,7 +187,7 @@ class Color
|
|
187
187
|
|
188
188
|
# Compute our overall brightness, using perception-based weighting, from 0.0 to 1.0
|
189
189
|
def brightness
|
190
|
-
(0.2126 * self.r + 0.7152 * self.g + 0.0722 * self.b)
|
190
|
+
(0.2126 * self.r + 0.7152 * self.g + 0.0722 * self.b) / 255.0
|
191
191
|
end
|
192
192
|
|
193
193
|
def dark?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: iron-extensions
|