Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gem-sparse-mirror

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gem-sparse-mirror

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

gem-sparse-mirror - Mirror parts of Rubygems

A script that extends rubygems-mirror to download only parts of Rubygems. It uses the bundler API to resolve all dependencies of the intended gems and completely mirrors those.

Installation

Run:

$ gem install gem-sparse-mirror

Usage

Like https://github.com/rubygems/rubygems-mirror, this reads .gems/mirrorrc, with 2 additional attributes, only and except:

---
- from: http://rubygems.org/
  to: /path/to/your/sync-directory
  parallelism: 10
  except:
    - mail
  only:
    - rake
    - rails

This will resolve all dependencies of rails and rake and sync all of them, but never sync mail (for example, if you ship your own version).

This script syncs all versions of the found gems.

gem-sparse-mirror does not create or update a gem index. This can be done using rubygems generate_index command:

$ cd /path/to/your/sync-directory
$ gem generate_index --no-legacy --modern --update gems/

Word of warning

This does not supply a gem server. You will have to manage that server yourself.

License

MIT, see LICENSE.txt

Thanks

To the rubygems team for running rubygems and implementing rubygems-mirror in the first place.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 17 Jan 2013

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