File: Gemfile

package info (click to toggle)
ruby-rack 2.2.20-0%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,676 kB
  • sloc: ruby: 16,512; sh: 12; makefile: 7; javascript: 1
file content (34 lines) | stat: -rw-r--r-- 898 bytes parent folder | download
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
# frozen_string_literal: true

source 'https://rubygems.org'

gemspec

# What we need to do here is just *exclude* JRuby, but bundler has no way to do
# this, because of some argument that I know I had with Yehuda and Carl years
# ago, but I've since forgotten. Anyway, we actually need it here, and it's not
# available, so prepare yourself for a yak shave when this breaks.
c_platforms = Bundler::Dsl::VALID_PLATFORMS.dup.delete_if do |platform|
  platform =~ /jruby/
end

gem "rubocop", require: false

group :test do
  gem "webrick" # gemified in Ruby 3.1+
  gem "psych"
end

# Alternative solution that might work, but it has bad interactions with
# Gemfile.lock if that gets committed/reused:
# c_platforms = [:mri] if Gem.platforms.last.os == "java"

group :extra do
  gem 'fcgi', platforms: c_platforms
  gem 'dalli'
  gem 'thin', platforms: c_platforms
end

group :doc do
  gem 'rdoc'
end