Skip to content
Browse files

Dry out gem dependencies. Bundler now manages gem dependencies, which…

… are automatically added to the gemspec.
  • Loading branch information...
1 parent 1ab59f7 commit 41a4b3dc659e6a50e4f03a9bfb7029a71213ab18 @rheimbuch rheimbuch committed Jul 12, 2010
Showing with 32 additions and 3 deletions.
  1. +15 −0 Gemfile
  2. +17 −3 Rakefile
View
15 Gemfile
@@ -0,0 +1,15 @@
+source :rubyforge
+
+gem "dm-core", ">= 0.10.2"
+gem "dm-aggregates", ">= 0.10.2"
+gem "dm-types", ">= 0.10.2"
+gem "dm-migrations"
+gem "extlib"
+
+group :development do
+ gem "jeweler"
+ gem "rspec"
+ gem "yard"
+ gem "ruby-debug"
+ gem "addressable"
+end
View
20 Rakefile
@@ -3,24 +3,38 @@ require 'rake'
require 'pathname'
begin
+ require 'bundler'
+rescue LoadError
+ puts "Bundler is not intalled. Install with: gem install bundler"
+end
+
+begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = %q{dm-persevere-adapter}
gemspec.summary = %q{A DataMapper Adapter for persevere}
gemspec.description = %q{A DataMapper Adapter for persevere}
gemspec.email = ["irjudson [a] gmail [d] com"]
gemspec.homepage = %q{http://github.com/yogo/dm-persevere-adapter}
- gemspec.authors = ["Ivan R. Judson", "The Yogo Data Management Development Team" ]
+ gemspec.authors = ["Ivan R. Judson", "Ryan Heimbuch", "The Yogo Data Management Development Team" ]
gemspec.rdoc_options = ["--main", "README.txt"]
- gemspec.add_dependency(%q<dm-core>, [">= 0.10.2"])
- gemspec.add_dependency(%q<extlib>)
+ gemspec.add_bundler_dependencies
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
+begin
+ require 'yard'
+ YARD::Rake::YardocTask.new
+rescue LoadError
+ task :yardoc do
+ abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
+ end
+end
+
FileList['tasks/**/*.rake'].each { |task| import task }
ROOT = Pathname(__FILE__).dirname.expand_path

0 comments on commit 41a4b3d

Please sign in to comment.
Something went wrong with that request. Please try again.