|
2 | 2 |
|
3 | 3 | [](https://rubygems.org/gems/ruby_dep) [](https://travis-ci.org/e2/ruby_dep) |
4 | 4 |
|
| 5 | +NOTE: For currently supported Ruby versions, [check out the Travis build status](https://travis-ci.org/e2/ruby_dep). If you need support for an different/older version of Ruby, open an issue with "backport" in the title and provide a compelling case for supporting the version of Ruby you need. When in doubt, open a new issue. |
| 6 | + |
| 7 | + |
5 | 8 | ## The problem |
6 | 9 |
|
7 | 10 | Your gem shouldn't (and likely doesn't) support all possible Ruby versions. |
@@ -76,13 +79,13 @@ To disable warnings, just set the following environment variable: |
76 | 79 |
|
77 | 80 | `RUBY_DEP_GEM_SILENCE_WARNINGS=1` |
78 | 81 |
|
79 | | -You can follow these rules of thumb: |
| 82 | +You can follow these rules of thumb, whether you use RubyDep or not: |
80 | 83 |
|
81 | 84 | 1. Avoid changing major version numbers, even if you're dropping a major version of Ruby (e.g. 1.9.2) |
82 | | -2. If you want to support a current version, add it to your `.travis.yml` (e.g. Ruby 2.3.1) |
| 85 | +2. If you want to support a current version, add it to your `.travis.yml` (e.g. ruby-2.3.1) |
83 | 86 | 3. To support an earlier version of Ruby, add it to your `.travis.yml` and release a new gem version. |
84 | | -4. If you want to support a range of Rubies, include the whole range without gaps in minor version numbers (e.g. 2.0.0, 2.1.0, 2.2.0, 2.3.0) |
85 | | -5. If you just want to test a Ruby version (but not actually support it), put it into the "allow failures" part of your Travis build matrix. |
| 87 | +4. If you want to support a range of Rubies, include the whole range without gaps in minor version numbers (e.g. 2.0.0, 2.1.0, 2.2.0, 2.3.0) and ruby_dep will use the whole range. (If there's a gap, older versions will be considered "unsupported") |
| 88 | +5. If you just want to test a Ruby version (but not actually support it), put it into the "allow failures" part of your Travis build matrix. (ruby_dep ignores versions there). |
86 | 89 | 6. If you want to drop support for a Ruby, remove it from the `.travis.yml` and just bump your gem's minor number. |
87 | 90 |
|
88 | 91 | When in doubt, open an issue and just ask. |
|
0 commit comments