stocker 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stocker.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59bf8d8db2789fa3dbd29e2cd32e90128872b97c
|
4
|
+
data.tar.gz: d043b74e026b5be7691c2c9dfe0181f16583d369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3458fba8c094d32a0748f3e86ebe64d8ebbda977eea2ff1541de1d0ecc02e2ea14ff2faa5c05ea017ba10e13c799377f60f52ecc40324c4f6c7f6d42bf41e8f0
|
7
|
+
data.tar.gz: 8a189de0b51f9edb548caa3de3f7f273117a184c4193db4acc9c70a91813353d72ec86d02c8fc183ef18b38e1e21141eab69420699e3e22edc017ce0a93e7be0
|
data/lib/stocker.rb
CHANGED
@@ -111,6 +111,15 @@ class Stocker < Thor
|
|
111
111
|
end
|
112
112
|
|
113
113
|
desc "list", "List all inventory items and total on hand."
|
114
|
+
long_desc <<-LONGDESC
|
115
|
+
List outputs a colorized list of all your inventory items.
|
116
|
+
|
117
|
+
Items that are well-stocked are green, items that are at the minimum acceptable will be yellow and out of stock items are red.
|
118
|
+
|
119
|
+
The items are smartly organized by the difference between the 'on-hand' count and the minimum acceptable amount.
|
120
|
+
|
121
|
+
example: I have 24 beers. I want to have at least 23 on hand at all times. I have 23 bags of chips, but I only need to have one at all times. The beer's difference is only one, but the chips' 22. So even though I have more beer, it will show up below chips in the list.
|
122
|
+
LONGDESC
|
114
123
|
def list
|
115
124
|
begin
|
116
125
|
@header = [[set_color("Item", :white), set_color("Total", :white)], [set_color("=================", :white), set_color("=====", :white)]]
|