rscons 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rscons/environment.rb +1 -1
- data/lib/rscons/version.rb +1 -1
- data/spec/build_tests_spec.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yzg0NDA4ZjBmYzA5MGQ5MmFiM2QxZDIyNmI1Yzg5YWM4Y2Q2ZDViOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2ZmMGVkZTEyYjY1NWY2YzNhYWI4ZmUyYmNhZGM1ZDVhMzdmNzRiZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2EzODEzMDZkYTUzMzkzNzIwZTcyOTMzNjk4NmVhMjM2MTc2MGZhYTZkNWIx
|
10
|
+
ZjU2YzA3NWMzYzJiM2Q3OWRhMDYyMmEzZjRhMTkxYzM3YzAyZjUyY2Y5NGNk
|
11
|
+
NjIzOGJkODlhOTVhZDVhZjkxOWI2OGU1ODk2NTVhY2VhNGI2Njg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDE5YzhkY2FjNmU3NGEzZWVkZDNjZDBiOGFiYTVmMDI0MmU1MjhhOTRhYTdm
|
14
|
+
N2JhNGJlNzkxMjIzMzc4MDQwYTkzMDk3MzU1MjlmYzBhZTQyOTM3ZTlkMDAw
|
15
|
+
Njg0MTU0YTUxOGFlNzJjZWNjMTIyZGJhZWY4MDcwZTA2ODQ3OWQ=
|
data/lib/rscons/environment.rb
CHANGED
@@ -258,7 +258,7 @@ module Rscons
|
|
258
258
|
unless vars.nil? or vars.is_a?(Hash) or vars.is_a?(VarSet)
|
259
259
|
raise "Unexpected construction variable set: #{vars.inspect}"
|
260
260
|
end
|
261
|
-
sources =
|
261
|
+
sources = Array(sources)
|
262
262
|
add_target(target, @builders[method.to_s], sources, vars, rest)
|
263
263
|
else
|
264
264
|
super
|
data/lib/rscons/version.rb
CHANGED
data/spec/build_tests_spec.rb
CHANGED
@@ -484,4 +484,18 @@ EOF
|
|
484
484
|
File.read("simplepp.cc").should =~ /# \d+ "simple.cc"/
|
485
485
|
`./simple`.should == "This is a simple C++ program\n"
|
486
486
|
end
|
487
|
+
|
488
|
+
it "supports invoking builders with no sources and a build_root defined" do
|
489
|
+
class TestBuilder < Rscons::Builder
|
490
|
+
def run(target, sources, cache, env, vars)
|
491
|
+
target
|
492
|
+
end
|
493
|
+
end
|
494
|
+
test_dir("simple")
|
495
|
+
Rscons::Environment.new do |env|
|
496
|
+
env.build_root = "build"
|
497
|
+
env.add_builder(TestBuilder.new)
|
498
|
+
env.TestBuilder("file")
|
499
|
+
end
|
500
|
+
end
|
487
501
|
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.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Holtrop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|