Skip to content
Browse files

Add proper version management

  • Loading branch information...
1 parent 1fbcdac commit 4333fd05a66dc35c11ff599dc325a6126b997296 @peterkeen committed May 20, 2012
Showing with 27 additions and 2 deletions.
  1. +18 −0 Rakefile
  2. +6 −2 dokuen.gemspec
  3. +3 −0 lib/dokuen/version.rb
View
18 Rakefile
@@ -0,0 +1,18 @@
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
+require "dokuen/version"
+require 'rake'
+
+def sys(cmd)
+ system(cmd) or raise "Error running #{cmd}"
+end
+
+task :build do
+ sys "gem build dokuen.gemspec"
+end
+
+task :release => :build do
+ sys "git tag -a -m 'tag version #{Dokuen::VERSION}' v#{Dokuen::VERSION}"
+ sys "git push origin master --tags"
+ sys "git push github master --tags"
+ sys "gem push dokuen-#{Dokuen::VERSION}.gem"
+end
View
8 dokuen.gemspec
@@ -1,7 +1,11 @@
+$:.push File.expand_path("../lib", __FILE__)
+
+require 'dokuen/version'
+
Gem::Specification.new do |s|
s.name = 'dokuen'
- s.version = '0.0.1'
- s.date = '2012-05-19'
+ s.version = Dokuen::VERSION
+ s.date = `date +%Y-%m-%d`
s.summary = 'A Personal Application Platform for Macs'
s.description = 'Like Heroku but Personal'
View
3 lib/dokuen/version.rb
@@ -0,0 +1,3 @@
+module Dokuen
+ VERSION = '0.0.2'
+end

0 comments on commit 4333fd0

Please sign in to comment.
Something went wrong with that request. Please try again.