Skip to content
Newer
Older
100644 73 lines (52 sloc) 1.82 KB
3242152 @snusnu Remove the need for a Gemfile.local
snusnu authored Nov 25, 2010
1 require 'pathname'
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
2
a499c39 @solnic Remove jeweler
solnic authored Nov 7, 2011
3 source :rubygems
4
5 gemspec
d68bb00 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored Mar 22, 2010
6
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored Mar 1, 2011
7 SOURCE = ENV.fetch('SOURCE', :git).to_sym
8 REPO_POSTFIX = SOURCE == :path ? '' : '.git'
9 DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://github.com/datamapper'
06a8785 @solnic Bump version to 1.3.0.beta
solnic authored Oct 15, 2011
10 DM_VERSION = '~> 1.3.0.beta'
4f85cf5 @solnic Bump DO dep to 0.10.6 in the Gemfile
solnic authored May 23, 2011
11 DO_VERSION = '~> 0.10.6'
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
12 DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
c23db28 @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
13 CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
14
c23db28 @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
15 gem 'dm-core', DM_VERSION,
16 SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}",
17 :branch => CURRENT_BRANCH
d68bb00 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored Mar 22, 2010
18
703c4cf @dkubb Upate Gemfile to be more consistent with other projects
dkubb authored Feb 27, 2011
19 group :development do
752cbdd @snusnu Imported migration related code from dm-core
snusnu authored Apr 8, 2010
20
011caeb @dkubb Upgraded gem dependencies
dkubb authored Sep 1, 2011
21 gem 'rake', '~> 0.9.2'
22 gem 'rspec', '~> 1.3.2'
752cbdd @snusnu Imported migration related code from dm-core
snusnu authored Apr 8, 2010
23
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
24 end
752cbdd @snusnu Imported migration related code from dm-core
snusnu authored Apr 8, 2010
25
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
26 platforms :mri_18 do
27 group :quality do
752cbdd @snusnu Imported migration related code from dm-core
snusnu authored Apr 8, 2010
28
011caeb @dkubb Upgraded gem dependencies
dkubb authored Sep 1, 2011
29 gem 'rcov', '~> 0.9.10'
30 gem 'yard', '~> 0.7.2'
31 gem 'yardstick', '~> 0.4'
3abbc5e @dkubb Removed rcov and yard as development dependencies
dkubb authored May 16, 2010
32
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
33 end
d68bb00 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored Mar 22, 2010
34 end
35
703c4cf @dkubb Upate Gemfile to be more consistent with other projects
dkubb authored Feb 28, 2011
36 group :datamapper do
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
37
38 adapters = ENV['ADAPTER'] || ENV['ADAPTERS']
2213e2e @dkubb Updated Gemfile to work with latest DO gems
dkubb authored Sep 1, 2010
39 adapters = adapters.to_s.tr(',', ' ').split.uniq - %w[ in_memory ]
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
40
78ccf4d @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored Sep 1, 2010
41 if (do_adapters = DM_DO_ADAPTERS & adapters).any?
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
42 do_options = {}
43 do_options[:git] = "#{DATAMAPPER}/do#{REPO_POSTFIX}" if ENV['DO_GIT'] == 'true'
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
44
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
45 gem 'data_objects', DO_VERSION, do_options.dup
2213e2e @dkubb Updated Gemfile to work with latest DO gems
dkubb authored Sep 1, 2010
46
78ccf4d @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored Sep 1, 2010
47 do_adapters.each do |adapter|
48 adapter = 'sqlite3' if adapter == 'sqlite'
3fb56ff @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
49 gem "do_#{adapter}", DO_VERSION, do_options.dup
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
50 end
51
c23db28 @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
52 gem 'dm-do-adapter', DM_VERSION,
53 SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}",
54 :branch => CURRENT_BRANCH
78ccf4d @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored Sep 1, 2010
55 end
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
56
78ccf4d @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored Sep 1, 2010
57 adapters.each do |adapter|
c23db28 @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
58 gem "dm-#{adapter}-adapter", DM_VERSION,
59 SOURCE => "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}",
60 :branch => CURRENT_BRANCH
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
61 end
62
63 plugins = ENV['PLUGINS'] || ENV['PLUGIN']
a499c39 @solnic Remove jeweler
solnic authored Nov 7, 2011
64 plugins = plugins.to_s.tr(',', ' ').split
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
65
66 plugins.each do |plugin|
c23db28 @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
67 gem plugin, DM_VERSION,
68 SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}",
69 :branch => CURRENT_BRANCH
98fd688 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored Apr 30, 2010
70 end
71
d68bb00 @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored Mar 22, 2010
72 end
Something went wrong with that request. Please try again.