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

irb_reload

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

irb_reload

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

IrbReload

IrbReload is a lightweight library for reloading code in an IRB session. It's a great tool for gem authors while a gem is under active development.

Installation

Add this line to your application's Gemfile:

# most likely in a :development group
group :development do
  gem 'irb_reload'
end

And then execute:

$ bundle

Or install it yourself as:

$ gem install irb_reload

Usage

After installing, add the following this line to your ~/.irbrc file:

require 'irb_reload'

Or, if you prefer, simply require 'irb_reload' when you start an IRB session.

Assuming your IRB session was started in the root directory of your project, IrbReload will find and reload all your project's classes and constants, even under multiple namespaces.

Just like Rails console, just type:

reload!

and you're good to go!

Interpreter Compatibility

IrbReload is compatible with MRI 1.9 and 2.0 and has been tested on JRuby 1.7.3

Caveats

  • IrbReload expects you to start your IRB session in the root of your project.
  • Due to the above, It probably won't work if you change the cwd of your Ruby process, i.e. Dir.chdir 'lib/'
  • IrbReload assumes you're following basic Ruby conventions regarding your directory structure. see this link

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 05 Jun 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