Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed Nov 29, 2011
1 parent 711cc9d commit ccdad0b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ end
# #
task :default => [:compile, :test] 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| Rake::TestTask.new do |t|
t.libs << 'lib' t.libs << 'lib'
t.pattern = 'test/**/*_test.rb' t.pattern = 'test/**/*_test.rb'
Expand Down
2 changes: 1 addition & 1 deletion ext/rugged/extconf.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def sys(cmd)
else else
CWD = File.expand_path(File.dirname(__FILE__)) 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') LIBGIT2_DIR = File.basename(LIBGIT2_DIST, '.tar.gz')


Dir.chdir("#{CWD}/vendor") do Dir.chdir("#{CWD}/vendor") do
Expand Down
Binary file added ext/rugged/vendor/libgit2-dist.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/rugged/version.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,3 @@
module Rugged module Rugged
Version = VERSION = '0.1.2' Version = VERSION = '0.16.0b1'
end end
9 changes: 5 additions & 4 deletions rugged.gemspec
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ Gem::Specification.new do |s|
s.email = "schacon@gmail.com" s.email = "schacon@gmail.com"
s.authors = [ "Scott Chacon", "Vicent Marti" ] s.authors = [ "Scott Chacon", "Vicent Marti" ]
s.files = %w( README.md Rakefile LICENSE ) s.files = %w( README.md Rakefile LICENSE )
s.files += Dir.glob("lib/**/*.rb") s.files += Dir.glob("lib/**/*.rb")
s.files += Dir.glob("man/**/*") s.files += Dir.glob("man/**/*")
s.files += Dir.glob("test/**/*") s.files += Dir.glob("test/**/*")
s.files += Dir.glob("ext/**/*.c") + Dir.glob("ext/**/*.h") 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.extensions = ['ext/rugged/extconf.rb']
s.description = <<desc s.description = <<desc
Rugged is a Ruby bindings to the libgit2 linkable C Git library. This is Rugged is a Ruby bindings to the libgit2 linkable C Git library. This is
Expand Down

0 comments on commit ccdad0b

Please sign in to comment.