Sha256: a9c122ce0b536541c08f00fd624b2c2a46695cf79c08dad57c6f42f7b7c58d01
Contents?: true
Size: 1.87 KB
Versions: 18
Compression:
Stored size: 1.87 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'] p.development_dependencies = ['thin', 'yard', 'sinatra', 'rspec'] 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
18 entries across 18 versions & 3 rubygems