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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf6d479723854bcd68382bbbc85fa40d2426fdf5
4
- data.tar.gz: 4c8cb0f3ec92f929cac69c207bf13e537391ba96
3
+ metadata.gz: 914907ac3588871959a3bcb3facdd987f0cd66db
4
+ data.tar.gz: 4215cb566324eb7466a90b688f8c83cf180769e4
5
5
  SHA512:
6
- metadata.gz: a79dd763049b7701c83878e58db93aeb198486c6ed0eb4af28402e25f4a3e771aa5fb7e4eec04804d76b24c617be453b532f088cc1aabc5e58373246bb5ab49f
7
- data.tar.gz: e9ab43679b6d094820e7ed75e439d92824f1ca2d6de1976e6f4813a933d5b25e3b4014f35c4f814689175b046ce1e4501975ea14463219a4e15cac298e27ca9d
6
+ metadata.gz: d5284dc8b2af8af0391465ea12e588403eea653038a26b6e4f2546261509aaa7ee95ea6ff9e45144cc626617308b9af44bdfa2d2a9fa185859bd9304834e704c
7
+ data.tar.gz: 789e72bb764bd2de7989394b5a600a53403029f3e194a7ffafe4f53e0e5d7ed61d9211a487dc8357d27127976bde83e533749c17215c4f4400fd64c4cb3faf02
data/cli_helper.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "cli_helper"
7
- spec.version = '0.1.5'
7
+ spec.version = '0.1.6'
8
8
  spec.authors = ["Dewayne VanHoozer"]
9
9
  spec.email = ["dvanhoozer@gmail.com"]
10
10
 
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
- file_array << pfn if pfn.exist? && extnames.include?(pfn.extname.downcase)
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.5
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-04-24 00:00:00.000000000 Z
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.6
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: