Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 73 lines (58 sloc) 1.681 kb
e86f20e @rgrove Initial commit
authored
1 require 'rubygems'
adf4415 @rgrove Add rake gemspec task to autogenerate an up to date larch.gemspec file
authored
2 require 'rake/clean'
e86f20e @rgrove Initial commit
authored
3 require 'rake/gempackagetask'
4 require 'rake/rdoctask'
5
adf4415 @rgrove Add rake gemspec task to autogenerate an up to date larch.gemspec file
authored
6 $:.unshift(File.join(File.dirname(File.expand_path(__FILE__)), 'lib'))
7 $:.uniq!
8
9 require 'larch/version'
10
e86f20e @rgrove Initial commit
authored
11 gemspec = nil
12
13 File.open(File.join(File.dirname(__FILE__), 'larch.gemspec')) do |f|
14 eval("gemspec = #{f.read}")
15 end
16
17 Rake::GemPackageTask.new(gemspec) do |p|
18 p.need_tar = false
19 p.need_zip = false
20 end
21
22 Rake::RDocTask.new do |rd|
23 rd.main = 'README.rdoc'
24 rd.title = 'Larch Documentation'
25 rd.rdoc_dir = 'doc'
26
69410dd @rgrove Add README, docs, and bump version to 1.0.0.
authored
27 rd.rdoc_files.include('README.rdoc', 'lib/**/*.rb')
e86f20e @rgrove Initial commit
authored
28
29 rd.options << '--line-numbers' << '--inline-source'
30 end
adf4415 @rgrove Add rake gemspec task to autogenerate an up to date larch.gemspec file
authored
31
32 desc 'generate an updated gemspec'
33 task :gemspec do
34 gemspec = <<-OUT
6386d10 @rgrove Add --dry-run option. Closes #2
authored
35 # Don't modify larch.gemspec directly! This file is auto-generated by a Rake
36 # task.
37
adf4415 @rgrove Add rake gemspec task to autogenerate an up to date larch.gemspec file
authored
38 Gem::Specification.new do |s|
39 s.name = 'larch'
40 s.summary = 'Larch syncs messages from one IMAP server to another. Awesomely.'
41 s.version = "#{Larch::APP_VERSION}"
42 s.author = "#{Larch::APP_AUTHOR}"
43 s.email = "#{Larch::APP_EMAIL}"
44 s.homepage = "#{Larch::APP_URL}"
45 s.platform = Gem::Platform::RUBY
46
47 s.executables = ['larch']
48 s.require_path = 'lib'
49 s.required_ruby_version = '>= 1.8.6'
50
51 s.add_dependency('highline', '~> 1.5.0')
52 s.add_dependency('trollop', '~> 1.13')
53
54 s.files = [
55 'HISTORY',
56 'LICENSE',
57 'README.rdoc',
58 'bin/larch',
59 'lib/larch.rb',
60 'lib/larch/errors.rb',
61 'lib/larch/imap.rb',
6386d10 @rgrove Add --dry-run option. Closes #2
authored
62 'lib/larch/imap/mailbox.rb',
adf4415 @rgrove Add rake gemspec task to autogenerate an up to date larch.gemspec file
authored
63 'lib/larch/logger.rb',
64 'lib/larch/version.rb'
65 ]
66 end
67 OUT
68
69 File.open(File.join(File.dirname(__FILE__), 'larch.gemspec'), 'w') do |file|
70 file.puts(gemspec)
71 end
72 end
Something went wrong with that request. Please try again.