everyday-cli-utils 1.7.2 → 1.7.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/everyday-cli-utils/option.rb +2 -2
- data/lib/everyday-cli-utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1245fec7d1991a64e9ba38d43887dee774c9d181
|
4
|
+
data.tar.gz: d4f0d92158e5032444a0c73dc34a9b8be9f9699d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|