jitsu 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/jitsu.gemspec +2 -2
  3. data/spec/jitsu_spec.rb +17 -0
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/jitsu.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jitsu}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilkka Laukkanen"]
12
- s.date = %q{2011-02-13}
12
+ s.date = %q{2011-02-14}
13
13
  s.default_executable = %q{jitsu}
14
14
  s.description = %q{Jitsu is a frontend or meta build system for Ninja
15
15
  (http://github.com/martine/ninja), a lightning-fast but
data/spec/jitsu_spec.rb CHANGED
@@ -141,6 +141,22 @@ rule archive
141
141
  description = AR ${out}
142
142
  command = ${ar} rT ${out} ${in}
143
143
 
144
+ EOS
145
+ # the targets are reversed on 1.8.7 :p
146
+ if RUBY_VERSION.start_with? '1.8'
147
+ ninjafile += <<-EOS
148
+ build aaa2.o: cxx aaa2.cpp
149
+ cxxflags = -ansi -pedantic
150
+ build aaa2.a: archive aaa2.o
151
+
152
+ build aaa1a.o: cxx aaa1a.cpp
153
+ cxxflags = -g -Wall
154
+ build aaa1b.o: cxx aaa1b.cpp
155
+ cxxflags = -g -Wall
156
+ build aaa1: link aaa1a.o aaa1b.o aaa2.a
157
+ EOS
158
+ else
159
+ ninjafile += <<-EOS
144
160
  build aaa1a.o: cxx aaa1a.cpp
145
161
  cxxflags = -g -Wall
146
162
  build aaa1b.o: cxx aaa1b.cpp
@@ -151,6 +167,7 @@ build aaa2.o: cxx aaa2.cpp
151
167
  cxxflags = -ansi -pedantic
152
168
  build aaa2.a: archive aaa2.o
153
169
  EOS
170
+ end
154
171
  File.open('build.ninja', 'r').read.should == ninjafile
155
172
  end
156
173
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jitsu
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ilkka Laukkanen
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-13 00:00:00 +02:00
13
+ date: 2011-02-14 00:00:00 +02:00
14
14
  default_executable: jitsu
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
- hash: -941141107
142
+ hash: -901234259
143
143
  segments:
144
144
  - 0
145
145
  version: "0"