asset_hat 0.3.1 → 0.4.0

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.
Files changed (52) hide show
  1. data/Gemfile +2 -0
  2. data/Gemfile.lock +37 -0
  3. data/HISTORY +10 -0
  4. data/README.rdoc +117 -75
  5. data/Rakefile +4 -4
  6. data/VERSION.yml +2 -2
  7. data/asset_hat.gemspec +69 -7
  8. data/config/assets.yml +46 -24
  9. data/doc/classes/AssetHat.html +183 -118
  10. data/doc/classes/AssetHat/CSS.html +21 -21
  11. data/doc/classes/AssetHat/CSS/Engines.html +10 -10
  12. data/doc/classes/AssetHat/JS.html +13 -13
  13. data/doc/classes/AssetHat/JS/Engines.html +10 -10
  14. data/doc/classes/AssetHat/JS/Vendors.html +85 -22
  15. data/doc/classes/AssetHatHelper.html +94 -19
  16. data/doc/created.rid +1 -1
  17. data/doc/files/HISTORY.html +20 -2
  18. data/doc/files/LICENSE.html +1 -1
  19. data/doc/files/README_rdoc.html +87 -31
  20. data/doc/files/lib/asset_hat/capistrano_rb.html +1 -1
  21. data/doc/files/lib/asset_hat/css_rb.html +1 -1
  22. data/doc/files/lib/asset_hat/initializers/action_view_rb.html +49 -0
  23. data/doc/files/lib/asset_hat/initializers/cache_last_commit_ids_rb.html +49 -0
  24. data/doc/files/lib/asset_hat/js/vendors_rb.html +1 -1
  25. data/doc/files/lib/asset_hat/js_rb.html +1 -1
  26. data/doc/files/lib/asset_hat/railtie_rb.html +61 -0
  27. data/doc/files/lib/asset_hat/tasks/css_rb.html +1 -1
  28. data/doc/files/lib/asset_hat/tasks/js_rb.html +1 -1
  29. data/doc/files/lib/asset_hat/tasks_rb.html +2 -1
  30. data/doc/files/lib/asset_hat/unicorn_rb.html +58 -0
  31. data/doc/files/lib/asset_hat/vcs_rb.html +1 -1
  32. data/doc/files/lib/asset_hat/version_rb.html +1 -1
  33. data/doc/files/{app/helpers → lib}/asset_hat_helper_rb.html +3 -3
  34. data/doc/files/lib/asset_hat_rb.html +9 -1
  35. data/doc/files/lib/tasks/asset_hat_rake.html +54 -0
  36. data/doc/fr_file_index.html +6 -1
  37. data/doc/fr_method_index.html +60 -52
  38. data/lib/asset_hat.rb +104 -59
  39. data/lib/asset_hat/initializers/action_view.rb +1 -0
  40. data/lib/asset_hat/initializers/cache_last_commit_ids.rb +1 -0
  41. data/lib/asset_hat/js/vendors.rb +198 -72
  42. data/lib/asset_hat/railtie.rb +19 -0
  43. data/lib/asset_hat/tasks.rb +5 -2
  44. data/lib/asset_hat/unicorn.rb +9 -0
  45. data/lib/asset_hat/vcs.rb +3 -2
  46. data/{app/helpers → lib}/asset_hat_helper.rb +184 -29
  47. data/{tasks → lib/tasks}/asset_hat.rake +0 -0
  48. data/rails/init.rb +2 -2
  49. data/test/asset_hat_helper_test.rb +731 -148
  50. data/test/asset_hat_test.rb +23 -2
  51. data/test/test_helper.rb +4 -8
  52. metadata +311 -30
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'http://rubygems.org'
2
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,37 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ asset_hat (0.3.1)
5
+ asset_hat
6
+ cssmin (~> 1.0.2)
7
+ jsmin (~> 1.0.1)
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ cssmin (1.0.2)
13
+ flexmock (0.8.11)
14
+ git (1.2.5)
15
+ haml (2.2.24)
16
+ hanna (0.1.12)
17
+ haml (~> 2.2.8)
18
+ rake (~> 0.8.2)
19
+ rdoc (~> 2.3.0)
20
+ jeweler (1.5.2)
21
+ bundler (~> 1.0.0)
22
+ git (>= 1.2.5)
23
+ rake
24
+ jsmin (1.0.1)
25
+ rake (0.8.7)
26
+ rdoc (2.3.0)
27
+ shoulda (2.10.3)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ asset_hat!
34
+ flexmock (~> 0.8.6)
35
+ hanna (~> 0.1.12)
36
+ jeweler (~> 1.5.1)
37
+ shoulda (~> 2.10.2)
data/HISTORY CHANGED
@@ -1,5 +1,15 @@
1
1
  = HISTORY
