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}
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
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
_
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:
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 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
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
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
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,
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) {
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
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
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).
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
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:
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
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
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,
18 matches
Mail list logo