Sha256: 8ab42521c0c720ac4f2d8f0d56157d008aebc76751e7cac2d111d8eb93d82dce

Contents?: true

Size: 1.62 KB

Versions: 7

Compression:

Stored size: 1.62 KB

Contents

source 'https://rubygems.org'
gemspec

gem 'bcrypt'
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

if RbConfig::CONFIG["host_os"] =~ /darwin/
  gem 'terminal-notifier-guard'
end

if ENV['RAILS_SOURCE']
  gemspec path: ENV['RAILS_SOURCE']
else
  # Need to get rails source beacause the gem doesn't include tests
  version = ENV['RAILS_VERSION'] || begin
    require 'net/http'
    require 'yaml'
    spec = eval(File.read('activerecord-sqlserver-adapter.gemspec'))
    version = spec.dependencies.detect{ |d|d.name == 'activerecord' }.requirement.requirements.first.last.version
    major, minor, tiny = version.split('.')
    uri = URI.parse "https://rubygems.org/api/v1/versions/activerecord.yaml"
    http = Net::HTTP.new(uri.host, uri.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE
    YAML.load(http.request(Net::HTTP::Get.new(uri.request_uri)).body).select do |data|
      a, b, c = data['number'].split('.')
      !data['prerelease'] && major == a && (minor.nil? || minor == b)
    end.first['number']
  end
  gem 'rails', git: "git://github.com/rails/rails.git", tag: "v#{version}"
end

if ENV['AREL']
  gem 'arel', path: ENV['AREL']
end

group :tinytds do
  if ENV['TINYTDS_SOURCE']
    gem 'tiny_tds', path: ENV['TINYTDS_SOURCE']
  elsif ENV['TINYTDS_VERSION']
    gem 'tiny_tds', ENV['TINYTDS_VERSION']
  else
    gem 'tiny_tds'
  end
end

group :odbc do
  gem 'ruby-odbc'
end

group :development do
  gem 'mocha'
  gem 'minitest', '< 5.3.4' # PENDING: [Rails5.x] Remove test order constraint.
  gem 'minitest-spec-rails'
  gem 'pry'
end

group :guard do
  gem 'guard'
  gem 'guard-minitest'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-4.2.18 Gemfile
activerecord-sqlserver-adapter-4.2.17 Gemfile
activerecord-sqlserver-adapter-4.2.16 Gemfile
activerecord-sqlserver-adapter-4.2.15 Gemfile
activerecord-sqlserver-adapter-4.2.13 Gemfile
activerecord-sqlserver-adapter-4.2.12 Gemfile
activerecord-sqlserver-adapter-4.2.11 Gemfile