|
22 | 22 | # - Broken workflow indicates that a new contributor will have a bad time |
23 | 23 | # |
24 | 24 | appraise "unlocked_deps" do |
| 25 | + gem "erb" |
25 | 26 | eval_gemfile "modular/coverage.gemfile" |
26 | 27 | eval_gemfile "modular/documentation.gemfile" |
27 | 28 | eval_gemfile "modular/style.gemfile" |
|
30 | 31 | # Used for head (nightly) releases of ruby, truffleruby, and jruby. |
31 | 32 | # Split into discrete appraisals if one of them needs a dependency locked discretely. |
32 | 33 | appraise "head" do |
| 34 | + gem "erb" |
33 | 35 | gem "mutex_m", ">= 0.2" |
34 | 36 | gem "stringio", ">= 3.0" |
35 | 37 | gem "benchmark", "~> 0.4", ">= 0.4.1" |
|
38 | 40 | # Used for current releases of ruby, truffleruby, and jruby. |
39 | 41 | # Split into discrete appraisals if one of them needs a dependency locked discretely. |
40 | 42 | appraise "current" do |
| 43 | + gem "erb" |
41 | 44 | gem "mutex_m", ">= 0.2" |
42 | 45 | gem "stringio", ">= 3.0" |
43 | 46 | end |
44 | 47 |
|
45 | 48 | appraise "ruby-2-3" do |
| 49 | + # The cake is a lie. erb v2.2, the oldest release on RubyGems.org, was never compatible with Ruby 2.3. |
| 50 | + # This means we have no choice but to use the erb that shipped with Ruby 2.3 |
| 51 | + # /opt/hostedtoolcache/Ruby/2.3.8/x64/lib/ruby/gems/2.3.0/gems/erb-2.2.2/lib/erb.rb:670:in `prepare_trim_mode': undefined method `match?' for "-":String (NoMethodError) |
| 52 | + # spec.add_development_dependency("erb", ">= 2.2") # ruby >= 2.3.0, not SemVer, old rubies get dropped in a patch. |
46 | 53 | end |
47 | 54 |
|
48 | 55 | appraise "ruby-2-4" do |
| 56 | + gem "erb" |
49 | 57 | end |
50 | 58 |
|
51 | 59 | appraise "ruby-2-5" do |
| 60 | + gem "erb" |
52 | 61 | end |
53 | 62 |
|
54 | 63 | appraise "ruby-2-6" do |
| 64 | + gem "erb" |
55 | 65 | gem "mutex_m", "~> 0.2" |
56 | 66 | gem "stringio", "~> 3.0" |
57 | 67 | end |
58 | 68 |
|
59 | 69 | appraise "ruby-2-7" do |
| 70 | + gem "erb" |
60 | 71 | gem "mutex_m", "~> 0.2" |
61 | 72 | gem "stringio", "~> 3.0" |
62 | 73 | end |
63 | 74 |
|
64 | 75 | appraise "ruby-3-0" do |
| 76 | + gem "erb" |
65 | 77 | gem "mutex_m", "~> 0.2" |
66 | 78 | gem "stringio", "~> 3.0" |
67 | 79 | end |
68 | 80 |
|
69 | 81 | appraise "ruby-3-1" do |
| 82 | + gem "erb" |
70 | 83 | gem "mutex_m", "~> 0.2" |
71 | 84 | gem "stringio", "~> 3.0" |
72 | 85 | end |
73 | 86 |
|
74 | 87 | appraise "ruby-3-2" do |
| 88 | + gem "erb" |
75 | 89 | gem "mutex_m", "~> 0.2" |
76 | 90 | gem "stringio", "~> 3.0" |
77 | 91 | end |
78 | 92 |
|
79 | 93 | appraise "ruby-3-3" do |
| 94 | + gem "erb" |
80 | 95 | gem "mutex_m", "~> 0.2" |
81 | 96 | gem "stringio", "~> 3.0" |
82 | 97 | end |
83 | 98 |
|
84 | 99 | # Only run security audit on latest Ruby version |
85 | 100 | appraise "audit" do |
| 101 | + gem "erb" |
86 | 102 | gem "mutex_m", "~> 0.2" |
87 | 103 | gem "stringio", "~> 3.0" |
88 | 104 | end |
89 | 105 |
|
90 | 106 | # Only run coverage on latest Ruby version |
91 | 107 | appraise "coverage" do |
| 108 | + gem "erb" |
92 | 109 | gem "mutex_m", "~> 0.2" |
93 | 110 | gem "stringio", "~> 3.0" |
94 | 111 | eval_gemfile "modular/coverage.gemfile" |
95 | 112 | end |
96 | 113 |
|
97 | 114 | # Only run linter on latest Ruby version (but, in support of oldest supported Ruby version) |
98 | 115 | appraise "style" do |
| 116 | + gem "erb" |
99 | 117 | gem "mutex_m", "~> 0.2" |
100 | 118 | gem "stringio", "~> 3.0" |
101 | 119 | eval_gemfile "modular/style.gemfile" |
|
0 commit comments