Q:

How to execute code from a Ruby GEM I'm building?

I'm new in ruby and I'm trying to create a GEM. The "problem" is that I found really hard to execute the code I'm building, without having to repeat a lot of steps. 
This is basically my gem structure
├── Gemfile
├── Gemfile.lock
├── Guardfile
├── LICENSE.txt
├── README.md
├── Rakefile
├── bin
│   └── hermes
├── hermes.gemspec
├── lib
│   ├── hermes
│   │   ├── code.rb
│   │   ├── issue.rb
│   │   └── version.rb
│   └── hermes.rb
├── requirements.md
└── spec
    ├── hermes_spec.rb
    └── spec_helper.rb

So I'm running bundle exec irb, then require 'hermes'and then Hermes.init, but if I change any of the files code, I have to exit irb and repeat the steps. Is there a better way of doing it? Which is the "correct" way of doing it (without using rspec) ? 
Thanks!

A:

You can use pry and then load "path/to/file.rb" every time you change your code. You can also give it a simple web interface with sinatra and use shotgun to have your code reloaded on the fly.
But, the correct way is using rspec. Nothing better than to start fresh and effective employing test driven development. Trust me, you'll be ahead of 90% of the market by just starting with tdd from scratch.

