ninja-gen 0.1.1.1 → 0.1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ninja/file.rb +5 -1
- data/lib/ninja/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c2d0b395b0a6ae61a16e72f34fde3b9417735b9
|
4
|
+
data.tar.gz: 345f16305006c331c4c069fa5b280dc456ad1d64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc425e9c909cd5560ff23e8937ca37200f77a4cac7b5f14794b69657a2b4f586c7486f99d956ddfc4249629e8d2ea8d3fa4378bdd07c116c4a3d537e1158b26e
|
7
|
+
data.tar.gz: dd13b058eddee282ea8663328c3f5027ed3fde8a2dfb6a1357f03a30b0c9e5e4aa21e78da15c730b1df49bb8c8d48dfc161b2b78a76432026e481065ccc31885
|
data/lib/ninja/file.rb
CHANGED
@@ -25,6 +25,11 @@ module Ninja
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
def alias(from, to)
|
29
|
+
# Pretty clever, huh?
|
30
|
+
@builds.push(Ninja::Build.new(:rule => 'phony', :inputs => to, :output => from))
|
31
|
+
end
|
32
|
+
|
28
33
|
def defaults(outputs)
|
29
34
|
# TODO(mtwilliams): Accept variables (\$[\w]|\$\{[\w]\}).
|
30
35
|
# raise "Expected output(s) to be paths." unless [*outputs].all?{|output| /\A(?:[-\w\.]+\/?)+\z/.match(output)}
|
@@ -72,7 +77,6 @@ module Ninja
|
|
72
77
|
f.write "default #{@defaults.join(' ')}\n" unless @defaults.empty?
|
73
78
|
end
|
74
79
|
|
75
|
-
# TODO(mtwilliams): Aliases (via the 'phony' rule).
|
76
80
|
# TODO(mtwilliams): Execute other files (via 'subninja').
|
77
81
|
# TODO(mtwilliams): Specify pools, to optimize compilation times.
|
78
82
|
end
|
data/lib/ninja/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ninja-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -97,3 +97,4 @@ signing_key:
|
|
97
97
|
specification_version: 4
|
98
98
|
summary: Generate Ninja build files.
|
99
99
|
test_files: []
|
100
|
+
has_rdoc:
|