项目作者: gingerhot

项目描述 :
Install gems in Jupyter notebook or IRB/Pry console on the fly.
高级语言: Ruby
项目地址: git://github.com/gingerhot/iruby_gem.git
创建时间: 2018-01-02T11:22:56Z
项目社区:https://github.com/gingerhot/iruby_gem

开源协议:MIT License

下载


IrubyGem

iruby_gem is a pack of lines of code used to install gems in a Ruby program on the fly, especially in a IRuby notebook, or IRB/Pry console.

Installation

Add this line to your application’s Gemfile:

  1. gem 'iruby_gem'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install iruby_gem

Usage

  1. require 'iruby_gem'
  2. gem_install("some_gem", "~> 0.2.1")
  3. # Or shortly for a lazy guy
  4. gem_i("some_gem", "~> 0.2.1")
  5. # and you can omit the version restriction if you don't need it
  6. gem_i("some_gem")

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gingerhot/iruby_gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the IrubyGem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.