Sha256: c320c75b5b60f49c611e81735bae10f08c0c710c988d5c8db2530d0c7753cc6b
Contents?: true
Size: 1.83 KB
Versions: 2
Compression:
Stored size: 1.83 KB
Contents
source 'https://rubygems.org' gemspec SOURCE = ENV.fetch('SOURCE', :git).to_sym REPO_POSTFIX = (SOURCE == :path) ? '' : '.git' DATAMAPPER = (SOURCE == :path) ? Pathname(__FILE__).dirname.parent : 'https://github.com/firespring' DM_VERSION = '~> 1.3.0'.freeze DO_VERSION = '~> 0.11.0'.freeze DM_DO_ADAPTERS = %w(sqlite postgres mysql oracle sqlserver).freeze CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master') options = {} options[SOURCE] = "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}" options[:branch] = CURRENT_BRANCH unless SOURCE == :path gem 'sbf-dm-core', DM_VERSION, options.dup group :development do gem 'pry' gem 'pry-byebug' gem 'rake', '~> 13.1' gem 'rake-compiler', '~> 1.2' gem 'rspec', '~> 3.13' gem 'simplecov' end group :datamapper do adapters = ENV['ADAPTER'] || ENV.fetch('ADAPTERS', nil) adapters = adapters.to_s.tr(',', ' ').split.uniq - %w(in_memory) if (do_adapters = DM_DO_ADAPTERS & adapters).any? do_options = {} if ENV['DO_GIT'] == 'true' do_options = options.dup do_options[SOURCE] = "#{DATAMAPPER}/datamapper-do#{REPO_POSTFIX}" end gem 'sbf-data_objects', DO_VERSION, do_options.dup do_adapters.each do |adapter| adapter = 'sqlite3' if adapter == 'sqlite' gem "sbf-do_#{adapter}", DO_VERSION, do_options.dup end options[SOURCE] = "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}" gem 'sbf-dm-do-adapter', DM_VERSION, options.dup end adapters.each do |adapter| options[SOURCE] = "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}" gem "sbf-dm-#{adapter}-adapter", DM_VERSION, options.dup end plugins = ENV['PLUGINS'] || ENV.fetch('PLUGIN', nil) plugins = plugins.to_s.tr(',', ' ').split plugins.each do |plugin| options[SOURCE] = "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}" gem "sbf-#{plugin}", DM_VERSION, options.dup end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-dm-migrations-1.4.0.beta.1 | Gemfile |
sbf-dm-migrations-1.3.0 | Gemfile |