https://github.com/cao7113/cgem
Switch gem sources
https://github.com/cao7113/cgem
gem ruby
Last synced: 5 months ago
JSON representation
Switch gem sources
- Host: GitHub
- URL: https://github.com/cao7113/cgem
- Owner: cao7113
- Created: 2017-01-04T12:17:17.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T18:30:30.000Z (over 1 year ago)
- Last Synced: 2025-03-29T19:11:24.272Z (over 1 year ago)
- Topics: gem, ruby
- Language: Ruby
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Cgem
Inspired by cnpm, solve gem source switch in China!
## Usage
```bash
cgem help
cgem use rchina
cgem use default # rubygems
cgem list
cgem setup rchina
CGEM_KEY=rchina cgem setup
cgem status # default
cgem current # get current gem source
```
## Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add cgem
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install cgem
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/cao7113/cgem.