|
| 1 | +# frozen_string_literal: true |
| 2 | + |
| 3 | +appraise "ruby-2-3" do |
| 4 | + gem "mutex_m", "~> 0.2" |
| 5 | + gem "stringio", "~> 3.0" |
| 6 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 7 | +end |
| 8 | + |
| 9 | +appraise "ruby-2-4" do |
| 10 | + gem "mutex_m", "~> 0.2" |
| 11 | + gem "stringio", "~> 3.0" |
| 12 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 13 | +end |
| 14 | + |
| 15 | +appraise "ruby-2-5" do |
| 16 | + gem "mutex_m", "~> 0.2" |
| 17 | + gem "stringio", "~> 3.0" |
| 18 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 19 | +end |
| 20 | + |
| 21 | +appraise "ruby-2-6" do |
| 22 | + gem "mutex_m", "~> 0.2" |
| 23 | + gem "stringio", "~> 3.0" |
| 24 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 25 | +end |
| 26 | + |
| 27 | +appraise "ruby-2-7" do |
| 28 | + gem "mutex_m", "~> 0.2" |
| 29 | + gem "stringio", "~> 3.0" |
| 30 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 31 | +end |
| 32 | + |
| 33 | +appraise "ruby-3-0" do |
| 34 | + gem "mutex_m", "~> 0.2" |
| 35 | + gem "stringio", "~> 3.0" |
| 36 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 37 | +end |
| 38 | + |
| 39 | +appraise "ruby-3-1" do |
| 40 | + gem "mutex_m", "~> 0.2" |
| 41 | + gem "stringio", "~> 3.0" |
| 42 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 43 | +end |
| 44 | + |
| 45 | +appraise "ruby-3-2" do |
| 46 | + gem "mutex_m", "~> 0.2" |
| 47 | + gem "stringio", "~> 3.0" |
| 48 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 49 | +end |
| 50 | + |
| 51 | +appraise "ruby-3-3" do |
| 52 | + gem "mutex_m", "~> 0.2" |
| 53 | + gem "stringio", "~> 3.0" |
| 54 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 55 | +end |
| 56 | + |
| 57 | +appraise "ruby-3-4" do |
| 58 | + gem "mutex_m", "~> 0.2" |
| 59 | + gem "stringio", "~> 3.0" |
| 60 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 61 | +end |
| 62 | + |
| 63 | +# Only run security audit on latest Ruby version |
| 64 | +appraise "audit" do |
| 65 | + gem "mutex_m", "~> 0.2" |
| 66 | + gem "stringio", "~> 3.0" |
| 67 | + eval_gemfile "modular/audit.gemfile" |
| 68 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 69 | +end |
| 70 | + |
| 71 | +# Only run coverage on latest Ruby version |
| 72 | +appraise "coverage" do |
| 73 | + gem "mutex_m", "~> 0.2" |
| 74 | + gem "stringio", "~> 3.0" |
| 75 | + eval_gemfile "modular/coverage.gemfile" |
| 76 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 77 | +end |
| 78 | + |
| 79 | +# Only run linter on latest Ruby version (but, in support of oldest supported Ruby version) |
| 80 | +appraise "style" do |
| 81 | + gem "mutex_m", "~> 0.2" |
| 82 | + gem "stringio", "~> 3.0" |
| 83 | + eval_gemfile "modular/style.gemfile" |
| 84 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 85 | +end |
| 86 | + |
| 87 | +appraise "ruby-head" do |
| 88 | + gem "mutex_m", ">= 0.2" |
| 89 | + gem "stringio", ">= 3.0" |
| 90 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 91 | +end |
| 92 | + |
| 93 | +appraise "truffleruby-head" do |
| 94 | + gem "mutex_m", ">= 0.2" |
| 95 | + gem "stringio", ">= 3.0" |
| 96 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 97 | +end |
| 98 | + |
| 99 | +appraise "jruby-head" do |
| 100 | + gem "mutex_m", ">= 0.2" |
| 101 | + gem "stringio", ">= 3.0" |
| 102 | + remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch |
| 103 | +end |
0 commit comments