diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-16 14:30:39 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-16 14:30:39 -0400 |
commit | 91b26994d40f7ea23f5bc7ef8e4e40e1af115e7a (patch) | |
tree | 7876d5d3282ef488ef97369a757b6e8862409f26 | |
parent | cdf74b6f4f40fa81d9d5445ab2b80903c7854f17 (diff) |
db-pick-mirror: use Net::HTTP instead of RestClient
-rwxr-xr-x | db-pick-mirror | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db-pick-mirror b/db-pick-mirror index 9474ed7..6adcdaf 100755 --- a/db-pick-mirror +++ b/db-pick-mirror @@ -1,12 +1,12 @@ #!/usr/bin/env ruby require 'json' -require 'rest_client' +require 'net/http' protocol = ARGV[0] jsonurl = ARGV[1] -data = JSON::parse(RestClient.get(jsonurl)) +data = JSON::parse(Net::HTTP.get(URI(jsonurl))) if data["version"] != 3 print "Data format version != 3" |