modular-scale 3.0.1 → 3.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22773cbee288e14625c28b5f9219bf051ca6e8e5
4
- data.tar.gz: 8a87f4e25420096cefc202a7b07329d73464980c
3
+ metadata.gz: d6a39223f0c3e3b031cc66b07a6466434279c16e
4
+ data.tar.gz: 87c09e6c17c9e7391d9b7539333b21a15616701e
5
5
  SHA512:
6
- metadata.gz: 1f8295fcfb0ddae63ef0a1e51e7b62723170a9270942f4dc027a544529b4d546fa2f7b3edded113832230617965a70b986bec841953ff1a89c67191e831bc0a2
7
- data.tar.gz: 02db42d590cc4242e7a359c1b5494a42d1c7e9d8127bf7c3f8a38a07b09cddb5d9cd115d0567c9c382a79cac80af0a8c3b4033f7e2954eb6fb252ffaefb13e95
6
+ metadata.gz: 79d9602f58a2fe5fb55b85f01e882e4ecc2cf8d17555c07b8116225f3660e73d7d80fdeff5dd202482ba30dbf2e5b6f01d91dd8dac2530f375e0790d478666df
7
+ data.tar.gz: ef73121273ebdcef550635bc63f0b76f2502ec0073b4a9348413635ed41d0e5729a5f93294ca15d13102ecff72cc10e70c377db518e2c2cec9a37066ae7219cd
@@ -1,3 +1,7 @@
1
+ # Version 3.0.2
2
+
3
+ * Fix bug when the exponent is 0
4
+
1
5
  # Version 3.0.1
2
6
 
3
7
  * Fix issue with generic `pow()` being used instead of `ms-pow()`
@@ -16,8 +16,8 @@ Compass::Frameworks.register('modular-scale', :path => extension_path)
16
16
  # a prerelease version
17
17
  # Date is in the form of YYYY-MM-DD
18
18
  module ModularScale
19
- VERSION = "3.0.1"
20
- DATE = "2017-04-02"
19
+ VERSION = "3.0.2"
20
+ DATE = "2017-04-04"
21
21
  end
22
22
 
23
23
  # This is where any custom SassScript should be placed. The functions will be
@@ -5,6 +5,11 @@
5
5
 
6
6
  @function ms-pow($b,$e) {
7
7
 
8
+ // Return 1 if exponent is 0
9
+ @if $e == 0 {
10
+ @return 1;
11
+ }
12
+
8
13
  // If pow() exists (compass or mathsass) use that.
9
14
  @if function-exists('pow') {
10
15
  @return pow($b,$e);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modular-scale
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Kellum
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-04-02 00:00:00.000000000 Z
13
+ date: 2017-04-04 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: |-
16
16
  A modular scale is a list of values that share the same relationship. These