Re: [Ironruby-core] CLR Properties in IronRuby

2009-09-23 Thread Jim Deville
C:\temp [42] > rbd IronRuby 0.9.0.0 on .NET 2.0.50727.4927 Copyright (c) Microsoft Corporation. All rights reserved. >>> require 'temp.dll' => true >>> @c = Customer.new => Customer >>> @c.FirstName => nil >>> @c.first_name => nil >>> @c.FirstName = 's' => "s" >>> @c.first_name => 's' >>> @c.First

Re: [Ironruby-core] CLR Properties in IronRuby

2009-09-23 Thread Shay Friedman
@customer.first_name = 's' This is called name mangling when IronRuby make CLR name Ruby-like. Shay. - Shay Friedman Author of "IronRuby Unleashed" http://www.IronShay.com Follow me: http://twitter.com/ironshay On Thu, Sep 24, 2009 at 6:59 AM, Mohammad Azam wrote: >

[Ironruby-core] CLR Properties in IronRuby

2009-09-23 Thread Mohammad Azam
How can I refer to the CLR properties in IronRuby. public class Customer { public string FirstName { get;set; } } In Ruby: @customer.FirstName = 's' OR @customer.firstname = 's' -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com ___

Re: [Ironruby-core] Cucumber Problems with IronRuby

2009-09-23 Thread Mohammad Azam
Hi, Thanks! Actually I got it to work yesterday! Thanks, Azam On Wed, Sep 23, 2009 at 5:23 PM, Xerxes Battiwalla wrote: > Mohammed - if you're looking for an example of the calculator problem, > i've got one on GitHub you could try out. It works on IronRuby no > problems. > > http://github.com/x

Re: [Ironruby-core] Cucumber Problems with IronRuby

2009-09-23 Thread Xerxes Battiwalla
Mohammed - if you're looking for an example of the calculator problem, i've got one on GitHub you could try out. It works on IronRuby no problems. http://github.com/xerxesb/calcdotnet On Wed, Sep 23, 2009 at 2:07 PM, Mohammad Azam wrote: > Hi, > I am trying to get Cucumber to work with IronRuby

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Jim Deville
Mohammad, Can you try running a dev.bat console (run cmd, then run dev.bat) then install cucumber and rspec from there, and then try running your tests? I have a feeling dev.bat has a different GEM_PATH than your normal ruby install. JD From: ironruby-core-boun...@rubyforge.org [mailto:ironru

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Ivan Porto Carrero
"technically" both of them need to be in same console session for it to work as the changes you make are scoped to the console session. ;) to make them persistent across console sessions use system properties - environment variables --- Met vriendelijke groeten - Best regards - Salutations Ivan Por

Re: [Ironruby-core] code coverage of ironruby code

2009-09-23 Thread Jim Deville
Anyone out there interested in tackling this? I know Ivan’s busy, but someone out there might have time ☺ From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, September 23, 2009 9:45 AM To: ironruby-core@rubyforge

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Mohammad Azam
I forgot to exit the dev.bat which is different console. I restarted the cmd again and Cucumber works fine. On Wed, Sep 23, 2009 at 11:44 AM, Mohammad Azam wrote: > After running the dev.bat and set my ICucumber is failing: > C:\Projects\ILoveIronRuby\ILoveIronRuby\testing>icucumber features > -

Re: [Ironruby-core] code coverage of ironruby code

