ruby 1.9 patch for quickbooks gem
Reported by Daniel Parker | January 30th, 2010 @ 12:16 AM | in 2.1 - "A Quicker Delight"
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.
Comments and changes to this ticket
-
Daniel Parker January 30th, 2010 @ 12:17 AM
- no changes were found...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป