Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 66 lines (47 sloc) 1.865 kb
2afc581 @solnic Remove jeweler dev dep and cleaned up gemspec/gemfile
solnic authored
1 require File.expand_path('../lib/dm-core/version', __FILE__)
2
242bfd7 @snusnu Remove the need for creating a Gemfile.local
snusnu authored
3 require 'pathname'
85c439a @snusnu Updated Gemfile to support ADAPTER(S) and PLUGIN(S) env vars
snusnu authored
4
2afc581 @solnic Remove jeweler dev dep and cleaned up gemspec/gemfile
solnic authored
5 source :rubygems
6
7 gemspec
999e375 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored
8
230a1d3 @snusnu Support using bundler 1.0.x
snusnu authored
9 gem 'virtus', '~> 0.5', :git => 'https://github.com/solnic/virtus'
5c9de2a @snusnu Bump virtus dependency to ~> 0.5
snusnu authored
10
049a544 @dkubb Updated Gemfile and gemspec
dkubb authored
11 SOURCE = ENV.fetch('SOURCE', :git).to_sym
12 REPO_POSTFIX = SOURCE == :path ? '' : '.git'
4894ce1 @snusnu Use https for github clone URLs in the Gemfile
snusnu authored
13 DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'https://github.com/datamapper'
2afc581 @solnic Remove jeweler dev dep and cleaned up gemspec/gemfile
solnic authored
14 DM_VERSION = "~> #{DataMapper::VERSION}"
3adb145 @solnic Bump DO dep to 0.10.6 in Gemfile
solnic authored
15 DO_VERSION = '~> 0.10.6'
049a544 @dkubb Updated Gemfile and gemspec
dkubb authored
16 DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
35e703b @solnic OK grab git branch from ENV (git branch parsing did not work on our CI)
solnic authored
17 CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
049a544 @dkubb Updated Gemfile and gemspec
dkubb authored
18
4e074e4 @dkubb Upgraded gem dependencies
dkubb authored
19 platforms :mri_18 do
20 group :quality do
98f9311 @snusnu Extracted adapter and migration code and specs
snusnu authored
21
4e074e4 @dkubb Upgraded gem dependencies
dkubb authored
22 gem 'rcov', '~> 0.9.10'
23 gem 'yard', '~> 0.7.2'
24 gem 'yardstick', '~> 0.4'
98f9311 @snusnu Extracted adapter and migration code and specs
snusnu authored
25
4e074e4 @dkubb Upgraded gem dependencies
dkubb authored
26 end
85c439a @snusnu Updated Gemfile to support ADAPTER(S) and PLUGIN(S) env vars
snusnu authored
27 end
98f9311 @snusnu Extracted adapter and migration code and specs
snusnu authored
28
c385ae9 @dkubb Upate Gemfile to be more consistent with other projects
dkubb authored
29 group :datamapper do
98f9311 @snusnu Extracted adapter and migration code and specs
snusnu authored
30
049a544 @dkubb Updated Gemfile and gemspec
dkubb authored
31 adapters = ENV['ADAPTERS'] || ENV['ADAPTER']
32 adapters = adapters.to_s.tr(',', ' ').split.uniq - %w[ in_memory ]
85c439a @snusnu Updated Gemfile to support ADAPTER(S) and PLUGIN(S) env vars
snusnu authored
33
01fccfd @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored
34 if (do_adapters = DM_DO_ADAPTERS & adapters).any?
049a544 @dkubb Updated Gemfile and gemspec
dkubb authored
35 do_options = {}
36 do_options[:git] = "#{DATAMAPPER}/do#{REPO_POSTFIX}" if ENV['DO_GIT'] == 'true'
85c439a @snusnu Updated Gemfile to support ADAPTER(S) and PLUGIN(S) env vars
snusnu authored
37
049a544 @dkubb Updated Gemfile and gemspec
dkubb authored
38 gem 'data_objects', DO_VERSION, do_options.dup
6b63159 @dkubb Updated Gemfile to work with latest DO gems
dkubb authored
39
01fccfd @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored
40 do_adapters.each do |adapter|
41 adapter = 'sqlite3' if adapter == 'sqlite'
049a544 @dkubb Updated Gemfile and gemspec
dkubb authored
42 gem "do_#{adapter}", DO_VERSION, do_options.dup
85c439a @snusnu Updated Gemfile to support ADAPTER(S) and PLUGIN(S) env vars
snusnu authored
43 end
44
5bcfd37 @solnic Use same branch in gemfile for DM gem deps
solnic authored
45 gem 'dm-do-adapter', DM_VERSION,
46 SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}",
47 :branch => CURRENT_BRANCH
01fccfd @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored
48 end
85c439a @snusnu Updated Gemfile to support ADAPTER(S) and PLUGIN(S) env vars
snusnu authored
49
01fccfd @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored
50 adapters.each do |adapter|
5bcfd37 @solnic Use same branch in gemfile for DM gem deps
solnic authored
51 gem "dm-#{adapter}-adapter", ENV.fetch('ADAPTER_VERSION', DM_VERSION),
52 SOURCE => "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}",
53 :branch => CURRENT_BRANCH
85c439a @snusnu Updated Gemfile to support ADAPTER(S) and PLUGIN(S) env vars
snusnu authored
54 end
55
56 plugins = ENV['PLUGINS'] || ENV['PLUGIN']
54f8ef7 @dkubb Minor simplification to Gemfile
dkubb authored
57 plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
85c439a @snusnu Updated Gemfile to support ADAPTER(S) and PLUGIN(S) env vars
snusnu authored
58
59 plugins.each do |plugin|
5bcfd37 @solnic Use same branch in gemfile for DM gem deps
solnic authored
60 gem plugin, DM_VERSION,
61 SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}",
62 :branch => CURRENT_BRANCH
85c439a @snusnu Updated Gemfile to support ADAPTER(S) and PLUGIN(S) env vars
snusnu authored
63 end
999e375 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored
64
65 end
Something went wrong with that request. Please try again.