Skip to content

Small improvements #83

Merged
merged 2 commits into from Jun 23, 2012
View
3 Gemfile
@@ -1,4 +1,3 @@
source "http://rubygems.org"
-gem 'rake-compiler'
-gem 'minitest', '~> 3.0.0'
+gemspec
View
12 Rakefile
@@ -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}"
@@ -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
View
2 rugged.gemspec
@@ -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
Something went wrong with that request. Please try again.