dev 2.1.140 → 2.1.141

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/file.rb +7 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 793655064cc13fab7560e4555cccd09290e21d4dff97d304ecfac9fa78bfdb73
4
- data.tar.gz: d9f07cc76efa89f8fb0bfd25d76cda86cff02801f69c94cf505e8f9318554658
3
+ metadata.gz: a460fa5550930d2899ac1d6b1e3e4dff7a98f0414a5eac1d318ac35db1a4f3dc
4
+ data.tar.gz: 37dd47c4dc960a331e6eaeb78ca9e99f23480763eab12516dc025e0457256cc6
5
5
  SHA512:
6
- metadata.gz: 794c8f2411e8acf7645e340fe91b58a837f1756423c9d4f75b42b7f2f0918b951f1708ec3fa120ddfda7a62e662e238cdd2f305fae906db2c2faf0fec6eaa8aa
7
- data.tar.gz: 4369ce1fb5ec5c184966d6e0e9390ca3e9a3c4a0572866e9e3a6013317e07c284a61eb398ae3e97e4b6624c9ae085e07c61ad56c4d40e7f3dbb889818048b2b9
6
+ metadata.gz: c8332d58b70296a39e8e3b8ab5751329486f91cc71082b9833e31f0310a0e98d48c8e8accc4560fa13549c24452078fc03e35b27678785aef67aadf9ba375d3f
7
+ data.tar.gz: 33da601f0ead56727ebc083738713a180caca1e95581cfc7a91351ceefd2299b21a4c5c7c1fd0415c7b2d3836df4222370dcbedb7cd7053ae861e75ef4e991bf
@@ -11,7 +11,7 @@ class File
11
11
  }
12
12
  end
13
13
 
14
- def self.publish destination, source_dir, source_glob='**/*', overwrite_existing=false
14
+ def self.publish destination, source_dir, source_glob='**/*', exclude_glob=nil# overwrite_existing=false
15
15
 
16
16
  output = "\n"
17
17
  FileUtils.mkdir_p destination if !File.exists? destination
@@ -19,6 +19,11 @@ class File
19
19
  files=nil
20
20
  Dir.chdir(source_dir) do
21
21
  files=FileList.new(source_glob).to_a
22
+ if(!exclude_glob.nil?)
23
+ FileList.new(exclude_glob).to_a.each{|f|
24
+ files.delete(f) if(files.include?(f))
25
+ }
26
+ end
22
27
  end
23
28
  output = output + "\nfiles: #{files}.to_s"
24
29
 
@@ -27,7 +32,7 @@ class File
27
32
  file="#{destination}/#{f}"
28
33
  dirname=File.dirname(file)
29
34
  FileUtils.mkdir_p dirname if !File.exists? dirname
30
- FileUtils.cp(f,file) if !File.exists? file || overwrite_existing
35
+ FileUtils.cp(f,file) if !File.exists? file# || overwrite_existing
31
36
  }
32
37
  end
33
38
  output
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.140
4
+ version: 2.1.141
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-24 00:00:00.000000000 Z
11
+ date: 2019-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake