weighflow_cli 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b16083d957ff3cfad0f8b7a0adbdf38837e3f2ec19b47402c24d8f4fba7f064
4
- data.tar.gz: 95078a43257981ce4f2599a349d107620c1c0b35fa14fcabdb189b4c635a587e
3
+ metadata.gz: 2832116659539919d396f7461858ed6257755b6c7c86356aa87f099c126fb637
4
+ data.tar.gz: 395c8a76161378454bb3d0083e3410f489c07b7f2450a7594d4d7c9ed868bf43
5
5
  SHA512:
6
- metadata.gz: 99a11f91ee22093061ab6e8bec309d8aebb3e5450d322a8d3ae688d50ec2caec99d41168fd50d9befbf70a994430eff81303525ead01c03543e1de9230ebffcf
7
- data.tar.gz: a2e6813efc1754aba5b92d70de63ff2e3b785d1bed7bd63c94af8e086d5cd1ab0ec258e0b0d8e6e82c87ecddf30b5770922ed501be507c4edd89dab1169c9a71
6
+ metadata.gz: 5e20d405fe9ce4fafbd0cb91edac5f89825b1b7dfa555d5b5cd086b8ecac3589ee5865f31efe9f9f6a2c309417069a52a69d2ad62e6e06d476760db9ce628b16
7
+ data.tar.gz: 20b78c91b1d66d61c2669690b041ac5e27393a33314d0044f5aff8bfd26be6ea90a39c0c0cf9d66db01fcfee3a109431cd9de99cdf9c399a3df535c57359bc7f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weighflow_cli (0.2.2)
4
+ weighflow_cli (0.2.3)
5
5
  httparty
6
6
  thor (~> 1.1.0)
7
7
 
data/lib/weighflow_cli.rb CHANGED
@@ -15,10 +15,11 @@ module WeighflowCli
15
15
 
16
16
  class Error < StandardError; end
17
17
  #
18
- _ROOT_PATH = File.expand_path('../../',__FILE__).freeze
18
+ _ROOT_PATH = File.expand_path('~/.weighflow_cli').freeze
19
+ Dir.mkdir(_ROOT_PATH) unless Dir.exists?(_ROOT_PATH)
19
20
  #
20
21
  # Provide an orderride to relocate data directory
21
- DATA_PATH = ENV['WEIGHFLOW_CLI_PATH'] || File.join(_ROOT_PATH, '.data')
22
+ DATA_PATH = ENV['WEIGHFLOW_CLI_PATH'] || File.join(_ROOT_PATH, 'data')
22
23
  #
23
24
  #
24
25
  # ensure data path
@@ -11,7 +11,7 @@ module WeighflowCli
11
11
  desc "status", "Get system status"
12
12
  method_options yaml: :boolean
13
13
  def status
14
- WeighflowCli.options_renderer(WeighflowCli.client.status, options)
14
+ options_renderer(WeighflowCli.client.status, options)
15
15
  end
16
16
 
17
17
 
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  module WeighflowCli
6
- VERSION = "0.2.3"
6
+ VERSION = "0.2.4"
7
7
 
8
8
 
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weighflow_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruce Martin