2009-09-23 Thread Ivan Porto Carrero
rcov can spit out junit xmlI'm sure it can spit out the xml we want. Ideally rcov would be ported and usable for both C# and ruby code when executing tests. Seeing how many people are trying cucumber on ironruby it could be a good thing to have early on. --- Met vriendelijke groeten - Best regar

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Mohammad Azam
After running the dev.bat and set my ICucumber is failing: C:\Projects\ILoveIronRuby\ILoveIronRuby\testing>icucumber features --no-color no such file to load -- spec/expectations Failed to load features/step_definitons/calculator_steps.rb (LoadError) C:\DevTools\IronRuby\ironruby\Merlin\Main\Langua

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Mohammad Azam
Here is the output: C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts>set ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\azamsharp\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=AZAMSHARP-PC ComSpec=C:\Windows\system32\cmd.exe DevEnvDir=c:\Program File

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Ivan Porto Carrero
I'd be interested in the powershell script I've found the alias script but haven't found the dev.ps1 script Ok and to fix what you are seeing. Because I don't think you're interested on developing on ironruby as to with ironruby. So you just want a working ironruby package and not have to deal with

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Jim Deville
Can you start a new cmd process, run dev.bat, and then run "set" and paste that output? Thanks JD From: Mohammad Azam Sent: September 23, 2009 9:15 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby librarie

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Ryan Riley
On Wed, Sep 23, 2009 at 11:29 AM, Ryan Riley wrote: > On Wed, Sep 23, 2009 at 11:14 AM, Mohammad Azam wrote: > >> I am running this from command line shell of windows (cmd.exe) > > > You should run dev.bat instead of cmd.exe. dev.bat sets those variables > each time it starts up but doesn't add th

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Ryan Riley
On Wed, Sep 23, 2009 at 11:14 AM, Mohammad Azam wrote: > I am running this from command line shell of windows (cmd.exe) You should run dev.bat instead of cmd.exe. dev.bat sets those variables each time it starts up but doesn't add the variables permanently to your environment. Ryan ___

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Jim Deville
The easiest one is at /path/to/merlin/main/languages/ruby/scripts/powershell/dev.ps1 JD From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of John Lam (TC) Sent: Wednesday, September 23, 2009 9:00 AM To: ironruby-core@rubyforge.org Subject: Re: [Iro

Re: [Ironruby-core] code coverage of ironruby code

2009-09-23 Thread Thibaut Barrère
Maybe we'd have to mix tools to munge the profiling data and provide a uniformised set in return. Like: - vsinstr + a port of rcov for windows - mono profiler + port of rcov again on mac / linux just a thought, but from a user perspective I am definitely interested to see a mix of C# and Ruby stac

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Mohammad Azam
I am running this from command line shell of windows (cmd.exe) Thanks, Azam On Wed, Sep 23, 2009 at 11:00 AM, John Lam (TC) wrote: > Are you running from a Powershell prompt? It seems so, because your > output tells me that you’re creating a sub-shell where the environment > variables do get se

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread John Lam (TC)
Are you running from a Powershell prompt? It seems so, because your output tells me that you're creating a sub-shell where the environment variables do get set, but then that sub-shell goes away. To fix this you'll need a Powershell version of dev.bat. We have several floating around - am sure

Re: [Ironruby-core] code coverage of ironruby code

2009-09-23 Thread Tomas Matousek
If you want to get coverage numbers for C# code you should be able to do: set PERF_TOOLS=%VSINSTALLDIR%\Team Tools\Performance Tools set DSTDIR=an empty directory to store dlls you want to instrument to (the tests must load them from here) # instrument each dll for which you want to get the cove

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Mohammad Azam
I have ran dev.bat several times but it does not do anything. No entries were made in the environment variables so I had to manually go and do the entries. Also, as soon as I uninstall the MRI spec it all started working fine! On Tue, Sep 22, 2009 at 9:21 PM, Jimmy Schementi < jimmy.scheme...@micr

Re: [Ironruby-core] before is different from Before

2009-09-23 Thread Mohammad Azam
Thanks! Actually I am familiar with the case sensitivity of the Ruby language. When I was using spec then I always used the following: describe PrimeService do before do end end But when using Cucumber there is no "before". So the plain text language parser looks for "Before" instead of "before

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Mohammad Azam
Here is the output: Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\azamsharp>echo %GEM_PATH% %GEM_PATH% C:\Users\azamsharp>where ir C:\DevTools\IronRuby\ironruby\Merlin\Main\bin\Debug\ir.exe C:\Users\azamsharp>where ruby c:\ruby\bin\

Re: [Ironruby-core] code coverage of ironruby code

2009-09-23 Thread Jim Deville
Both of those libraries have integration with rcov, so if you were to look into porting that library it might help. Otherwise we may need to look into writing something custom. From: Ivan Porto Carrero Sent: September 23, 2009 2:26 AM To: ironruby-core Subjec

[Ironruby-core] code coverage of ironruby code

2009-09-23 Thread Ivan Porto Carrero
Hi Is there a way to get the code coverage when running RSpec or Test::Unit stuff with ironruby? It would help me a lot to set build tresholds etc. Because I guess the C# tools won't be able to do it and the ruby tools neither. Is it in the cards? What would it take to implement something like th

Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems

2009-09-23 Thread Ivan Porto Carrero
Mohammed Can you send me the output of these commands? echo %GEM_PATH% where ir where ruby where csc.exe where resgen echo %MERLIN_ROOT% echo %PATH% So I can tell you what should be in there for it to work properly thanks --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carr