Skip to content

Instantly share code, notes, and snippets.

@yamori813
Created December 30, 2020 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamori813/f8f7c8a0eca849457d258634e5439736 to your computer and use it in GitHub Desktop.
Save yamori813/f8f7c8a0eca849457d258634e5439736 to your computer and use it in GitHub Desktop.
git diff
diff --git a/mrblib/simplehttp.rb b/mrblib/simplehttp.rb
index 2edbe51..855198e 100644
--- a/mrblib/simplehttp.rb
+++ b/mrblib/simplehttp.rb
@@ -88,7 +88,9 @@ class SimpleHttp
else
# dns lookup
yabm = YABM.new
+yabm.print @uri.ii
@uri[:ip] = yabm.lookup(address)
+yabm.print @uri.ii
end
else
raise "Not found Socket Class or UV Module"
@@ -120,6 +122,8 @@ class SimpleHttp
# private
def request(method, path, req, &b)
+ yabm = YABM.new
+yabm.print @uri.ii
@uri[:path] = path
if @uri[:path].nil?
1#<Hash:0x800e9f60 {}
default? = false
default_proc? = false
ar? = true
size = 0
ea = #<null>
ea_capacity = 0
ea_n_used = 0>#<Hash:0x800e9f60 {:ip=>"54.88.253.164"}
default? = false
default_proc? = false
ar? = true
size = 1
ea = #<0x800f6d20>
ea_capacity = 4
ea_n_used = 1>#<Hash:0x800e9f60 {:ip=>"54.88.253.164", :scheme=>"https", :address=>"api.thingspeak.com", :port=>443}
default? = false
default_proc? = false
ar? = true
size = 4
ea = #<0x800f6d20>
ea_capacity = 4
ea_n_used = 4>unknown exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment