cli_helper 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cli_helper.gemspec +1 -1
- data/lib/cli_helper.rb +9 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 914907ac3588871959a3bcb3facdd987f0cd66db
|
4
|
+
data.tar.gz: 4215cb566324eb7466a90b688f8c83cf180769e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5284dc8b2af8af0391465ea12e588403eea653038a26b6e4f2546261509aaa7ee95ea6ff9e45144cc626617308b9af44bdfa2d2a9fa185859bd9304834e704c
|
7
|
+
data.tar.gz: 789e72bb764bd2de7989394b5a600a53403029f3e194a7ffafe4f53e0e5d7ed61d9211a487dc8357d27127976bde83e533749c17215c4f4400fd64c4cb3faf02
|
data/cli_helper.gemspec
CHANGED
data/lib/cli_helper.rb
CHANGED
@@ -296,7 +296,15 @@ module CliHelper
|
|
296
296
|
if pfn.directory?
|
297
297
|
file_array << get_pathnames_from(pfn.children, extnames)
|
298
298
|
else
|
299
|
-
|
299
|
+
if pfn.exist?
|
300
|
+
if extnames.include?(pfn.extname.downcase)
|
301
|
+
file_array << pfn
|
302
|
+
else
|
303
|
+
error "File extension is not #{extnames.join(' or ')} file: #{pfn}"
|
304
|
+
end
|
305
|
+
else
|
306
|
+
error "File does not exist: #{pfn}"
|
307
|
+
end
|
300
308
|
end
|
301
309
|
end
|
302
310
|
return file_array.flatten
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cli_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dewayne VanHoozer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: configatron
|
@@ -201,8 +201,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
203
|
rubyforge_project:
|
204
|
-
rubygems_version: 2.4.
|
204
|
+
rubygems_version: 2.4.5.1
|
205
205
|
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: An encapsulation of an integration of slop, nenv, inifile and configatron.
|
208
208
|
test_files: []
|
209
|
+
has_rdoc:
|