aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/logger.rb2
-rw-r--r--lib/wsdl/xmlSchema/data.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/logger.rb b/lib/logger.rb
index 04a106b448..e8e163ca93 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -322,7 +322,7 @@ private
#
def initialize(log = nil, opt = {})
@dev = @filename = @shift_age = @shift_size = nil
- if log.is_a?(IO)
+ if log.respond_to?(:write) and log.respond_to?(:close)
@dev = log
elsif log.is_a?(String)
@dev = open_logfile(log)
diff --git a/lib/wsdl/xmlSchema/data.rb b/lib/wsdl/xmlSchema/data.rb
index 9c9820abbd..539cf357c6 100644
--- a/lib/wsdl/xmlSchema/data.rb
+++ b/lib/wsdl/xmlSchema/data.rb
@@ -36,7 +36,7 @@ module XMLSchema
AllName = XSD::QName.new(XSD::Namespace, 'all')
AnyName = XSD::QName.new(XSD::Namespace, 'any')
-ArrayTypeAttrName = XSD::QName.new(Namespace, 'arrayType')
+ArrayTypeAttrName = XSD::QName.new(XSD::Namespace, 'arrayType')
AttributeName = XSD::QName.new(XSD::Namespace, 'attribute')
ChoiceName = XSD::QName.new(XSD::Namespace, 'choice')
ComplexContentName = XSD::QName.new(XSD::Namespace, 'complexContent')