weighable 1.0.1 → 1.1.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
- SHA1:
3
- metadata.gz: f0b7b230ee74e4b686dc6ca7069775ba76694018
4
- data.tar.gz: bc9faf61913d069f90f399c475579d68deea1af8
2
+ SHA256:
3
+ metadata.gz: 796c7341c87131931e5896422b919270a952c9d87763a7e3696697682d7236ab
4
+ data.tar.gz: 7cf5162848d619bb19863bffaccda5cf09725a689dca2db94424e9ecd5ee6596
5
5
  SHA512:
6
- metadata.gz: 3875f1049114f16ec3d9765965b5fd002455dbf8b741b6b069fe511b8e509a6d923e278940b2bbbfeeda61a1a3c60f42d1cf1071363c47e18ea561061c61e4e1
7
- data.tar.gz: f7d887500dd082a6fc2b05b3235094aeb5c91c63837dd76f2144ce90cfb6e3b45036c7f2959a2ccef6f125362d3e8ad12081cb820092fb5c9cd199a21d845479
6
+ metadata.gz: b798ed54c99730c1d4d8504a2eb246d34105d313aca1bc3e6c0b2fc5b13f6cd7fba76531e38ef1df827e99a0730c74a93577e820d8a93ebbb084632b0e45e11c
7
+ data.tar.gz: 34e84421edec24cfa3f4b3b01425e366b991024c70481d0d6b160ce6683d5f4da747243acaf2933f6472b8b0c8120e85b33cb1dd285381ce2f9b38ca9c5db1d3
@@ -1,3 +1,3 @@
1
1
  module Weighable
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
@@ -205,6 +205,10 @@ module Weighable
205
205
  Weight.new(@value.floor(precision), @unit)
206
206
  end
207
207
 
208
+ def abs
209
+ Weight.new(@value.abs, @unit)
210
+ end
211
+
208
212
  def zero?
209
213
  @value.zero?
210
214
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weighable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2018-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  requirements: []
191
191
  rubyforge_project:
192
- rubygems_version: 2.4.5.3
192
+ rubygems_version: 2.7.6
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: Like BigDecimal, but for weight. Includes Rails integration.