Repository navigation
Expand file tree
/
Copy pathGemfile
More file actions
65 lines (54 loc) · 2.22 KB
/
Copy pathGemfile
File metadata and controls
65 lines (54 loc) · 2.22 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
# frozen_string_literal: true
source "https://rubygems.org"
group :development do
# rspec drives this suite, rake is its entry point, json_schemer checks the
# JSON formatter against its schema, and test-unit backs the return-code
# fixtures in spec/fixtures/frameworks.
#
# Cucumber and Minitest are only ever run from a sandbox fixture project,
# so they belong to that project's Gemfile rather than this one. They sit
# in optional groups there, because bundler materializes every gem a
# Gemfile requires before running anything at all, and a plain dependency
# would force every spec that drives the fixture to install them too.
gem "json_schemer"
gem "rake"
gem "rspec"
gem "test-unit"
# Fans `rake spec` out across worker processes. The workers are plain
# spawned subprocesses (no fork), so this works on every engine.
gem "parallel_tests"
# RBS's native extension fails to build on JRuby, so the type-checking
# stack stays off there; JRuby runs `rake spec` only. The Rakefile's rbs
# and steep tasks rescue the missing require with a warning.
unless RUBY_ENGINE == "jruby"
# Mutation testing (rake mutant). CRuby-only: mutant forks per
# mutation, which the JVM engines cannot.
gem "mutant", require: false
gem "mutant-rspec", require: false
gem "rbs", "~> 4.0"
gem "steep", "~> 2.0", require: false
end
gem "rubocop"
gem "rubocop-minitest"
gem "rubocop-performance"
gem "rubocop-rake"
gem "rubocop-rspec"
gem "standard", ">= 1.35.1"
gem "standard-performance"
gem "standard-rspec"
# Performance regression guards (rake duel): the benchmarks in duel/ run
# on the main branch and the candidate side by side, and a slowdown fails.
# StackProf profiles a regression, and duel-retained fails a benchmark
# that leaves objects alive, such as a parse cache that keeps growing.
gem "duel", ">= 0.3.0"
gem "duel-retained"
gem "stackprof", platforms: :mri
end
# CI resolves the newest gems, so one stable job sets PRISM_VERSION to keep
# exercising the oldest prism major version the gemspec still allows.
prism_version = ENV.fetch("PRISM_VERSION", "")
gem "prism", prism_version unless prism_version.empty?
group :benchmark do
gem "benchmark-ips"
end
gemspec