branch: elpa/inf-ruby
commit 451aa1d858b3447fff6c247ea5744e7c920d291c
Merge: 5c73e1a79c 55559dfaac
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    Merge pull request #71 from jasonko/master
    
    fix OpenStruct.new syntax to work with ruby 1.8.7
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index edbbcf590f..a6d4b14da8 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -478,7 +478,7 @@ Then switch to the process buffer."
                    "  old_wp = defined?(Bond) && Bond.started? && 
Bond.agent.weapon;"
                    "  begin"
                    "    Bond.agent.instance_variable_set('@weapon',"
-                   "      OpenStruct.new(line_buffer: line)) if old_wp;"
+                   "      OpenStruct.new(:line_buffer => line)) if old_wp;"
                    "    if defined?(_pry_.complete) then"
                    "      puts _pry_.complete(expr)"
                    "    else"

Reply via email to