|
1 |
| -require 'ubygems' |
2 |
| -require 'pp' |
3 | 1 | require 'rake'
|
4 | 2 |
|
5 |
| -def info(s) |
6 |
| - { |
7 |
| - :author => "Sam Roberts", |
8 |
| - |
9 |
| - :homepage => "http://vpim.rubyforge.org", |
10 |
| - :rubyforge_project => "vpim", |
11 |
| - }.each do |k,v| |
12 |
| - s.send(k.to_s+"=", v) |
13 |
| - end |
14 |
| -end |
15 |
| - |
16 | 3 | spec_vpim = Gem::Specification.new do |s|
|
17 |
| - info(s) |
| 4 | + s.author = "Sam Roberts" |
| 5 | + |
| 6 | + s.homepage = "http://vpim.rubyforge.org" |
| 7 | + s.rubyforge_project = "vpim" |
18 | 8 | s.name = "vpim"
|
19 | 9 | s.version = `ruby stamp.rb`
|
20 | 10 | s.summary = "iCalendar and vCard support for ruby"
|
@@ -44,31 +34,3 @@ This is a pure-ruby library for decoding and encoding vCard and iCalendar data
|
44 | 34 | # s.add_dependency("plist")
|
45 | 35 | # s.autorequire = "vpim"
|
46 | 36 | end
|
47 |
| - |
48 |
| -#pp [spec_vpim, spec_vpim.instance_variables] |
49 |
| - |
50 |
| -spec_vpim_icalendar = Gem::Specification.new do |s| |
51 |
| - info(s) |
52 |
| - s.name = "vpim_icalendar" |
53 |
| - s.version = "1.1" |
54 |
| - s.summary = "Virtual gem depending on vPim's iCalendar support for ruby" |
55 |
| - s.description = <<'---' |
56 |
| -This is a virtual gem, it exists to depend on vPim, which provides iCalendar |
57 |
| -support for ruby. You can install vPim directly. |
58 |
| ---- |
59 |
| - s.add_dependency("vpim") |
60 |
| -end |
61 |
| - |
62 |
| -#require 'hoe' |
63 |
| -# |
64 |
| -#Hoe.new(spec_vpim.name, spec_vpim.version) do |p| |
65 |
| -# p.rubyforge_name = "vpim" |
66 |
| -# p.remote_rdoc_dir = '' # Release to root |
67 |
| -#end |
68 |
| -# |
69 |
| - |
70 |
| -if $0==__FILE__ |
71 |
| - Gem::Builder.new(spec_vpim).build |
72 |
| - Gem::Builder.new(spec_vpim_icalendar).build |
73 |
| -end |
74 |
| - |
0 commit comments