Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (46 sloc) 1.57 kb
1c0afee @wagenet Further Rails prep
authored
1 require File.join(File.dirname(__FILE__), 'init')
2
db7398f Initial import
dannycoates authored
3 require 'rake'
3f005d2 @wagenet Reorganized Generation and Added Rails Install
authored
4 require 'rake/clean'
db7398f Initial import
dannycoates authored
5 require 'rake/gempackagetask'
6 require 'rake/rdoctask'
7 require 'rake/testtask'
8 require 'spec/rake/spectask'
9
1c0afee @wagenet Further Rails prep
authored
10 load File.join(File.dirname(__FILE__), 'tasks', 'healthvault.rake')
db7398f Initial import
dannycoates authored
11
3f005d2 @wagenet Reorganized Generation and Added Rails Install
authored
12 CLOBBER.add("#{HEALTHVAULT_ROOT}/lib/health_vault/hv.log")
13 CLOBBER.add(*HealthVault::CodeGeneration::Generator::GENERATED_PATHS)
db7398f Initial import
dannycoates authored
14
1c0afee @wagenet Further Rails prep
authored
15 task :default => ['healthvault:get_things', :rdoc]
db7398f Initial import
dannycoates authored
16
17 spec = Gem::Specification.new do |s|
18 s.name = 'rubyhealthvault'
19 s.version = '0.0.1'
20 s.has_rdoc = true
21 s.extra_rdoc_files = ['README', 'LICENSE']
22 s.summary = 'Connect your Ruby code to the Microsoft HealthVault'
23 s.description = s.summary
24 s.homepage = 'http://rubyhealthvault.rubyforge.org/'
25 s.rubyforge_project = 'rubyhealthvault'
26 s.author = 'Danny Coates'
27 s.email = 'dcoates@podfitness.com'
28 # s.executables = ['your_executable_here']
91cee51 fix for bug id 20635 and added GPL to gem rake task
dannycoates authored
29 s.files = %w(GPL LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
db7398f Initial import
dannycoates authored
30 s.require_path = "lib"
31 s.bindir = "bin"
32 end
33
34 Rake::GemPackageTask.new(spec) do |p|
35 p.gem_spec = spec
36 p.need_tar = true
37 p.need_zip = true
38 end
39
40 Rake::RDocTask.new do |rdoc|
4f19f7d fix for elements with '-' characters
dannycoates authored
41 files =['README', 'LICENSE', 'lib/**/*.rb']
db7398f Initial import
dannycoates authored
42 rdoc.rdoc_files.add(files)
43 rdoc.main = "README" # page to start on
44 rdoc.title = "rubyhealthvault Docs"
45 rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
46 rdoc.options << '--line-numbers'
47 end
48
49 Rake::TestTask.new do |t|
50 t.test_files = FileList['test/**/*.rb']
51 end
52
53 Spec::Rake::SpecTask.new('testspec') do |t|
54 t.spec_files = FileList['spec/**/*.rb']
55 end
56
Something went wrong with that request. Please try again.