stocker 1.3.2 → 1.3.3

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 +5 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8909d5325f8f3db5f841bfb8b6b9f23c37c7045c
4
- data.tar.gz: 77a17163367e8518d04e6df493b171e829867e80
3
+ metadata.gz: e4944ada50205ed8c0e33e938c8f7030fba64fe7
4
+ data.tar.gz: cbd85ea24e61fdcf7265a8f903e9ee45b3e64def
5
5
  SHA512:
6
- metadata.gz: 158a155f6f5cbac8dcb02cb993a6223a4014b0ac82292822a2b53a508f0d89cca16aa143f44ac0900f6715f5f774da616f050f0676e0bf5f8e9b83e27efc2660
7
- data.tar.gz: 9d5515d83fab74352fdcf4c484d2100dd3ed2a9405091ea3ecd0482dbe200d30bef0b9970d0e03b2dd1f8a243579fbbf1021f2bfe86a0b95a7000ac43695e275
6
+ metadata.gz: 805fe4e22d1acf10154ed937ada88c0b6851efe971bd6c1b8080825725985c84e9abb5600a415a394be0ceae8d4805e42e4bf6980531619ccdb688bf66ebe40c
7
+ data.tar.gz: ac1661cd41a6fb1c8c7e6cbaae08158d9ab29dcdaa42bdb67857eeb205d1781d2fb516644f85616d6a032cefa3b339c33b79e3386fda72677cb536a7f66b6468
@@ -131,7 +131,8 @@ module Stocker
131
131
  # Print a list of all inventory items. Green items are well stocked. Yellow items are at minimum acceptable total. Red items are below minimum acceptable total.
132
132
  def list
133
133
  begin
134
- @header = [[set_color("Item", :white), set_color("Total", :white)], [set_color("=================", :white), set_color("=====", :white)]]
134
+ @header = [["", ""]]
135
+ # @header = [[set_color("Item", :white), set_color("Total", :white)], [set_color("=================", :white), set_color("=====", :white)]]
135
136
  @green = []
136
137
  @yellow = []
137
138
  @yellow2 = []
@@ -167,6 +168,9 @@ module Stocker
167
168
  # Configure Stocker's default settings
168
169
  # If the --url param is not passed, no configurations will be changed.
169
170
  # @param --url [String] Sets the default URL that is set for newly created inventory items
171
+ # @return [Hash] Hash of configuration settings saved to a YAML file
172
+ # @example
173
+ # "nikki config --url 'http://amazon.com'"
170
174
  def config
171
175
  settings = read_config
172
176
  settings['url'] = options[:url] || 'http://amazon.com'
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.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Pittman
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.2.2
98
+ rubygems_version: 2.4.1
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: stocker is a lightweight home inventory application.