rscons 1.13.0 → 1.14.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bbed2cb9726801827e437d1ab661b47bb6da8b8
4
- data.tar.gz: 49b1e6a941a5dcab901d33af55996279b0f7b2ce
3
+ metadata.gz: a0656cc3949f67d074110de1bef6c61b2764107e
4
+ data.tar.gz: 0a4d5e29c0c2819415c1a99b82464b30bdddcc30
5
5
  SHA512:
6
- metadata.gz: 9f92bb8c57a8be8ccb18e9f50d5bd81488b7a4bf30cf5df663e577db61fb507f2dd239de54c881111c5fd17f3d4ca7acde3505f780b64fa5bce6dcf5585502d6
7
- data.tar.gz: 84a151047302b7e0f67e6b1c0842597516cb4012061aab4005bbaa966eba0041753d5275c9b2cb6c22f057a6bcd9b8e391f3d07c8b38cc10987b89e00f3ec532
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
- desc = "Directory #{target}"
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
- desc = "#{name} #{target}"
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))
@@ -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
- message = command_to_s(command) if command
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
@@ -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.
@@ -1,4 +1,4 @@
1
1
  module Rscons
2
2
  # gem version
3
- VERSION = "1.13.0"
3
+ VERSION = "1.14.0"
4
4
  end
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.13.0
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-07-14 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json