Gemfile in ronin-gen-1.0.0 vs Gemfile in ronin-gen-1.0.1.rc1
- old
+ new
@@ -5,15 +5,36 @@
RONIN_URI = 'http://github.com/ronin-ruby'
gemspec
# Ronin dependencies:
-# gem 'ronin-support', '~> 0.1.0', :git => "#{RONIN_URI}/ronin-support.git"
-# gem 'ronin', '~> 1.0.0', :git => "#{RONIN_URI}/ronin.git"
+# gem 'ronin-support', '~> 0.2', :git => "#{RONIN_URI}/ronin-support.git"
+# gem 'ronin', '~> 1.1', :git => "#{RONIN_URI}/ronin.git"
group :development do
gem 'rake', '~> 0.8.7'
gem 'kramdown', '~> 0.12'
gem 'ore-tasks', '~> 0.4'
gem 'rspec', '~> 2.4'
+end
+
+#
+# To enable additional DataMapper adapters for development work or for
+# testing purposes, simple set the ADAPTER or ADAPTERS environment
+# variable:
+#
+# export ADAPTER="postgres"
+# bundle install
+#
+# ./bin/ronin --database postgres://ronin@localhost/ronin
+#
+require 'set'
+
+DM_ADAPTERS = Set['postgres', 'mysql', 'oracle', 'sqlserver']
+
+adapters = (ENV['ADAPTER'] || ENV['ADAPTERS']).to_s
+adapters = Set.new(adapters.to_s.tr(',',' ').split)
+
+(DM_ADAPTERS & adapters).each do |adapter|
+ gem "dm-#{adapter}-adapter", DM_VERSION #, :git => "#{DM_URI}/dm-#{adapter}-adapter.git"
end