forked from chanzuckerberg/sorbet-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGemfile
47 lines (42 loc) · 1.03 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
47
source 'https://rubygems.org'
gemspec
group :test do
gem 'simplecov', require: false
gem 'codecov', require: false
end
rails_version = ENV["RAILS_VERSION"] || "default"
case rails_version
when "master"
gem "rails", {github: "rails/rails"}
gem "bundler", ">= 1.3.0"
when "5.2"
gem "rails", "~> 5.2.3"
gem "bundler", ">= 2.0"
gem "sqlite3", "~> 1.4.1"
when "6.0"
gem "rails", "~> 6.0.0"
gem "bundler", ">= 2.0"
gem "sqlite3", "~> 1.4.1"
when "6.1"
gem "rails", "~> 6.1.0"
gem "bundler", ">= 2.0"
gem "sqlite3", "~> 1.4.1"
when "7.0"
gem "rails", "~> 7.0.0"
gem "bundler", ">= 2.0"
gem "sqlite3", "~> 1.4.1"
else
gem "rails", "~> 6.0.0"
gem "bundler", ">= 2.0"
gem "sqlite3", "~> 1.4.1"
end
sorbet_version = ENV["SORBET_VERSION"]
if sorbet_version
# mostly used to test against a stable version of Sorbet in Travis.
gem 'sorbet', sorbet_version
gem 'sorbet-runtime', sorbet_version
else
# prefer to test against latest version because sorbet is updated frequently
gem 'sorbet'
gem 'sorbet-runtime'
end