Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Set git branch for DM deps in Gemfile

  • Loading branch information...
commit c23db28da7103897d8596ae7d7fb30b9bfda96e0 1 parent a07ce2f
Piotr Solnica solnic authored

Showing 1 changed file with 14 additions and 5 deletions. Show diff stats Hide diff stats

  1. +14 5 Gemfile
19 Gemfile
@@ -8,8 +8,11 @@ DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://g
8 8 DM_VERSION = '~> 1.2.0.rc1'
9 9 DO_VERSION = '~> 0.10.6'
10 10 DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
  11 +CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
11 12
12   -gem 'dm-core', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}"
  13 +gem 'dm-core', DM_VERSION,
  14 + SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}",
  15 + :branch => CURRENT_BRANCH
13 16
14 17 group :development do
15 18
@@ -45,18 +48,24 @@ group :datamapper do
45 48 gem "do_#{adapter}", DO_VERSION, do_options.dup
46 49 end
47 50
48   - gem 'dm-do-adapter', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}"
  51 + gem 'dm-do-adapter', DM_VERSION,
  52 + SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}",
  53 + :branch => CURRENT_BRANCH
49 54 end
50 55
51 56 adapters.each do |adapter|
52   - gem "dm-#{adapter}-adapter", DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}"
  57 + gem "dm-#{adapter}-adapter", DM_VERSION,
  58 + SOURCE => "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}",
  59 + :branch => CURRENT_BRANCH
53 60 end
54 61
55 62 plugins = ENV['PLUGINS'] || ENV['PLUGIN']
56   - plugins = plugins.to_s.tr(',', ' ').split.uniq
  63 + plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
57 64
58 65 plugins.each do |plugin|
59   - gem plugin, DM_VERSION, SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}"
  66 + gem plugin, DM_VERSION,
  67 + SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}",
  68 + :branch => CURRENT_BRANCH
60 69 end
61 70
62 71 end

0 comments on commit c23db28

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