-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGemfile
More file actions
65 lines (53 loc) · 2.26 KB
/
Gemfile
File metadata and controls
65 lines (53 loc) · 2.26 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
source "https://rubygems.org"
rails_path = File.file?(File.join(__dir__, ".rails-path")) ? File.read(File.join(__dir__, ".rails-path")).strip : File.join(__dir__, "../rails")
no_local = ENV["LOCAL_GEMS"] == "0"
# Do not load to the load path if disabled
unless ENV["NEXT_ACTION_CABLE"] == "0"
if !no_local && File.directory?(File.join(__dir__, "..", "actioncable-next"))
gem "actioncable-next", path: "../actioncable-next", require: false
else
gem "actioncable-next", require: false
end
end
if !no_local && File.directory?(rails_path)
gem "rails", path: rails_path
# Use Rails from a git repo
elsif File.file?(File.join(__dir__, ".rails-revision"))
git, branch = *File.read(File.join(__dir__, ".rails-revision")).strip.split("#", 2)
gem "rails", git:, branch:
else
gem "rails", ENV.fetch("RAILS_VERSION", "~> 8.0")
end
# Baseline setup: Puma + Redis pub/sub
gem "puma", "~> 6.4"
gem "redis", "~> 5.0"
# Async setup
gem "falcon"
gem "async-websocket"
gem "async-redis"
# Iodine
gem "iodine", require: false
# AnyCable setup
gem "grpc_kit" if ENV["ANYCABLE_GRPC_IMPL"] == "grpc_kit"
gem "grpc" unless ENV["ANYCABLE_GRPC_IMPL"] == "grpc_kit"
anycable_dir_path = File.file?(File.join(__dir__, ".anycable-path")) ? File.read(File.join(__dir__, ".anycable-path")).strip : File.join(__dir__, "..")
if !no_local && File.file?(File.join(anycable_dir_path, "anycable/anycable-core.gemspec"))
gem "anycable-core",require: false, path: File.join(anycable_dir_path, "anycable")
elsif File.file?(File.join(__dir__, ".anycable-revision"))
git, branch = *File.read(File.join(__dir__, ".anycable-revision")).strip.split("#", 2)
gem "anycable-core", require: false, git:, branch:
else
gem "anycable-core", require: false
end
if !no_local && File.file?(File.join(anycable_dir_path, "anycable-rails/anycable-rails.gemspec"))
gem "anycable-rails", require: false, path: File.join(anycable_dir_path, "anycable-rails")
elsif File.file?(File.join(__dir__, ".anycable-rails-revision"))
git, branch = *File.read(File.join(__dir__, ".anycable-rails-revision")).strip.split("#", 2)
gem "anycable-rails", require: false, git:, branch:
else
gem "anycable-rails", require: false
end
# Tools
gem "wsdirector-cli", require: false
gem "anyt", "~> 1.4", require: false
gem "debug" unless ENV["CI"]