2
2
 
3
+ == Version 0.4.0 (2011-05-06)
4
+ * FEATURE: Added Rails 3 support.
5
+ * FEATURE: Added support for loading JavaScript files via LABjs:
6
+ `<%= include_js :jquery, :bundles => %[plugins app], :loader => :lab_js %>`.
7
+ (Provides only basic LABjs support. To build custom JS logic, use the new
8
+ `:only_url` option.)
9
+ * FEATURE: Added support for getting asset URLs, e.g.:
10
+ `<%= include_css 'foo', :bundle => 'bar', :only_url => true %>`,
11
+ `<%= include_js :jquery, 'foo', :bundle => 'bar', :only_url => true %>`.
12
+
3
13
  == Version 0.3.1 (2011-04-02)
4
14
  * IMPROVEMENT: Added tolerance for `.css` and `.js` extensions in assets.yml,
5
15
  even though you don't need them.
data/README.rdoc CHANGED
@@ -4,13 +4,14 @@ Your assets are covered.
4
4
 
5
5
  With Rails' default asset caching, CSS and JS are concatenated (not even
6
6
  minified) at runtime when that bundle is first requested. Not good enough.
7
- AssetHat can automatically:
7
+ To make your pages load faster, AssetHat can automatically:
8
8
 
9
- * Easily *minify* and *bundle* CSS and JS on deploy to reduce file sizes and
10
- HTTP requests.
11
- * Load popular <b>third-party JS</b> (like jQuery and Prototype)
9
+ * Easily *minify* and *bundle* CSS and JS to reduce file sizes and
10
+ HTTP requests. Do this on deploy, and avoid any performance hit at runtime.
11
+ * Load popular <b>third-party JS</b> (like jQuery, YUI, and Ext JS)
12
12
  from {<b>Google's CDN</b>}[http://code.google.com/apis/ajaxlibs/]
13
- when in production, or from localhost in development.
13
+ when in production, or from localhost in development. It's as simple as
14
+ <code><%= include_js :jquery %></code> to load straight from Google.
14
15
  * Force image URLs in your CSS to use <b>CDN subdomains</b>
15
16
  (including SSL support), not just the current host.
16
17
  * Add an image's last Git[http://git-scm.com/] commit ID to its CSS URLs to
@@ -19,24 +20,28 @@ AssetHat can automatically:
19
20
 
20
21
  After setup, you can use this in your layouts and views:
21
22
 
22
- <%= include_css :bundle => 'application' %>
23
- <%= include_js :jquery, :bundles => ['plugins', 'common'] %>
23
+ <%= include_css :bundle => 'application' %>
24
+ <%= include_js :jquery, :bundles => ['plugins', 'common'] %>
24
25
 
25
- Which turns into:
26
+ Which expands into:
26
27
 
27
- <link href="/stylesheets/bundles/application.min.css"
28
- media="screen,projection" rel="stylesheet" type="text/css" />
29
- <script src="/javascripts/jquery-1.x.x.min.js"
30
- type="text/javascript"></script>
31
- <!-- In production, jQuery loads from Google's CDN instead. -->
32
- <script src="/javascripts/bundles/plugins.min.js"
33
- type="text/javascript"></script>
34
- <script src="/javascripts/bundles/common.min.js"
35
- type="text/javascript"></script>
28
+ <link href="/stylesheets/bundles/application.min.css"
29
+ media="screen,projection" rel="stylesheet" type="text/css" />
30
+ <script src="/javascripts/jquery-1.x.x.min.js"
31
+ type="text/javascript"></script>
32
+ <!-- In production, jQuery loads from Google's CDN instead. -->
33
+ <script src="/javascripts/bundles/plugins.min.js"
34
+ type="text/javascript"></script>
35
+ <script src="/javascripts/bundles/common.min.js"
36
+ type="text/javascript"></script>
36
37
 
37
- And this in your deploy script:
38
+ Don't have your own copy of jQuery? AssetHat detects this and loads jQuery
39
+ from Google's CDN instead, whether you're in development or production.
38
40
 
39
- rake asset_hat:minify
41
+ Add this to your deploy script, and your CSS/JS will be optimized
42
+ automatically:
43
+
44
+ rake asset_hat:minify
40
45
 
41
46
  Tested with Rails 2.3.x. For a quick overview, see
42
47
  {the AssetHat website}[http://mintdigital.github.com/asset_hat/].
@@ -48,55 +53,85 @@ For the gritty details, check the
48
53
 
49
54
  == Installation
50
55
 
51
- 1. Configure the gem:
56
+ * Rails 3.x:
57
+
58
+ 1. Add to your app's Gemfile: <code>gem 'asset_hat', '0.x.x'</code>
59
+ 2. Command-line: <code>bundle install</code>
60
+
61
+ * Rails 2.3.x:
62
+
63
+ 1. Add the gem:
52
64
 
53
- * If you're using Rails 3 and/or
54
- {Bundler 0.9+}[http://github.com/carlhuda/bundler]:
65
+ * If you're using {Bundler 0.9+}[http://github.com/carlhuda/bundler]:
55
66
 
56
- 1. Add to your app's Gemfile: <code>gem 'asset_hat', '0.x.x'</code>
57
- 2. Command-line: <code>bundle install</code>
67
+ 1. Add to your app's Gemfile: <code>gem 'asset_hat', '0.x.x'</code>
68
+ 2. Command-line: <code>bundle install</code>
58
69
 
59
- * If you're using Rails 2.x's <code>config.gem</code>:
70
+ * If you're using Rails 2.3.x's <code>config.gem</code>:
60
71
 
61
- 1. Add to your app's <code>config/environment.rb</code>:
62
- <code>config.gem 'asset_hat', :version => '0.x.x'</code>
63
- 2. Command-line: <code>gem install asset_hat</code>
72
+ 1. Add to your app's <code>config/environment.rb</code>:
73
+ <code>config.gem 'asset_hat', :version => '0.x.x'</code>
74
+ 2. Command-line: <code>gem install asset_hat</code>
64
75
 
65
- 2. Add to your app's Rakefile: <code>require 'asset_hat/tasks'</code>
76
+ 2. Add to your app's Rakefile: <code>require 'asset_hat/tasks'</code>
66
77
 
67
78
 
68
79
 
69
- == Configuration
80
+ == Quick start & configuration
70
81
 
71
- 1. Create the default config file:
82
+ 1. In all of your layouts and views, change <code>stylesheet_link_tag</code>
83
+ to <code>include_css</code>, and change
84
+ <code>javascript_include_tag</code> to <code>include_js</code>. (Don't
85
+ worry, these helpers use the same arguments as Rails' helpers. Nothing
86
+ will break.)
72
87
 
73
- rake asset_hat:config
88
+ 2. Create the default config file:
74
89
 
75
- 2. In your app, open the new file at <code>config/assets.yml</code>, and set
90
+ rake asset_hat:config
91
+
92
+ 3. In your app, open the new file at <code>config/assets.yml</code>, and set
76
93
  up your CSS/JS bundles according to that file's example.
77
94
 
78
- 3. Minify your bundles:
95
+ 4. In your layouts and views, switch to the new bundles. For example, if you
96
+ originally had this:
97
+
98
+ <%# app/views/layouts/application.html.erb: %>
99
+ <%= stylesheet_include_tag 'reset', 'application' %>
100
+
101
+ Then you'll now have:
79
102
 
80
- rake asset_hat:minify
103
+ # config/assets.yml:
104
+ css:
105
+ bundles:
106
+ application: ['reset', 'application']
107
+
108
+ <%# app/views/layouts/application.html.erb: %>
109
+ <%= include_css :bundle => 'application' %>
110
+
111
+ 5. Add this to your deployment script:
112
+
113
+ rake asset_hat:minify
81
114
 
82
115
  This minifies all of the CSS/JS files listed in
83
116
  <code>config/assets.yml</code>, concatenates the minified code into bundle
84
117
  files, and adds CDN asset hosts and cache-busting commit IDs to image URLs
85
118
  in your CSS.
86
119
 
87
- Bundles are created as new files in
120
+ Any previously minified bundles are overwritten; your original
121
+ CSS/JS files remain untouched. Bundles are created as new files in
88
122
  <code>public/stylesheets/bundles/</code> and
89
- <code>public/javascripts/bundles/</code>. Your original CSS/JS files
90
- remain untouched.
91
-
92
- 4. Set your deployment script to run <code>rake asset_hat:minify</code> after
93
- deploying your latest CSS/JS. This overwrites previously minified bundles,
94
- and leaves your original CSS/JS files untouched.
123
+ <code>public/javascripts/bundles/</code>.
95
124
 
96
125
  === Advanced configuration
97
126
 
98
127
  If you manage deployments with Capistrano[http://www.capify.org/], see the
99
- gem's packaged example at <code>lib/asset_hat/capistrano.rb</code>.
128
+ gem's packaged example at
129
+ <code>lib/asset_hat/capistrano.rb[https://github.com/mintdigital/asset_hat/blob/master/lib/asset_hat/capistrano.rb]</code>.
130
+
131
+ If your stack uses Unicorn[http://unicorn.bogomips.org/], you'll want to
132
+ configure it so that assets' commit IDs are precached only once. See the gem's
133
+ packaged example at
134
+ <code>lib/asset_hat/unicorn.rb[https://github.com/mintdigital/asset_hat/blob/master/lib/asset_hat/unicorn.rb]</code>.
100
135
 
101
136
  If you want shorter output during deployments, you can use
102
137
  `rake asset_hat:minify FORMAT=short` (one output line per bundle) or
@@ -119,19 +154,19 @@ Additional settings are supported in <code>config/assets.yml</code>:
119
154
  other external source. The following example configures jQuery and jQuery UI
120
155
  for use throughout the app:
121
156
 
122
- js:
123
- vendors:
124
- jquery:
125
- version: 1.4.4
126
- jquery_ui:
127
- version: 1.8.5
128
- remote_url: http://cdn.example.com/js/jquery-ui-1.8.5.min.js
129
- remote_ssl_url: https://cdn-ssl.example.com/js/jquery-ui-1.8.5.min.js
157
+ js:
158
+ vendors:
159
+ jquery:
160
+ version: 1.5.2
161
+ jquery_ui:
162
+ version: 1.8.12
163
+ remote_url: http://cdn.example.com/js/jquery-ui-1.8.12.min.js
164
+ remote_ssl_url: https://cdn-ssl.example.com/js/jquery-ui-1.8.12.min.js
130
165
 
131
166
  Configuration keys per vendor:
132
167
 
133
168
  * <code>version</code>: Sets the default version across the app. In the
134
- example above, <code><%= include_js :jquery %></code> uses version 1.4.4
169
+ example above, <code><%= include_js :jquery %></code> uses version 1.5.2
135
170
  by default. You can override this for special layouts/views with
136
171
  <code><%= include_js :jquery, :version => '1.3.2' %></code>.
137
172
  * <code>remote_url</code>, <code>remote_ssl_url</code>: By default, vendor
@@ -154,10 +189,10 @@ SSL.
154
189
  AssetHat plays well with SSL pages that load assets from a CDN. Put this in
155
190
  <code>config/environments/production.rb</code> or similar:
156
191
 
157
- config.action_controller.asset_host = Proc.new do |source, request|
158
- "#{request.protocol}cdn#{source.hash % 4}.example.com"
159
- # => 'http://cdn0.example.com', 'https://cdn1.example.com', etc.
160
- end
192
+ config.action_controller.asset_host = Proc.new do |source, request|
193
+ "#{request.protocol}cdn#{source.hash % 4}.example.com"
194
+ # => 'http://cdn0.example.com', 'https://cdn1.example.com', etc.
195
+ end
161
196
 
162
197
  This switches to a different CDN URL if the request used SSL. When you run
163
198
  <code>rake asset_hat:minify</code> at deploy time, AssetHat detects this
@@ -170,23 +205,23 @@ load images from CDN via SSL. (Non-SSL pages still get non-SSL stylesheets.)
170
205
 
171
206
  In your layouts and views, <b>instead of these</b>:
172
207
 
173
- <%= stylesheet_link_tag 'reset', 'application', 'clearfix',
174
- :media => 'screen,projection',
175
- :cache => 'bundles/application' %>
176
- <%= javascript_include_tag 'plugin-1', 'plugin-2', 'plugin-3',
177
- :cache => 'bundles/application' %>
208
+ <%= stylesheet_link_tag 'reset', 'application', 'clearfix',
209
+ :media => 'screen,projection',
210
+ :cache => 'bundles/application' %>
211
+ <%= javascript_include_tag 'plugin-1', 'plugin-2', 'plugin-3',
212
+ :cache => 'bundles/application' %>
178
213
 
179
214
  <b>Use these:</b>
180
215
 
181
- <%= include_css :bundle => 'application' %>
182
- <%= include_js :bundle => 'application' %>
216
+ <%= include_css :bundle => 'application' %>
217
+ <%= include_js :bundle => 'application' %>
183
218
 
184
219
  These turn into:
185
220
 
186
- <link href="/stylesheets/bundles/application.min.css"
187
- media="screen,projection" rel="stylesheet" type="text/css" />
188
- <script src="/javascripts/bundles/application.min.js"
189
- type="text/javascript"></script>
221
+ <link href="/stylesheets/bundles/application.min.css"
222
+ media="screen,projection" rel="stylesheet" type="text/css" />
223
+ <script src="/javascripts/bundles/application.min.js"
224
+ type="text/javascript"></script>
190
225
 
191
226
  Have an enormous app? You can integrate gradually, using AssetHat alongside
192
227
  Rails' default asset caching.
@@ -206,22 +241,29 @@ configuration"), SSL requests will also load CSS/JS files via SSL.
206
241
 
207
242
  You can also include single files as expected:
208
243
 
209
- <%= include_css 'reset', 'application' %>
210
- <%= include_js 'plugin.min', 'application' %>
244
+ <%= include_css 'reset', 'application' %>
245
+ <%= include_js 'plugin.min', 'application' %>
211
246
 
212
247
  Or include multiple bundles at once:
213
248
 
214
- <%= include_js :bundles => %w[plugins common] %>
249
+ <%= include_js :bundles => %w[plugins common] %>
215
250
 
216
251
  When including multiple bundles at once, this yields one
217
252
  <code><link></code> or <code><script></code> element per bundle.
218
253
 
219
- You may want to use multiple bundles to separate plugins (rarely changed) from
220
- application code (frequently changed). If all code is in one huge bundle, then
221
- whenever there's a change, browsers have to re-download the whole bundle. By
222
- using multiple bundles based on update frequency, browsers cache the rarely
223
- updated code, and only re-download the frequently updated code.
254
+ === Bundle tips
255
+
256
+ Don't go overboard with huge bundles:
224
257
 
258
+ * Mobile browsers may not cache CSS/JS files that are too large, regardless of
259
+ gzipping. Check the latest specs for each mobile browser you support.
260
+ * You might want to put plugins (rarely changed) in one bundle, and
261
+ application code (frequently changed) in another bundle. This way, when the
262
+ app code changes, the browser re-downloads only the new app code, and uses
263
+ the cached plugin code.
264
+ * Regardless of code-change frequency, it's sometimes faster to split a bundle
265
+ in half, and load each half in parallel (i.e., two HTTP requests instead of
266
+ one). Your own tests will tell what's optimal for your situation.
225
267
 
226
268
 
227
269
  == {What is best in AssetHat?}[http://www.youtube.com/watch?v=V30tyaXv6EI]
data/Rakefile CHANGED
@@ -9,11 +9,11 @@ begin
9
9
  gemspec.summary = 'Your assets are covered.'
10
10
  gemspec.description = %{
11
11
  Minifies, bundles, and optimizes CSS/JS assets ahead of time (e.g., on
12
- deploy), not at runtime. Loads popular JS frameworks (like jQuery and
13
- Prototype) from localhost in development, and auto-switches to Google's
12
+ deploy), not at runtime. Loads popular third-party JS (like jQuery, YUI,
13
+ and Ext JS) from localhost in development, and auto-switches to Google's
14
14
  CDN in production. Can rewrite stylesheets to use CDN hosts (not just
15
15
  your web server) and cache-busting hashes for updated images.
16
- }.strip.gsub(/\s+/, ' ')
16
+ }.strip.split.join(' ')
17
17
  gemspec.homepage = 'http://mintdigital.github.com/asset_hat'
18
18
 
19
19
  gemspec.authors = ['Ron DeVera', 'Mint Digital']
@@ -45,7 +45,7 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
45
45
  rdoc.title = 'AssetHat'
46
46
  rdoc.main = 'README.rdoc'
47
47
  rdoc.options += %w[--line-numbers --inline-source]
48
- %w[README.rdoc HISTORY LICENSE app/* lib/*].each do |path|
48
+ %w[README.rdoc HISTORY LICENSE lib/*].each do |path|
49
49
  rdoc.rdoc_files.include(path)
50
50
  end
51
51
  end
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :build:
4
- :minor: 3
5
- :patch: 1
4
+ :minor: 4
5
+ :patch: 0
data/asset_hat.gemspec CHANGED
@@ -5,24 +5,25 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{asset_hat}
8
- s.version = "0.3.1"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ron DeVera", "Mint Digital"]
12
- s.date = %q{2011-04-02}
13
- s.description = %q{Minifies, bundles, and optimizes CSS/JS assets ahead of time (e.g., on deploy), not at runtime. Loads popular JS frameworks (like jQuery and Prototype) from localhost in development, and auto-switches to Google's CDN in production. Can rewrite stylesheets to use CDN hosts (not just your web server) and cache-busting hashes for updated images.}
12
+ s.date = %q{2011-05-06}
13
+ s.description = %q{Minifies, bundles, and optimizes CSS/JS assets ahead of time (e.g., on deploy), not at runtime. Loads popular third-party JS (like jQuery, YUI, and Ext JS) from localhost in development, and auto-switches to Google's CDN in production. Can rewrite stylesheets to use CDN hosts (not just your web server) and cache-busting hashes for updated images.}
14
14
  s.email = %q{hello@rondevera.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
20
22
  "HISTORY",
21
23
  "LICENSE",
22
24
  "README.rdoc",
23
25
  "Rakefile",
24
26
  "VERSION.yml",
25
- "app/helpers/asset_hat_helper.rb",
26
27
  "asset_hat.gemspec",
27
28
  "config/assets.yml",
28
29
  "doc/classes/AssetHat.html",
@@ -36,17 +37,22 @@ Gem::Specification.new do |s|
36
37
  "doc/files/HISTORY.html",
37
38
  "doc/files/LICENSE.html",
38
39
  "doc/files/README_rdoc.html",
39
- "doc/files/app/helpers/asset_hat_helper_rb.html",
40
40
  "doc/files/lib/asset_hat/capistrano_rb.html",
41
41
  "doc/files/lib/asset_hat/css_rb.html",
42
+ "doc/files/lib/asset_hat/initializers/action_view_rb.html",
43
+ "doc/files/lib/asset_hat/initializers/cache_last_commit_ids_rb.html",
42
44
  "doc/files/lib/asset_hat/js/vendors_rb.html",
43
45
  "doc/files/lib/asset_hat/js_rb.html",
46
+ "doc/files/lib/asset_hat/railtie_rb.html",
44
47
  "doc/files/lib/asset_hat/tasks/css_rb.html",
45
48
  "doc/files/lib/asset_hat/tasks/js_rb.html",
46
49
  "doc/files/lib/asset_hat/tasks_rb.html",
50
+ "doc/files/lib/asset_hat/unicorn_rb.html",
47
51
  "doc/files/lib/asset_hat/vcs_rb.html",
48
52
  "doc/files/lib/asset_hat/version_rb.html",
53
+ "doc/files/lib/asset_hat_helper_rb.html",
49
54
  "doc/files/lib/asset_hat_rb.html",
55
+ "doc/files/lib/tasks/asset_hat_rake.html",
50
56
  "doc/fr_class_index.html",
51
57
  "doc/fr_file_index.html",
52
58
  "doc/fr_method_index.html",
@@ -55,13 +61,19 @@ Gem::Specification.new do |s|
55
61
  "lib/asset_hat.rb",
56
62
  "lib/asset_hat/capistrano.rb",
57
63
  "lib/asset_hat/css.rb",
64
+ "lib/asset_hat/initializers/action_view.rb",
65
+ "lib/asset_hat/initializers/cache_last_commit_ids.rb",
58
66
  "lib/asset_hat/js.rb",
59
67
  "lib/asset_hat/js/vendors.rb",
68
+ "lib/asset_hat/railtie.rb",
60
69
  "lib/asset_hat/tasks.rb",
61
70
  "lib/asset_hat/tasks/css.rb",
62
71
  "lib/asset_hat/tasks/js.rb",
72
+ "lib/asset_hat/unicorn.rb",
63
73
  "lib/asset_hat/vcs.rb",
64
74
  "lib/asset_hat/version.rb",
75
+ "lib/asset_hat_helper.rb",
76
+ "lib/tasks/asset_hat.rake",
65
77
  "public/javascripts/bundles/js-bundle-1.min.js",
66
78
  "public/javascripts/bundles/js-bundle-2.min.js",
67
79
  "public/javascripts/bundles/js-bundle-3.min.js",
@@ -90,14 +102,13 @@ Gem::Specification.new do |s|
90
102
  "public/stylesheets/css-file-3-2.css",
91
103
  "public/stylesheets/css-file-3-3.css",
92
104
  "rails/init.rb",
93
- "tasks/asset_hat.rake",
94
105
  "test/asset_hat_helper_test.rb",
95
106
  "test/asset_hat_test.rb",
96
107
  "test/test_helper.rb"
97
108
  ]
98
109
  s.homepage = %q{http://mintdigital.github.com/asset_hat}
99
110
  s.require_paths = ["lib"]
100
- s.rubygems_version = %q{1.5.2}
111
+ s.rubygems_version = %q{1.4.2}
101
112
  s.summary = %q{Your assets are covered.}
102
113
  s.test_files = [
103
114
  "test/asset_hat_helper_test.rb",
@@ -109,6 +120,23 @@ Gem::Specification.new do |s|
109
120
  s.specification_version = 3
110
121
 
111
122
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
123
+ s.add_runtime_dependency(%q<asset_hat>, [">= 0"])
124
+ s.add_development_dependency(%q<flexmock>, ["~> 0.8.6"])
125
+ s.add_development_dependency(%q<hanna>, ["~> 0.1.12"])
126
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
127
+ s.add_development_dependency(%q<shoulda>, ["~> 2.10.2"])
128
+ s.add_development_dependency(%q<flexmock>, ["~> 0.8.6"])
129
+ s.add_development_dependency(%q<hanna>, ["~> 0.1.12"])
130
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
131
+ s.add_development_dependency(%q<shoulda>, ["~> 2.10.2"])
132
+ s.add_development_dependency(%q<flexmock>, ["~> 0.8.6"])
133
+ s.add_development_dependency(%q<hanna>, ["~> 0.1.12"])
134
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
135
+ s.add_development_dependency(%q<shoulda>, ["~> 2.10.2"])
136
+ s.add_development_dependency(%q<flexmock>, ["~> 0.8.6"])
137
+ s.add_development_dependency(%q<hanna>, ["~> 0.1.12"])
138
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
139
+ s.add_development_dependency(%q<shoulda>, ["~> 2.10.2"])
112
140
  s.add_development_dependency(%q<flexmock>, ["~> 0.8.6"])
113
141
  s.add_development_dependency(%q<hanna>, ["~> 0.1.12"])
114
142
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
@@ -116,6 +144,23 @@ Gem::Specification.new do |s|
116
144
  s.add_runtime_dependency(%q<cssmin>, ["~> 1.0.2"])
117
145
  s.add_runtime_dependency(%q<jsmin>, ["~> 1.0.1"])
118
146
  else
147
+ s.add_dependency(%q<asset_hat>, [">= 0"])
148
+ s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
149
+ s.add_dependency(%q<hanna>, ["~> 0.1.12"])
150
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
151
+ s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
152
+ s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
153
+ s.add_dependency(%q<hanna>, ["~> 0.1.12"])
154
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
155
+ s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
156
+ s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
157
+ s.add_dependency(%q<hanna>, ["~> 0.1.12"])
158
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
159
+ s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
160
+ s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
161
+ s.add_dependency(%q<hanna>, ["~> 0.1.12"])
162
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
163
+ s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
119
164
  s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
120
165
  s.add_dependency(%q<hanna>, ["~> 0.1.12"])
121
166
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
@@ -124,6 +169,23 @@ Gem::Specification.new do |s|
124
169
  s.add_dependency(%q<jsmin>, ["~> 1.0.1"])
125
170
  end
126
171
  else
172
+ s.add_dependency(%q<asset_hat>, [">= 0"])
173
+ s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
174
+ s.add_dependency(%q<hanna>, ["~> 0.1.12"])
175
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
176
+ s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
177
+ s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
178
+ s.add_dependency(%q<hanna>, ["~> 0.1.12"])
179
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
180
+ s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
181
+ s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
182
+ s.add_dependency(%q<hanna>, ["~> 0.1.12"])
183
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
184
+ s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
185
+ s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
186
+ s.add_dependency(%q<hanna>, ["~> 0.1.12"])
187
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
188
+ s.add_dependency(%q<shoulda>, ["~> 2.10.2"])
127
189
  s.add_dependency(%q<flexmock>, ["~> 0.8.6"])
128
190
  s.add_dependency(%q<hanna>, ["~> 0.1.12"])
129
191
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])