Skip to content

Instantly share code, notes, and snippets.

@SamSamskies
Last active December 27, 2015 03:29
Show Gist options
  • Save SamSamskies/7259807 to your computer and use it in GitHub Desktop.
Save SamSamskies/7259807 to your computer and use it in GitHub Desktop.
Secret company challenge
# You need to have the HTTParty gem installed to run this
# https://github.com/jnunemaker/httparty
require 'httparty'
response = HTTParty.get 'http://letsrevolutionizetesting.com/challenge.json'
while response
puts response
follow_link = response['follow'].gsub('?', '.json?')
response = HTTParty.get follow_link
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment