rscons 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rscons/builders/directory.rb +1 -2
- data/lib/rscons/builders/install.rb +1 -2
- data/lib/rscons/environment.rb +7 -1
- data/lib/rscons/varset.rb +13 -0
- data/lib/rscons/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0656cc3949f67d074110de1bef6c61b2764107e
|
4
|
+
data.tar.gz: 0a4d5e29c0c2819415c1a99b82464b30bdddcc30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d40f168dccc360cf74008f752c800f819bb99c39f9b5df70088b57e76bd79071dc3327e12dc3aaaba07542b9e7506245910e8b775bbe56a2f65cf8296228438b
|
7
|
+
data.tar.gz: 70d7edaece3a1bfc90ccfb7faf744b6d4d31cd521489df1d351a62ce74d94d0ac84e3359659cc4b1ac8e914fd7005048a5df2ee68f4d9e6eee17ef8b0720bdf5
|
@@ -20,8 +20,7 @@ module Rscons
|
|
20
20
|
Ansi.write($stderr, :red, "Error: `#{target}' already exists and is not a directory", :reset, "\n")
|
21
21
|
false
|
22
22
|
else
|
23
|
-
|
24
|
-
env.print_builder_run_message(desc, desc)
|
23
|
+
env.print_builder_run_message("Directory #{target}", nil)
|
25
24
|
cache.mkdir_p(target)
|
26
25
|
target
|
27
26
|
end
|
@@ -43,8 +43,7 @@ module Rscons
|
|
43
43
|
# Check the cache and copy if necessary
|
44
44
|
unless cache.up_to_date?(dest, :Copy, [src], env)
|
45
45
|
unless printed_message
|
46
|
-
|
47
|
-
env.print_builder_run_message(desc, desc)
|
46
|
+
env.print_builder_run_message("#{name} #{target}", nil)
|
48
47
|
printed_message = true
|
49
48
|
end
|
50
49
|
cache.mkdir_p(File.dirname(dest))
|
data/lib/rscons/environment.rb
CHANGED
@@ -885,7 +885,13 @@ module Rscons
|
|
885
885
|
def print_builder_run_message(short_description, command)
|
886
886
|
case @echo
|
887
887
|
when :command
|
888
|
-
|
888
|
+
if command.is_a?(Array)
|
889
|
+
message = command_to_s(command)
|
890
|
+
elsif command.is_a?(String)
|
891
|
+
message = command
|
892
|
+
elsif short_description.is_a?(String)
|
893
|
+
message = short_description
|
894
|
+
end
|
889
895
|
when :short
|
890
896
|
message = short_description if short_description
|
891
897
|
end
|
data/lib/rscons/varset.rb
CHANGED
@@ -143,6 +143,19 @@ module Rscons
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
+
# Return an array containing the values associated with the given keys.
|
147
|
+
#
|
148
|
+
# @param keys [Array<String, Symbol>]
|
149
|
+
# Keys to look up in the VarSet.
|
150
|
+
#
|
151
|
+
# @return [Array]
|
152
|
+
# An array containing the values associated with the given keys.
|
153
|
+
def values_at(*keys)
|
154
|
+
keys.map do |key|
|
155
|
+
self[key]
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
146
159
|
private
|
147
160
|
|
148
161
|
# Move all VarSet variables into the copy-on-access list.
|
data/lib/rscons/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rscons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Holtrop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|