lib/soap/soap.rb in rubyjedi-soap4r-1.5.8.20100619003610 vs lib/soap/soap.rb in rubyjedi-soap4r-2.0.2.1
- old
+ new
@@ -1,6 +1,6 @@
-# encoding: ASCII-8BIT
+# encoding: UTF-8
# soap/soap.rb: SOAP4R - Base definitions.
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
# This program is copyrighted free software by NAKAMURA, Hiroshi. You can
# redistribute it and/or modify it under the same terms of Ruby's license;
@@ -14,12 +14,11 @@
module SOAP
-# VERSION = Version = SOAP::VERSION::STRING # '1.5.8-HEAD'
-Version = SOAP::VERSION::STRING # '1.5.8-HEAD'
+Version = SOAP::VERSION::STRING # evaluates to 'SOAP4R-NG 2.0.2' or later
PropertyName = 'soap/property'
EnvelopeNamespace = 'http://schemas.xmlsoap.org/soap/envelope/'
EncodingNamespace = 'http://schemas.xmlsoap.org/soap/encoding/'
LiteralNamespace = 'http://xml.apache.org/xml-soap/literalxml'
@@ -147,8 +146,18 @@
unless Kernel.respond_to?(:warn)
module Kernel
def warn(msg)
STDERR.puts(msg + "\n") unless $VERBOSE.nil?
+ end
+ end
+end
+
+
+# For Ruby 1.8 and below
+unless Kernel.respond_to?(:require_relative)
+ module Kernel
+ def require_relative(path)
+ require File.join(File.dirname(caller[0]), path.to_str)
end
end
end