Re: [Ironruby-core] Proposal: Moving IronRuby bugs to CodePlex

2009-04-07 Thread Jimmy Schementi
No objections/concerns/thoughts/concerns/praises/gifts-of-gold-frankincense-and-myrrh? Ok then ... http://ironruby.codeplex.com/ has been created, and once live all bugs will be stored there. Jim is going through RubyForge bugs slowly, closing ones that are fixed, and possibly moving important

Re: [Ironruby-core] Review: GzipWriter.open

2009-04-07 Thread Shri Borde
The following Ruby code prints "to_int". So checking for to_int seems to be correct, right? class C def to_int puts "to_int" 0 end def to_i puts "to_i" 0 end end [].at(C.new) Thanks, Shri From: Jim Deville Sent: Tuesday, April 07, 2009 1:25 PM To: Shri Borde; IronRuby Exte

Re: [Ironruby-core] Review: GzipWriter.open

2009-04-07 Thread Jim Deville
My bad. These look fine as is then. jD -Original Message- From: Shri Borde Sent: April 07, 2009 1:47 PM To: Jim Deville ; IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: RE: Review: GzipWriter.open The following Ruby code prints “to_int”. So checking for to

Re: [Ironruby-core] Review: GzipWriter.open

2009-04-07 Thread Tomas Matousek
Looks good. Tomas From: Shri Borde Sent: Tuesday, April 07, 2009 1:09 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Review: GzipWriter.open http://github.com/shri/ironruby/commit/fb6f89146e331a9f20f444d5ca94478dfce7f555 GitDiff.bat 9fc3048beb4a315ec7ac3dc82908d

Re: [Ironruby-core] Review: GzipWriter.open

2009-04-07 Thread Jim Deville
+ it "raises TypeError unless the arguments are exactly a String, Fixnum and Fixnum" do +filename = mock("filename") +filename.should_not_receive(:to_s) +lambda { Zlib::GzipWriter.open(filename) }.should raise_error(TypeError) + +level = mock("level") +level.should_not_receive

[Ironruby-core] Review: GzipWriter.open

2009-04-07 Thread Shri Borde
http://github.com/shri/ironruby/commit/fb6f89146e331a9f20f444d5ca94478dfce7f555 GitDiff.bat 9fc3048beb4a315ec7ac3dc82908da8f92bf1a07 fb6f89146e331a9f20f444d5ca94478dfce7f555 * Implemented Zlib::GzipWriter.open * Added Kernel.abort * Mapped Errno::EACCES to System.Unauth

Re: [Ironruby-core] Linq syntax?

2009-04-07 Thread Stefan Dobrev
I was just going to post about this. Currently it is not possible to call the extension methods in System::Linq::Enumerable and System::Linq::Queryable. >>> require 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' => true >>> include System::Linq => Object >>> Query

Re: [Ironruby-core] Problem checking out iron ruby source

2009-04-07 Thread Shri Borde
No idea. Can you clone any other GIT repo? Did you Google for it? Btw, I found that the GIT tutorial at http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html is very helpful for ramping up on GIT concepts. Thanks, Shri -Original Message- From: ironruby-core-boun...@rubyforge

Re: [Ironruby-core] Linq syntax?

2009-04-07 Thread Tomas Matousek
Method of Queryable take expression trees. Ruby lambdas are not convertible to expression trees. You need to build the expression tree yourself. Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, April 07,

[Ironruby-core] Case of drive letter

2009-04-07 Thread Shri Borde
Using MRI on Windows, Dir.pwd can use either lower-case or upper-case for the drive letter ("C:/" or "c:/") depending on the Command Prompt it is run from. However, __FILE__ always uses lower-case drive letter. This can cause problems when comparing Dir.pwd and __FILE__. For eg, Pathname#relati

[Ironruby-core] Linq syntax?

2009-04-07 Thread Ivan Porto Carrero
Hi What would be the syntax to call Linq methods? for example: I have an IQueryable and I want to get the equivalent out of from user in MyRepository.Users where user.name == "somename" That of course is only one example, I want to do a lot more :) My best guess is that I would have to do somet

Re: [Ironruby-core] is this a bug?

2009-04-07 Thread Jim Deville
Looks like a bug. Please file one against Tomas on Rubyforge. JD From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, April 07, 2009 10:03 AM To: ironruby-core Subject: [Ironruby-core] is this a bug? Hi Given the

[Ironruby-core] is this a bug?

2009-04-07 Thread Ivan Porto Carrero
Hi Given the following (contrived) code: namespace PersonLibrary { public class Person { public int Id { get; set; } public string Name { get; set; } } public class Friend { public Friend(Person person) { Person = person; }

[Ironruby-core] Problem checking out iron ruby source

2009-04-07 Thread Antti Karanta
Hi! I tried to check out iron ruby sources following the instructions in http://www.ironruby.net/Download but bumped into problems: n...@nw32 /cygdrive/c/programs/dotnet/ironruby $ git clone git://github.com/ironruby/ironruby.git Initialized empty Git repository in /