public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Fix announcement of very long migration names.  #5722 
[blake@near-time.com] Backported from trunk.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@4703 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Marcel Molina (author)
Sun Aug 06 23:25:01 -0700 2006
commit  817ace4d103a0c9e0d87f92584fbe209800ba80f
tree    89af27d35a76f476993706fdfecc8bc48645ef1f
parent  171aa5c4c1ede63335902b073a22d56ae9cbbf97
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *1.14.3* (June 27th, 2006)
0
 
0
+* Fix announcement of very long migration names. #5722 [blake@near-time.com]
0
+
0
 * Update callbacks documentation. #3970 [Robby Russell <robby@planetargon.com>]
0
 
0
 * Properly quote index names in migrations (closes #4764) [John Long]
...
243
244
245
246
 
 
247
248
249
...
243
244
245
 
246
247
248
249
250
0
@@ -243,7 +243,8 @@
0
 
0
       def announce(message)
0
         text = "#{name}: #{message}"
0
- write "== %s %s" % [ text, "=" * (75 - text.length) ]
0
+ length = [0, 75 - text.length].max
0
+ write "== %s %s" % [text, "=" * length]
0
       end
0
 
0
       def say(message, subitem=false)

Comments

    No one has commented yet.