public
Description: New Rfc 2445 (iCalendar) gem for Ruby
Homepage: http://rical.rubyforge.org/
Clone URL: git://github.com/rubyredrick/ri_cal.git
Click here to lend your support to: ri_cal and make a donation at www.pledgie.com !
rubyredrick (author)
Sun Sep 27 20:23:53 -0700 2009
commit  182fb58fa4dbe908238774184eb4b8cae0221864
tree    2276677b150710ac8a7afd9b12776263f96b668f
parent  e81f8f47e45fe2f48b32a4bb95c4cfee829f1c4e
ri_cal / Rakefile
100644 54 lines (44 sloc) 1.573 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
45
46
47
48
49
50
51
52
53
54
#- ©2009 Rick DeNatale
#- All rights reserved. Refer to the file README.txt for the license
#
# %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
#require File.dirname(__FILE__) + '/lib/ri_cal'
 
require 'rubygems'
gem 'hoe', '>=2.1.0'
require 'hoe'
require 'fileutils'
require './lib/ri_cal'
 
Hoe.plugin :newgem
Hoe.plugin :website
# Hoe.plugin :cucumberfeatures
 
# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
$hoe = Hoe.spec('ri_cal') do |p|
  p.developer('author=Rick DeNatale', 'rick.denatale@gmail.com')
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
  p.rubyforge_name = 'ri-cal'
  p.readme_file = "README.txt"
  p.extra_dev_deps = [
    ['newgem', ">= #{::Newgem::VERSION}"],
    ['ruby-prof', ">= 0"]
  ]
 
  p.clean_globs |= %w[**/.DS_Store tmp *.log]
  path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
  p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
  p.rsync_args = '-av --delete --ignore-errors'
end
 
require 'newgem/tasks' # load /tasks/*.rake
 
# It looks like newgem is already defining these
# Rake::TaskManager.class_eval do
# def remove_task(task_name)
# @tasks.delete(task_name.to_s)
# end
# end
#
# def remove_task(task_name)
# Rake.application.remove_task(task_name)
# end
 
# Override hoe's standard spec task
remove_task :spec
 
Dir['tasks/**/*.rake'].each { |t| load t }
 
task :default => [:"spec:with_tzinfo_gem", :"spec:with_active_support"]