root/myexperiment-rest/Rakefile @ 86

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

v0.2.2 -- improved comments

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/gempackagetask'
10require 'rake/rdoctask'
11require 'rake/testtask'
12
13spec = Gem::Specification.new do |s|
14  s.name = 'myexperiment-rest'
15  s.version = '0.2.2'
16  s.has_rdoc = true
17  s.extra_rdoc_files = ['README', 'LICENSE']
18  s.summary = 'This is a simple library to access data on myExperiment via its REST API.'
19  s.description = s.summary
20  s.author = 'Konstantinos Karasavvas'
21  s.email = 'kostas.karasavvas@nbic.nl'
22  s.executables = ['get_workflow_data.rb']
23  s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,doc,spec}/**/*")
24  s.require_path = "lib"
25  s.bindir = "bin"
26end
27
28Rake::GemPackageTask.new(spec) do |p|
29  p.gem_spec = spec
30  p.need_tar = true
31  p.need_zip = true
32end
33
34Rake::RDocTask.new do |rdoc|
35  files =['README', 'LICENSE', 'lib/**/*.rb']
36  rdoc.rdoc_files.add(files)
37  rdoc.main = "README" # page to start on
38  rdoc.title = "myexperiment-rest Docs"
39  rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
40  rdoc.options << '--line-numbers'
41end
42
43Rake::TestTask.new do |t|
44  t.test_files = FileList['test/**/*.rb']
45end
Note: See TracBrowser for help on using the browser.