summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-12-10 22:29:15 -0700
committermo khan <mo@mokhan.ca>2013-12-10 22:30:22 -0700
commit296cea440ccd9fdefa050b90babbc69ee896df9b (patch)
treebb8bcd0e41452c07d6a72e19dd759f696c35cb76
parent0ca2c647c7f659eec9340023c533ee3e8a066fc0 (diff)
add rake commands to build gem and use unix epoch for version number.
-rw-r--r--Rakefile19
-rw-r--r--lib/nasty/version.rb2
2 files changed, 20 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 2995527..0d691fb 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1 +1,20 @@
require "bundler/gem_tasks"
+
+task :default => :spec
+
+task :spec do
+ system 'rspec'
+end
+
+task :clean do
+ system 'rm *.gem'
+ system 'rm -fr pkg'
+end
+
+task :build => :clean do
+ system 'gem build *.gemspec'
+end
+
+task :publish => :build do
+ system 'gem push *.gem'
+end
diff --git a/lib/nasty/version.rb b/lib/nasty/version.rb
index 0632b49..d1aeb15 100644
--- a/lib/nasty/version.rb
+++ b/lib/nasty/version.rb
@@ -1,3 +1,3 @@
module Nasty
- VERSION = "0.0.1"
+ VERSION = "0.0.#{Time.now.utc.to_i}"
end