Sha256: 9c2c13cbf162a5d1ca51f55ba5b4583d576e71655f00996e4e31f1ae6083d4ba
Contents?: true
Size: 1.94 KB
Versions: 1
Compression:
Stored size: 1.94 KB
Contents
require 'pathname' 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 platforms :mri_18 do group :quality do gem 'yard' gem 'yardstick' end end # development dependencies group :development do gem 'pry' gem 'pry-byebug' gem 'rake' gem 'rspec' 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.push('dm-migrations').uniq plugins.each do |plugin| options[SOURCE] = "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}" gem "sbf-#{plugin}", DM_VERSION, options.dup end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sbf-dm-constraints-1.3.0 | Gemfile |