Blog Archives

Ruby NET::HTTP requests library cheatsheet

Nice cheat sheet resource of Ruby HTTP requests is published on rubyinside.com. Since the comments are disabled I decided to add one note here: When using uri = URI.parse(“http://google.com/”) it is good practice to encode the url with URI.encode(“http://google.com”, “[]“)

Tagged with: ,
Posted in Ruby

Remove all gems in windows and linux

This is at the first results in google but here is a shortcut: gem list | cut -d” ” -f1 | xargs gem uninstall -aIx This will remove all gems if you are developing in Linux. Here is more detailed

Tagged with: , ,
Posted in Ruby
Sites
Categories
Archives