Sha256: fb3592707970e69e3c459f0802f66458dca5260e3bb9f5ed95860b6a81141d09
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 $VERBOSE = true $: << File.dirname(__FILE__) $: << File.expand_path("../../ext") $: << File.expand_path("../../lib") require 'net/http' require 'uri' require 'oj' $url = URI.parse("http://localhost:7660/data.json") $cnt = 0 while true response = Net::HTTP.get_response($url) data = Oj.load(response.body, symbol_keys: true, mode: :strict) raise "FAILED" if data[:data].any? { |e| e.empty? } $cnt += 1 print "\r #{$cnt}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oj-2.18.5 | test/curl/get_oj.rb |
oj-2.18.3 | test/curl/get_oj.rb |