pigment 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 (2) hide show
  1. data/lib/pigment.rb +2 -2
  2. metadata +2 -4
data/lib/pigment.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Pigment
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
 
4
4
  class Color
5
5
 
@@ -205,7 +205,7 @@ module Pigment
205
205
  # @param [Color] color
206
206
  # @param [Float] amount
207
207
  def interpolate(color, amount = 0.5)
208
- if color.is_a? Color && (-1.0..1.0).include?(amount)
208
+ if color.is_a?(Color) && (-1.0..1.0).include?(amount)
209
209
  n = [rgb, color.rgb].transpose.map! { |c, d| c + amount * (d - c) }
210
210
  self.class.new(*self.class.suppress(n))
211
211
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pigment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -28,9 +28,7 @@ homepage: https://github.com/P3t3rU5/pigment
28
28
  licenses: []
29
29
  post_install_message: ! "+----------------------------------------------------------------------------+\n
30
30
  \ Thanks for choosing Pigment.\n\n ==========================================================================\n
31
- \ 0.2.0 Changes:\n - WARNING: Color#to_floats now returns alpha by default\n
32
- \ - Added Color#dup\n - Dynamically defined setters for r, g and b\n - Removed
33
- Color#hsl\n - Corrected Color#remove_channels\n ==========================================================================\n\n
31
+ \ 0.2.1 Changes:\n - Corrected Color#interpolate\n ==========================================================================\n\n
34
32
  \ If you like what you see, support us on Pledgie:\n http://www.pledgie.com/campaigns/18945\n\n
35
33
  \ If you find any bugs, please report them on\n https://github.com/P3t3rU5/pigment/issues\n\n+----------------------------------------------------------------------------+\n"
36
34
  rdoc_options: []