Permalink
Browse files

Prepare for release

  • Loading branch information...
vmg committed Nov 29, 2011
1 parent 711cc9d commit ccdad0bcdbeeab7531adbaa8bc107e7bd0abcda8
Showing with 19 additions and 6 deletions.
  1. +12 −0 Rakefile
  2. +1 −1 ext/rugged/extconf.rb
  3. BIN ext/rugged/vendor/libgit2-dist.tar.gz
  4. +1 −1 lib/rugged/version.rb
  5. +5 −4 rugged.gemspec
View
@@ -19,6 +19,18 @@ end
#
task :default => [:compile, :test]
+task :pack_dist do
+ dir = File.dirname(File.expand_path(__FILE__))
+ output = File.join(dir, 'ext', 'rugged', 'vendor', 'libgit2-dist.tar.gz')
+ Dir.chdir(ENV['LIBGIT2_PATH']) do
+ `git archive --format=tar --prefix=libgit2-dist/ HEAD | gzip > #{output}`
+ end
+end
+
+task :cover do
+ ruby 'test/coverage/cover.rb'
+end
+
Rake::TestTask.new do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
View
@@ -24,7 +24,7 @@ def sys(cmd)
else
CWD = File.expand_path(File.dirname(__FILE__))
- LIBGIT2_DIST = 'libgit2-libgit2-b233714.tar.gz'
+ LIBGIT2_DIST = 'libgit2-dist.tar.gz'
LIBGIT2_DIR = File.basename(LIBGIT2_DIST, '.tar.gz')
Dir.chdir("#{CWD}/vendor") do
Binary file not shown.
View
@@ -1,3 +1,3 @@
module Rugged
- Version = VERSION = '0.1.2'
+ Version = VERSION = '0.16.0b1'
end
View
@@ -9,10 +9,11 @@ Gem::Specification.new do |s|
s.email = "schacon@gmail.com"
s.authors = [ "Scott Chacon", "Vicent Marti" ]
s.files = %w( README.md Rakefile LICENSE )
- s.files += Dir.glob("lib/**/*.rb")
- s.files += Dir.glob("man/**/*")
- s.files += Dir.glob("test/**/*")
- s.files += Dir.glob("ext/**/*.c") + Dir.glob("ext/**/*.h")
+ s.files += Dir.glob("lib/**/*.rb")
+ s.files += Dir.glob("man/**/*")
+ s.files += Dir.glob("test/**/*")
+ s.files += Dir.glob("ext/**/*.c") + Dir.glob("ext/**/*.h")
+ s.files += ['ext/rugged/vendor/libgit2-dist.tar.gz']
s.extensions = ['ext/rugged/extconf.rb']
s.description = <<desc
Rugged is a Ruby bindings to the libgit2 linkable C Git library. This is

0 comments on commit ccdad0b

Please sign in to comment.