summaryrefslogtreecommitdiffstats
path: root/lib/xsd
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-01 15:29:43 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-01 15:29:43 +0000
commit7638241523e17df24cc72d216837e437e2fb0493 (patch)
tree35f0a5b4fb6324e3695cef7149036b6fcd0e3d3e /lib/xsd
parent72264f097b5787e6d31f1aa4b29f1fc958ede257 (diff)
downloadruby-7638241523e17df24cc72d216837e437e2fb0493.tar.gz
ruby-7638241523e17df24cc72d216837e437e2fb0493.tar.xz
ruby-7638241523e17df24cc72d216837e437e2fb0493.zip
* test/logger/test_logger.rb: unlinking file before close causes problem under
win32 box. * lib/xsd/datatypes.rb(XSDFloat, XSDDouble): add +/- sign explicitly when stringified and embedded into XML instance. Ruby's sprintf may format -0.0 as "0.0" (no minus sign) depending on underlying C sprintf implementation. * test/xsd/test_xsd.rb, test/soap/test_basetype.rb: follow above change. * test/soap/calc/*: give httpd config param "CGIInterpreter". "/usr/bin/env ruby" thing does not work under non-Unix boxes. * ChangeLog: corrected wrong DoW of my log entries... git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/xsd')
-rw-r--r--lib/xsd/datatypes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xsd/datatypes.rb b/lib/xsd/datatypes.rb
index 03e42d21d..bb4f53e59 100644
--- a/lib/xsd/datatypes.rb
+++ b/lib/xsd/datatypes.rb
@@ -329,7 +329,7 @@ private
elsif @data.infinite? == -1
'-INF'
else
- sprintf("%.10g", @data)
+ sprintf("%+.10g", @data)
end
end
@@ -397,7 +397,7 @@ private
elsif @data.infinite? == -1
'-INF'
else
- sprintf("%.16g", @data)
+ sprintf("%+.16g", @data)
end
end
end