[macruby-changes] [4741] DietRB/trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 8 04:08:18 PDT 2010


Revision: 4741
          http://trac.macosforge.org/projects/ruby/changeset/4741
Author:   eloy.de.enige at gmail.com
Date:     2010-10-08 04:08:17 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
Don't use initialize as method as MacRuby chokes on it

From: Eloy Duran <eloy.de.enige at gmail.com>

Modified Paths:
--------------
    DietRB/trunk/lib/irb/ext/history.rb
    DietRB/trunk/spec/ext/history_spec.rb

Modified: DietRB/trunk/lib/irb/ext/history.rb
===================================================================
--- DietRB/trunk/lib/irb/ext/history.rb	2010-10-08 11:08:07 UTC (rev 4740)
+++ DietRB/trunk/lib/irb/ext/history.rb	2010-10-08 11:08:17 UTC (rev 4741)
@@ -11,7 +11,7 @@
     class << self
       attr_accessor :file, :max_entries_in_overview
       
-      def initialize
+      def setup
         to_a.each do |source|
           Readline::HISTORY.push(source)
         end if Readline::HISTORY.to_a.empty?
@@ -89,4 +89,4 @@
 
 IRB::History.file = File.expand_path("~/.irb_history")
 IRB::History.max_entries_in_overview = 50
-IRB::History.initialize
\ No newline at end of file
+IRB::History.setup
\ No newline at end of file

Modified: DietRB/trunk/spec/ext/history_spec.rb
===================================================================
--- DietRB/trunk/spec/ext/history_spec.rb	2010-10-08 11:08:07 UTC (rev 4740)
+++ DietRB/trunk/spec/ext/history_spec.rb	2010-10-08 11:08:17 UTC (rev 4741)
@@ -58,8 +58,8 @@
     @history.input "puts :ok"
     @history.input "foo(x)"
     
-    IRB::History.initialize
-    IRB::History.initialize
+    IRB::History.setup
+    IRB::History.setup
     
     Readline::HISTORY.to_a.should == ["puts :ok", "foo(x)"]
   end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/77ee4c02/attachment.html>


More information about the macruby-changes mailing list