| 1 |
# rubygems-integration |
| 2 |
|
| 3 |
This package makes Debian Ruby packages recognizable by Rubygems. The packages |
| 4 |
will be listed by `gem list` and will be recognized by Rubygems as being |
| 5 |
installed. They can be used to satisfy dependencies both with plain Rubygems |
| 6 |
and with Bundler. |
| 7 |
|
| 8 |
# How to make a Debian Ruby package work with rubygems-integration |
| 9 |
|
| 10 |
Install a gemspec file to |
| 11 |
/usr/share/rubygems-integration/$VERSION/specifications to make the package |
| 12 |
available for Ruby $VERSION. $VERSION here is the Ruby "API version", not the |
| 13 |
exact Ruby version. |
| 14 |
|
| 15 |
For packages that should work with any Ruby version, you must install the |
| 16 |
gemspec to /usr/share/rubygems-integration/all/specifications instead. |
| 17 |
|
| 18 |
`dh_ruby(1)` from the `gem2deb` package will do the above automatically for |
| 19 |
you. |
| 20 |
|
| 21 |
# Disabling rubygems-integration |
| 22 |
|
| 23 |
Even though rubygems-integration is insanely useful, there might be some cases |
| 24 |
where you might want to disable it. To do that, export a environment variable |
| 25 |
named `DEBIAN_DISABLE_RUBYGEMS_INTEGRATION`. Only the presence of this variable |
| 26 |
matters, its value is completely ignored. |
| 27 |
|
| 28 |
# Copyright |
| 29 |
|
| 30 |
Copyright © 2012-2014 Antonio Terceiro <[email protected]> |
| 31 |
|
| 32 |
Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 33 |
this software and associated documentation files (the "Software"), to deal in |
| 34 |
the Software without restriction, including without limitation the rights to |
| 35 |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 36 |
of the Software, and to permit persons to whom the Software is furnished to do |
| 37 |
so, subject to the following conditions: |
| 38 |
|
| 39 |
The above copyright notice and this permission notice shall be included in all |
| 40 |
copies or substantial portions of the Software. |
| 41 |
|
| 42 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 43 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 44 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 45 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 46 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 47 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 48 |
SOFTWARE. |