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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf40f0cf0eb1d54ea0f91faeeda9ce3fa0097e60
4
- data.tar.gz: 4946d3b4ad158e3258c6bb3bd6e65c1c4d86a659
3
+ metadata.gz: 7c2d0b395b0a6ae61a16e72f34fde3b9417735b9
4
+ data.tar.gz: 345f16305006c331c4c069fa5b280dc456ad1d64
5
5
  SHA512:
6
- metadata.gz: 2792eeb06e2005b5a8381fd016b27f14f643cd1987f3d61e09934c13f9657768761e5728683d87f1c44b9ae54adccc4a6d9fc9e86a9e3f3cc4448cd24acdb5ad
7
- data.tar.gz: 7a456d73ea19632279f6e62866f3168b06f34f5e3418fc48273e3bf2e237d6a032dd1a797fc0c326be0ea30e7a58b09e53ba2e03457ff67013dfc981eec7e957
6
+ metadata.gz: bc425e9c909cd5560ff23e8937ca37200f77a4cac7b5f14794b69657a2b4f586c7486f99d956ddfc4249629e8d2ea8d3fa4378bdd07c116c4a3d537e1158b26e
7
+ data.tar.gz: dd13b058eddee282ea8663328c3f5027ed3fde8a2dfb6a1357f03a30b0c9e5e4aa21e78da15c730b1df49bb8c8d48dfc161b2b78a76432026e481065ccc31885
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Ninja
2
2
  module VERSION #:nodoc:
3
- MAJOR, MINOR, PATCH, PRE = [0, 1, 1, 1]
3
+ MAJOR, MINOR, PATCH, PRE = [0, 1, 2, 0]
4
4
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
5
5
  end
6
6
 
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.1.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: 2015-08-17 00:00:00.000000000 Z
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: