Last active
December 27, 2015 03:29
-
-
Save SamSamskies/7259807 to your computer and use it in GitHub Desktop.
Secret company challenge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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