asset_hat 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Gemfile.lock +37 -0
- data/HISTORY +10 -0
- data/README.rdoc +117 -75
- data/Rakefile +4 -4
- data/VERSION.yml +2 -2
- data/asset_hat.gemspec +69 -7
- data/config/assets.yml +46 -24
- data/doc/classes/AssetHat.html +183 -118
- data/doc/classes/AssetHat/CSS.html +21 -21
- data/doc/classes/AssetHat/CSS/Engines.html +10 -10
- data/doc/classes/AssetHat/JS.html +13 -13
- data/doc/classes/AssetHat/JS/Engines.html +10 -10
- data/doc/classes/AssetHat/JS/Vendors.html +85 -22
- data/doc/classes/AssetHatHelper.html +94 -19
- data/doc/created.rid +1 -1
- data/doc/files/HISTORY.html +20 -2
- data/doc/files/LICENSE.html +1 -1
- data/doc/files/README_rdoc.html +87 -31
- data/doc/files/lib/asset_hat/capistrano_rb.html +1 -1
- data/doc/files/lib/asset_hat/css_rb.html +1 -1
- data/doc/files/lib/asset_hat/initializers/action_view_rb.html +49 -0
- data/doc/files/lib/asset_hat/initializers/cache_last_commit_ids_rb.html +49 -0
- data/doc/files/lib/asset_hat/js/vendors_rb.html +1 -1
- data/doc/files/lib/asset_hat/js_rb.html +1 -1
- data/doc/files/lib/asset_hat/railtie_rb.html +61 -0
- data/doc/files/lib/asset_hat/tasks/css_rb.html +1 -1
- data/doc/files/lib/asset_hat/tasks/js_rb.html +1 -1
- data/doc/files/lib/asset_hat/tasks_rb.html +2 -1
- data/doc/files/lib/asset_hat/unicorn_rb.html +58 -0
- data/doc/files/lib/asset_hat/vcs_rb.html +1 -1
- data/doc/files/lib/asset_hat/version_rb.html +1 -1
- data/doc/files/{app/helpers → lib}/asset_hat_helper_rb.html +3 -3
- data/doc/files/lib/asset_hat_rb.html +9 -1
- data/doc/files/lib/tasks/asset_hat_rake.html +54 -0
- data/doc/fr_file_index.html +6 -1
- data/doc/fr_method_index.html +60 -52
- data/lib/asset_hat.rb +104 -59
- data/lib/asset_hat/initializers/action_view.rb +1 -0
- data/lib/asset_hat/initializers/cache_last_commit_ids.rb +1 -0
- data/lib/asset_hat/js/vendors.rb +198 -72
- data/lib/asset_hat/railtie.rb +19 -0
- data/lib/asset_hat/tasks.rb +5 -2
- data/lib/asset_hat/unicorn.rb +9 -0
- data/lib/asset_hat/vcs.rb +3 -2
- data/{app/helpers → lib}/asset_hat_helper.rb +184 -29
- data/{tasks → lib/tasks}/asset_hat.rake +0 -0
- data/rails/init.rb +2 -2
- data/test/asset_hat_helper_test.rb +731 -148
- data/test/asset_hat_test.rb +23 -2
- data/test/test_helper.rb +4 -8
- metadata +311 -30
@@ -0,0 +1,49 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html lang='en'>
|
3
|
+
<head>
|
4
|
+
<title>File: action_view.rb [AssetHat]</title>
|
5
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
|
6
|
+
<link href='../../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
|
+
<script type='text/javascript'>
|
8
|
+
//<![CDATA[
|
9
|
+
function popupCode(url) {
|
10
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
11
|
+
}
|
12
|
+
|
13
|
+
function toggleCode(id) {
|
14
|
+
var code = document.getElementById(id)
|
15
|
+
|
16
|
+
code.style.display = code.style.display != 'block' ? 'block' : 'none'
|
17
|
+
return true
|
18
|
+
}
|
19
|
+
|
20
|
+
// Make codeblocks hidden by default
|
21
|
+
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
|
22
|
+
//]]>
|
23
|
+
</script>
|
24
|
+
</head>
|
25
|
+
<body class='page'>
|
26
|
+
<div class='file' id='wrapper'>
|
27
|
+
<div class='header'>
|
28
|
+
<h1 class='name'>action_view.rb</h1>
|
29
|
+
<div class='paths'>
|
30
|
+
lib/asset_hat/initializers/action_view.rb
|
31
|
+
</div>
|
32
|
+
<div class='last-update'>
|
33
|
+
Last Update:
|
34
|
+
<span class='datetime'>Wed Apr 13 17:53:49 -0400 2011</span>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<div id='content'>
|
38
|
+
<div id='text'>
|
39
|
+
<div id='section'>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
<div id='footer-push'></div>
|
44
|
+
</div>
|
45
|
+
<div id='footer'>
|
46
|
+
<a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
|
47
|
+
</div>
|
48
|
+
</body>
|
49
|
+
</html>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html lang='en'>
|
3
|
+
<head>
|
4
|
+
<title>File: cache_last_commit_ids.rb [AssetHat]</title>
|
5
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
|
6
|
+
<link href='../../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
|
+
<script type='text/javascript'>
|
8
|
+
//<![CDATA[
|
9
|
+
function popupCode(url) {
|
10
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
11
|
+
}
|
12
|
+
|
13
|
+
function toggleCode(id) {
|
14
|
+
var code = document.getElementById(id)
|
15
|
+
|
16
|
+
code.style.display = code.style.display != 'block' ? 'block' : 'none'
|
17
|
+
return true
|
18
|
+
}
|
19
|
+
|
20
|
+
// Make codeblocks hidden by default
|
21
|
+
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
|
22
|
+
//]]>
|
23
|
+
</script>
|
24
|
+
</head>
|
25
|
+
<body class='page'>
|
26
|
+
<div class='file' id='wrapper'>
|
27
|
+
<div class='header'>
|
28
|
+
<h1 class='name'>cache_last_commit_ids.rb</h1>
|
29
|
+
<div class='paths'>
|
30
|
+
lib/asset_hat/initializers/cache_last_commit_ids.rb
|
31
|
+
</div>
|
32
|
+
<div class='last-update'>
|
33
|
+
Last Update:
|
34
|
+
<span class='datetime'>Tue Apr 19 16:12:20 -0400 2011</span>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<div id='content'>
|
38
|
+
<div id='text'>
|
39
|
+
<div id='section'>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
<div id='footer-push'></div>
|
44
|
+
</div>
|
45
|
+
<div id='footer'>
|
46
|
+
<a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
|
47
|
+
</div>
|
48
|
+
</body>
|
49
|
+
</html>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html lang='en'>
|
3
|
+
<head>
|
4
|
+
<title>File: railtie.rb [AssetHat]</title>
|
5
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
|
6
|
+
<link href='../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
|
+
<script type='text/javascript'>
|
8
|
+
//<![CDATA[
|
9
|
+
function popupCode(url) {
|
10
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
11
|
+
}
|
12
|
+
|
13
|
+
function toggleCode(id) {
|
14
|
+
var code = document.getElementById(id)
|
15
|
+
|
16
|
+
code.style.display = code.style.display != 'block' ? 'block' : 'none'
|
17
|
+
return true
|
18
|
+
}
|
19
|
+
|
20
|
+
// Make codeblocks hidden by default
|
21
|
+
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
|
22
|
+
//]]>
|
23
|
+
</script>
|
24
|
+
</head>
|
25
|
+
<body class='page'>
|
26
|
+
<div class='file' id='wrapper'>
|
27
|
+
<div class='header'>
|
28
|
+
<h1 class='name'>railtie.rb</h1>
|
29
|
+
<div class='paths'>
|
30
|
+
lib/asset_hat/railtie.rb
|
31
|
+
</div>
|
32
|
+
<div class='last-update'>
|
33
|
+
Last Update:
|
34
|
+
<span class='datetime'>Wed Apr 13 17:53:49 -0400 2011</span>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<div id='content'>
|
38
|
+
<div id='text'>
|
39
|
+
<div id='context'>
|
40
|
+
<div id='requires'>
|
41
|
+
<h2>Required files</h2>
|
42
|
+
<ol>
|
43
|
+
<li>asset_hat</li>
|
44
|
+
<li>asset_hat_helper</li>
|
45
|
+
<li>rails</li>
|
46
|
+
<li>asset_hat/initializers/action_view</li>
|
47
|
+
<li>asset_hat/initializers/cache_last_commit_ids</li>
|
48
|
+
</ol>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
<div id='section'>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
<div id='footer-push'></div>
|
56
|
+
</div>
|
57
|
+
<div id='footer'>
|
58
|
+
<a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
|
59
|
+
</div>
|
60
|
+
</body>
|
61
|
+
</html>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</div>
|
32
32
|
<div class='last-update'>
|
33
33
|
Last Update:
|
34
|
-
<span class='datetime'>
|
34
|
+
<span class='datetime'>Wed Apr 13 17:53:49 -0400 2011</span>
|
35
35
|
</div>
|
36
36
|
</div>
|
37
37
|
<div id='content'>
|
@@ -42,6 +42,7 @@
|
|
42
42
|
<ol>
|
43
43
|
<li>asset_hat/tasks/css</li>
|
44
44
|
<li>asset_hat/tasks/js</li>
|
45
|
+
<li>asset_hat</li>
|
45
46
|
</ol>
|
46
47
|
</div>
|
47
48
|
</div>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html lang='en'>
|
3
|
+
<head>
|
4
|
+
<title>File: unicorn.rb [AssetHat]</title>
|
5
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
|
6
|
+
<link href='../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
|
+
<script type='text/javascript'>
|
8
|
+
//<![CDATA[
|
9
|
+
function popupCode(url) {
|
10
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
11
|
+
}
|
12
|
+
|
13
|
+
function toggleCode(id) {
|
14
|
+
var code = document.getElementById(id)
|
15
|
+
|
16
|
+
code.style.display = code.style.display != 'block' ? 'block' : 'none'
|
17
|
+
return true
|
18
|
+
}
|
19
|
+
|
20
|
+
// Make codeblocks hidden by default
|
21
|
+
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
|
22
|
+
//]]>
|
23
|
+
</script>
|
24
|
+
</head>
|
25
|
+
<body class='page'>
|
26
|
+
<div class='file' id='wrapper'>
|
27
|
+
<div class='header'>
|
28
|
+
<h1 class='name'>unicorn.rb</h1>
|
29
|
+
<div class='paths'>
|
30
|
+
lib/asset_hat/unicorn.rb
|
31
|
+
</div>
|
32
|
+
<div class='last-update'>
|
33
|
+
Last Update:
|
34
|
+
<span class='datetime'>Wed Apr 20 18:30:55 -0400 2011</span>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<div id='content'>
|
38
|
+
<div id='text'>
|
39
|
+
<div id='description'>
|
40
|
+
<p>
|
41
|
+
Add the code below to your app’s unicorn.conf.rb or similar so that
|
42
|
+
assets’ commit IDs are precached only once by the Unicorn master,
|
43
|
+
then propagated out to workers. (Otherwise, each worker will precache
|
44
|
+
commit IDs, which wastes resources.) More on configuring Unicorn: <a
|
45
|
+
href="http://unicorn.bogomips.org/Unicorn/Configurator.html">unicorn.bogomips.org/Unicorn/Configurator.html</a>
|
46
|
+
</p>
|
47
|
+
</div>
|
48
|
+
<div id='section'>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
<div id='footer-push'></div>
|
53
|
+
</div>
|
54
|
+
<div id='footer'>
|
55
|
+
<a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
|
56
|
+
</div>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<title>File: asset_hat_helper.rb [AssetHat]</title>
|
5
5
|
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
|
6
|
-
<link href='
|
6
|
+
<link href='../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
7
|
<script type='text/javascript'>
|
8
8
|
//<![CDATA[
|
9
9
|
function popupCode(url) {
|
@@ -27,11 +27,11 @@
|
|
27
27
|
<div class='header'>
|
28
28
|
<h1 class='name'>asset_hat_helper.rb</h1>
|
29
29
|
<div class='paths'>
|
30
|
-
|
30
|
+
lib/asset_hat_helper.rb
|
31
31
|
</div>
|
32
32
|
<div class='last-update'>
|
33
33
|
Last Update:
|
34
|
-
<span class='datetime'>
|
34
|
+
<span class='datetime'>Thu May 05 14:25:04 -0400 2011</span>
|
35
35
|
</div>
|
36
36
|
</div>
|
37
37
|
<div id='content'>
|
@@ -31,11 +31,19 @@
|
|
31
31
|
</div>
|
32
32
|
<div class='last-update'>
|
33
33
|
Last Update:
|
34
|
-
<span class='datetime'>
|
34
|
+
<span class='datetime'>Sun Apr 24 18:16:18 -0400 2011</span>
|
35
35
|
</div>
|
36
36
|
</div>
|
37
37
|
<div id='content'>
|
38
38
|
<div id='text'>
|
39
|
+
<div id='context'>
|
40
|
+
<div id='requires'>
|
41
|
+
<h2>Required files</h2>
|
42
|
+
<ol>
|
43
|
+
<li>asset_hat/railtie</li>
|
44
|
+
</ol>
|
45
|
+
</div>
|
46
|
+
</div>
|
39
47
|
<div id='section'>
|
40
48
|
</div>
|
41
49
|
</div>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html lang='en'>
|
3
|
+
<head>
|
4
|
+
<title>File: asset_hat.rake [AssetHat]</title>
|
5
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
|
6
|
+
<link href='../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
|
+
<script type='text/javascript'>
|
8
|
+
//<![CDATA[
|
9
|
+
function popupCode(url) {
|
10
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
11
|
+
}
|
12
|
+
|
13
|
+
function toggleCode(id) {
|
14
|
+
var code = document.getElementById(id)
|
15
|
+
|
16
|
+
code.style.display = code.style.display != 'block' ? 'block' : 'none'
|
17
|
+
return true
|
18
|
+
}
|
19
|
+
|
20
|
+
// Make codeblocks hidden by default
|
21
|
+
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
|
22
|
+
//]]>
|
23
|
+
</script>
|
24
|
+
</head>
|
25
|
+
<body class='page'>
|
26
|
+
<div class='file' id='wrapper'>
|
27
|
+
<div class='header'>
|
28
|
+
<h1 class='name'>asset_hat.rake</h1>
|
29
|
+
<div class='paths'>
|
30
|
+
lib/tasks/asset_hat.rake
|
31
|
+
</div>
|
32
|
+
<div class='last-update'>
|
33
|
+
Last Update:
|
34
|
+
<span class='datetime'>Wed Apr 13 17:53:49 -0400 2011</span>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<div id='content'>
|
38
|
+
<div id='text'>
|
39
|
+
<div id='description'>
|
40
|
+
<p>
|
41
|
+
require ‘asset_hat/tasks‘
|
42
|
+
</p>
|
43
|
+
</div>
|
44
|
+
<div id='section'>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
<div id='footer-push'></div>
|
49
|
+
</div>
|
50
|
+
<div id='footer'>
|
51
|
+
<a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
|
52
|
+
</div>
|
53
|
+
</body>
|
54
|
+
</html>
|
data/doc/fr_file_index.html
CHANGED
@@ -13,17 +13,22 @@
|
|
13
13
|
<li><a href="files/HISTORY.html">HISTORY</a></li>
|
14
14
|
<li><a href="files/LICENSE.html">LICENSE</a></li>
|
15
15
|
<li><a href="files/README_rdoc.html">README.rdoc</a></li>
|
16
|
-
<li class='other'><a href="files/app/helpers/asset_hat_helper_rb.html">app/helpers/asset_hat_helper.rb</a></li>
|
17
16
|
<li class='other'><a href="files/lib/asset_hat_rb.html">lib/asset_hat.rb</a></li>
|
18
17
|
<li class='other'><a href="files/lib/asset_hat/capistrano_rb.html">lib/asset_hat/capistrano.rb</a></li>
|
19
18
|
<li class='other'><a href="files/lib/asset_hat/css_rb.html">lib/asset_hat/css.rb</a></li>
|
19
|
+
<li class='other'><a href="files/lib/asset_hat/initializers/action_view_rb.html">lib/asset_hat/initializers/action_view.rb</a></li>
|
20
|
+
<li class='other'><a href="files/lib/asset_hat/initializers/cache_last_commit_ids_rb.html">lib/asset_hat/initializers/cache_last_commit_ids.rb</a></li>
|
20
21
|
<li class='other'><a href="files/lib/asset_hat/js_rb.html">lib/asset_hat/js.rb</a></li>
|
21
22
|
<li class='other'><a href="files/lib/asset_hat/js/vendors_rb.html">lib/asset_hat/js/vendors.rb</a></li>
|
23
|
+
<li class='other'><a href="files/lib/asset_hat/railtie_rb.html">lib/asset_hat/railtie.rb</a></li>
|
22
24
|
<li class='other'><a href="files/lib/asset_hat/tasks_rb.html">lib/asset_hat/tasks.rb</a></li>
|
23
25
|
<li class='other'><a href="files/lib/asset_hat/tasks/css_rb.html">lib/asset_hat/tasks/css.rb</a></li>
|
24
26
|
<li class='other'><a href="files/lib/asset_hat/tasks/js_rb.html">lib/asset_hat/tasks/js.rb</a></li>
|
27
|
+
<li class='other'><a href="files/lib/asset_hat/unicorn_rb.html">lib/asset_hat/unicorn.rb</a></li>
|
25
28
|
<li class='other'><a href="files/lib/asset_hat/vcs_rb.html">lib/asset_hat/vcs.rb</a></li>
|
26
29
|
<li class='other'><a href="files/lib/asset_hat/version_rb.html">lib/asset_hat/version.rb</a></li>
|
30
|
+
<li class='other'><a href="files/lib/asset_hat_helper_rb.html">lib/asset_hat_helper.rb</a></li>
|
31
|
+
<li><a href="files/lib/tasks/asset_hat_rake.html">lib/tasks/asset_hat.rake</a></li>
|
27
32
|
<li>
|
28
33
|
<a class='show' href='#' onclick='this.parentNode.parentNode.className += " expanded"; this.parentNode.removeChild(this); return false'>show all</a>
|
29
34
|
</li>
|