summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-10 12:18:26 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-10 12:18:26 +0000
commit7f52fa08b10cdaecf9e64e7d1e14709543d56743 (patch)
tree6d81a2d0384e4fa013deb30b43e7d65a562add1f
parent8de603784a5e9abee3a33e47b7dd226952e161ef (diff)
* ext/socket/mkconstants.rb: don't generate unintended newlines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--ext/socket/mkconstants.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 31ec3b1c2f4..4ee7376f36c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Jan 10 21:17:28 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: don't generate unintended newlines.
+
Sat Jan 10 20:50:02 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/mkconstants.rb: refactored to nest properly in statically
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index 26a6ef687da..655e990e3da 100644
--- a/ext/socket/mkconstants.rb
+++ b/ext/socket/mkconstants.rb
@@ -83,10 +83,10 @@ ERB.new(<<'EOS', nil, '%').def_method(Object, "gen_const_defs")
% each_const {|guard, define, name, default_value|
% if guard
#if <%=guard%>
-<%= gen_const_defs_in_guard(define, name, default_value) %>
+<%= gen_const_defs_in_guard(define, name, default_value).chomp %>
#endif
% else
-<%= gen_const_defs_in_guard(define, name, default_value) %>
+<%= gen_const_defs_in_guard(define, name, default_value).chomp %>
% end
% }
EOS