-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
50 lines (44 loc) · 1.37 KB
/
Rakefile
File metadata and controls
50 lines (44 loc) · 1.37 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
require 'rubygems'
require 'rake'
require 'spec/rake/spectask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rubyflashbake"
gem.summary = "A Ruby project inspired by Thomas Gideon's python Flashbake project."
gem.email = "cory.ondrejka@gmail.com"
gem.homepage = "http://github.com/cory/rubyflashbake"
gem.authors = ["Cory Ondrejka"]
gem.homepage = "http://cory.github.com"
gem.platform = Gem::Platform::RUBY
gem.required_ruby_version = '>=1.8'
gem.files = Dir['**/**']
gem.executables = [ 'rubyflashbake' ]
gem.test_files = Dir["spec/rspec_suite.rb"]
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "rubyflashbake #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc "Run all specs"
dir = File.dirname(__FILE__)
Spec::Rake::SpecTask.new('specs') do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
unless ENV['NO_RCOV']
t.rcov = true
t.rcov_dir = 'coverage'
t.rcov_opts = ['--text-report', '--exclude', "spec/"]
end
end