-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathRakefile
40 lines (31 loc) · 916 Bytes
/
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
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
spec = Gem::Specification.new do |s|
s.name = 'rails3-amf'
s.version = '0.1.0'
s.summary = 'A Rails 3 plugin that provides tight rails amf integration'
s.files = FileList['README.rdoc', 'Rakefile', 'lib/**/*.rb']
s.require_path = 'lib'
s.authors = ['Stephen Augenstein']
s.email = 'perl.programmer@gmail.com'
s.homepage = 'http://github.com/warhammerkid/rails3-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