bake-toolkit 2.68.1 → 2.69.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bakery/toBake.rb +1 -1
- data/lib/blocks/fileutil.rb +10 -3
- data/lib/common/root.rb +1 -0
- data/lib/common/version.rb +1 -1
- 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: 9413bb4da104f832f080c5464af7fc78d3ce84a8e2117d94f0f4e6e17a396a80
|
4
|
+
data.tar.gz: 406602ea8421c97a5ec9c35900ac32a4b6ee18350c9e345d3b732e58b4767929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee29f4f63153ab875442aa3290081371fdab40b6db69ff054e37ebc0bff0ee0623a29448b6e3877ed2ec9739e3c522d6bb8fe185c0e840cbbde9eb70a9848b30
|
7
|
+
data.tar.gz: 6e54abc0d3c7622f83695202eeef4abe83042b6f027b9495d0659a6a69d3965b9123a3c6c1d357126e09d3e38d0124a0dd52e69b6c359d52ad28bf93ed919cf4
|
data/lib/bakery/toBake.rb
CHANGED
@@ -30,7 +30,7 @@ module Bake
|
|
30
30
|
toBuildPattern = []
|
31
31
|
@options.roots.each do |root|
|
32
32
|
col.project.each do |p|
|
33
|
-
projs = Root.search_to_depth(root.dir,p.name + "/Project.meta", root.depth)
|
33
|
+
projs = Root.search_to_depth(root.dir,p.name + "/Project.meta", root.depth).map { |p| Pathname.new(p).cleanpath.to_s }
|
34
34
|
if File.basename(root.dir) == p.name && File.exist?(root.dir + "/Project.meta")
|
35
35
|
projs << root.dir + "/Project.meta"
|
36
36
|
end
|
data/lib/blocks/fileutil.rb
CHANGED
@@ -11,6 +11,13 @@ module Bake
|
|
11
11
|
@type = type
|
12
12
|
@projectDir = projectDir
|
13
13
|
@echo = (config.echo != "off")
|
14
|
+
if !@arg1 || @arg1.empty?
|
15
|
+
Bake.formatter.printError("Error: source of file-step must not be empty")
|
16
|
+
ExitHelper.exit(1)
|
17
|
+
elsif [:copy, :move].include?(@type) && (!@arg2 || @arg2.empty?)
|
18
|
+
Bake.formatter.printError("Error: target of file-step must not be empty")
|
19
|
+
ExitHelper.exit(1)
|
20
|
+
end
|
14
21
|
end
|
15
22
|
|
16
23
|
def run
|
@@ -20,13 +27,13 @@ module Bake
|
|
20
27
|
FileUtils.touch(@arg1)
|
21
28
|
elsif @type == :move
|
22
29
|
puts "Moving #{@arg1} to #{@arg2}" if @echo
|
23
|
-
FileUtils.mv(
|
30
|
+
Dir.glob(@arg1).each {|f| FileUtils.mv(f, @arg2)}
|
24
31
|
elsif @type == :copy
|
25
32
|
puts "Copying #{@arg1} to #{@arg2}" if @echo
|
26
|
-
FileUtils.cp_r(
|
33
|
+
Dir.glob(@arg1).each {|f| FileUtils.cp_r(f, @arg2)}
|
27
34
|
elsif @type == :remove
|
28
35
|
puts "Removing #{@arg1}" if @echo
|
29
|
-
|
36
|
+
Dir.glob(@arg1).each {|f| FileUtils.rm_rf(f)}
|
30
37
|
elsif @type == :makedir
|
31
38
|
puts "Making #{@arg1}" if @echo
|
32
39
|
FileUtils.mkdir_p(@arg1)
|
data/lib/common/root.rb
CHANGED
data/lib/common/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake-toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.69.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Schaal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rtext
|