public
Description: A Markup White Lister
Homepage:
Clone URL: git://github.com/hassox/whistler.git
commit  84fc6dcb078aa94b4942c2f2e570bcdf87176d65
tree    704d72abdb7085a7ac256b2541f9638437d3f204
parent  23b575740ef007cc48883b5c4e9f427156a46f9a
whistler / Rakefile
100644 44 lines (37 sloc) 1.071 kb
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
require 'rubygems'
require 'rake/gempackagetask'
 
PLUGIN = "whistler"
NAME = "whistler"
VERSION = "0.0.1"
AUTHOR = "Daniel Neighman"
EMAIL = "has.sox@gmail.com"
HOMEPAGE = "http://github.com/hassox/whistler"
SUMMARY = "Whistler == White Lister"
 
spec = Gem::Specification.new do |s|
  s.name = NAME
  s.version = VERSION
  s.platform = Gem::Platform::RUBY
  s.has_rdoc = true
  s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
  s.summary = SUMMARY
  s.description = s.summary
  s.author = AUTHOR
  s.email = EMAIL
  s.homepage = HOMEPAGE
  s.add_dependency('hpricot')
  s.require_path = 'lib'
  s.autorequire = PLUGIN
  s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
end
 
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end
 
task :install => [:package] do
  sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
end
 
namespace :jruby do
 
  desc "Run :package and install the resulting .gem with jruby"
  task :install => :package do
    sh %{#{SUDO} jruby -S gem install pkg/#{NAME}-#{Merb::VERSION}.gem --no-rdoc --no-ri}
  end
  
end