Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (29 sloc) 1.216 kb
f75e712 @solnic Fix spec setup and update Gemfile
solnic authored
1 source 'https://rubygems.org'
a499c39 @solnic Remove jeweler
solnic authored
2
3 gemspec
d68bb00 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored
4
06a8785 @solnic Bump version to 1.3.0.beta
solnic authored
5 DM_VERSION = '~> 1.3.0.beta'
76e15e0 @dkubb Remove excess complexity from the Gemfile
dkubb authored
6 DO_VERSION = '~> 0.10.15'
7 DM_DO_ADAPTERS = %w[sqlite postgres mysql oracle sqlserver]
8 GIT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
d68bb00 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored
9
76e15e0 @dkubb Remove excess complexity from the Gemfile
dkubb authored
10 gem 'dm-core', DM_VERSION, github: 'datamapper/dm-core', branch: GIT_BRANCH
d68bb00 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored
11
703c4cf @dkubb Upate Gemfile to be more consistent with other projects
dkubb authored
12 group :datamapper do
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored
13 adapters = ENV['ADAPTER'] || ENV['ADAPTERS']
76e15e0 @dkubb Remove excess complexity from the Gemfile
dkubb authored
14 adapters = adapters.to_s.tr(',', ' ').split.uniq - %w[in_memory]
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored
15
78ccf4d @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored
16 if (do_adapters = DM_DO_ADAPTERS & adapters).any?
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored
17 do_options = {}
76e15e0 @dkubb Remove excess complexity from the Gemfile
dkubb authored
18 do_options[:github] = 'datamapper/do' if ENV['DO_GIT'] == 'true'
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored
19
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored
20 gem 'data_objects', DO_VERSION, do_options.dup
2213e2e @dkubb Updated Gemfile to work with latest DO gems
dkubb authored
21
78ccf4d @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored
22 do_adapters.each do |adapter|
23 adapter = 'sqlite3' if adapter == 'sqlite'
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored
24 gem "do_#{adapter}", DO_VERSION, do_options.dup
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored
25 end
26
76e15e0 @dkubb Remove excess complexity from the Gemfile
dkubb authored
27 gem 'dm-do-adapter', DM_VERSION, github: 'datamapper/dm-do-adapter', branch: GIT_BRANCH
78ccf4d @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored
28 end
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored
29
78ccf4d @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored
30 adapters.each do |adapter|
76e15e0 @dkubb Remove excess complexity from the Gemfile
dkubb authored
31 gem "dm-#{adapter}-adapter", DM_VERSION, github: "datamapper/dm-#{adapter}-adapter", branch: GIT_BRANCH
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored
32 end
33
34 plugins = ENV['PLUGINS'] || ENV['PLUGIN']
a499c39 @solnic Remove jeweler
solnic authored
35 plugins = plugins.to_s.tr(',', ' ').split
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored
36
37 plugins.each do |plugin|
76e15e0 @dkubb Remove excess complexity from the Gemfile
dkubb authored
38 gem plugin, DM_VERSION, github: "datamapper/#{plugin}", branch: GIT_BRANCH
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored
39 end
d68bb00 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored
40 end
Something went wrong with that request. Please try again.