diff options
| author | Randy Morgan <[email protected]> | 2011-11-22 22:21:06 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2011-11-22 22:21:06 +0900 |
| commit | 1e5388ce173913cb7643505eb38efe12628cf378 (patch) | |
| tree | 5bdfd83975627a455fb5ab0efa66956184cb7f90 /Rakefile | |
| parent | c5529241dc5b4062f145c9afa95078d3113c1807 (diff) | |
| download | caxlsx-1e5388ce173913cb7643505eb38efe12628cf378.tar.gz caxlsx-1e5388ce173913cb7643505eb38efe12628cf378.zip | |
updating rake file, readme and other docs. Also moving version constant to its own file and re-enabling package serialization tests with a bit more robust error handling when the current user does not have write permissions the directory.
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 27 |
1 files changed, 19 insertions, 8 deletions
@@ -1,13 +1,24 @@ -require 'rake/testtask' +require File.expand_path(File.dirname(__FILE__) + '/lib/axlsx/version.rb') -# gems not loading? try this -#RUBYOPT="rubygems" -#export RUBYOPT +task :build do + system "gem build axlsx.gemspec" +end + +task :gendoc do + system "yardoc" +end + +task :test do + require 'rake/testtask' + Rake::TestTask.new do |t| + t.libs << 'test' + t.test_files = FileList['test/**/tc_*.rb'] + t.verbose = true + end +end -Rake::TestTask.new do |t| - t.libs << 'test' - t.test_files = FileList['test/**/tc_*.rb'] - t.verbose = true +task :release => :build do + system "gem push axlsx-#{Axlsx::VERSION}.gem" end task :default => :test
\ No newline at end of file |
