stocker 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stocker.rb +9 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27312e966fab1d0b0057c9081cfa60b9897ba508
4
- data.tar.gz: f1134539d57d19ea0f903e0a450e599661292b32
3
+ metadata.gz: 59bf8d8db2789fa3dbd29e2cd32e90128872b97c
4
+ data.tar.gz: d043b74e026b5be7691c2c9dfe0181f16583d369
5
5
  SHA512:
6
- metadata.gz: c864b7c1fd985db764c8ca389f1358261df81436cbb1d943e8b7d042e24b57b4ee1f21afad81be71a7058a0d9e81827b5ccd6a0ba7bdcbec038700bc412c4cc1
7
- data.tar.gz: 46ccd86948b8c4516b081f880f1b1f5df2f8d6addd5b31cdef19b51184c3a5be689598ebc20e5c555440174ef74d9e996f6243fb28824296995067af7d1d8781
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)]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Pittman