New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rubygems-backports

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rubygems-backports

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

rubygems-backports

This gem backports (and forward ports) the old RubyGems 1.x-1.6.x API, reviving the {Gem::SourceIndex} to its old pre-1.7.x state. It allows developers to write library code that depends on any version of RubyGems and not have to force users to upgrade to RubyGems 1.7.x+.

Usage

With this gem, you can continue using Gem::SourceIndex as you used to; currently we simply use the old SourceIndex class verbatim, but in the near future we will forward these methods to the new 1.7.x+ API, for instance:

gem.source_index.find_name('foo') # equivalent: Specification.find_by_name('foo')

If you want to use the new API

To use the gem, simply require 'rubygems-backports'. Alternatively, you can call Gem.load_plugins. The gem will load the correct code (the old API, or the new API) depending on what's missing.

Known Issues

This gem currently only supprts the SourceIndex class and Specification.find_by_name. The other deprecated (and new) API calls will be added in the near future. Help out by forking the project and submitting new backports.

Contributing

You can contribute and add new backports by forking the project on Github and submitting a pull request. Pull requests are always appreciated!

License

This gem is mostly comprised of RubyGems code, and therefore uses the RubyGems license, see {file:LICENSE.txt}. All RubyGems code is marked with the copyright notice at the top of the file. All other files are under the MIT license.

FAQs

Package last updated on 09 May 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc