root/myexperiment-rest/Rakefile @ 132

Revision 132, 1.3 KB (checked in by kostas.karasavvas@…, 3 years ago)

Updated to comply new rake 's version tasks (Gem/RDoc)

Line 
1#
2# To change this template, choose Tools | Templates
3# and open the template in the editor.
4 
5
6require 'rubygems'
7require 'rake'
8require 'rake/clean'
9require 'rake/testtask'
10require 'rubygems/package_task'
11require 'rdoc/task'
12
13spec = Gem::Specification.new do |s|
14  s.name = 'myexperiment-rest'
15  s.version = '0.2.7'
16  s.extra_rdoc_files = ['README', 'LICENSE', 'CHANGES']
17  s.summary = 'This is a simple library to access data on myExperiment via its REST API. Currently supports a subset of the workflow information available.'
18  s.description = s.summary
19  s.author = 'Konstantinos Karasavvas'
20  s.email = 'kostas.karasavvas@nbic.nl'
21  s.executables = ['get_workflow_data.rb']
22  s.files = %w(LICENSE README CHANGES Rakefile) + Dir.glob("{bin,lib,doc,spec}/**/*")
23  s.require_path = "lib"
24  s.bindir = "bin"
25  s.add_dependency 'rest-client', '>= 1.6.3'
26  s.add_dependency 'libxml-ruby', '>= 2.0.5'
27end
28
29Gem::PackageTask.new(spec) do |p|
30  p.gem_spec = spec
31  p.need_tar = true
32  p.need_zip = true
33end
34
35RDoc::Task.new do |rdoc|
36  files =['README', 'LICENSE', 'CHANGES', 'lib/**/*.rb']
37  rdoc.rdoc_files.add(files)
38  rdoc.main = "README" # page to start on
39  rdoc.title = "myexperiment-rest Docs"
40  rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
41  rdoc.options << '--line-numbers'
42end
43
44Rake::TestTask.new do |t|
45  t.test_files = FileList['test/**/*.rb']
46end
Note: See TracBrowser for help on using the browser.