Re: [Ironruby-core] Newbie questions regarding IronRuby in Silverlight...

2009-10-02 Thread Jimmy Schementi
However, in this case (where all you want is to use bigdecimal.rb, which is entirely implemented in C#) you can just do this: load_assembly 'IronRuby.Libraries', 'IronRuby.StandardLibrary.BigDecimal' Which is the entire contents of bigdecimal.rb :) ~js From: iron

Re: [Ironruby-core] Newbie questions regarding IronRuby in Silverlight...

2009-10-02 Thread Jimmy Schementi
There are two ways to accomplish this, by adding the script files to the XAP, or downloading them off the web-server: (1) As Ivan described, you can copy any needed Ruby libraries to your project and include them in the XAP through Visual Studio. As long as your hosting the DLR correctly in Sil

Re: [Ironruby-core] Possible ScriptEngine and parsing bug when converting block to a parameter

2009-10-02 Thread Kevin Radcliffe
Great! Tomas, thanks also for the speedy follow-up email. Best Regards, Kevin On Fri, Oct 2, 2009 at 12:41 PM, Tomas Matousek wrote: > Looks like a bug in win32ole.rb: > > D:\M5\Merlin\Main\Languages\Ruby>ruby -w libs\win32ole.rb > libs/win32ole.rb:63: warning: `&' interpreted as argument prefix

Re: [Ironruby-core] Possible ScriptEngine and parsing bug when converting block to a parameter

2009-10-02 Thread Tomas Matousek
Looks like a bug in win32ole.rb: D:\M5\Merlin\Main\Languages\Ruby>ruby -w libs\win32ole.rb libs/win32ole.rb:63: warning: `&' interpreted as argument prefix The default warning levels seem to be different when hosted. It would probably be better to set the default warning level on the same level

[Ironruby-core] Possible ScriptEngine and parsing bug when converting block to a parameter

2009-10-02 Thread Kevin Radcliffe
I was getting an error trying to use ScriptEngine to require 'win32ole' (Actually, I need this from C#, below example given because its easier to show in IronRuby): >>> IronRuby.create_engine.execute_file('Libs\win32ole.rb') :0: `&' interpreted as argument prefix (Microsoft::Scripting::SyntaxError

Re: [Ironruby-core] IronRuby on NetBeans

2009-10-02 Thread Tomas Matousek
I've recently fixed issues with spaces in paths in %x{}. So maybe the latest IronRuby build would work if this is the blocker. Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Shay Friedman Sent: Friday, October 02, 2009 1:17 AM To: ironr

Re: [Ironruby-core] IronRuby on NetBeans

2009-10-02 Thread Jim Deville
I don’t know about ntfslink, but I know mklink will work for NTFS symlinks and hard links (and junctions) JD From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, October 02, 2009 1:31 AM To: ironruby-core@rubyforge.

Re: [Ironruby-core] IronRuby on NetBeans

2009-10-02 Thread Ivan Porto Carrero
I guess you'd have to make ironruby a known platform for Netbeans, perhaps they only check for executable names that have ruby in them. you can try to symlink (ntfslink i believe) ir.exe to ironruby.exe and see where that gets you. (copying should also work) I'm using Rubymine, very similar to netb

Re: [Ironruby-core] Newbie questions regarding IronRuby in Silverlight...

2009-10-02 Thread Ivan Porto Carrero
But that will include all the files and gems you have installed on your machine for ironruby. It might be a better idea to copy the ruby files you need into a folder in your project. You can use them as an embedded resource and then execute their code in order to require them ExecuteScript does tha

[Ironruby-core] IronRuby on NetBeans

2009-10-02 Thread Shay Friedman
Hi friends, I was trying to use IronRuby as a Ruby platform in NetBeans but without any success. It keeps telling me that the interpreter doesn't seem to be a valid Ruby interpreter. This is what I have tried without success: - I figured out that NetBeans was trying to run a file on the path "C:\p

Re: [Ironruby-core] Newbie questions regarding IronRuby in Silverlight...

2009-10-02 Thread Shay Friedman
I guess you will need to add the path to the libs directory when creating the XAP file. When you create a XAP file with Chiron, there is a /path switch where you can pass semi-colon separated values with paths to include in the XAP file. Something like: chr /z:myfile.xap /path:c:\IronRuby\libs Hav

[Ironruby-core] Newbie questions regarding IronRuby in Silverlight...

2009-10-02 Thread Zoltan Toth
Hi Guys, How do we, for example, use BigDecimal in IronRuby within a Silverlight application? When we just require 'bigdecimal', we get an error saying that file can't be found. Do we have to add that and other ruby standard library files to our application and if so, where do we put them? Note

Re: [Ironruby-core] calling non class methods from C#

2009-10-02 Thread Eelco Henderichs
Oke thanks for the information. Not sure if I fully understand how to do this. But it surely gave me someting to work with and I can start experimenting with it. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rub