jekyll-cooklang-converter 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/converters/cooklang.rb +2 -2
- data/lib/jekyll-cooklang-converter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43170699656e13bf9c9ec7f957691cd3384e9d7fcc2766a952d0a5c9bad31d2a
|
4
|
+
data.tar.gz: 0d0f7858262c779881f6cfb3cf0db2df0243352cf0647d7d327ba8c6095b7fa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac5bbdcaa5ab4498c86b6dbd85bff3ec433d74dfd8965565f07c919d3373eb76395bae3f84314891646f5afa689edb82d16387fce05207785d5929a474722f79
|
7
|
+
data.tar.gz: 5998afa0f460019364ae1f27efa4040cef0f13870361c47c9d6225db805a4718194e2b8cc37c95bc34edf0324b8afacf3a3a39ec627a1b8b4f6268e777298fc4
|
@@ -15,10 +15,10 @@ module Jekyll
|
|
15
15
|
@name = name.to_s
|
16
16
|
@unit = unit.to_s
|
17
17
|
@quantity = if quantity.respond_to? :rationalize
|
18
|
-
if quantity.rationalize(0.
|
18
|
+
if quantity.rationalize(0.05).denominator == 1
|
19
19
|
quantity.to_s
|
20
20
|
else
|
21
|
-
quantity.rationalize(0.
|
21
|
+
quantity.rationalize(0.05).to_s
|
22
22
|
end
|
23
23
|
else
|
24
24
|
quantity.to_s
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-cooklang-converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BraeTroutman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|