Rakefile in sinatra-scopes-0.1.0 vs Rakefile in sinatra-scopes-1.0.0
- old
+ new
@@ -1,5 +1,7 @@
+task :default => :examples
+
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "sinatra-scopes"
s.homepage = "http://github.com/quackingduck/sinatra-scopes"
@@ -14,12 +16,12 @@
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Install jeweler to build gem"
end
-task :default => [:test]
+task(:examples) { ruby "examples.rb" }
+task :test => :examples
-task :examples do
- ruby "examples.rb"
-end
-
-task :test => :examples
+task :tag_version do
+ version = File.read('VERSION')
+ system "git tag -a v#{version} -m v#{version}"
+end
\ No newline at end of file