[MacRuby-devel] Bizarre behaviour with an instance variable

2011-01-27 Thread Martin Hawkins
I find the following behaviour a little bizarre: At the macirb prompt (0.8) fileManager = NSFileManager.defaultManager @theProjectRoot = '/Users/martin/work/macruby/lots_of_files' => "/Users/martin/work/macruby/lots_of_files" >> filenames = fileManager.contentsOfDirectoryAtPath(@theProjectRoot, >>

Re: [MacRuby-devel] Bizarre behaviour with an instance variable

2011-01-27 Thread Eloy Durán
The problem you are seeing is because inside the #map block you don't reference the project root variable as an instance variable, but as a local variable. Hence the error “undefined local variable or method `theProjectRoot'” :) If you change the block like this, all should be good: map {|f

Re: [MacRuby-devel] Bizarre behaviour with an instance variable

2011-01-27 Thread Martin Hawkins
Yes - a 1.9 change; 'parameters to a block are now always local to a block' - I'll probably forget again before it sticks. On Jan 27, 9:44 am, Eloy Durán wrote: > The problem you are seeing is because inside the #map block you don't > reference the project root variable as an instance variable,

Re: [MacRuby-devel] Bizarre behaviour with an instance variable

2011-01-27 Thread Eloy Durán
I think you’re thinking about an unrelated change in 1.9, which is this: % ruby -e 'x = 42; lambda { |x| x = 21 }.call(x); p x' 21 % ruby19 -e 'x = 42; lambda { |x| x = 21 }.call(x); p x' 42 In your example ‘theProjectRoot’ is not a parameter to the block, that's ‘f’. It could have been a local

[MacRuby-devel] Test problem

2011-01-27 Thread Martin Hawkins
I have a Classes/Helpers/Constants.rb module . Several classes use it, so the following is common in my code:e.g # File: Record.rb require 'Constants' include Constants class Record end I have a test for Record.rb that worked prior to to my introduction of Constants: require 'test/unit' class Re

Re: [MacRuby-devel] Bizarre behaviour with an instance variable

2011-01-27 Thread Henry Maddocks
On 28/01/2011, at 2:46 AM, Eloy Durán wrote: > > In your example ‘theProjectRoot’ is not a parameter to the block, that's ‘f’. > It could have been a local variable (or method) outside of the block, but > that isn't so either, the one variable you defined that comes close is the > instance va

[MacRuby-devel] 0.9 release

2011-01-27 Thread Laurent Sansonetti
Hi guys, I think it's time to release trunk as 0.9. I expect to do it next week, if possible. I tagged the following tickets as blockers: http://www.macruby.org/trac/ticket/1121 http://www.macruby.org/trac/ticket/1128 If you think another ticket should also be a 0.9 blocker let me know, as I m

Re: [MacRuby-devel] 0.9 release

2011-01-27 Thread Caio Chassot
On 2011-01-27, at 21:27 , Laurent Sansonetti wrote: > Hi guys, > > I think it's time to release trunk as 0.9. I expect to do it next week, if > possible. Are we gonna have 0.10, 0.11, etc, or is 1.0 the next target? ___ MacRuby-devel mailing list MacRu

Re: [MacRuby-devel] 0.9 release

2011-01-27 Thread Laurent Sansonetti
On Jan 27, 2011, at 3:36 PM, Caio Chassot wrote: > On 2011-01-27, at 21:27 , Laurent Sansonetti wrote: >> Hi guys, >> >> I think it's time to release trunk as 0.9. I expect to do it next week, if >> possible. > > Are we gonna have 0.10, 0.11, etc, or is 1.0 the next target? There will very like

Re: [MacRuby-devel] 0.9 release

2011-01-27 Thread Justin Schumacher
Just posted a new regression: https://www.macruby.org/trac/ticket/1132 On Thu, Jan 27, 2011 at 5:54 PM, Laurent Sansonetti wrote: > On Jan 27, 2011, at 3:36 PM, Caio Chassot wrote: > > On 2011-01-27, at 21:27 , Laurent Sansonetti wrote: > > Hi guys, > > > I think it's time to release trunk as 0.

Re: [MacRuby-devel] 0.9 release

2011-01-27 Thread Laurent Sansonetti
Thanks Justin, we will fix that one in 0.9 :) Laurent On Jan 27, 2011, at 6:33 PM, Justin Schumacher wrote: > Just posted a new regression: > > https://www.macruby.org/trac/ticket/1132 > > On Thu, Jan 27, 2011 at 5:54 PM, Laurent Sansonetti > wrote: > On Jan 27, 2011, at 3:36 PM, Caio Chasso