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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12645bcaffa4192f683b66dba99bab13816c443e95bfc230aefe1300b3a34cb6
4
- data.tar.gz: e41ce8b50f24b7ca9f78eb74016dc2a5802b90e7a87f05c95577ccfa2a2b9bf8
3
+ metadata.gz: 43170699656e13bf9c9ec7f957691cd3384e9d7fcc2766a952d0a5c9bad31d2a
4
+ data.tar.gz: 0d0f7858262c779881f6cfb3cf0db2df0243352cf0647d7d327ba8c6095b7fa6
5
5
  SHA512:
6
- metadata.gz: ce4a582b365abf71907ca9b219835738be2a03339390e840a0cadb3d35c66b4686e6a75e86476c8749c55e6ed48cf9e20a8b4fec0209e76a6bbf07c09fe94645
7
- data.tar.gz: 21e44551283bd5a9e2f4a01670a885bd19a654b7279a20e4910d2e7d8897f2392a42603903621983873319a706beabbbcf4c23a6846976dd420face48fda39fe
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.1).denominator == 1
18
+ if quantity.rationalize(0.05).denominator == 1
19
19
  quantity.to_s
20
20
  else
21
- quantity.rationalize(0.1).to_s
21
+ quantity.rationalize(0.05).to_s
22
22
  end
23
23
  else
24
24
  quantity.to_s
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module CooklangConverter
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
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.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-04 00:00:00.000000000 Z
11
+ date: 2024-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll