Rakefile in slf4j-1.5.6.1 vs Rakefile in slf4j-1.5.6.2
- old
+ new
@@ -51,12 +51,12 @@
README.txt
History.txt
Rakefile
pom.xml
assembly.xml
-lib/slf4j.rb
lib/slf4j/base.rb
+lib/slf4j.rb
test/test_slf4j.rb
END
out.puts loader_files
out.puts jar_files
ensure
@@ -96,22 +96,17 @@
end
task :clean => :mvn_clean
task :tag do
tag = "slf4j-#{SLF4J::VERSION}"
- svn_base = 'svn://localhost/subversion.repo/src/gems'
- tag_url = "#{svn_base}/tags/#{tag}"
-
dname = File.dirname( __FILE__ )
dname = '.' if Dir.getwd == dname
- stat = `svn status #{dname}`
- stat.strip! if stat
- if ( stat && stat.length > 0 )
- $stderr.puts( "Resolve the following before tagging (svn status):" )
- $stderr.puts( stat )
- else
- sh( "svn cp -m 'tag [#{tag}]' #{dname} #{tag_url}" )
+ sh( "git status --only #{dname}" ) do |ok,res|
+ if ok #changes present
+ raise "Commit these changes before tagging."
+ end
end
+ sh %{git tag -s -f -m "tag [#{tag}]" "#{tag}"}
end
hoe = Hoe.new( "slf4j", SLF4J::VERSION ) do |p|
p.developer( "David Kellum", "dek-ruby@gravitext.com" )