jake 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/README.rdoc +273 -0
- data/bin/jake +9 -6
- data/lib/jake.rb +10 -20
- data/lib/jake/build.rb +7 -26
- data/lib/jake/buildable.rb +17 -24
- data/lib/jake/bundle.rb +13 -11
- data/lib/jake/helper.rb +0 -2
- data/lib/jake/package.rb +51 -13
- metadata +72 -101
- data/Manifest.txt +0 -33
- data/README.txt +0 -284
- data/Rakefile +0 -13
- data/test/Jakefile +0 -22
- data/test/expected/LISTING +0 -10
- data/test/expected/README +0 -1
- data/test/expected/basic-min.js +0 -7
- data/test/expected/basic.js +0 -14
- data/test/expected/combo/box-min.js +0 -8
- data/test/expected/combo/box.js +0 -28
- data/test/expected/ext-min.js +0 -7
- data/test/expected/ext.js +0 -17
- data/test/expected/sub/dir/foo-min.js +0 -7
- data/test/expected/sub/dir/foo.js +0 -15
- data/test/expected/sub/path/bar-min.js +0 -3
- data/test/expected/sub/path/bar.js +0 -5
- data/test/jake.yml +0 -38
- data/test/packages.erb +0 -8
- data/test/src/basic-ext.js +0 -2
- data/test/src/basic.js +0 -9
- data/test/src/foo/bar.js +0 -4
- data/test/src/foo/foo.js +0 -10
- data/test/src/head.js +0 -6
- data/test/src/head2.js +0 -7
- data/test/test_jake.rb +0 -29
data/test/jake.yml
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
---
|
2
|
-
source_directory: src
|
3
|
-
build_directory: output
|
4
|
-
builds:
|
5
|
-
min:
|
6
|
-
shrink_vars: true
|
7
|
-
private: true
|
8
|
-
src:
|
9
|
-
packer: false
|
10
|
-
suffix: false
|
11
|
-
header: head
|
12
|
-
packages:
|
13
|
-
basic: basic
|
14
|
-
ext:
|
15
|
-
extends: basic
|
16
|
-
packer:
|
17
|
-
private: false
|
18
|
-
files:
|
19
|
-
- basic-ext
|
20
|
-
meta:
|
21
|
-
provides:
|
22
|
-
- Basic
|
23
|
-
requires:
|
24
|
-
- Foo
|
25
|
-
sub/dir/foo:
|
26
|
-
- foo/foo
|
27
|
-
sub/path/bar:
|
28
|
-
directory: foo
|
29
|
-
header: ../head2
|
30
|
-
packer:
|
31
|
-
shrink_vars: false
|
32
|
-
files:
|
33
|
-
- bar
|
34
|
-
bundles:
|
35
|
-
combo/box:
|
36
|
-
- sub/dir/foo
|
37
|
-
- ext
|
38
|
-
|
data/test/packages.erb
DELETED
data/test/src/basic-ext.js
DELETED
data/test/src/basic.js
DELETED
data/test/src/foo/bar.js
DELETED
data/test/src/foo/foo.js
DELETED
data/test/src/head.js
DELETED
data/test/src/head2.js
DELETED
data/test/test_jake.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
require "test/unit"
|
2
|
-
require "jake"
|
3
|
-
require "fileutils"
|
4
|
-
require "find"
|
5
|
-
|
6
|
-
class TestJake < Test::Unit::TestCase
|
7
|
-
DIR = File.dirname(__FILE__)
|
8
|
-
|
9
|
-
def setup
|
10
|
-
FileUtils.rm_rf(File.join(DIR, 'output'))
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_build
|
14
|
-
Jake.clear_hooks!
|
15
|
-
Jake.build!(DIR)
|
16
|
-
expected = File.join(DIR, 'expected')
|
17
|
-
actual = File.join(DIR, 'output')
|
18
|
-
Find.find(expected) do |path|
|
19
|
-
next unless File.file?(path)
|
20
|
-
actual_path = actual + path.gsub(expected, '')
|
21
|
-
|
22
|
-
flunk "File #{actual_path} is missing" unless File.file?(actual_path)
|
23
|
-
|
24
|
-
assert_equal File.read(path).strip, File.read(actual_path),
|
25
|
-
"File #{actual_path} does not match #{path}"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|