-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
66 lines (56 loc) · 2.14 KB
/
Copy pathRakefile
File metadata and controls
66 lines (56 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# encoding: utf-8
require 'rubygems'
require 'rake'
require 'jeweler'
require './lib/tdp/version.rb'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
gem.name = "tdp"
gem.version = TDP::VERSION
gem.homepage = "http://github.com/cthielecke/tdp"
gem.license = "MIT"
gem.summary = "Templated data provisioning or the poor man's Q-Up"
gem.description = %Q{This tool is a small DSL designed to glue together arbitrary templates and configurations to provide data specifications in a versatile and easy way.
As there are no limitations on what to specify with a template, neither will the usage of this tool be limited to specific domains of use.
It was initially intended to generate a host of XML test data specifications in a reproducible way.
For automation purposes the use of Rake or some similar tool is mandatory.}
gem.email = "carsten.thielecke@ieee.org"
gem.authors = ["Carsten Thielecke"]
gem.platform = Gem::Platform::RUBY
gem.required_ruby_version = '>=1.9'
gem.files = FileList[
'[A-Z]*',
'bin/*',
'lib/**/*',
'test/**/*',
].to_a
gem.executables = [ 'tdp' ]
gem.test_files = Dir["test/test*.rb"]
gem.has_rdoc = true
# Include your dependencies below. Runtime dependencies are required when using your gem,
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
gem.add_development_dependency "jeweler", "~> 2.0.1"
gem.add_development_dependency "simplecov", ">= 0"
gem.add_runtime_dependency "erubis", ">= 2.7"
end
Jeweler::RubygemsDotOrgTasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
desc "Code coverage detail"
task :simplecov do
ENV['COVERAGE'] = "true"
Rake::Task['test'].execute
end
task :default => :test
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : TDP::VERSION
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "tdp #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end