rubyjedi-soap4r 1.5.8.20100616125722 → 1.5.8.20100619003610
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/wsdl2ruby.rb +1 -0
- data/bin/xsd2ruby.rb +1 -0
- data/lib/soap/attachment.rb +1 -0
- data/lib/soap/attrproxy.rb +1 -0
- data/lib/soap/baseData.rb +1 -0
- data/lib/soap/element.rb +2 -1
- data/lib/soap/encodingstyle/aspDotNetHandler.rb +1 -0
- data/lib/soap/encodingstyle/handler.rb +1 -0
- data/lib/soap/encodingstyle/literalHandler.rb +1 -0
- data/lib/soap/encodingstyle/soapHandler.rb +1 -0
- data/lib/soap/filter.rb +1 -0
- data/lib/soap/filter/filterchain.rb +1 -0
- data/lib/soap/filter/handler.rb +1 -0
- data/lib/soap/filter/streamhandler.rb +1 -0
- data/lib/soap/generator.rb +1 -0
- data/lib/soap/header/handler.rb +1 -0
- data/lib/soap/header/handlerset.rb +1 -0
- data/lib/soap/header/mappinghandler.rb +1 -0
- data/lib/soap/header/simplehandler.rb +1 -0
- data/lib/soap/httpconfigloader.rb +1 -0
- data/lib/soap/mapping.rb +1 -0
- data/lib/soap/mapping/encodedregistry.rb +1 -0
- data/lib/soap/mapping/factory.rb +1 -0
- data/lib/soap/mapping/literalregistry.rb +1 -0
- data/lib/soap/mapping/mapping.rb +2 -1
- data/lib/soap/mapping/registry.rb +1 -0
- data/lib/soap/mapping/rubytypeFactory.rb +1 -0
- data/lib/soap/mapping/schemadefinition.rb +1 -0
- data/lib/soap/mapping/typeMap.rb +1 -0
- data/lib/soap/mapping/wsdlencodedregistry.rb +1 -0
- data/lib/soap/mapping/wsdlliteralregistry.rb +1 -0
- data/lib/soap/marshal.rb +1 -0
- data/lib/soap/mimemessage.rb +1 -0
- data/lib/soap/nestedexception.rb +1 -0
- data/lib/soap/netHttpClient.rb +1 -0
- data/lib/soap/ns.rb +1 -0
- data/lib/soap/parser.rb +1 -0
- data/lib/soap/processor.rb +1 -0
- data/lib/soap/property.rb +1 -0
- data/lib/soap/proxy.rb +1 -0
- data/lib/soap/rpc/cgistub.rb +1 -0
- data/lib/soap/rpc/driver.rb +1 -0
- data/lib/soap/rpc/element.rb +1 -0
- data/lib/soap/rpc/httpserver.rb +1 -0
- data/lib/soap/rpc/methodDef.rb +1 -0
- data/lib/soap/rpc/proxy.rb +1 -0
- data/lib/soap/rpc/router.rb +1 -0
- data/lib/soap/rpc/rpc.rb +1 -0
- data/lib/soap/rpc/soaplet.rb +1 -0
- data/lib/soap/rpc/standaloneServer.rb +1 -0
- data/lib/soap/soap.rb +1 -0
- data/lib/soap/streamHandler.rb +1 -0
- data/lib/soap/version.rb +2 -1
- data/lib/soap/wsdlDriver.rb +1 -0
- data/lib/wsdl/binding.rb +1 -0
- data/lib/wsdl/data.rb +1 -0
- data/lib/wsdl/definitions.rb +1 -0
- data/lib/wsdl/documentation.rb +1 -0
- data/lib/wsdl/import.rb +1 -0
- data/lib/wsdl/importer.rb +1 -0
- data/lib/wsdl/info.rb +1 -0
- data/lib/wsdl/message.rb +1 -0
- data/lib/wsdl/operation.rb +1 -0
- data/lib/wsdl/operationBinding.rb +1 -0
- data/lib/wsdl/param.rb +1 -0
- data/lib/wsdl/parser.rb +1 -0
- data/lib/wsdl/part.rb +1 -0
- data/lib/wsdl/port.rb +1 -0
- data/lib/wsdl/portType.rb +1 -0
- data/lib/wsdl/service.rb +1 -0
- data/lib/wsdl/soap/address.rb +1 -0
- data/lib/wsdl/soap/binding.rb +1 -0
- data/lib/wsdl/soap/body.rb +1 -0
- data/lib/wsdl/soap/cgiStubCreator.rb +1 -0
- data/lib/wsdl/soap/classDefCreator.rb +1 -0
- data/lib/wsdl/soap/classDefCreatorSupport.rb +1 -0
- data/lib/wsdl/soap/classNameCreator.rb +1 -0
- data/lib/wsdl/soap/clientSkeltonCreator.rb +1 -0
- data/lib/wsdl/soap/complexType.rb +1 -0
- data/lib/wsdl/soap/data.rb +1 -0
- data/lib/wsdl/soap/definitions.rb +1 -0
- data/lib/wsdl/soap/driverCreator.rb +1 -0
- data/lib/wsdl/soap/element.rb +1 -0
- data/lib/wsdl/soap/encodedMappingRegistryCreator.rb +1 -0
- data/lib/wsdl/soap/fault.rb +1 -0
- data/lib/wsdl/soap/header.rb +1 -0
- data/lib/wsdl/soap/headerfault.rb +1 -0
- data/lib/wsdl/soap/literalMappingRegistryCreator.rb +1 -0
- data/lib/wsdl/soap/mappingRegistryCreator.rb +1 -0
- data/lib/wsdl/soap/mappingRegistryCreatorSupport.rb +1 -0
- data/lib/wsdl/soap/methodDefCreator.rb +1 -0
- data/lib/wsdl/soap/operation.rb +1 -0
- data/lib/wsdl/soap/servantSkeltonCreator.rb +1 -0
- data/lib/wsdl/soap/servletStubCreator.rb +1 -0
- data/lib/wsdl/soap/standaloneServerStubCreator.rb +1 -0
- data/lib/wsdl/soap/wsdl2ruby.rb +9 -0
- data/lib/wsdl/types.rb +1 -0
- data/lib/wsdl/wsdl.rb +1 -0
- data/lib/wsdl/xmlSchema/all.rb +1 -0
- data/lib/wsdl/xmlSchema/annotation.rb +1 -0
- data/lib/wsdl/xmlSchema/any.rb +1 -0
- data/lib/wsdl/xmlSchema/anyAttribute.rb +1 -0
- data/lib/wsdl/xmlSchema/attribute.rb +1 -0
- data/lib/wsdl/xmlSchema/attributeGroup.rb +1 -0
- data/lib/wsdl/xmlSchema/choice.rb +1 -0
- data/lib/wsdl/xmlSchema/complexContent.rb +1 -0
- data/lib/wsdl/xmlSchema/complexExtension.rb +1 -0
- data/lib/wsdl/xmlSchema/complexRestriction.rb +1 -0
- data/lib/wsdl/xmlSchema/complexType.rb +1 -0
- data/lib/wsdl/xmlSchema/content.rb +1 -0
- data/lib/wsdl/xmlSchema/data.rb +1 -0
- data/lib/wsdl/xmlSchema/element.rb +1 -0
- data/lib/wsdl/xmlSchema/enumeration.rb +1 -0
- data/lib/wsdl/xmlSchema/fractiondigits.rb +1 -0
- data/lib/wsdl/xmlSchema/group.rb +1 -0
- data/lib/wsdl/xmlSchema/import.rb +1 -0
- data/lib/wsdl/xmlSchema/importHandler.rb +1 -0
- data/lib/wsdl/xmlSchema/importer.rb +1 -0
- data/lib/wsdl/xmlSchema/include.rb +1 -0
- data/lib/wsdl/xmlSchema/length.rb +1 -0
- data/lib/wsdl/xmlSchema/list.rb +1 -0
- data/lib/wsdl/xmlSchema/maxexclusive.rb +1 -0
- data/lib/wsdl/xmlSchema/maxinclusive.rb +1 -0
- data/lib/wsdl/xmlSchema/maxlength.rb +1 -0
- data/lib/wsdl/xmlSchema/minexclusive.rb +1 -0
- data/lib/wsdl/xmlSchema/mininclusive.rb +1 -0
- data/lib/wsdl/xmlSchema/minlength.rb +1 -0
- data/lib/wsdl/xmlSchema/parser.rb +1 -0
- data/lib/wsdl/xmlSchema/pattern.rb +1 -0
- data/lib/wsdl/xmlSchema/ref.rb +1 -0
- data/lib/wsdl/xmlSchema/schema.rb +1 -0
- data/lib/wsdl/xmlSchema/sequence.rb +1 -0
- data/lib/wsdl/xmlSchema/simpleContent.rb +1 -0
- data/lib/wsdl/xmlSchema/simpleExtension.rb +1 -0
- data/lib/wsdl/xmlSchema/simpleRestriction.rb +1 -0
- data/lib/wsdl/xmlSchema/simpleType.rb +1 -0
- data/lib/wsdl/xmlSchema/totaldigits.rb +1 -0
- data/lib/wsdl/xmlSchema/union.rb +1 -0
- data/lib/wsdl/xmlSchema/unique.rb +1 -0
- data/lib/wsdl/xmlSchema/whitespace.rb +1 -0
- data/lib/wsdl/xmlSchema/xsd2ruby.rb +2 -0
- data/lib/xsd/charset.rb +1 -0
- data/lib/xsd/codegen.rb +1 -0
- data/lib/xsd/codegen/classdef.rb +1 -0
- data/lib/xsd/codegen/commentdef.rb +1 -0
- data/lib/xsd/codegen/gensupport.rb +1 -0
- data/lib/xsd/codegen/methoddef.rb +1 -0
- data/lib/xsd/codegen/moduledef.rb +1 -0
- data/lib/xsd/datatypes.rb +11 -10
- data/lib/xsd/datatypes1999.rb +1 -0
- data/lib/xsd/iconvcharset.rb +1 -0
- data/lib/xsd/mapping.rb +1 -0
- data/lib/xsd/namedelements.rb +1 -0
- data/lib/xsd/ns.rb +1 -0
- data/lib/xsd/qname.rb +1 -0
- data/lib/xsd/xmlparser.rb +1 -0
- data/lib/xsd/xmlparser/libxmlparser.rb +1 -0
- data/lib/xsd/xmlparser/parser.rb +1 -0
- data/lib/xsd/xmlparser/rexmlparser.rb +1 -0
- data/lib/xsd/xmlparser/xmlparser.rb +1 -0
- data/lib/xsd/xmlparser/xmlscanner.rb +1 -0
- data/test/16runner.rb +1 -0
- data/test/helper.rb +2 -1
- data/test/interopR2/base.rb +1 -0
- data/test/interopR2/client.NetRemoting.rb +1 -0
- data/test/interopR2/client.rb +1 -0
- data/test/interopR2/client4S4C.rb +1 -0
- data/test/interopR2/client4S4C2.rb +1 -0
- data/test/interopR2/clientASP.NET.rb +1 -0
- data/test/interopR2/clientApacheAxis.rb +1 -0
- data/test/interopR2/clientApacheSOAP.rb +1 -0
- data/test/interopR2/clientBEAWebLogic.rb +1 -0
- data/test/interopR2/clientBase.rb +1 -0
- data/test/interopR2/clientCapeConnect.rb +1 -0
- data/test/interopR2/clientDelphi.rb +1 -0
- data/test/interopR2/clientEasySoap.rb +1 -0
- data/test/interopR2/clientFrontier.rb +1 -0
- data/test/interopR2/clientGLUE.rb +1 -0
- data/test/interopR2/clientHP.rb +1 -0
- data/test/interopR2/clientJAX-RPC.rb +1 -0
- data/test/interopR2/clientJSOAP.rb +1 -0
- data/test/interopR2/clientKafkaXSLT.rb +1 -0
- data/test/interopR2/clientMSSOAPToolkit2.0.rb +1 -0
- data/test/interopR2/clientMSSOAPToolkit3.0.rb +1 -0
- data/test/interopR2/clientNuSOAP.rb +1 -0
- data/test/interopR2/clientNuWave.rb +1 -0
- data/test/interopR2/clientOpenLink.rb +1 -0
- data/test/interopR2/clientOracle.rb +1 -0
- data/test/interopR2/clientPEAR.rb +1 -0
- data/test/interopR2/clientPhalanx.rb +1 -0
- data/test/interopR2/clientSIMACE.rb +1 -0
- data/test/interopR2/clientSOAP4R.rb +1 -0
- data/test/interopR2/clientSOAP__Lite.rb +1 -0
- data/test/interopR2/clientSQLData.rb +1 -0
- data/test/interopR2/clientSilverStream.rb +1 -0
- data/test/interopR2/clientSpray2001.rb +1 -0
- data/test/interopR2/clientSun.rb +1 -0
- data/test/interopR2/clientVWOpentalkSoap.rb +1 -0
- data/test/interopR2/clientWASP.rb +1 -0
- data/test/interopR2/clientWASPC.rb +1 -0
- data/test/interopR2/clientWebMethods.rb +1 -0
- data/test/interopR2/clientWhiteMesa.rb +1 -0
- data/test/interopR2/clientWingfoot.rb +1 -0
- data/test/interopR2/clientXMLBus.rb +1 -0
- data/test/interopR2/clientXMLRPC-EPI.rb +1 -0
- data/test/interopR2/clientXSOAP.rb +1 -0
- data/test/interopR2/clientZSI.rb +1 -0
- data/test/interopR2/clienteSOAP.rb +1 -0
- data/test/interopR2/clientgSOAP.rb +1 -0
- data/test/interopR2/clientkSOAP.rb +1 -0
- data/test/interopR2/iSimonReg.rb +1 -0
- data/test/interopR2/interopResultBase.rb +1 -0
- data/test/interopR2/interopService.rb +1 -0
- data/test/interopR2/rwikiInteropService.rb +1 -0
- data/test/interopR2/server.cgi +1 -0
- data/test/interopR2/server.rb +1 -0
- data/test/interopR2/simonReg.rb +1 -0
- data/test/interopR4/client.rb +1 -0
- data/test/runner.rb +1 -0
- data/test/sm11/classDef.rb +1 -0
- data/test/sm11/client.rb +1 -0
- data/test/sm11/driver.rb +1 -0
- data/test/sm11/servant.rb +1 -0
- data/test/sm11/server.rb +1 -0
- data/test/soap/asp.net/test_aspdotnet.rb +1 -0
- data/test/soap/auth/test_basic.rb +1 -0
- data/test/soap/auth/test_digest.rb +1 -0
- data/test/soap/calc/calc.rb +1 -0
- data/test/soap/calc/calc2.rb +1 -0
- data/test/soap/calc/server.cgi +1 -0
- data/test/soap/calc/server.rb +1 -0
- data/test/soap/calc/server2.rb +1 -0
- data/test/soap/calc/test_calc.rb +1 -0
- data/test/soap/calc/test_calc2.rb +1 -0
- data/test/soap/calc/test_calc_cgi.rb +1 -0
- data/test/soap/case/test_mapping.rb +1 -0
- data/test/soap/fault/test_customfault.rb +1 -0
- data/test/soap/fault/test_fault.rb +1 -0
- data/test/soap/fault/test_soaparray.rb +1 -0
- data/test/soap/filter/test_filter.rb +1 -0
- data/test/soap/header/server.cgi +1 -0
- data/test/soap/header/test_authheader.rb +1 -0
- data/test/soap/header/test_authheader_cgi.rb +1 -0
- data/test/soap/header/test_simplehandler.rb +1 -0
- data/test/soap/helloworld/hw_s.rb +1 -0
- data/test/soap/helloworld/test_helloworld.rb +1 -0
- data/test/soap/literalArrayMapping/amazonEc.rb +1 -0
- data/test/soap/literalArrayMapping/amazonEcDriver.rb +1 -0
- data/test/soap/literalArrayMapping/test_definedarray.rb +1 -0
- data/test/soap/marshal/marshaltestlib.rb +4 -3
- data/test/soap/marshal/test_digraph.rb +1 -0
- data/test/soap/marshal/test_marshal.rb +1 -0
- data/test/soap/marshal/test_struct.rb +1 -0
- data/test/soap/ssl/sslsvr.rb +1 -0
- data/test/soap/ssl/test_ssl.rb +1 -0
- data/test/soap/struct/test_struct.rb +1 -0
- data/test/soap/styleuse/client.rb +1 -0
- data/test/soap/styleuse/server.rb +1 -0
- data/test/soap/swa/test_file.rb +1 -0
- data/test/soap/test_basetype.rb +1 -0
- data/test/soap/test_cookie.rb +1 -0
- data/test/soap/test_custom_ns.rb +1 -0
- data/test/soap/test_custommap.rb +1 -0
- data/test/soap/test_empty.rb +1 -0
- data/test/soap/test_envelopenamespace.rb +1 -0
- data/test/soap/test_extraattr.rb +1 -0
- data/test/soap/test_generator.rb +1 -0
- data/test/soap/test_httpconfigloader.rb +1 -0
- data/test/soap/test_mapping.rb +1 -0
- data/test/soap/test_nestedexception.rb +19 -18
- data/test/soap/test_nil.rb +1 -0
- data/test/soap/test_no_indent.rb +1 -0
- data/test/soap/test_property.rb +1 -0
- data/test/soap/test_response_as_xml.rb +1 -0
- data/test/soap/test_soapelement.rb +1 -0
- data/test/soap/test_streamhandler.rb +1 -0
- data/test/soap/test_styleuse.rb +1 -0
- data/test/soap/wsdlDriver/echo_version.rb +1 -0
- data/test/soap/wsdlDriver/test_calc.rb +1 -0
- data/test/soap/wsdlDriver/test_document.rb +1 -0
- data/test/soap/wsdlDriver/test_simpletype.rb +1 -0
- data/test/testutil.rb +1 -0
- data/test/wsdl/abstract/test_abstract.rb +1 -0
- data/test/wsdl/anonymous/expectedClassDef.rb +1 -0
- data/test/wsdl/anonymous/expectedDriver.rb +1 -0
- data/test/wsdl/anonymous/expectedMappingRegistry.rb +1 -0
- data/test/wsdl/anonymous/test_anonymous.rb +1 -0
- data/test/wsdl/any/expectedDriver.rb +1 -0
- data/test/wsdl/any/expectedEcho.rb +1 -0
- data/test/wsdl/any/expectedMappingRegistry.rb +1 -0
- data/test/wsdl/any/expectedService.rb +1 -0
- data/test/wsdl/any/test_any.rb +1 -0
- data/test/wsdl/axisArray/test_axisarray.rb +1 -0
- data/test/wsdl/choice/test_choice.rb +1 -0
- data/test/wsdl/complexcontent/test_echo.rb +1 -0
- data/test/wsdl/datetime/DatetimeService.rb +1 -0
- data/test/wsdl/datetime/datetimeServant.rb +1 -0
- data/test/wsdl/datetime/test_datetime.rb +1 -0
- data/test/wsdl/document/array/test_array.rb +1 -0
- data/test/wsdl/document/test_nosoapaction.rb +1 -0
- data/test/wsdl/document/test_number.rb +1 -0
- data/test/wsdl/document/test_rpc.rb +1 -0
- data/test/wsdl/fault/test_fault.rb +1 -0
- data/test/wsdl/fault/test_multifault.rb +1 -0
- data/test/wsdl/group/expectedClassdef.rb +1 -0
- data/test/wsdl/group/expectedDriver.rb +1 -0
- data/test/wsdl/group/expectedMappingRegistry.rb +1 -0
- data/test/wsdl/group/test_rpc.rb +1 -0
- data/test/wsdl/list/test_list.rb +1 -0
- data/test/wsdl/map/test_map.rb +1 -0
- data/test/wsdl/marshal/person_org.rb +1 -0
- data/test/wsdl/marshal/test_wsdlmarshal.rb +1 -0
- data/test/wsdl/oneway/test_oneway.rb +1 -0
- data/test/wsdl/overload/expectedClient.rb +1 -0
- data/test/wsdl/overload/expectedDriver.rb +1 -0
- data/test/wsdl/overload/expectedServant.rb +1 -0
- data/test/wsdl/overload/test_overload.rb +1 -0
- data/test/wsdl/qualified/test_qualified.rb +1 -0
- data/test/wsdl/qualified/test_unqualified.rb +1 -0
- data/test/wsdl/raa/RAAService.rb +1 -0
- data/test/wsdl/raa/expectedClassDef.rb +1 -0
- data/test/wsdl/raa/expectedDriver.rb +1 -0
- data/test/wsdl/raa/expectedMappingRegistry.rb +1 -0
- data/test/wsdl/raa/test_raa.rb +1 -0
- data/test/wsdl/ref/expectedDriver.rb +1 -0
- data/test/wsdl/ref/expectedProduct.rb +1 -0
- data/test/wsdl/ref/test_ref.rb +1 -0
- data/test/wsdl/rpc/RPC-Literal-TestDefinitions.rb +91 -0
- data/test/wsdl/rpc/RPC-Literal-TestDefinitionsDriver.rb +148 -0
- data/test/wsdl/rpc/RPC-Literal-TestDefinitionsMappingRegistry.rb +169 -0
- data/test/wsdl/rpc/test_rpc.rb +1 -0
- data/test/wsdl/rpc/test_rpc_lit.rb +1 -0
- data/test/wsdl/simplecontent/test_simplecontent.rb +1 -0
- data/test/wsdl/simpletype/rpc/expectedClient.rb +1 -0
- data/test/wsdl/simpletype/rpc/expectedDriver.rb +1 -0
- data/test/wsdl/simpletype/rpc/expectedEchoVersion.rb +1 -0
- data/test/wsdl/simpletype/rpc/expectedMappingRegistry.rb +1 -0
- data/test/wsdl/simpletype/rpc/expectedServant.rb +1 -0
- data/test/wsdl/simpletype/rpc/expectedService.rb +1 -0
- data/test/wsdl/simpletype/rpc/test_rpc.rb +1 -0
- data/test/wsdl/simpletype/test_simpletype.rb +1 -0
- data/test/wsdl/soap/test_soapbodyparts.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/expectedClient.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/expectedDriver.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/expectedMappingRegistry.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/expectedServant.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/expectedService.cgi +1 -0
- data/test/wsdl/soap/wsdl2ruby/expectedService.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/section/test_section.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/soapenc/test_soapenc.rb +1 -0
- data/test/wsdl/soap/wsdl2ruby/test_wsdl2ruby.rb +1 -0
- data/test/wsdl/soaptype/test_soaptype.rb +1 -0
- data/test/wsdl/test_emptycomplextype.rb +1 -0
- data/test/wsdl/test_fault.rb +1 -0
- data/test/wsdl/test_multiplefault.rb +1 -0
- data/test/xsd/codegen/test_classdef.rb +1 -0
- data/test/xsd/test_noencoding.rb +1 -0
- data/test/xsd/test_ns.rb +1 -0
- data/test/xsd/test_xmlschemaparser.rb +1 -0
- data/test/xsd/test_xsd.rb +1 -0
- data/test/xsd/xsd2ruby/expected_mysample.rb +1 -0
- data/test/xsd/xsd2ruby/expected_mysample_mapper.rb +1 -0
- data/test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb +1 -0
- data/test/xsd/xsd2ruby/test_xsd2ruby.rb +1 -0
- metadata +6 -7
data/lib/wsdl/xmlSchema/ref.rb
CHANGED
data/lib/wsdl/xmlSchema/union.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: ASCII-8BIT
|
1
2
|
# XSD4R - XSD to ruby mapping library.
|
2
3
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
3
4
|
|
@@ -121,6 +122,7 @@ private
|
|
121
122
|
filename = File.join(basedir, filename)
|
122
123
|
end
|
123
124
|
File.open(filename, "w") do |f|
|
125
|
+
f.puts "# encoding: ASCII-8BIT"
|
124
126
|
yield f
|
125
127
|
end
|
126
128
|
end
|
data/lib/xsd/charset.rb
CHANGED
data/lib/xsd/codegen.rb
CHANGED
data/lib/xsd/codegen/classdef.rb
CHANGED
data/lib/xsd/datatypes.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: ASCII-8BIT
|
1
2
|
# XSD4R - XML Schema Datatype implementation.
|
2
3
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
3
4
|
|
@@ -506,8 +507,9 @@ require 'rational'
|
|
506
507
|
require 'date'
|
507
508
|
|
508
509
|
module XSDDateTimeImpl
|
509
|
-
|
510
|
-
|
510
|
+
SecInMicro = 1000000 # 1 second = 1 million microseconds
|
511
|
+
DayInSec = 86400 # 24 Hours/Day * 60 Minutes/Hour * 60 Seconds/Minute
|
512
|
+
DayInMicro = (DayInSec * SecInMicro)
|
511
513
|
|
512
514
|
def to_obj(klass)
|
513
515
|
if klass == Time
|
@@ -525,11 +527,11 @@ module XSDDateTimeImpl
|
|
525
527
|
begin
|
526
528
|
if @data.offset * DayInSec == Time.now.utc_offset
|
527
529
|
d = @data
|
528
|
-
|
530
|
+
usec = (RUBY_VERSION.to_f >= 1.9) ? (d.sec_fraction * SecInMicro).to_i : (d.sec_fraction * DayInMicro).round
|
529
531
|
Time.local(d.year, d.month, d.mday, d.hour, d.min, d.sec, usec)
|
530
532
|
else
|
531
533
|
d = @data.newof
|
532
|
-
|
534
|
+
usec = (RUBY_VERSION.to_f >= 1.9) ? (d.sec_fraction * SecInMicro).to_i : (d.sec_fraction * DayInMicro).round
|
533
535
|
Time.gm(d.year, d.month, d.mday, d.hour, d.min, d.sec, usec)
|
534
536
|
end
|
535
537
|
rescue ArgumentError
|
@@ -583,11 +585,10 @@ module XSDDateTimeImpl
|
|
583
585
|
t <<= 12 if t.year < 0
|
584
586
|
t
|
585
587
|
elsif t.is_a?(Time)
|
586
|
-
jd = DateTime.civil_to_jd
|
587
|
-
fr = DateTime.time_to_day_fraction
|
588
|
-
t.usec.to_r / DayInMicro
|
588
|
+
jd = DateTime.send(:civil_to_jd, t.year, t.mon, t.mday, DateTime::ITALY)
|
589
|
+
fr = DateTime.send(:time_to_day_fraction, t.hour, t.min, [t.sec, 59].min) + t.usec.to_r / DayInMicro
|
589
590
|
of = t.utc_offset.to_r / DayInSec
|
590
|
-
DateTime.new!(DateTime.jd_to_ajd
|
591
|
+
DateTime.new!(DateTime.send(:jd_to_ajd, jd, fr, of), of, DateTime::ITALY)
|
591
592
|
else
|
592
593
|
screen_data_str(t)
|
593
594
|
end
|
@@ -651,8 +652,8 @@ private
|
|
651
652
|
if @data.sec_fraction.nonzero?
|
652
653
|
if @secfrac
|
653
654
|
s << ".#{ @secfrac }"
|
654
|
-
elsif (RUBY_VERSION.to_f >= 1.9)
|
655
|
-
s << sprintf("%.16f"
|
655
|
+
elsif (RUBY_VERSION.to_f >= 1.9)
|
656
|
+
s << sprintf("%.16f",@data.sec_fraction.to_f).sub(/^0/, '').sub(/0*$/, '')
|
656
657
|
else
|
657
658
|
s << sprintf("%.16f",(@data.sec_fraction * DayInSec).to_f).sub(/^0/, '').sub(/0*$/, '')
|
658
659
|
end
|
data/lib/xsd/datatypes1999.rb
CHANGED
data/lib/xsd/iconvcharset.rb
CHANGED
data/lib/xsd/mapping.rb
CHANGED
data/lib/xsd/namedelements.rb
CHANGED
data/lib/xsd/ns.rb
CHANGED
data/lib/xsd/qname.rb
CHANGED
data/lib/xsd/xmlparser.rb
CHANGED
data/lib/xsd/xmlparser/parser.rb
CHANGED
data/test/16runner.rb
CHANGED
data/test/helper.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
# encoding: ASCII-8BIT
|
1
2
|
require 'test/unit'
|
2
3
|
require 'rubygems'
|
3
4
|
require 'test/unit/xml' ## RubyJedi
|
4
5
|
|
5
6
|
ENV['DEBUG_SOAP4R'] = 'true' ## Needed to force wsdl2ruby.rb and xsd2ruby.rb to use DEVELOPMENT soap4r libs instead of installed soap4r libs
|
6
|
-
$DEBUG = !!ENV['WIREDUMPS']
|
7
|
+
$DEBUG = !!ENV['WIREDUMPS']
|
data/test/interopR2/base.rb
CHANGED
data/test/interopR2/client.rb
CHANGED
data/test/interopR2/clientHP.rb
CHANGED