Re: [Ironruby-core] Forgetting MutableString

2008-05-08 Thread Peter Bacon Darwin
This actually makes my problem worse! Now there is no way of catching the times when I accidentally return a CLR string rather than a MutableString. It will only flag up when client code tries to call a MutableString method on the CLR string. Pete -Original Message- From: [EMAIL PROTECTED

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,

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:\ironruby>rake rspec >> (in Q:/ironruby) >> ./chdir_spec.rb:19: warning: conflicting chdir during another chdir >> block >> ... >> 499 e

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 d

Re: [Ironruby-core] IronRuby r100 on Mono

2008-05-08 Thread Robert Bazinet
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 directory and just used the command history to run the command so I could send it over to the group. The command is failing and I am sending the right one now. You

Re: [Ironruby-core] IronRuby r100 on Mono

2008-05-08 Thread Ivan Porto Carrero
This happens to me sometimes but isn't related to ironruby in my case. if you do ls Rake* does something show up? Rake is complaining about the fact that it can't find its instruction set (Rakefile). From the output I see, it doesn't even start to build I merely suggested navigating to th

Re: [Ironruby-core] IronRuby r100 on Mono

2008-05-08 Thread Robert Bazinet
Yes, the source is on my home drive in a subdir named IronRuby, and yes, I navigated to the folder. Thanks. -Rob On Thu, May 8, 2008 at 10:54 PM, Ivan Porto Carrero <[EMAIL PROTECTED]> wrote: > Did you download the sources into your home drive. It looks like you need > to navigate into the fol

Re: [Ironruby-core] IronRuby r100 on Mono

2008-05-08 Thread Ivan Porto Carrero
Did you download the sources into your home drive. It looks like you need to navigate into the folder where you downloaded the ironruby source and then call rake :) On 9/05/2008, at 2:09 PM, Robert Bazinet wrote: I am attempting to build r100 on Mono on my Mac and getting an error I have

Re: [Ironruby-core] IronRuby r100 on Mono

2008-05-08 Thread Robert Bazinet
I am attempting to build r100 on Mono on my Mac and getting an error I have not seen before. I have followed the instructions and used the provided patch. Here is what I get: rbazinet: ~$ rake --trace compile mono=1 rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,

Re: [Ironruby-core] Code Review: Reflection

2008-05-08 Thread Tomas Matousek
Thanks, forgot about that one. Tomas -Original Message- From: Dino Viehland Sent: Thursday, May 08, 2008 5:12 PM To: ironruby-core@rubyforge.org; IronRuby External Code Reviewers Subject: RE: Code Review: Reflection I think you also need to check for ci.IsFamilyAndAssembly in RubyTypeBu

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: IronR

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] 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). Us

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

2008-05-08 Thread Jimmy Schementi
I'm trying to make http://ironruby.net take you to the same page as http://www.ironruby.net, but in the meantime both might be broken. If so, just go to http://ironruby.rubyforge.org. PS. Anyone know how to do this on GoDaddy? Extremely confusing! ~js ___

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" 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 the code changes I made?

Re: [Ironruby-core] TDD in coding!

2008-05-08 Thread John Lam (IRONRUBY)
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. Please generate a patch and submit to Rubyforge:

[Ironruby-core] Code Review: Reflection

2008-05-08 Thread Tomas Matousek
tfpt review /shelveset:Reflection;REDMOND\tomat Removes singleton classes from Module#ancestors return value to match MRI. Implements Kernel#extend, Kernel#singleton_methods, Module#extended and Module#extend_object. Fixes [#20002] singleton_methods not implemented. Fixes [#19972] Module::module

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 PRO

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

2008-05-08 Thread John Lam (IRONRUBY)
Chris Ortman: > Q:\ironruby>rake rspec > (in Q:/ironruby) > ./chdir_spec.rb:19: warning: conflicting chdir during another chdir > block > ... > 499 examples, 99 failures > rake aborted! > Command failed with status (99): ["ruby.exe" spec_runner.rb - - > summary...] Q:/ironruby/rakefile:234:in `inv

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 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,

[Ironruby-core] TDD in coding!

2008-05-08 Thread 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, thats why I asked. Than

[Ironruby-core] running tests on server 2008

2008-05-08 Thread Chris Ortman
Is anyone using windows server 2008 for ruby / ironruby? I am trying to run rake rspec and get an error when it gets to the summary: Q:\ironruby>rake rspec (in Q:/ironruby) ./chdir_spec.rb:19: warning: conflicting chdir during another chdir block ./chdir_spec.rb:10: warning: conflicting chdir dur

Re: [Ironruby-core] Forgetting MutableString

2008-05-08 Thread John Lam (IRONRUBY)
Robert Brotherus: > 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 Yes - your to_s hacks should go away :) Thanks, -John ___ I

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 o

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

2008-05-08 Thread Steve Eichert
My goal was mostly to hack around and try and get it working with the assumption that you guys would do it the right way sometime after Railsconf and I would throw my hack out. I'll dig around in the Binder to see if I can uncover anything. Thanks, Steve On Thu, May 8, 2008 at 11:22 AM, John Lam

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 bi

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

2008-05-08 Thread Steve Eichert
This issue has been reported on Rubyforge (bug #20033). 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? Cheers, Steve On Thu, May 8, 2008 at 9:56 AM, John Lam (IRONRUBY) <[EMAIL PROTECTED]> wrote: > Steve Ei

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

2008-05-08 Thread John Lam (IRONRUBY)
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 >

[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] 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 using

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: http://rubyforge.org/tracker/?func=detail&aid=19873&gro

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 _ F

[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 s

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}"