Skip to content

Commit

Permalink
Merge pull request libgit2#83 from stereobooster/small-improvements
Browse files Browse the repository at this point in the history
Small improvements
  • Loading branch information
Scott J. Goldman committed Jun 23, 2012
2 parents 1add2d9 + d6555b2 commit 5083e1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Gemfile
@@ -1,4 +1,3 @@
source "http://rubygems.org"

gem 'rake-compiler'
gem 'minitest', '~> 3.0.0'
gemspec
12 changes: 9 additions & 3 deletions Rakefile
Expand Up @@ -14,6 +14,12 @@ Rake::ExtensionTask.new('rugged') do |r|
r.lib_dir = 'lib/rugged'
end

desc "checkout libgit2 source"
task :checkout do
sh "git submodule update --init"
end
Rake::Task[:compile].prerequisites.insert(0, :checkout)

task :embedded_clean do
lib_path = File.expand_path '../ext/rugged/libgit2_embed.a', __FILE__
system "rm #{lib_path}"
Expand Down Expand Up @@ -44,9 +50,9 @@ end
begin
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.include('ext/**/*.c')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.include('ext/**/*.c')
rdoc.rdoc_files.include('lib/**/*.rb')
end
rescue LoadError
end
Expand Down
2 changes: 2 additions & 0 deletions rugged.gemspec
Expand Up @@ -24,4 +24,6 @@ Gem::Specification.new do |s|
Rugged is a Ruby bindings to the libgit2 linkable C Git library. This is
for testing and using the libgit2 library in a language that is awesome.
desc
s.add_development_dependency "rake-compiler"
s.add_development_dependency "minitest", "~> 3.0.0"
end

0 comments on commit 5083e1c

Please sign in to comment.