dev 2.1.39 → 2.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/base/dir.rb +15 -12
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8885a734bfdeb3c6cb9a04d0bba94495d07a6c4c
4
- data.tar.gz: 7905f9d5566b9c6078fc86da55813b34bea94b4f
3
+ metadata.gz: e928cd3c5e2f47232a2c0f573e17a339ad204090
4
+ data.tar.gz: d22a8902b98b6857dda570c51aa9da3f3d10ed08
5
5
  SHA512:
6
- metadata.gz: b6327973fec38d72ed770e5931919d2552693658ba8b8fa42b062f2e4fbbb3e63312bdfd850c3a9b05e3aca9033561c02a13df0ba818cbdd8f718463097247d1
7
- data.tar.gz: fe808460b3583280ffde31353b39a913166ed751cd1dfd6129649a8c55ddb9d7b44110cd7588d56c9ea1cc1d62f4cf63caba3f0b5ce3f18e4ae95a32f0424eb1
6
+ metadata.gz: a788a0b4f8761aa75a5d75a2e641dce37bb01a2698527f777ef62360ad34d230aa88e928a089eeeb69ab432c9572e64a93fddd5b50938c01488cd595ace45676
7
+ data.tar.gz: 0802441762be6aa90250d60bbd3815a7e1ceb93dbe67979682ac6ba42c205747ab96acb0db08a231036286ace294aabbed352282728a1460f79ec26deff1149b
data/lib/base/dir.rb CHANGED
@@ -79,18 +79,21 @@ def self.copy_files(src_dir,glob_pattern,exclude_patterns,target_dir)
79
79
  if(Dir.exists?(src_dir))
80
80
  Dir.chdir(src_dir) do
81
81
  Dir.glob(glob_pattern).each{|f|
82
- exclude = false
83
- if(!exclude_patterns.nil?)
84
- exclude_patterns.each{|p|
85
- exclude = true if(f.include?(p))
86
- }
87
- end
88
- if(!exclude)
89
- dest = "#{target_dir}/#{f}"
90
- FileUtils.mkdir_p(File.dirname(dest)) if(!Dir.exists?(File.dirname(dest)))
91
- FileUtils.cp(f,dest)
92
- end
93
- }
82
+ if(File.file?(f))
83
+ exclude = false
84
+ if(!exclude_patterns.nil?)
85
+ exclude_patterns.each{|p|
86
+ exclude = true if(f.include?(p))
87
+ }
88
+ end
89
+ if(!exclude)
90
+ dest = "#{target_dir}/#{f}"
91
+ FileUtils.mkdir_p(File.dirname(dest)) if(!Dir.exists?(File.dirname(dest)))
92
+ FileUtils.cp(f,dest)
93
+ end
94
+ end
95
+ }
96
+
94
97
  end
95
98
  end
96
99
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.39
4
+ version: 2.1.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow