INNER CODE UNIT · Ruby

get_json

hibernate/hibernate-ogm · src/main/release-scripts/pre-release.rb:73

def get_json(url)
  uri = URI.parse(url)
  http = Net::HTTP.new(uri.host, uri.port)
  http.use_ssl = true
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
  request = Net::HTTP::Get.new(uri.request_uri)
  response = http.request(request).body
  JSON.parse(response)
end

#######################################################################################################################
# We are dealing with something like this
#
# ...,
# {
#     "self": "https://hibernate.atlassian.net/rest/api/latest/version/18754",
#     "id": "18754",
#     "description": "Bugfixes for MongoDB, Neo4j and CouchDB backends",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…