stocker 1.3.2 → 1.3.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 +4 -4
- data/lib/stocker.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4944ada50205ed8c0e33e938c8f7030fba64fe7
|
4
|
+
data.tar.gz: cbd85ea24e61fdcf7265a8f903e9ee45b3e64def
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 805fe4e22d1acf10154ed937ada88c0b6851efe971bd6c1b8080825725985c84e9abb5600a415a394be0ceae8d4805e42e4bf6980531619ccdb688bf66ebe40c
|
7
|
+
data.tar.gz: ac1661cd41a6fb1c8c7e6cbaae08158d9ab29dcdaa42bdb67857eeb205d1781d2fb516644f85616d6a032cefa3b339c33b79e3386fda72677cb536a7f66b6468
|
data/lib/stocker.rb
CHANGED
@@ -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 = [[
|
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.
|
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.
|
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.
|