You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 4, 2018. It is now read-only.
@ioquatix you can take a look at the rewrite branch for a first draft of the 1.0 release. The major two points that should interest you are:
#pretty was renamed to #to_s and the old #to_s removed
#best_unit was added, which returns a tuple of size and unit. If the way #to_s formats things doesn't suit you, you can use that method to implement your own (monkeypatch Filesize, or better yet, subclass it)
Activity
dominikh commentedon Dec 3, 2015
I'll see if I can make a release this weekend.
dominikh commentedon Dec 16, 2015
@ioquatix you can take a look at the
rewritebranch for a first draft of the 1.0 release. The major two points that should interest you are:#prettywas renamed to#to_sand the old#to_sremoved#best_unitwas added, which returns a tuple of size and unit. If the way#to_sformats things doesn't suit you, you can use that method to implement your own (monkeypatch Filesize, or better yet, subclass it)