sassy-math 1.4 → 1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/sassy-math.rb +3 -7
  2. data/sassy-math.gemspec +1 -1
  3. metadata +3 -3
@@ -48,12 +48,8 @@ module Sass::Script::Functions
48
48
  end
49
49
  Sass::Script::Number.new(result)
50
50
  end
51
- def random(type = Sass::Script::String.new("number"), max = Sass::Script::Number.new(100)) ## https://gist.github.com/1561650 and modified by https://github.com/bookcasey
52
- if type.value == "color"
53
- Sass::Script::Color.new(:red => rand(255), :green => rand(255), :blue => rand(255))
54
- else
55
- Sass::Script::Number.new(rand(max.value), max.numerator_units, max.denominator_units)
56
- end
51
+ def random(max = Sass::Script::Number.new(100)) ## shamelessly taken from here: https://gist.github.com/1561650
52
+ Sass::Script::Number.new(rand(max.value), max.numerator_units, max.denominator_units)
57
53
  end
58
54
  def hypot(a, b)
59
55
  a = a.value.to_f
@@ -157,7 +153,7 @@ end
157
153
 
158
154
  module SassyMath
159
155
 
160
- VERSION = "1.4"
156
+ VERSION = "1.5"
161
157
  DATE = "2012-07-29"
162
158
 
163
159
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{sassy-math}
5
- s.version = "1.4"
5
+ s.version = "1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
8
8
  s.authors = ["Sam Richard", "Mario Valencia", "Scott Kellum"]
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassy-math
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 4
9
- version: "1.4"
8
+ - 5
9
+ version: "1.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Richard