forked from rails-sqlserver/activerecord-sqlserver-adapter
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Gemfile
47 lines (40 loc) · 1.14 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
source 'https://rubygems.org'
if ENV['RAILS_SOURCE']
gemspec :path => ENV['RAILS_SOURCE']
else
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 == 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
gem 'tiny_tds', '~> 0.6.0'
end
end
group :odbc do
gem 'ruby-odbc'
end
group :development do
gem 'bcrypt-ruby', '~> 3.0.0'
gem 'bench_press'
gem 'mocha'
gem 'minitest-spec-rails'
gem 'nokogiri'
gem 'rake', '~> 0.9.2'
gem 'ruby-prof'
end