adamwiggins / rest-client
- Source
- Commits
- Network (69)
- Issues (6)
- Downloads (5)
- Wiki (1)
- Graphs
-
Tree:
c637668
rest-client / Rakefile
| 71b61e85 » | adamwiggins | 2008-03-07 | 1 | require 'rake' | |
| 6e542547 » | adamwiggins | 2009-06-20 | 2 | ||
| 3 | require 'jeweler' | ||||
| 4 | |||||
| 5 | Jeweler::Tasks.new do |s| | ||||
| 6 | s.name = "rest-client" | ||||
| 7 | s.description = "A simple REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete." | ||||
| 8 | s.summary = "Simple REST client for Ruby, inspired by microframework syntax for specifying actions." | ||||
| 9 | s.author = "Adam Wiggins" | ||||
| 10 | s.email = "adam@heroku.com" | ||||
| 11 | s.homepage = "http://rest-client.heroku.com/" | ||||
| 12 | s.rubyforge_project = "rest-client" | ||||
| 13 | s.has_rdoc = true | ||||
| 14 | s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"] | ||||
| 15 | s.executables = %w(restclient) | ||||
| 16 | end | ||||
| 17 | |||||
| 18 | Jeweler::RubyforgeTasks.new | ||||
| 19 | |||||
| 20 | ############################ | ||||
| 21 | |||||
| 71b61e85 » | adamwiggins | 2008-03-07 | 22 | require 'spec/rake/spectask' | |
| 23 | |||||
| 24 | desc "Run all specs" | ||||
| 25 | Spec::Rake::SpecTask.new('spec') do |t| | ||||
| b90383bd » | pedro | 2008-06-11 | 26 | t.spec_opts = ['--colour --format progress --loadby mtime --reverse'] | |
| 71b61e85 » | adamwiggins | 2008-03-07 | 27 | t.spec_files = FileList['spec/*_spec.rb'] | |
| 28 | end | ||||
| 29 | |||||
| 30 | desc "Print specdocs" | ||||
| 31 | Spec::Rake::SpecTask.new(:doc) do |t| | ||||
| 32 | t.spec_opts = ["--format", "specdoc", "--dry-run"] | ||||
| 33 | t.spec_files = FileList['spec/*_spec.rb'] | ||||
| 34 | end | ||||
| 35 | |||||
| 36 | desc "Run all examples with RCov" | ||||
| 37 | Spec::Rake::SpecTask.new('rcov') do |t| | ||||
| 38 | t.spec_files = FileList['spec/*_spec.rb'] | ||||
| 39 | t.rcov = true | ||||
| 40 | t.rcov_opts = ['--exclude', 'examples'] | ||||
| 41 | end | ||||
| 42 | |||||
| 43 | task :default => :spec | ||||
| ba86257a » | adamwiggins | 2008-03-07 | 44 | ||
| 6e542547 » | adamwiggins | 2009-06-20 | 45 | ############################ | |
| ba86257a » | adamwiggins | 2008-03-07 | 46 | ||
| 47 | require 'rake/rdoctask' | ||||
| 48 | |||||
| 15f58e67 » | adamwiggins | 2008-03-09 | 49 | Rake::RDocTask.new do |t| | |
| 50 | t.rdoc_dir = 'rdoc' | ||||
| 51 | t.title = "rest-client, fetch RESTful resources effortlessly" | ||||
| 52 | t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object' | ||||
| 53 | t.options << '--charset' << 'utf-8' | ||||
| 74cd64d7 » | adamwiggins | 2009-01-24 | 54 | t.rdoc_files.include('README.rdoc') | |
| 55 | t.rdoc_files.include('lib/restclient.rb') | ||||
| 56 | t.rdoc_files.include('lib/restclient/*.rb') | ||||
| 15f58e67 » | adamwiggins | 2008-03-09 | 57 | end | |
| 58 | |||||
