一个开源的 Gem 源服务器管理工具——GSM

1,027 阅读1分钟
原文链接: crispgm.github.io

GSM is a simple sources manager for RubyGems.

In Ruby development, we always need alternative RubyGems source in special networks. e.g. In China Mainland, you know. GSM helps get your gem sources managed.

Version 1.0.0.alpha5 · Created by David Zhang

Install with RubyGems

$ gem install gsm-sources-manager
$ gsm --version

Or, you may install manually

$ git clone https://github.com/crispgm/gsm.git
$ bundle install
$ bundle exec exe/gsm --version

Getting Started

Once you have installed and bootstrapped gsm with commands other than --help or --version, gsm will load sources from local gem sources -l.

HINT: The sources will be named after gemstones, e.g. Amethyst.

Commands

List

List sources within gsm.

Use

Use a source with source_name.

Add

Use a source with source_name and source_url.

--use: Use the input source as well. Equivalent to gsm add and then gsm use.

$ gsm add Amethyst https://rubygems.org/

Del

Delete a source with source_name.

Reset

Reset all sources.

Mirror

Mirror the source with bundle.

--reset: Reset mirror of bundle configuration.

Help

Show help info.

Version 1.0.0.alpha5

  • Bugfix: unintended path to `sources.yml` #8

Version 1.0.0.alpha4

Version 1.0.0.alpha3

  • Release on RubyGem
  • Bugfix: write conf to user directory #5

Version 1.0.0.alpha2

  • Limit number of gem sources

Version 1.0.0.alpha

GSM Sources Manager is licensed under MIT License.

If there is a bug, you may file an issue or pull request directly.

Pull requests for contribution is welcomed.