Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

ruby 1.9 patch for quickbooks gem

#27

Attached is a patch that will fix the issue. This bug was caused by a
change in the way ruby 1.9 scopes local variables within blocks.
Essentially, locally defined variables within a block's argument list will shadow existing locally scoped variables in ruby 1.9, but not in ruby 1.8.
For instance, consider the following code:

a = nil
[1,2,3].each {|a| print "#{a} "} puts a.inspect

In ruby 1.9, this outputs:
1 2 3 nil

Whereas ruby 1.8 outputs:
1 2 3 3

I tested the patch in 1.8 and 1.9 and it seems to work.

Reported by Daniel Parker · January 30th, 2010 @ 12:16 AM

State: new
Assigned to: Daniel Parker Daniel Parker

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.