codekindly-utils 0.0.12 → 0.0.13
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/code_kindly/utils/file.rb +3 -5
- data/lib/code_kindly/utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 352b9c2917988b399d6cefa4936ccd48770778c34bec9828a25980a7a219e303
|
4
|
+
data.tar.gz: 549ae6aebc71407025ca7eb9a812b1fa431019f4f686598f45f3949d1ce3e45a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efe49818de990d2b1a15e23a302b8d17dbd53211ca6be81b3cb91186c6eaff8beae227cdbba34e14bf6393bc3f4e753484eb3ff5c0ae602e2a99da222cb072ea
|
7
|
+
data.tar.gz: 7ea61ede295b0d971cecc420f70582e7e9cb10c8d741ce6f573f6e677c7109d268d79e8f978014bc3fdc301b2241293c5fd29f8df53cc58de05be60b630991ea
|
@@ -3,8 +3,6 @@
|
|
3
3
|
module CodeKindly
|
4
4
|
module Utils
|
5
5
|
class File
|
6
|
-
include Presence
|
7
|
-
|
8
6
|
class << self
|
9
7
|
def all(path)
|
10
8
|
CodeKindly::Utils::Dir.all path
|
@@ -14,10 +12,10 @@ module CodeKindly
|
|
14
12
|
require 'highline'
|
15
13
|
h_l ||= HighLine.new
|
16
14
|
file_opts = file_options(dir_path)
|
17
|
-
return nil if blank? file_opts
|
15
|
+
return nil if CodeKindly::Utils::Presence.blank? file_opts
|
18
16
|
|
19
|
-
msg = file_opts.
|
20
|
-
option = h_l.ask("Select a file:#{msg}
|
17
|
+
msg = file_opts.map { |k, v| "\n #{k}: #{v}" } + ["\n 0: None"]
|
18
|
+
option = h_l.ask("Select a file:#{msg.join}", Integer)
|
21
19
|
file_path = file_opts.fetch(option, nil)
|
22
20
|
return if file_path.nil?
|
23
21
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codekindly-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Weathers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|