root/myexperiment-rest/trunk/Rakefile @ 172

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

Updated dependency to libxml-ruby 2.2.2

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