Skip to content
Newer
Older
100644 82 lines (61 sloc) 2.2 KB
a591738 @snusnu Remove the need for a Gemfile.local
snusnu authored Nov 25, 2010
1 require 'pathname'
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
2
93f2b45 @solnic Remove jeweler
solnic authored Nov 15, 2011
3 source :rubygems
4
5 gemspec
412412d @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored Mar 22, 2010
6
77ceee5 @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'
05f6703 @solnic Bump version to 1.3.0.beta
solnic authored Oct 15, 2011
10 DM_VERSION = '~> 1.3.0.beta'
d022f5d @solnic Bump DO dep to 0.10.6 in the Gemfile
solnic authored May 23, 2011
11 DO_VERSION = '~> 0.10.6'
77ceee5 @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
12 DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
2ea1ffc @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
13 CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
14
15 gem 'dm-core', DM_VERSION,
16 SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}",
17 :branch => CURRENT_BRANCH
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
18
a97da1d @solnic Use multi_json for better multi-platform support
solnic authored May 25, 2011
19 gem 'fastercsv', '~> 1.5.4'
dd0a577 @snusnu Bump multi_json dependency to ~> 1.3.2
snusnu authored Apr 24, 2012
20 gem 'multi_json', '~> 1.3.2'
74d3470 @dkubb Upgraded gem dependencies
dkubb authored Sep 1, 2011
21 gem 'json', '~> 1.5.4', :platforms => [ :ruby_18, :jruby ]
22 gem 'json_pure', '~> 1.5.4', :platforms => [ :mswin ]
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
23
541eb7b @dkubb Upate Gemfile to be more consistent with other projects
dkubb authored Feb 27, 2011
24 group :development do
2ea1ffc @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
25 gem 'dm-validations', DM_VERSION,
26 SOURCE => "#{DATAMAPPER}/dm-validations#{REPO_POSTFIX}",
27 :branch => CURRENT_BRANCH
412412d @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored Mar 22, 2010
28 end
29
541eb7b @dkubb Upate Gemfile to be more consistent with other projects
dkubb authored Feb 28, 2011
30 group :testing do
77ceee5 @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
31 gem 'nokogiri', '~> 1.4.4'
cefdb56 @dkubb Upgraded libxml-ruby dependency to work with ruby 1.9.3
dkubb authored Sep 24, 2011
32 gem 'libxml-ruby', '~> 2.2.2', :platforms => [ :mri, :mswin ]
d1a4bf2 @postmodern Add nokogiri and libxml-ruby to the testing group.
postmodern authored Feb 24, 2011
33 end
34
77ceee5 @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
35 platforms :mri_18 do
36 group :quality do
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
37
74d3470 @dkubb Upgraded gem dependencies
dkubb authored Sep 1, 2011
38 gem 'rcov', '~> 0.9.10'
39 gem 'yard', '~> 0.7.2'
40 gem 'yardstick', '~> 0.4'
685c4b1 @dkubb Removed rcov and yard as development dependencies
dkubb authored May 17, 2010
41
77ceee5 @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
42 end
412412d @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored Mar 22, 2010
43 end
44
541eb7b @dkubb Upate Gemfile to be more consistent with other projects
dkubb authored Feb 28, 2011
45 group :datamapper do
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
46
47 adapters = ENV['ADAPTER'] || ENV['ADAPTERS']
bd342a6 @dkubb Updated Gemfile to work with latest DO gems
dkubb authored Sep 1, 2010
48 adapters = adapters.to_s.tr(',', ' ').split.uniq - %w[ in_memory ]
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
49
7051635 @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored Sep 1, 2010
50 if (do_adapters = DM_DO_ADAPTERS & adapters).any?
77ceee5 @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
51 do_options = {}
52 do_options[:git] = "#{DATAMAPPER}/do#{REPO_POSTFIX}" if ENV['DO_GIT'] == 'true'
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
53
77ceee5 @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
54 gem 'data_objects', DO_VERSION, do_options.dup
bd342a6 @dkubb Updated Gemfile to work with latest DO gems
dkubb authored Sep 1, 2010
55
7051635 @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored Sep 1, 2010
56 do_adapters.each do |adapter|
57 adapter = 'sqlite3' if adapter == 'sqlite'
77ceee5 @dkubb Updated Gemfile and gemspec
dkubb authored Mar 2, 2011
58 gem "do_#{adapter}", DO_VERSION, do_options.dup
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
59 end
60
2ea1ffc @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
61 gem 'dm-do-adapter', DM_VERSION,
62 SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}",
63 :branch => CURRENT_BRANCH
7051635 @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored Sep 1, 2010
64 end
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
65
7051635 @dkubb Only add data_objects as a dep if a DO adapter is used
dkubb authored Sep 1, 2010
66 adapters.each do |adapter|
2ea1ffc @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
67 gem "dm-#{adapter}-adapter", DM_VERSION,
68 SOURCE => "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}",
69 :branch => CURRENT_BRANCH
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
70 end
71
72 plugins = ENV['PLUGINS'] || ENV['PLUGIN']
8b2f381 @dkubb Minor simplification to Gemfile
dkubb authored Aug 16, 2010
73 plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
74
75 plugins.each do |plugin|
2ea1ffc @solnic Set git branch for DM deps in Gemfile
solnic authored Sep 13, 2011
76 gem plugin, DM_VERSION,
77 SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}",
78 :branch => CURRENT_BRANCH
5410b16 @snusnu Updated Gemfile and added 'rake local_gemfile' task
snusnu authored May 10, 2010
79 end
80
412412d @snusnu Adds active_support/extlib compatibility and a Gemfile
snusnu authored Mar 22, 2010
81 end
Something went wrong with that request. Please try again.