mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Added dependencies to jeweller
This commit is contained in:
parent
6fb90e85dd
commit
1fba9eb8d8
1 changed files with 26 additions and 23 deletions
49
Rakefile
49
Rakefile
|
@ -3,16 +3,19 @@ require 'rake'
|
|||
require 'jeweler'
|
||||
|
||||
Jeweler::Tasks.new do |s|
|
||||
s.name = "rest-client-next"
|
||||
s.description = "A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete."
|
||||
s.summary = "Simple HTTP and REST client for Ruby, inspired by microframework syntax for specifying actions."
|
||||
s.author = "Adam Wiggins"
|
||||
s.email = "rest.client@librelist.com"
|
||||
s.homepage = "http://github.com/archiloque/rest-client"
|
||||
s.rubyforge_project = "rest-client"
|
||||
s.has_rdoc = true
|
||||
s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
|
||||
s.executables = %w(restclient)
|
||||
s.name = "rest-client-next"
|
||||
s.description = "A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete."
|
||||
s.summary = "Simple HTTP and REST client for Ruby, inspired by microframework syntax for specifying actions."
|
||||
s.author = "Adam Wiggins"
|
||||
s.email = "rest.client@librelist.com"
|
||||
s.homepage = "http://github.com/archiloque/rest-client"
|
||||
s.rubyforge_project = "rest-client"
|
||||
s.has_rdoc = true
|
||||
s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
|
||||
s.executables = %w(restclient)
|
||||
s.add_dependency("mime-types", ">= 1.16")
|
||||
s.add_development_dependency("webmock", ">= 0.9.1")
|
||||
s.add_development_dependency("rspec")
|
||||
end
|
||||
|
||||
Jeweler::RubyforgeTasks.new
|
||||
|
@ -23,21 +26,21 @@ require 'spec/rake/spectask'
|
|||
|
||||
desc "Run all specs"
|
||||
Spec::Rake::SpecTask.new('spec') do |t|
|
||||
t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
|
||||
t.spec_files = FileList['spec/*_spec.rb']
|
||||
t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
|
||||
t.spec_files = FileList['spec/*_spec.rb']
|
||||
end
|
||||
|
||||
desc "Print specdocs"
|
||||
Spec::Rake::SpecTask.new(:doc) do |t|
|
||||
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
||||
t.spec_files = FileList['spec/*_spec.rb']
|
||||
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
||||
t.spec_files = FileList['spec/*_spec.rb']
|
||||
end
|
||||
|
||||
desc "Run all examples with RCov"
|
||||
Spec::Rake::SpecTask.new('rcov') do |t|
|
||||
t.spec_files = FileList['spec/*_spec.rb']
|
||||
t.rcov = true
|
||||
t.rcov_opts = ['--exclude', 'examples']
|
||||
t.spec_files = FileList['spec/*_spec.rb']
|
||||
t.rcov = true
|
||||
t.rcov_opts = ['--exclude', 'examples']
|
||||
end
|
||||
|
||||
task :default => :spec
|
||||
|
@ -47,11 +50,11 @@ task :default => :spec
|
|||
require 'rake/rdoctask'
|
||||
|
||||
Rake::RDocTask.new do |t|
|
||||
t.rdoc_dir = 'rdoc'
|
||||
t.title = "rest-client, fetch RESTful resources effortlessly"
|
||||
t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
|
||||
t.options << '--charset' << 'utf-8'
|
||||
t.rdoc_files.include('README.rdoc')
|
||||
t.rdoc_files.include('lib/*.rb')
|
||||
t.rdoc_dir = 'rdoc'
|
||||
t.title = "rest-client, fetch RESTful resources effortlessly"
|
||||
t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
|
||||
t.options << '--charset' << 'utf-8'
|
||||
t.rdoc_files.include('README.rdoc')
|
||||
t.rdoc_files.include('lib/*.rb')
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue