Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3302705f38
Fetching contributors…

Cannot retrieve contributors at this time

file 46 lines (38 sloc) 1.25 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
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'spec/rake/spectask'

spec = Gem::Specification.new do |s|
  s.name = 'rack-amf'
  s.version = '2.0.0'
  s.summary = 'AMF gateway packaged as a rack middleware'
  s.authors = ['Stephen Augenstein']
  s.email = 'perl.programmer@gmail.com'
  s.homepage = 'http://github.com/warhammerkid/rack-amf'

  s.platform = Gem::Platform::RUBY
  s.rdoc_options << '--line-numbers' << '--main' << 'README.rdoc'
  s.rdoc_options += FileList['README.rdoc']
  s.files = FileList['README.rdoc', 'Rakefile', 'lib/**/*.rb', 'spec/**/*.{rb,opts}']
  s.test_files = Dir[*['spec/**/*_spec.rb']]

  s.add_dependency 'RocketAMF', '>= 0.2.0'
end

desc 'Default: Run the specs'
task :default => :spec

Rake::GemPackageTask.new(spec).define

desc "Generate documentation"
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'rack-amf'
  rdoc.options = spec.rdoc_options
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', 'spec/spec.opts']
end

desc 'Generate a gemspec file'
task :gemspec do
  File.open("#{spec.name}.gemspec", 'w') do |f|
    f.write spec.to_ruby
  end
end
Something went wrong with that request. Please try again.