iron-web 1.1.1 → 1.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.
@@ -1,3 +1,7 @@
1
+ == 1.1.2 / 2013-03-13
2
+
3
+ * Fix bug in Color#brightness where brightness values weren't normalized to 0.0-1.0 range
4
+
1
5
  == 1.1.1 / 2013-03-13
2
6
 
3
7
  * Handle setting Url params with keys, accessing with keys using #get_param
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -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.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-03-12 00:00:00.000000000 Z
12
+ date: 2013-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: iron-extensions