Skip to content
Browse files

Use same branch in gemfile for DM gem deps

  • Loading branch information...
1 parent a2a84c8 commit 5bcfd37fa6b33d30f3f8ca7e208275e1c61ed0d1 @solnic solnic committed Sep 13, 2011
Showing with 10 additions and 3 deletions.
  1. +10 −3 Gemfile
View
13 Gemfile
@@ -8,6 +8,7 @@ DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://g
DM_VERSION = '~> 1.2.0.rc1'
DO_VERSION = '~> 0.10.6'
DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
+CURRENT_BRANCH = `git branch | grep '*' | awk '{print $2}'`
gem 'addressable', '~> 2.2.6'
@@ -48,18 +49,24 @@ group :datamapper do
gem "do_#{adapter}", DO_VERSION, do_options.dup
end
- gem 'dm-do-adapter', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}"
+ gem 'dm-do-adapter', DM_VERSION,
+ SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}",
+ :branch => CURRENT_BRANCH
end
adapters.each do |adapter|
- gem "dm-#{adapter}-adapter", ENV.fetch('ADAPTER_VERSION', DM_VERSION), SOURCE => "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}"
+ gem "dm-#{adapter}-adapter", ENV.fetch('ADAPTER_VERSION', DM_VERSION),
+ SOURCE => "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}",
+ :branch => CURRENT_BRANCH
end
plugins = ENV['PLUGINS'] || ENV['PLUGIN']
plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
plugins.each do |plugin|
- gem plugin, DM_VERSION, SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}"
+ gem plugin, DM_VERSION,
+ SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}",
+ :branch => CURRENT_BRANCH
end
end

0 comments on commit 5bcfd37

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