jitsu 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/jitsu +18 -1
- data/jitsu.gemspec +3 -3
- data/lib/jitsu/errors.rb +15 -0
- data/lib/jitsu.rb +19 -2
- data/lib/schema.yaml +15 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/bin/jitsu
CHANGED
@@ -1,4 +1,19 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# Jitsu, a meta build system for Ninja
|
3
|
+
# Copyright (C) 2011 Ilkka Laukkanen <ilkka.s.laukkanen@gmail.com>
|
4
|
+
#
|
5
|
+
# This program is free software: you can redistribute it and/or modify it under
|
6
|
+
# the terms of the GNU General Public License as published by the Free Software
|
7
|
+
# Foundation, either version 3 of the License, or (at your option) any later
|
8
|
+
# version.
|
9
|
+
#
|
10
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
11
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
12
|
+
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License along with
|
15
|
+
# this program. If not, see <http://www.gnu.org/licenses/>.
|
16
|
+
|
2
17
|
require 'trollop'
|
3
18
|
require 'logger'
|
4
19
|
|
@@ -17,7 +32,9 @@ opts = Trollop::options do
|
|
17
32
|
version <<-EOS
|
18
33
|
jitsu #{File.read File.join(File.dirname(__FILE__), '..', 'VERSION')}
|
19
34
|
Copyright (C) 2011 Ilkka Laukkanen <ilkka.s.laukkanen@gmail.com>
|
20
|
-
|
35
|
+
This program comes with ABSOLUTELY NO WARRANTY.
|
36
|
+
This is free software, and you are welcome to redistribute it
|
37
|
+
under certain conditions; see the file LICENSE.txt for details.
|
21
38
|
EOS
|
22
39
|
banner <<-EOS
|
23
40
|
jitsu, the meta build system for ninja.
|
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.4.
|
8
|
+
s.version = "0.4.1"
|
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-
|
12
|
+
s.date = %q{2011-02-24}
|
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
|
@@ -51,7 +51,7 @@ buildfiles.
|
|
51
51
|
s.homepage = %q{http://github.com/ilkka/jitsu}
|
52
52
|
s.licenses = ["GPLv3"]
|
53
53
|
s.require_paths = ["lib"]
|
54
|
-
s.rubygems_version = %q{1.5.
|
54
|
+
s.rubygems_version = %q{1.5.2}
|
55
55
|
s.summary = %q{Meta build system for Ninja}
|
56
56
|
s.test_files = [
|
57
57
|
"spec/jitsu_spec.rb",
|
data/lib/jitsu/errors.rb
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# Jitsu, a meta build system for Ninja
|
2
|
+
# Copyright (C) 2011 Ilkka Laukkanen <ilkka.s.laukkanen@gmail.com>
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify it under
|
5
|
+
# the terms of the GNU General Public License as published by the Free Software
|
6
|
+
# Foundation, either version 3 of the License, or (at your option) any later
|
7
|
+
# version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
10
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
11
|
+
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License along with
|
14
|
+
# this program. If not, see <http://www.gnu.org/licenses/>.
|
15
|
+
|
1
16
|
# Exception classes for Jitsu module
|
2
17
|
#
|
3
18
|
module Jitsu
|
data/lib/jitsu.rb
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# Jitsu, a meta build system for Ninja
|
2
|
+
# Copyright (C) 2011 Ilkka Laukkanen <ilkka.s.laukkanen@gmail.com>
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify it under
|
5
|
+
# the terms of the GNU General Public License as published by the Free Software
|
6
|
+
# Foundation, either version 3 of the License, or (at your option) any later
|
7
|
+
# version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
10
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
11
|
+
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License along with
|
14
|
+
# this program. If not, see <http://www.gnu.org/licenses/>.
|
15
|
+
|
1
16
|
require 'yaml'
|
2
17
|
require 'kwalify'
|
3
18
|
|
@@ -33,12 +48,14 @@ module Jitsu
|
|
33
48
|
# @return [String] path to jitsu file or nil if not found.
|
34
49
|
def self.jitsufile
|
35
50
|
dir = '.'
|
36
|
-
|
51
|
+
prev = nil
|
52
|
+
until prev and File.expand_path(prev) == File.expand_path(dir) do
|
37
53
|
candidate = Dir[File.join dir, JITSU_FILE_NAME].first
|
38
54
|
if candidate and File.readable? candidate
|
39
55
|
return candidate.gsub /^\.\//, ''
|
40
56
|
end
|
41
|
-
|
57
|
+
prev = dir
|
58
|
+
dir = File.join(dir, '..')
|
42
59
|
end
|
43
60
|
end
|
44
61
|
|
data/lib/schema.yaml
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# Jitsu, a meta build system for Ninja
|
2
|
+
# Copyright (C) 2011 Ilkka Laukkanen <ilkka.s.laukkanen@gmail.com>
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify it under
|
5
|
+
# the terms of the GNU General Public License as published by the Free Software
|
6
|
+
# Foundation, either version 3 of the License, or (at your option) any later
|
7
|
+
# version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
10
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
11
|
+
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU General Public License along with
|
14
|
+
# this program. If not, see <http://www.gnu.org/licenses/>.
|
15
|
+
---
|
1
16
|
type: map
|
2
17
|
mapping:
|
3
18
|
"targets":
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: jitsu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.1
|
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
|
+
date: 2011-02-24 00:00:00 +02:00
|
14
14
|
default_executable: jitsu
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -154,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
154
154
|
requirements:
|
155
155
|
- - ">="
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
hash:
|
157
|
+
hash: -810593517
|
158
158
|
segments:
|
159
159
|
- 0
|
160
160
|
version: "0"
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
requirements: []
|
168
168
|
|
169
169
|
rubyforge_project:
|
170
|
-
rubygems_version: 1.5.
|
170
|
+
rubygems_version: 1.5.2
|
171
171
|
signing_key:
|
172
172
|
specification_version: 3
|
173
173
|
summary: Meta build system for Ninja
|