forked from warhammerkid/rocket-amf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
54 lines (43 loc) · 1.47 KB
/
Rakefile
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
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
desc 'Default: run the specs.'
task :default => :spec
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', 'spec/spec.opts']
end
desc 'Generate documentation for the RocketAMF plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'RocketAMF'
rdoc.options << '--line-numbers' << '--main' << 'README.rdoc'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
spec = Gem::Specification.new do |s|
s.name = 'RocketAMF'
s.version = '0.0.7'
s.summary = 'Fast AMF serializer/deserializer and request/response wrappers to simplify remoting implementation'
s.files = FileList['README.rdoc', 'Rakefile', 'lib/**/*.rb', 'spec/**/*.rb', 'spec/**/*.bin', 'spec/spec.opts']
s.require_path = 'lib'
s.test_files = Dir[*['spec/**/*_spec.rb']]
s.has_rdoc = true
s.extra_rdoc_files = ['README.rdoc']
s.rdoc_options = ['--line-numbers', '--main', 'README.rdoc']
s.authors = ['Tony Hillerson', 'Stephen Augenstein']
s.email = '[email protected]'
s.homepage = 'http://github.com/warhammerkid/rocket-amf'
s.platform = Gem::Platform::RUBY
end
Rake::GemPackageTask.new spec do |pkg|
pkg.need_tar = true
pkg.need_zip = true
end
desc 'Generate a gemspec file'
task :gemspec do
File.open("#{spec.name}.gemspec", 'w') do |f|
f.write spec.to_ruby
end
end