dev 2.1.140 → 2.1.141
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/base/file.rb +7 -2
- 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: a460fa5550930d2899ac1d6b1e3e4dff7a98f0414a5eac1d318ac35db1a4f3dc
|
4
|
+
data.tar.gz: 37dd47c4dc960a331e6eaeb78ca9e99f23480763eab12516dc025e0457256cc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8332d58b70296a39e8e3b8ab5751329486f91cc71082b9833e31f0310a0e98d48c8e8accc4560fa13549c24452078fc03e35b27678785aef67aadf9ba375d3f
|
7
|
+
data.tar.gz: 33da601f0ead56727ebc083738713a180caca1e95581cfc7a91351ceefd2299b21a4c5c7c1fd0415c7b2d3836df4222370dcbedb7cd7053ae861e75ef4e991bf
|
data/lib/base/file.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2019-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|