ruby-changes:20688
From: akr <ko1@a...>
Date: Fri, 29 Jul 2011 20:32:22 +0900 (JST)
Subject: [ruby-changes:20688] akr:r32736 (trunk, ruby_1_9_3): * ext/socket/mkconstants.rb: use whitespaces as a separator.
akr 2011-07-29 20:29:49 +0900 (Fri, 29 Jul 2011) New Revision: 32736 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32736 Log: * ext/socket/mkconstants.rb: use whitespaces as a separator. Modified files: branches/ruby_1_9_3/ChangeLog branches/ruby_1_9_3/ext/socket/mkconstants.rb trunk/ChangeLog trunk/ext/socket/mkconstants.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 32735) +++ ChangeLog (revision 32736) @@ -1,3 +1,7 @@ +Fri Jul 29 20:28:56 2011 Tanaka Akira <akr@f...> + + * ext/socket/mkconstants.rb: use whitespaces as a separator. + Fri Jul 29 18:59:07 2011 Tanaka Akira <akr@f...> * ext/socket/mkconstants.rb: add documents for constants. Index: ext/socket/mkconstants.rb =================================================================== --- ext/socket/mkconstants.rb (revision 32735) +++ ext/socket/mkconstants.rb (revision 32736) @@ -40,7 +40,7 @@ COMMENTS = Hash.new { |h, name| h[name] = name } DATA.each_line {|s| - name, default_value, comment = s.chomp.split "\t" + name, default_value, comment = s.chomp.split(/\s+/, 3) next unless name && name[0] != ?# default_value = nil if default_value == 'nil' Index: ruby_1_9_3/ChangeLog =================================================================== --- ruby_1_9_3/ChangeLog (revision 32735) +++ ruby_1_9_3/ChangeLog (revision 32736) @@ -1,3 +1,7 @@ +Fri Jul 29 20:28:56 2011 Tanaka Akira <akr@f...> + + * ext/socket/mkconstants.rb: use whitespaces as a separator. + Fri Jul 29 18:59:07 2011 Tanaka Akira <akr@f...> * ext/socket/mkconstants.rb: add documents for constants. Index: ruby_1_9_3/ext/socket/mkconstants.rb =================================================================== --- ruby_1_9_3/ext/socket/mkconstants.rb (revision 32735) +++ ruby_1_9_3/ext/socket/mkconstants.rb (revision 32736) @@ -40,7 +40,7 @@ COMMENTS = Hash.new { |h, name| h[name] = name } DATA.each_line {|s| - name, default_value, comment = s.chomp.split "\t" + name, default_value, comment = s.chomp.split(/\s+/, 3) next unless name && name[0] != ?# default_value = nil if default_value == 'nil' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/