Sha256: ef157065b3f8a3d04680de5ba6de0b24789529ea480f69af1e9a25b2695d486d
Contents?: true
Size: 1.89 KB
Versions: 3
Compression:
Stored size: 1.89 KB
Contents
require 'rubygems' require 'rake' require 'lib/resourceful' begin require 'echoe' Echoe.new('resourceful', Resourceful::VERSION) do |p| p.description = "An HTTP library for Ruby that takes advantage of everything HTTP has to offer." p.url = "http://github.com/paul/resourceful" p.author = "Paul Sadauskas" p.email = "psadauskas@gmail.com" p.ignore_pattern = ["pkg/*", "tmp/*"] p.dependencies = ['addressable', 'httpauth', 'rspec', 'facets', 'andand'] p.development_dependencies = ['thin', 'yard', 'sinatra'] end rescue LoadError => e puts "install 'echoe' gem to be able to build the gem" end require 'spec/rake/spectask' desc 'Run all specs' Spec::Rake::SpecTask.new(:spec) do |t| t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts') t.libs << 'lib' t.spec_files = FileList['spec/acceptance/*_spec.rb'] end desc 'Run the specs for the server' Spec::Rake::SpecTask.new('spec:server') do |t| t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts') t.libs << 'lib' t.spec_files = FileList['spec/simple_sinatra_server_spec.rb'] end begin require 'spec/simple_sinatra_server' desc "Run the sinatra echo server, with loggin" task :server do Sinatra::Default.set( :run => true, :logging => true ) end rescue LoadError => e puts "Install 'sinatra' gem to run the server" end desc 'Default: Run Specs' task :default => :spec desc 'Run all tests' task :test => :spec begin require 'yard' desc "Generate Yardoc" YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb', 'README.markdown'] end rescue LoadError => e puts "Install 'yard' gem to generate docs" end desc "Update rubyforge documentation" task :update_docs => :yardoc do puts %x{rsync -aPz doc/* psadauskas@resourceful.rubyforge.org:/var/www/gforge-projects/resourceful/} end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
paul-resourceful-0.5.0 | Rakefile |
resourceful-0.5.0 | Rakefile |
resourceful-0.5.1 | Rakefile |