lab-manager 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lab_manager/httpclient_patch.rb +2 -2
- metadata +1 -1
@@ -7,7 +7,7 @@
|
|
7
7
|
# The 1.9.3 patch intercepts the existing constructor now that the class
|
8
8
|
# name has changed.
|
9
9
|
|
10
|
-
if
|
10
|
+
if Kernel.const_defined? :HTTPAccess2
|
11
11
|
class HTTPAccess2::Client
|
12
12
|
def initialize(*args)
|
13
13
|
super(args[0], args[1])
|
@@ -15,7 +15,7 @@ if RUBY_VERSION == "1.8.7"
|
|
15
15
|
#@session_manager.debug_dev = STDOUT
|
16
16
|
end
|
17
17
|
end
|
18
|
-
|
18
|
+
elsif Kernel.const_defined? :HTTPClient
|
19
19
|
class HTTPClient
|
20
20
|
alias_method :original_initialize, :initialize
|
21
21
|
def initialize(*args)
|