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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWMyYzkzNjU2MTQ1MmRiOTFkMjhlMzVlMjYzM2Q0MTJkOWRjMWM5Yw==
4
+ Yzg0NDA4ZjBmYzA5MGQ5MmFiM2QxZDIyNmI1Yzg5YWM4Y2Q2ZDViOQ==
5
5
  data.tar.gz: !binary |-
6
- M2QyYmEwN2U2MGUyNGJkYjI4ODVjYWU5MzUyNWRiZTEzMWYxNDE3Mw==
6
+ Y2ZmMGVkZTEyYjY1NWY2YzNhYWI4ZmUyYmNhZGM1ZDVhMzdmNzRiZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzkyZDE0ZjQ2M2NlNTdmMTZiNzNmNDIwMjUwMmEwZjI1N2Y5Mjg3YTU0YjYy
10
- MWQwYjgwOGM2MGY3NjA0ZjlmZGM5ZThhN2UyZWM1OGIwMzk5MjQ2YzFhZjA1
11
- N2FhMWI2ZjY2Njk1YjkwOWUwNGI5MjQ4MGU2N2U2NjM5NDlkYWM=
9
+ Y2EzODEzMDZkYTUzMzkzNzIwZTcyOTMzNjk4NmVhMjM2MTc2MGZhYTZkNWIx
10
+ ZjU2YzA3NWMzYzJiM2Q3OWRhMDYyMmEzZjRhMTkxYzM3YzAyZjUyY2Y5NGNk
11
+ NjIzOGJkODlhOTVhZDVhZjkxOWI2OGU1ODk2NTVhY2VhNGI2Njg=
12
12
  data.tar.gz: !binary |-
13
- YWRmNzc3OGU0NmE3ZTUzOWZkYmM5MjQ5OGU0ZTA2MWM2MmRlNzAyMzRiZTQx
14
- YTc2NjRjYmZmYjU0MjA2ZmUyNmY5ZGI4OTZjN2Q5MzcyYzQ1ZWQ3Njg5MTc3
15
- ZmVlY2NiZmViYmQyOWFmM2Q3MWEzMWY5ZTRkMjQ4ODYwNGM1ZmY=
13
+ MDE5YzhkY2FjNmU3NGEzZWVkZDNjZDBiOGFiYTVmMDI0MmU1MjhhOTRhYTdm
14
+ N2JhNGJlNzkxMjIzMzc4MDQwYTkzMDk3MzU1MjlmYzBhZTQyOTM3ZTlkMDAw
15
+ Njg0MTU0YTUxOGFlNzJjZWNjMTIyZGJhZWY4MDcwZTA2ODQ3OWQ=
@@ -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 = [sources] unless sources.is_a?(Array)
261
+ sources = Array(sources)
262
262
  add_target(target, @builders[method.to_s], sources, vars, rest)
263
263
  else
264
264
  super
@@ -1,4 +1,4 @@
1
1
  module Rscons
2
2
  # gem version
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
@@ -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.0
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-15 00:00:00.000000000 Z
11
+ date: 2014-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core