istox 0.2.17.pre.50 → 0.2.17

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
  SHA256:
3
- metadata.gz: dcb82d8972b1737ba6a5474bc2ad48d569caeb14a82479434e8aade03c4241e9
4
- data.tar.gz: a57d68d034660f773739f6db1f447c3323eb7476711d0db107ba3c2034165fe3
3
+ metadata.gz: 2bb366596fe8f9d32466b7b2f128f3f254d4bf21d85860f19ccbb70aacf6d9d6
4
+ data.tar.gz: 86347798b3f88ed5a0841d67724d8c6a31343022b7d97acee45183ff1e749168
5
5
  SHA512:
6
- metadata.gz: adab4a8f94665fda362e07c4f6138d5cca2773ec3ca3776be30b17159f2c38aae198899e3ba08a02901a65823a82da4025b92fecef14f401134c3539e5a7e76f
7
- data.tar.gz: 5c1b7f90c1e20281cd59dde6157a1acc9352029a89a6487655444caaa103e91748c800d563005f8b5ec43158f78eac9c182aabae178bce90704db2edb185db54
6
+ metadata.gz: f23208024a894a2faf7ad5165b442b2f1c24e43943409fd0df84eeb87bcaefd3f2b5fd6871e27f20c2872a07be560ea115d009b6636f18ea916769c586f1a3fc
7
+ data.tar.gz: c924441ebf62cb571fbfb2adf706bc0ac3f373e40a1b6878a3c3de437cd859db0c4dcebaec46e7b07b56ffc30305cec0c0df14e0ef4272978ffcd1dac720088b
@@ -80,11 +80,11 @@ module Istox
80
80
  ::BigDecimal.new(x.to_s).round(digits).to_s
81
81
  end
82
82
 
83
- # rounding mechanism can be 'down', 'up', or 'natural'
83
+ # rounding mechanism can be :down, :up, or :natural
84
84
  # by default will be :down
85
- def round(x, digits, rounding_mechanism: 'down')
86
- return round_up(x, digits) if rounding_mechanism == 'up'
87
- return round_half_up(x, digits) if rounding_mechanism == 'natural'
85
+ def round(x, digits, rounding_mechanism: :down)
86
+ return round_up(x, digits) if rounding_mechanism == :up
87
+ return round_half_up(x, digits) if rounding_mechanism == :natural
88
88
 
89
89
  round_down(x, digits)
90
90
  end
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.2.17-50'.freeze
2
+ VERSION = '0.2.17'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17.pre.50
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng
@@ -530,9 +530,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
530
530
  version: '0'
531
531
  required_rubygems_version: !ruby/object:Gem::Requirement
532
532
  requirements:
533
- - - ">"
533
+ - - ">="
534
534
  - !ruby/object:Gem::Version
535
- version: 1.3.1
535
+ version: '0'
536
536
  requirements: []
537
537
  rubygems_version: 3.2.11
538
538
  signing_key: