git clone git@github.com:ellmo/anygem.git
cd anygem
gem build anygem.gemspec
gem install anygem-[VERSION].gem
Now you can load the gem in irb
/pry
as usual:
require "anygem"
AnyGem::Greeter.hi
You now also have an executable in your sh
/bash
/zsh
:
anygem
Experiment all you want.
You can run rspec
or better yet bundle exec rspec
while in gem's directory, provided that
a proper version of RSpec was installed via bundle install
.
There's also a custom .rubocop.yml
file, which describes some of RuboCop rules I use. This file
can be safely ignored for all development shenanigans, but it's highly recommended to always
use some sort of RuboCop setup.
gem uninstall anygem
- Remove the directory.