autoprefixer-rails 5.1.10 → 5.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3aaf832649d7fbd00e1b82d71fbb5bc7b3e0adf3
4
- data.tar.gz: 81645d4dabf61883665e746c6e684c5349b78d4d
3
+ metadata.gz: f7bcab195997ad609b90208e6806959f3c8b74e0
4
+ data.tar.gz: 6bedfc47e7d86d54c90b021067be6d30780fc209
5
5
  SHA512:
6
- metadata.gz: d254fa94f442aabefb3d674a9e13d0a4f27021b0c754d9e09459857dfae9e35f73ae8a91cd6898ed2e4ed4ad3970ebc954da6261c4d4edbf8e59e917ace8a635
7
- data.tar.gz: 7babe83f16a71f44ae86f4448baf1a44688a79a938298b498e062b6fa9a80840851fb11159408328f16dc379c674db5ccca0bf1c7b7ebc32cec6bb8701e7f03e
6
+ metadata.gz: 19209345b7ed8399481848f1c905ebc95ff3e3e57e0b02e606042d3c307e29578b4cb91e99008db8ab617a3281d73e5a3175eb92114486266e89a7e1d2f0232e
7
+ data.tar.gz: 6419d9775d0eeedb3d0763d286febb6acbdff48d87548646d3cb871d4c55e986391f532f494e5c112f934be1cb60ec562e1bbd27316a42e1836b6b0329cf028f
@@ -1,3 +1,6 @@
1
+ ## 5.1.11
2
+ * Update num2fraction to fix resolution media quuery (by 一丝).
3
+
1
4
  ## 5.1.10
2
5
  * Do not generate `-webkit-image-rendering`.
3
6
 
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '5.1.10'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '5.1.11'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -14998,6 +14998,16 @@ function GCD(a, b) {
14998
14998
  return GCD(b, a % b)
14999
14999
  }
15000
15000
 
15001
+ function findPrecision(n) {
15002
+ var e = 1
15003
+
15004
+ while (Math.round(n * e) / e !== n) {
15005
+ e *= 10
15006
+ }
15007
+
15008
+ return e
15009
+ }
15010
+
15001
15011
  function num2fraction(num) {
15002
15012
  if (num === 0) return 0
15003
15013
 
@@ -15006,7 +15016,7 @@ function num2fraction(num) {
15006
15016
  }
15007
15017
 
15008
15018
 
15009
- var precision = 100000000 //精确度
15019
+ var precision = findPrecision(num) //精确度
15010
15020
  var number = num * precision
15011
15021
  var gcd = GCD(number, precision)
15012
15022
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoprefixer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.10
4
+ version: 5.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-18 00:00:00.000000000 Z
11
+ date: 2015-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs