appfog-vmc-plugin 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/appfog-vmc-plugin/net_http.rb +14 -0
- data/lib/appfog-vmc-plugin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTFhMTcwODc2NGUwYWUxZWRmNDI4MGNiOTM4YTlkZDNhY2ZkMzA2Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTUzOTM2N2ViZDRkZjhhYjYzOTZjNWFlOGI0ODE4ZWNlOWQ4ODVhYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDIyYmRmNzI4NzAyNmJmZTA2YzJjM2FhNzUyZDVlMDU0ZmI0YzJlNzAyZTcx
|
10
|
+
YjViMjIwYThjNWM2MzQ1OWI3MzI4ZTViZmU4OWFlNDA0NTdjMGVlOGU2N2Vm
|
11
|
+
YjZlNTI4NzZlOTcxNzlmZDk1MTc4YzJiNWUyYTE1MzA0ZDBhYTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWQxMzVhMzVhNjJlYmIwZDAwZjYyNTUwOGNjNmYyODM2YzAyZmVlZDQyNTU0
|
14
|
+
YTcwYjc3MDY4YTdjZDRlYTBkYTk3NDQ4YjFmNGYwNGE1YTRkYjhiMDkxZmNk
|
15
|
+
ODY4ZmFjNDFjMjExYzNlZmI1Y2MxZjMyMzk1ZTRkMDBkZjIzMTQ=
|
@@ -2,6 +2,20 @@ module Net
|
|
2
2
|
class HTTP
|
3
3
|
HTTP_TIMEOUT = ENV['TIMEOUT'] ? ENV['TIMEOUT'].to_i : 10*60
|
4
4
|
|
5
|
+
# puts "NEW"
|
6
|
+
|
7
|
+
# alias _initialize_ initialize
|
8
|
+
# def initialize(address, port = nil, p_addr = :ENV, p_port = nil, p_user = nil, p_pass = nil)
|
9
|
+
# puts address
|
10
|
+
# require 'debugger'; debugger
|
11
|
+
# return _initialize_(address, port)
|
12
|
+
# end
|
13
|
+
|
14
|
+
def HTTP.new(address, port = nil, p_addr = nil, p_port = nil, p_user = nil, p_pass = nil)
|
15
|
+
puts "NEW"
|
16
|
+
Proxy(p_addr, p_port, p_user, p_pass).newobj(address, port)
|
17
|
+
end
|
18
|
+
|
5
19
|
alias _request_ request
|
6
20
|
def request(req, body=nil, &block)
|
7
21
|
@socket.read_timeout = HTTP_TIMEOUT unless @socket.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appfog-vmc-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Santeford
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cfoundry
|