lib/soap/generator.rb in rubyjedi-soap4r-1.5.8.20100619003610 vs lib/soap/generator.rb in rubyjedi-soap4r-2.0.2.1

- old
+ new

@@ -1,6 +1,6 @@ -# encoding: ASCII-8BIT +# encoding: UTF-8 # SOAP4R - SOAP XML Instance Generator library. # 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; @@ -268,10 +268,10 @@ str.gsub(@encode_char_regexp) { |c| EncodeMap[c] } end end def get_encode_char_regexp - ENCODE_CHAR_REGEXP[XSD::Charset.encoding] ||= Regexp.new("[#{EncodeMap.keys.join}]", nil, (RUBY_VERSION.to_f >= 1.9) ? 'n' : XSD::Charset.encoding) # RubyJedi: compatible with Ruby 1.8.6 and above + ENCODE_CHAR_REGEXP[XSD::Charset.encoding] ||= Regexp.new("[#{EncodeMap.keys.join}]", nil, (RUBY_VERSION.to_f <= 1.8) ? XSD::Charset.encoding : nil) # RubyJedi: compatible with Ruby 1.8.6 and above end def find_handler(encodingstyle) unless @handlers.key?(encodingstyle) factory = SOAP::EncodingStyle::Handler.handler(encodingstyle)