speed_format 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +5 -13
  2. data/lib/speed_format.rb +1 -1
  3. metadata +8 -9
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzBkYzMzZGNjYjkxNmI2NjhlNDg3NzQ3MmRkNzZmNzAwM2FjMzI4MA==
5
- data.tar.gz: !binary |-
6
- YTllNWMwYjBkMjViMTFjMTgxMTBkMzE5NzRlNjg3MWZjYmI1NzY1Nw==
2
+ SHA256:
3
+ metadata.gz: 67ca625e877036977309314acbe3d7f29226f775b9dcfd24d75e82973b43ab23
4
+ data.tar.gz: 9a639c16c8e71b1d38f7badcd788d53909d7755738a2a17ef5bd867ad85f42ce
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MDllZGZlOTFiMjczNjM1YWVmMDViZGUyZmY2ODhkZjIyZjY5ZmJlYjEyM2Yw
10
- ODQwMmJhOTBiYmEwMmMyMGJmYTE2OWMxNDFlZWNlN2VmMzExODVlNmM0N2Ri
11
- MTFjZmQ5YzRmZmM0NDdjOTA3ODIyNjczNGFmNWVhMzQ4OTQ1NDU=
12
- data.tar.gz: !binary |-
13
- ZDM0NmVmYjk3ZTg3YzI0ODMzZmYzMTdlMzQxNDIwYjQ4NTUyY2I2NTZjMTlk
14
- ODFlZmM0NDZlZWEwZmIxMmJjYzc4MTc3ZjFmZTE5OWRlZDQ0YjI0ZWJmYWM4
15
- N2UzMjhiZWZlZWQ2ZjYzZjYxMDE3OTFkNDBmMDIxMjUwYjYxNjY=
6
+ metadata.gz: 970703aaef928758b64017dcca08fd8618d41643585ba88ae027178015ef94ff98546f39a43793d6960ab290c7d87a438d78cca37f68218f4a7d15c3d49205c3
7
+ data.tar.gz: 88c3b5e672202d7bed7a2166eb9fe8dad747ac0fa32825bc0d23be3546332a8607c77cd2495111075b818316901bd2a35e755fb39318420634ed2fc15f059572
data/lib/speed_format.rb CHANGED
@@ -21,7 +21,7 @@ class SpeedFormat
21
21
  if not @@units.include?(unit)
22
22
  raise ArgumentError, "Not a valid prefix"
23
23
  end
24
- bps = BigDecimal.new(bps.to_s).abs
24
+ bps = BigDecimal(bps.to_s).abs
25
25
  if bytes == :bytes
26
26
  bps /= 8
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speed_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Wolflisberg
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-20 00:00:00.000000000 Z
11
+ date: 2023-12-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Format various bit rate to human readable and more convenient-sized digits
14
14
  and prefixes
@@ -22,24 +22,23 @@ homepage: https://github.com/julienwolflisberg/speed_format
22
22
  licenses:
23
23
  - GPL-3.0
24
24
  metadata: {}
25
- post_install_message:
25
+ post_install_message:
26
26
  rdoc_options: []
27
27
  require_paths:
28
28
  - lib
29
29
  required_ruby_version: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.9'
34
34
  required_rubygems_version: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - ! '>='
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  requirements: []
40
- rubyforge_project:
41
- rubygems_version: 2.4.8
42
- signing_key:
40
+ rubygems_version: 3.2.3
41
+ signing_key:
43
42
  specification_version: 4
44
43
  summary: Bit rate for humans
45
44
  test_files: []