Sha256: f752e89558ebf5d22b14d0c74c67d6542e285d11c0439dc6fb43a02fb321d3f0

Contents?: true

Size: 1.24 KB

Versions: 6

Compression:

Stored size: 1.24 KB

Contents

source 'https://rubygems.org'
gemspec

gem 'bcrypt'

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 "http://rubygems.org/api/v1/versions/activerecord.yaml"
    YAML.load(Net::HTTP.get(uri)).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']
  else
    # TODO: [Rails4] Change back... segfault caused by tiny_tds 0.6.1
    gem 'tiny_tds', git:"https://github.com/rails-sqlserver/tiny_tds.git"
  end
end

group :odbc do
  gem 'ruby-odbc'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-4.2.4 Gemfile
activerecord-sqlserver-adapter-4.2.3 Gemfile
activerecord-sqlserver-adapter-4.2.2 Gemfile
activerecord-sqlserver-adapter-4.2.1 Gemfile
activerecord-sqlserver-adapter-4.2.0 Gemfile
activerecord-sqlserver-adapter-4.2.0.pre Gemfile