public
Description: A Ruby wrapper around the Extended Environments Markup Language
Homepage: http://github.com/Floppy/eeml-ruby
Clone URL: git://github.com/Floppy/eeml-ruby.git
 
Floppy (author)
Sun May 17 12:05:27 -0700 2009
commit  5510ce619d983bf241232cc3ce1e87b25777882a
tree    2d1f058376a53dc55971261b9057af87fc512e67
parent  d1d09bae891fd94236395d31ab746569534d1fb4
eeml-ruby / Rakefile
100644 33 lines (29 sloc) 0.959 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
require 'rake'
require 'spec'
require 'spec/rake/spectask'
require 'rake/rdoctask'
require 'rubygems/specification'
require 'rake/gempackagetask'
 
task :default => [:spec]
 
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.rcov = true
  t.rcov_opts = ['--exclude', 'spec']
end
 
Rake::RDocTask.new { |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title = "EEML-Ruby - RDoc documentation"
  rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
  rdoc.options << '--charset' << 'utf-8'
  rdoc.rdoc_files.include('README', 'COPYING')
  rdoc.rdoc_files.include('lib/**/*.rb')
}
 
# Gem build task - load gemspec from file
gemspec = File.read('eeml-ruby.gemspec')
spec = nil
# Eval gemspec in SAFE=3 mode to emulate github build environment
Thread.new { spec = eval("$SAFE = 3\n#{gemspec}") }.join
Rake::GemPackageTask.new(spec) do |p|
  p.gem_spec = spec
end