sassy-math 1.2 → 1.3

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.
Files changed (3) hide show
  1. data/lib/sassy-math.rb +3 -3
  2. data/sassy-math.gemspec +1 -1
  3. metadata +10 -3
@@ -48,8 +48,8 @@ module Sass::Script::Functions
48
48
  end
49
49
  Sass::Script::Number.new(result)
50
50
  end
51
- def rand
52
- Sass::Script::Number.new(4)
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)
53
53
  end
54
54
  def hypot(a, b)
55
55
  a = a.value.to_f
@@ -153,7 +153,7 @@ end
153
153
 
154
154
  module SassyMath
155
155
 
156
- VERSION = "1.2"
156
+ VERSION = "1.3"
157
157
  DATE = "2012-07-29"
158
158
 
159
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.2"
5
+ s.version = "1.3"
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,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassy-math
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 9
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
- - 2
8
- version: "1.2"
8
+ - 3
9
+ version: "1.3"
9
10
  platform: ruby
10
11
  authors:
11
12
  - Sam Richard
@@ -22,9 +23,11 @@ dependencies:
22
23
  name: compass
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
25
27
  requirements:
26
28
  - - ~>
27
29
  - !ruby/object:Gem::Version
30
+ hash: 29
28
31
  segments:
29
32
  - 0
30
33
  - 11
@@ -54,16 +57,20 @@ rdoc_options: []
54
57
  require_paths:
55
58
  - lib
56
59
  required_ruby_version: !ruby/object:Gem::Requirement
60
+ none: false
57
61
  requirements:
58
62
  - - ">="
59
63
  - !ruby/object:Gem::Version
64
+ hash: 3
60
65
  segments:
61
66
  - 0
62
67
  version: "0"
63
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
64
70
  requirements:
65
71
  - - ">="
66
72
  - !ruby/object:Gem::Version
73
+ hash: 17
67
74
  segments:
68
75
  - 1
69
76
  - 3
@@ -72,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
79
  requirements: []
73
80
 
74
81
  rubyforge_project: sassy-math
75
- rubygems_version: 1.3.6
82
+ rubygems_version: 1.3.7
76
83
  signing_key:
77
84
  specification_version: 3
78
85
  summary: Advanced math functions for Compass.