everyday-cli-utils 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 562c5233e0d5e69fd93f9db1687c19b1e056115d
4
- data.tar.gz: 77d4f951ea681aad99f50462dffda33692860a35
3
+ metadata.gz: 1245fec7d1991a64e9ba38d43887dee774c9d181
4
+ data.tar.gz: d4f0d92158e5032444a0c73dc34a9b8be9f9699d
5
5
  SHA512:
6
- metadata.gz: b3596404b8bf5ce666c37411785d1ac8ee728143c7a7498496689a8be11b30bc30431a124ad3d8923ff43c4d3d806992acc9f45e786356f69c1bce142f094d1f
7
- data.tar.gz: 078705d2e396e3fc11d02e86c3cfbd5612505cedb138482cfc0f5aa373d882f599d85d341264f1cc9b4f5b2c13bae2995d887c6446a827c94886160c74a16d42
6
+ metadata.gz: 605e53e2a2c0183b8dc1169ddca43977b5f90aa62d2e45039c7cd6699462c4370b456a1ed12c5cffee131030e95ebfc72c628c50a70eef9abcbd327e19dc9b8d
7
+ data.tar.gz: 37fda21b85bd33fc5e97bc099c2e1a6a71506c0bbd688d4f6243fc5abe62f7c3bce9d39df646915195d85f9b7b9b7f29d3e702ecb9415f323fa7ff37ca546782
@@ -302,7 +302,7 @@ module EverydayCliUtils
302
302
 
303
303
  def defaults_option(file_path, names, settings = {})
304
304
  @options ||= OptionList.new
305
- settings[:file_path] = file_path
305
+ settings[:file_path] = File.expand_path(file_path)
306
306
  @options.register_special(4, :defaults, names, !settings.has_key?(:exit_on_save) || settings[:exit_on_save], 'Defaults set', settings,
307
307
  ->(opt, options) {
308
308
  IO.write(opt.settings[:file_path], options.composite(:local, :arg).to_yaml)
@@ -315,7 +315,7 @@ module EverydayCliUtils
315
315
 
316
316
  def global_defaults_option(file_path, names, settings = {})
317
317
  @options ||= OptionList.new
318
- settings[:file_path] = file_path
318
+ settings[:file_path] = File.expand_path(file_path)
319
319
  @options.register_special(3, :global_defaults, names, !settings.has_key?(:exit_on_save) || settings[:exit_on_save], 'Global defaults set', settings,
320
320
  ->(opt, options) {
321
321
  IO.write(opt.settings[:file_path], options.composite(:global, :arg).to_yaml)
@@ -1,3 +1,3 @@
1
1
  module EverydayCliUtils
2
- VERSION = '1.7.2'
2
+ VERSION = '1.7.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: everyday-cli-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Henderson