Mastodon Feed: Post

Mastodon Feed

Boosted by zkat@toot.cat ("Katerina Marchán"):
kevin@km6g.us ("Kevin P. Fleming") wrote:

Since I know almost nothing about Ruby, I'll ask the fedi hivemind for tips...

If I want to start up a Ruby REPL and import 'net/http' so that I can try one request using the latest version of the Gem, what steps should I follow? In Python I'd create a virtualenv and then use 'pip install' to install the package I want - so I assume something similar exists for Ruby. Bonus points if I can do the same thing but intentionally use an older (specific) version of the Gem.

#Ruby #RubyNewbie