du_pretty 1.0.2 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 043bd3470dd9a9da845e254e2ec994ab4877cf541b2c5f3fa1645866dd803d35
4
- data.tar.gz: 6abaafbae3b2b5ec268f47460f9159a60e357e68239874739fc329be97b9bac6
3
+ metadata.gz: 1011dec1c287acb0bf28811fdade4061dcf7f77d709c2c6211e00733aeedd068
4
+ data.tar.gz: e07dd6549f6399d136b46f6b3a25a7be2ae660f486ee5f4bc56a07bffbbde214
5
5
  SHA512:
6
- metadata.gz: 982367f4535fe2cd4ef5b68a9e9e7d76c4b36a08cc3d2752bbea447584678ada7baa3b808cec5cd3a27fb7d160bc2eb79351c8744688f73ba572341b9725b8c4
7
- data.tar.gz: 60e5ff304f7d4678fe769dd28a87e576caeb7dfe001a585ba1f1297820a914ede5631d80b93ef2d22044d53f80ed764a888633afad42c1d3fc9be74ab56390ff
6
+ metadata.gz: dbf5a1d4d346b658fe990f1dbc2d1b0f1e4e7f7f94ff9cb20029e2ac256ccafeca16d6fc953f6c37e0fc927a8fa1a42c90553554f7675f6129df09d48127ac2e
7
+ data.tar.gz: ee9037b14b163b7ba04d03a6fe714d49ca0b1d12647c770035fe9db04aac33cf65e39f8eedeee99a1ccb5ed83585aae63f4f8951bafb9083f78119b48befea62
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- du_pretty (1.0.2)
4
+ du_pretty (1.0.3)
5
5
  colorize (~> 0.8.1)
6
6
  thor (~> 0.20.0)
7
7
 
data/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  Show pretty print of `du` outputs.
9
9
 
10
- [![Image from Gyazo](https://i.gyazo.com/20f05107e1211468624195ea65948be3.png)](https://gyazo.com/20f05107e1211468624195ea65948be3)
10
+ [![Image from Gyazo](https://i.gyazo.com/be6f718ff31cec830d2bddfeb6da2756.png)](https://gyazo.com/be6f718ff31cec830d2bddfeb6da2756)
11
11
 
12
12
  ## Installation
13
13
  ```sh
@@ -25,14 +25,14 @@ $ du_pretty <path> -d 2
25
25
  $ du_pretty <path> --size 50M
26
26
  ```
27
27
 
28
- [![Image from Gyazo](https://i.gyazo.com/6f426f2e736e5fc606eb6bd666b595a9.png)](https://gyazo.com/6f426f2e736e5fc606eb6bd666b595a9)
28
+ [![Image from Gyazo](https://i.gyazo.com/99eca1755d9c112cdfde70e2de2290e6.png)](https://gyazo.com/99eca1755d9c112cdfde70e2de2290e6)
29
29
 
30
30
  ```sh
31
31
  # Show results sorted by the file's size
32
32
  $ du_pretty <path> --sort
33
33
  ```
34
34
 
35
- [![Image from Gyazo](https://i.gyazo.com/e53beb3da13fe0b3d44ac1552716d388.png)](https://gyazo.com/e53beb3da13fe0b3d44ac1552716d388)
35
+ [![Image from Gyazo](https://i.gyazo.com/c330d33adc4c546acd3ccd1b2a9d2755.png)](https://gyazo.com/c330d33adc4c546acd3ccd1b2a9d2755)
36
36
 
37
37
  ```sh
38
38
  # help
@@ -107,7 +107,7 @@ module DuPretty
107
107
 
108
108
  def percentage
109
109
  percentage = @kbyte * 1.0 / @total * 100
110
- "#{percentage.ceil}%"
110
+ "#{percentage.round}%"
111
111
  end
112
112
 
113
113
  def relative_path
@@ -1,3 +1,3 @@
1
1
  module DuPretty
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: du_pretty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuma Narisawa