dugway 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/dugway/liquid/filters/util_filters.rb +2 -2
- data/lib/dugway/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 027c6ffe1a9e8833dc30179327049c7aa2607712df02610c5a2667828432a84b
|
4
|
+
data.tar.gz: b2c2e63788189f94637c8d977e969337b31b5922728e3119c522a39ae4f10002
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ef192dcc976bf691486856528970cfee3e746aa82086730ee7104ce0abd5174f574a8dd199cf20cd1f72943c524ac0dba26f894c21946f051e4783f94402c64
|
7
|
+
data.tar.gz: df22ae822edb930f937152806a74389ccd253ec7902834101c42cd8996822ab61bdd12f86dcb3c16d47efb5d91060a459dccb9ae33cbf5ea6c829da6406d3c89
|
data/README.md
CHANGED
@@ -120,7 +120,7 @@ utilities.
|
|
120
120
|
|
121
121
|
Prefer [LESS](http://lesscss.org)? No problem, you'll just need to create a
|
122
122
|
[Gemfile like this one](https://gist.github.com/mattwigham/5569898) in the
|
123
|
-
root directory of your theme, run
|
123
|
+
root directory of your theme, run `bundle install`, and append the
|
124
124
|
**.less** extension to your CSS files.
|
125
125
|
|
126
126
|
And finally, for you JavaScript folks, we've baked
|
@@ -86,13 +86,13 @@ module Dugway
|
|
86
86
|
digits, rounded_number = 1, 0
|
87
87
|
else
|
88
88
|
digits = (Math.log10(number.abs) + 1).floor
|
89
|
-
rounded_number = (BigDecimal
|
89
|
+
rounded_number = (BigDecimal(number.to_s) / BigDecimal((10 ** (digits - precision)).to_f.to_s)).round.to_f * 10 ** (digits - precision)
|
90
90
|
digits = (Math.log10(rounded_number.abs) + 1).floor # After rounding, the number of digits may have changed
|
91
91
|
end
|
92
92
|
precision -= digits
|
93
93
|
precision = precision > 0 ? precision : 0 #don't let it be negative
|
94
94
|
else
|
95
|
-
rounded_number = BigDecimal
|
95
|
+
rounded_number = BigDecimal(number.to_s).round(precision).to_f
|
96
96
|
end
|
97
97
|
formatted_number = number_with_delimiter("%01.#{precision}f" % rounded_number, options)
|
98
98
|
if strip_insignificant_zeros
|
data/lib/dugway/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dugway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Big Cartel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -560,8 +560,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
560
560
|
- !ruby/object:Gem::Version
|
561
561
|
version: '0'
|
562
562
|
requirements: []
|
563
|
-
|
564
|
-
rubygems_version: 2.7.6
|
563
|
+
rubygems_version: 3.0.1
|
565
564
|
signing_key:
|
566
565
|
specification_version: 4
|
567
566
|
summary: Easily build and test Big Cartel themes.
|