forked from mintdigital/asset_hat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
51 lines (45 loc) · 1.75 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require 'rake/testtask'
# require 'rake/rdoctask'
require 'hanna/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = 'asset_hat'
gemspec.summary = 'Your assets are covered.'
gemspec.description = %{
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.
}.strip.gsub(/\s+/, ' ')
gemspec.homepage = 'http://mintdigital.github.com/asset_hat'
gemspec.authors = ['Ron DeVera', 'Mint Digital']
gemspec.email = '[email protected]'
gemspec.add_development_dependency 'flexmock', '~> 0.8.6'
gemspec.add_development_dependency 'hanna', '~> 0.1.12'
gemspec.add_development_dependency 'jeweler', '~> 1.5.1'
gemspec.add_development_dependency 'shoulda', '~> 2.10.2'
gemspec.add_runtime_dependency 'cssmin', '~> 1.0.2'
gemspec.add_runtime_dependency 'jsmin', '~> 1.0.1'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts 'Jeweler is not available. Install it with: `gem install jeweler`'
end
Rake::TestTask.new(:test) do |t|
t.libs << 'lib' << 'test'
t.pattern = 'test/*_test.rb'
t.verbose = true
end
task :default => :test
desc 'Generate documentation'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'AssetHat'
rdoc.main = 'README.rdoc'
rdoc.options += %w[--line-numbers --inline-source]
%w[README.rdoc HISTORY LICENSE app/* lib/*].each do |path|
rdoc.rdoc_files.include(path)
end
end