ruby-changes:3142
From: ko1@a...
Date: 25 Dec 2007 05:47:25 +0900
Subject: [ruby-changes:3142] drbrain - Ruby:r14634 (trunk): Fix uninitialized variable warning in Net::HTTP
drbrain 2007-12-25 05:47:11 +0900 (Tue, 25 Dec 2007)
New Revision: 14634
Modified files:
trunk/ChangeLog
trunk/lib/irb/output-method.rb
trunk/lib/net/http.rb
Log:
Fix uninitialized variable warning in Net::HTTP
Remove unused method in IRB::OutputMethod.
[ruby-talk:284582]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/irb/output-method.rb?r1=14634&r2=14633
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14634&r2=14633
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/net/http.rb?r1=14634&r2=14633
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14633)
+++ ChangeLog (revision 14634)
@@ -1,3 +1,11 @@
+Tue Dec 25 05:44:56 2007 Eric Hodel <drbrain@s...>
+
+ * lib/net/http.rb: Fix uninitialized variable warning.
+ [ruby-talk:284582]
+
+ * lib/irb/output-method.rb: Remove unused #foo method.
+ [ruby-talk:284582]
+
Tue Dec 25 05:24:12 2007 Koichi Sasada <ko1@a...>
* compile.c (iseq_compile): clear local table if node == 0.
Index: lib/irb/output-method.rb
===================================================================
--- lib/irb/output-method.rb (revision 14633)
+++ lib/irb/output-method.rb (revision 14634)
@@ -45,21 +45,6 @@
return format, opts if $1.size % 2 == 1
end
- def foo(format)
- pos = 0
- inspects = []
- format.scan(/%[#0\-+ ]?(\*(?=[^0-9])|\*[1-9][0-9]*\$|[1-9][0-9]*(?=[^0-9]))?(\.(\*(?=[^0-9])|\*[1-9][0-9]*\$|[1-9][0-9]*(?=[^0-9])))?(([1-9][0-9]*\$)*)([diouxXeEfgGcsb%])/) {|f, p, pp, pos, new_pos, c|
- puts [f, p, pp, pos, new_pos, c].join("!")
- pos = new_pos if new_pos
- if c == "I"
- inspects.push pos.to_i
- (f||"")+(p||"")+(pp||"")+(pos||"")+"s"
- else
- $&
- end
- }
- end
-
def puts(*objs)
for obj in objs
print(*obj)
Index: lib/net/http.rb
===================================================================
--- lib/net/http.rb (revision 14633)
+++ lib/net/http.rb (revision 14634)
@@ -485,6 +485,7 @@
@ssl_context = nil
@enable_post_connection_check = true
@compression = nil
+ @sspi_enabled = false
end
def inspect
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml