summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-11-22 22:21:06 +0900
committerRandy Morgan <[email protected]>2011-11-22 22:21:06 +0900
commit1e5388ce173913cb7643505eb38efe12628cf378 (patch)
tree5bdfd83975627a455fb5ab0efa66956184cb7f90 /Rakefile
parentc5529241dc5b4062f145c9afa95078d3113c1807 (diff)
downloadcaxlsx-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--Rakefile27
1 files changed, 19 insertions, 8 deletions
diff --git a/Rakefile b/Rakefile
index 57d0e0a6..0d2a9da8 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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