./devel/ruby-filesize, Class for handling filesizes with both the SI and binary prefixes

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.2.0, Package name: ruby24-filesize-0.2.0, Maintainer: minskim

filesize is a small class for handling filesizes with both the SI and
binary prefixes, allowing conversion from any size to any other size.


Required to run:
[lang/ruby24-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 2a88f34ce629bdcb00113a6cf4128a61e10d0814
RMD160: a9685547eacc367d6c78a1f54fc666fae1354db6
Filesize: 8 KB

Version history: (Expand)


CVS history: (Expand)


   2018-09-23 16:40:00 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-filesize: update to 0.2.0

0.2.0							2018/09/04

* Include offending string in error message (#14)
  As an aid to debugging, including the string that filesize was unable to
  parse in the error message.

* Accept unicode space characters

  [[:space:]] includes unicode space characters too, so when Nokogiri
  interprets "12.3 MiB" as "12.3\u00A0MiB", \ 
Filesize will still work.

  [[:blank:]] might be even better because it doesn't include newline and
  carriage returns.

* Support unit without B suffix

  e.g. Kubernetes uses this format:
  \ 
https://kubernetes.io/docs/tasks/config … mory-units

* added precision parameter to to_s() and pretty(), fixes #21

* fixed an assignment typo
   2017-07-24 12:41:12 by Min Sik Kim | Files touched by this commit (4)
Log message:
Import ruby-filesize-0.1.1 as devel/ruby-filesize

filesize is a small class for handling filesizes with both the SI and
binary prefixes, allowing conversion from any size to any other size.