public
Rubygem
Description: Library to add Proc#call_with_locals
Clone URL: git://github.com/kballard/call_with_locals.git
Search Repo:
call_with_locals / Rakefile
100644 22 lines (17 sloc) 0.489 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'rubygems'
require 'rake'
require 'rake/gempackagetask'
require 'spec'
require 'spec/rake/spectask'
 
spec = eval(File.read("call_with_locals.gemspec"), binding, "call_with_locals.gemspec")
 
gemtask = Rake::GemPackageTask.new(spec) do |pkg|
  pkg.need_tar = true
end
 
Spec::Rake::SpecTask.new do |t|
  t.warning = true
  t.spec_opts = ["-c"]
end
 
desc 'Install call_with_locals'
task :install_gem => :gem do
  exec "gem", "install", "#{gemtask.package_dir}/#{gemtask.gem_file}"
end