[Ironruby-core] Code Review: rakefix1

2008-11-06 Thread Seo Sanghyeon
Attached patch fixes (well, at least a bit of) Rake build. In particular, this patch fixes get_case_sensitive_path to actually work. Current code does p.downcase.to_s == filename, which assumes filename is already downcased, but filename is from *.csproj and it actually is not, so at least it shoul

Re: [Ironruby-core] Updated IronRuby / Mono install

2008-11-06 Thread Seo Sanghyeon
2008/11/6 Jose Antonio Diaz <[EMAIL PROTECTED]>: > Wondering if there is an update to the instructions currently on > ironruby.net? > > I've downloaded the latest stable build of Mono and trying to use the latest > SVN of IronRuby but it doesn't want to compile. Even reverting to r112 like > the in

Re: [Ironruby-core] IronRuby and System::Decimal

2008-11-06 Thread Michael Letterle
Here's some helper methods I've used for making System::Decimal a little more palatable: class Object def to_clr_dec System::Decimal.parse(self.to_s) end def to_clr_int System::Int32.parse(self.to_s) end end class System::Decimal def + other Sy

Re: [Ironruby-core] IronRuby and System::Decimal

2008-11-06 Thread Curt Hagenlocher
Originally, I had hacked in "decimal" to be our BigDecimal representation. Now that we have a real BigDecimal (courtesy of Peter Bacon Darwin), the CLR decimal type has become an orphan -- it doesn't really have any direct support in IronRuby, so you just get the same behavior that you'd get fo

Re: [Ironruby-core] IronRuby and System::Decimal

2008-11-06 Thread Ben Hall
Also, how would I compare decimals in ruby, as Ruby doesn't have a decimal type built in? I wanted to do something like @d > '12312.123123'.to_d However, that doesn't appear to be possible. I attempt to do to_f, but I got the following error: ArgumentError: Object must be of type Decimal. >Fro

[Ironruby-core] IronRuby and System::Decimal

2008-11-06 Thread Ben Hall
Hello, Just playing around with some .Net interop and the Decimal type. When I do puts, I expected that this would have given me the underlying number, or at least call to_string. Instead I got the following behaviour, with the object type being outputted. >>> @d = System::Decimal.MinValue => #

Re: [Ironruby-core] Updated IronRuby / Mono install

2008-11-06 Thread John Lam (IRONRUBY)
I haven't tried to build under Mono for some time now. I know that the rake compile task is currently broken in r160 - that's the task that you'll need to use under Mono. Once RubyConf is done, we'll spend some time fixing the Rakefile and verifying that everything works correctly under Mono. T

[Ironruby-core] Updated IronRuby / Mono install

2008-11-06 Thread Jose Antonio Diaz
Wondering if there is an update to the instructions currently on ironruby.net? I've downloaded the latest stable build of Mono and trying to use the latest SVN of IronRuby but it doesn't want to compile. Even reverting to r112 like the instructions said doesn't work. I downloaded the patc