weighflow_cli 0.2.9 → 0.2.10
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/.byebug_history +7 -0
- data/Gemfile.lock +1 -1
- data/lib/weighflow_cli.rb +5 -4
- data/lib/weighflow_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93ff8b4ee53a8072ca02fba4d89306b6fa79e267acf5cef3b1b19e7f3026b513
|
|
4
|
+
data.tar.gz: 852410b8061d467471b9115a50ce9e9314c4cada5be144f2f7dfce1e207a757c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 553708867bc04f2ffe9287be500c07c5c22e7baf5e2a44a4504637dbff7b62f758abb99c245a47a36c3c447342f1fcbc8f7d01981320f4d77d43ec82eb458e46
|
|
7
|
+
data.tar.gz: b7fb62070b2028f027e630574f0c1903ab64bb13fc0b3ccef2e2a183ea44c27566f4ad09cf52b049e302ca6bd9b8c26b0c89fb1c0d91109738d63641da71c00f
|
data/.byebug_history
CHANGED
data/Gemfile.lock
CHANGED
data/lib/weighflow_cli.rb
CHANGED
|
@@ -11,20 +11,21 @@ require_relative 'weighflow_cli/cli'
|
|
|
11
11
|
require_relative 'weighflow_cli/credentials'
|
|
12
12
|
require_relative 'weighflow_cli/order_handler'
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
|
|
15
16
|
module WeighflowCli
|
|
16
17
|
|
|
17
18
|
class Error < StandardError; end
|
|
18
19
|
#
|
|
19
|
-
|
|
20
|
+
ROOT_PATH = File.expand_path('~/.weighflow_cli').freeze
|
|
20
21
|
#
|
|
21
|
-
Dir.mkdir(
|
|
22
|
+
Dir.mkdir(ROOT_PATH) unless Dir.exists?(ROOT_PATH)
|
|
22
23
|
#
|
|
23
24
|
|
|
24
25
|
# Provide an override to relocate data directory
|
|
25
|
-
def self.data_path
|
|
26
|
+
def self.data_path
|
|
26
27
|
return @data_path if defined?(@data_path)
|
|
27
|
-
@data_path ||= ENV.fetch('WEIGHFLOW_CLI_PATH') { File.join(
|
|
28
|
+
@data_path ||= ENV.fetch('WEIGHFLOW_CLI_PATH') { File.join(WeighflowCli::ROOT_PATH, 'data') }
|
|
28
29
|
ensure_data_path
|
|
29
30
|
@data_path
|
|
30
31
|
end
|