Re: [Ironruby-core] Code Review: RubyScopeDebugView

2008-05-08 Thread Robert Brotherus
Thanks for the quick patch Tomas, works fine! I found it even more useful when I changed the DebuggerBrowsableState of the values to Collapsed (was Never) in RubyScope.cs. With this I can expand and see values of ruby-arrays (otherwise the debugger just shows for arrays {Ruby.Builtins.RubyArray}

[Ironruby-core] Forgetting MutableString

2008-05-08 Thread Peter Bacon Darwin
I keep forgetting to wrap up CLR strings in MutableStrings when returning strings retrieved from calls to .NET Framework library methods. I had this RSpec that had something like: some_array[3].should == some mutable string that was failing with the error: Expected some mutable

Re: [Ironruby-core] Forgetting MutableString

2008-05-08 Thread Robert Brotherus
I would guess that IR-teams plan is to implement auto-wrapping of strings coming from DotNet as MutableStrings? At least I hope so since that would get rid of my code of extensive to_s calls from parameters / values coming from C# :-) Robert Brotherus Software architect Napa Ltd _

Re: [Ironruby-core] Forgetting MutableString

2008-05-08 Thread Steve Eichert
I wasn't a fan of all the calls to to_s either so I put together a small patch (which undoubtedly is nothing like what the actual fix is going to be) to relieve my pains. The bug I submitted along with a patch I made locally can be found at:

Re: [Ironruby-core] Forgetting MutableString

2008-05-08 Thread Peter Bacon Darwin
The trouble is that MutableStrings and CLR Strings are (going to be, if not already) quite different creatures. For a start the CLR string is always UTF-16, while the MutableString is basically just an array of bytes, which can be interpreted in different ways depending on the K-Code you are

[Ironruby-core] generic and non generic type with the same name

2008-05-08 Thread Steve Eichert
IronRuby seems to be having a problem resolving a generic type when a non generic type with the same name exists. The specific example that I discovered the bug with is when trying to using Moq [1]. describe some class with a mock do it should use the mock do mock = Mock.of(IMyMock).new

Re: [Ironruby-core] generic and non generic type with the same name

2008-05-08 Thread John Lam (IRONRUBY)
Steve Eichert: This issue has been reported on Rubyforge (bug #20033). Thanks! Can you point me in the general direction of where things would need to change in order to get this to work so I can hack around a bit? The high order bit here is that we're not delegating to the default DLR

Re: [Ironruby-core] Forgetting MutableString

2008-05-08 Thread John Lam (IRONRUBY)
Peter Bacon Darwin: I understand that Tomas is working on a version of MutableString that has a hybrid internal organisation to enable easy cooperation with CLR strings while maintaining compatibility with Ruby strings (hopefully without losing out in performance). Yes- Tomas is working on a

Re: [Ironruby-core] TDD in coding!

2008-05-08 Thread John Lam (IRONRUBY)
Unnikrishnan Nair: Are we developing the code in TDD style with CI? Currently all the methods I have added, I have a seperate ruby code which runs test against to verify my results. I would like to know are we adding the tests build into the code itself? Sorry, I didn't see the test cases,

Re: [Ironruby-core] Forgetting MutableString

2008-05-08 Thread John Lam (IRONRUBY)
Peter Bacon Darwin: I keep forgetting to wrap up CLR strings in MutableStrings when returning strings retrieved from calls to .NET Framework library methods. I finally understand what this is ... is this what you're looking for? public override bool Equals(object other) {

Re: [Ironruby-core] TDD in coding!

2008-05-08 Thread Unnikrishnan Nair
Thanks, How do I go about sending the code changes I made? I would like to submit a small changes first and get the feedback and then I can go full blown development. I just finished 10 functions that passed my full test. Thanks. - Original Message From: John Lam (IRONRUBY) [EMAIL

Re: [Ironruby-core] TDD in coding!

2008-05-08 Thread Unnikrishnan Nair
I will do that. Thanks. - Original Message From: John Lam (IRONRUBY) [EMAIL PROTECTED] To: ironruby-core@rubyforge.org ironruby-core@rubyforge.org Sent: Thursday, May 8, 2008 3:17:46 PM Subject: Re: [Ironruby-core] TDD in coding! Unnikrishnan Nair: Thanks, How do I go about sending

Re: [Ironruby-core] Playing around with www.ironruby.net

2008-05-08 Thread Michael Letterle
Yeah, add some custom DNS servers and use a real DNS management tool ;) Seriously though, click on the domain, click on the Total DNS Control and MX Records Look at the A record, make sure the A record points to the same host as the CNAME record for 'www' (or both A records if there's two).

Re: [Ironruby-core] Code Review: bugfixes-7

2008-05-08 Thread Unnikrishnan
Hi john, I implemented both basename and file as well. But I will build a patch without those two in it after getting your update. Thanks. On May 8, 2008, at 3:37 PM, John Lam (IRONRUBY) [EMAIL PROTECTED] wrote: tfpt review /shelveset:bugfixes-7;REDMOND\jflam Ruby only This shelveset

Re: [Ironruby-core] Code Review: Reflection

2008-05-08 Thread Dino Viehland
I think you also need to check for ci.IsFamilyAndAssembly in RubyTypeBuilder.MakeClass (when checking for private) but otherwise it looks good. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomas Matousek Sent: Thursday, May 08, 2008 11:57 AM To:

Re: [Ironruby-core] IronRuby r100 on Mono

2008-05-08 Thread Ivan Porto Carrero
ok looks like you need the gem pathname2 sudo gem install pathname2 (might be pathname my memory fails me) On 9/05/2008, at 3:20 PM, Robert Bazinet wrote: Ivan, I wanted to see if you were paying attention..yes, what I sent over shows the command from the WRONG directory. I was in that

Re: [Ironruby-core] running tests on server 2008

2008-05-08 Thread Chris Ortman
I do get the same results if I run this from c:\ironruby. On Thu, May 8, 2008 at 11:20 AM, John Lam (IRONRUBY) [EMAIL PROTECTED] wrote: Chris Ortman: Q:\ironrubyrake rspec (in Q:/ironruby) ./chdir_spec.rb:19: warning: conflicting chdir during another chdir block ... 499 examples, 99

Re: [Ironruby-core] running tests on server 2008

2008-05-08 Thread Chris Ortman
Sorry, didn't mean to send yet I am having the same behavior running from c:\ironruby I think that calling ruby.exe spec_runner.rb is returning the number of failures as the return code and that is causing the problemthat's the only thing I can think of the 99 coming from anyway. On Thu,