[Ironruby-core] What gems are available for Acceptance Testing Using IronRuby

2010-07-15 Thread Mohammad Azam
Hi, I know that I cannot use WatiR because of its C implementation but what other tools (gems) are available which can be used for acceptance testing (browser, winforms, wpf) applications. Has anyone successfully integrated any of the gems with IronRuby? Links or resources! -- Mohammad Azam

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
>> *Sent:* Wednesday, June 23, 2010 12:39 PM >> >> *To:* ironruby-core@rubyforge.org >> *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 >> >> >> >> Hi Mohammad -- >> >> >> >> That looks like your Ruby not IronRuby ...

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
t; > That looks like your Ruby not IronRuby ... Try running: > > > > ir -S cucumber > > > > > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam > wrote: > > I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
Weird! I download the treetop gem and it started working again. Maybe it has something to do with my BLUE screen of death on Windows 7. On Wed, Jun 23, 2010 at 7:53 PM, Mohammad Azam wrote: > I swear I got it running at work but I got home booted my computer and ran > the following: >

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
y-core@rubyforge.org > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > Hi Mohammad -- > > > > That looks like your Ruby not IronRuby ... Try running: > > > > ir -S cucumber > > > > > > > > On Wed, Jun 23, 2010 at 3:27

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
ir -S cucumber > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam wrote: > >> I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 >> folder but now when I run the following command. >> >> c: cucumber >> >> I get the following erro

Re: [Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
en > http://hotgazpacho.org/ > > > On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam wrote: > >> What are the steps of running Cucumber with IronRuby? Do I need to make a >> separate batch file called ICucumber.bat and then invoke it. Here is my >> ICucumber.bat file: >&g

[Ironruby-core] Cucumber with IronRuby V 1.0

2010-06-23 Thread Mohammad Azam
-universal-dotnet/lib SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* Any ideas? -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com ___ Ironruby-core m

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Ivan Porto Carrero wrote: > instead of requiring the files with path. maybe try to set the load path > > $:.unshift( File.dirname(__FILE__) + "/bin/Debug") > require 'BusinessObjects.dll' > require 'WatiN.Core.dll' > require 'Microsoft.mshtml.dll' > require 'Interop.SHDocVw.dll' > > I also think

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Ivan Porto Carrero wrote: > instead of requiring the files with path. maybe try to set the load path > > $:.unshift( File.dirname(__FILE__) + "/bin/Debug") > require 'BusinessObjects.dll' > require 'WatiN.Core.dll' > require 'Microsoft.mshtml.dll' > require 'Interop.SHDocVw.dll' > > I also think

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Actually facing the same problem on VS 2008. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
I created a new project in Visual Studio 2008 and tried running the same code and it worked without any problems. It did not gave me load error for the Interop.SHDocVw.dll. Looks like there are some issues with WatiN when using it on .NET 4.0 framework. -- Posted via http://www.ruby-forum.com/

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Got the first problem solved by editing the configuration file. Now, facing problem loading the Interop.SHDocVw assembly. Here is the complete code: require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' require File.dirname(__FILE__) + '/bin/Debug

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Thanks for the help! I edited the IronRuby configuration file and now the error has disappeared. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Will Green wrote: > Your app is not the thing trying to load that assembly, IronRuby is. So, > you'll need to add that to IronRuby's app.config. > > That said, why are you trying to load an assembly from a network > location in > your tests? That is, IMO bad testing practice. > > -- > Will Green

[Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
So, I went to the App.config file of my project and added the following lines: I tried running it again and encountered the same problem. Any ideas! -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.

Re: [Ironruby-core] Spec Help!

2010-06-17 Thread Mohammad Azam
from > [snip] > > > > The error is weird since the "/bin/Debug/" directory does contain the > > BusinessObjects.dll. > > Can you please provide a smaller repro; Preferably 1-2 lines of Ruby code, > and the source to an example DLL you're trying to load (please don't send >

[Ironruby-core] Spec Help!

2010-06-16 Thread Mohammad Azam
Hi, Do I have to install IronRuby in C:\IronRuby? I have it installed somewhere else inside the C:\DevTools\IronRuby and having trouble running spec. When I do this: igem install rspec I get the following: WARNING: Installing to ~/.gem since C:/Program Files/IronRuby 1.0v4/lib/ironrub y/gems

Re: [Ironruby-core] Spec Help!

2010-06-16 Thread Mohammad Azam
I uninstalled IronRuby and then reinstall it in C:\IronRuby. The first warning now went away but the error is still thrown when running spec filename.rb. What am I missing? -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironr

Re: [Ironruby-core] Installing rspec with IronRuby V 1

2010-06-07 Thread Mohammad Azam
Hi, I will install in c:\ironruby. Thanks, Azam -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

[Ironruby-core] Installing rspec with IronRuby V 1

2010-06-04 Thread Mohammad Azam
I downloaded and installed IronRuby V 1 awesome work guys!! I went to command line and typed: igem install rspec and got the following message: C:\Users\azamsharp>igem install rspec WARNING: Installing to ~/.gem since C:/Program Files/IronRuby 1.0v4/lib/ironrub y/gems/1.8 and C:/Pro

Re: [Ironruby-core] Spec Installation in RC2

2010-03-02 Thread Mohammad Azam
So after installing spec as a gem I can run it like this: ir -S spec myfile.rb So, the following will not work: ispec myfile.rb Jim Deville wrote: > Once you install spec (ir -S gem install rspec), you should then be able > to run it via ir -S spec > > JD -- Posted via http://www.ruby-foru

[Ironruby-core] Spec Installation in RC2

2010-03-02 Thread Mohammad Azam
I know in RC1 I had to manually copy the following files: copy C:\ironruby\lib\ironruby\gems\bin\spec C:\ironruby\bin\ispec copy C:\ironruby\lib\ironruby\gems\bin\spec.bat C:\ironruby\bin\ispec.bat But in RC2 do I have to take these steps or is it automatic? Thanks, Azam -- Posted via http://ww

Re: [Ironruby-core] iron-term-ansicolor 0.0.2 Released

2010-03-01 Thread Mohammad Azam
Can this gem be used with IronRuby rc 1. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Open-Uri Path in App.Config

2010-03-01 Thread Mohammad Azam
Ahh I did not do that!! I think I will just use path collection and List this is just too much work. Ivan Porto Carrero wrote: > Did you change the paths in the app.config file to be absolute? > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Web: http://whit

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I cannot believe it that was the problem. I deleted the addition.rb file and it started working. Lesson learned!! Cucumber will execute everything inside the step_definations. Jim Deville wrote: > Heh, that's why I said send it to me offline. Anyways, addition.rb is > pure ruby, you can't have

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
But I am trying to execute prime_steps.rb. Does it execute all of them by default or something?? Jim Deville wrote: > Heh, that's why I said send it to me offline. Anyways, addition.rb is > pure ruby, you can't have the last three lines of the file as is. > > JD -- Posted via http://www.ruby

Re: [Ironruby-core] Open-Uri Path in App.Config

2010-03-01 Thread Mohammad Azam
IronRubyConsoleApp.Program.Main(String[] args) in C:\Projects\ILoveIronRub y\ILoveIronRuby\IronRubyConsoleApp\Program.cs:line 30 Press any key to continue . . . Mohammad Azam wrote: > I used the above code that you provided but it is throwing exceptions: > > static void Main(stri

Re: [Ironruby-core] Open-Uri Path in App.Config

2010-03-01 Thread Mohammad Azam
I used the above code that you provided but it is throwing exceptions: static void Main(string[] args) { var setup = ScriptRuntimeSetup.ReadConfiguration(); var runtime = Ruby.CreateRuntime(setup); // error is thrown here var engine = Ruby.GetEngine(r

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Seems like the forums file attach limit is less then 1.5 MB (Are we living in the 80's? :) Anyway, here is the url: http://www.highoncoding.com/articledownloads/IronRubyConsoleApp.zip Jim Deville wrote: > Ok. We're missing something here. Let's take this offline. Email me > personally, with a

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I got the following after running it using the -b option: C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>icucumber -b features /prime.feature *** WARNING: You must "igem install iron-term-ansicolor" to get coloured ouput i n on IronRuby syntax error, unexpected IDENTIFIER, expecting

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Here is the updated: @ECHO OFF REM This is to tell IronRuby where to find gems. SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 C:\DevTools\ironruby-1.0-rc1\bin\ir.exe -d c:\ruby\bin\cucumber %* still giving the same error and took 20 seconds to execute icucumber command. Jim Deville wrote: > Get rid o

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Just modified the icucumber.bat to this: @ECHO OFF REM This is to tell IronRuby where to find gems. SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 @"C:\DevTools\ironruby-1.0-rc1\bin\ir.exe -d" "c:\ruby\bin \cucumber" %* Now ran the icucumber and got the following: C:\Projects\ILoveIronRuby\ILoveIronR

Re: [Ironruby-core] WatiR with IronRuby

2010-03-01 Thread Mohammad Azam
yeah that is what I am using but WatiN is more geared towards .NET. Pascal Normandin wrote: > Hello, > > I've been using WatiN > http://watin.sourceforge.net/ -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyf

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I can perform the update but I am afraid that it will break my previous code and I cannot take that risk right now. Is there anyway to solve the issue on RC1? Thanks, Azam Jim Deville wrote: > That's why rc2 was FIRST. -S is an option added in rc2. If you want to > support our project, we woul

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
When I type ir -d on the command prompt it takes me to the ironruby interactive console? -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Open-Uri Path in App.Config

2010-03-01 Thread Mohammad Azam
Hi, >> Probably because your app config is in a different location than ir.exe. Do you mean the ironruby app config or my application app config? My application config is in my application directory. The question is that why it is not reading my application config automatically. Thanks, Azam

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Here is prime.feature: Feature: Prime Number Detection I need to find if a number is prime or not Scenario Outline: Prime Number Testing Given I have a When I pass the number to a IsPrime method Then I should get indication prime or not Examples: | number | result | | 1 | true | |

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
My feature file is called prime.feature and now I added a new test file called "prime_steps" (I thought maybe the name has to be same). After running the icucumber features/prime.feature I still get the same error. The strange thing is that I don'nt have any code in the test file. It is totally bla

Re: [Ironruby-core] Open-Uri Path in App.Config

2010-03-01 Thread Mohammad Azam
I copied the ironruby config file into my application's config file and removed all the path variables from my application but it did not work. Then I added the "C:\devtools\ironruby-1.0-rc1\lib\ironruby" path and removed the app.config and then it worked out. Any ideas that why even copy pasti

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
The ir-S gem install cucumber did not work: C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>ir -S gem install cuc umber ironterm-ansicolor Option `-S' not supported >> First of all upgrade to ironruby rc2. Maybe later! I am afraid it will going to mess things up for me. Ivan Porto

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I installed the icucumber again using the following command: igem install cucumber the install went fine. then i said icucumber on the command prompt and I got the following: C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>icucumber *** WARNING: You must "igem install iron-term-ansi

Re: [Ironruby-core] Open-Uri Path in App.Config

2010-03-01 Thread Mohammad Azam
I will definitely buy your book when IronRuby is publicly released! I don't want to consult the book and find out that opps that has now changed in the final release. Ivan Porto Carrero wrote: > here's an idea maybe buy my book. All this is explained in there > > replace: paths.Add(@"C:\DevTool

Re: [Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
Thanks for the reply! My test file called "primeservice.rb" is placed inside the step_definations folder which is inside the feature folder. Like this: features/step_definations/primeservice.rb The primeservice.rb looks something like this: require 'rubygems' require 'spec/expectations' requ

Re: [Ironruby-core] Open-Uri Path in App.Config

2010-03-01 Thread Mohammad Azam
Here is my implementation: static void Main(string[] args) { var url = "http://www.google.com";; var engine = IronRuby.Ruby.CreateEngine(); var paths = new List(); paths.Add(@"C:\DevTools\ironruby-1.0-rc1\lib"); paths.Add(@"C:\

[Ironruby-core] WatiR with IronRuby

2010-03-01 Thread Mohammad Azam
Is WatiR supported in IronRuby RC 1? -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

[Ironruby-core] Cucumber with IronRuby

2010-03-01 Thread Mohammad Azam
I don't know why I keep getting the following exception when I try to run cucumber with Ironruby. C:\Projects\ILoveIronRuby\ILoveIronRuby\IronRubyConsoleApp>icucumber features/pr ime.feature --no-color syntax error, unexpected IDENTIFIER, expecting '{', or DO, or '(' (SyntaxError) :0:in `require'

Re: [Ironruby-core] Open-Uri Path in App.Config

2010-03-01 Thread Mohammad Azam
So, I added the paths that you provided in my C# code since I am trying to execute the .rb file from C#. Here is the complete code: static void Main(string[] args) { var url = "http://www.google.com.com";; var engine = IronRuby.Ruby.CreateEngine(); v

[Ironruby-core] Open-Uri Path in App.Config

2010-02-28 Thread Mohammad Azam
I completely forgot the paths that I need to setup to use open-uri in IronRuby when using with C#. I need to put those paths in my App.config to work with open-uri. Can anyone please paste those sections here? I keep forgetting those sections that I need to include in my App.config. -- Posted via

Re: [Ironruby-core] Why IronRuby?

2010-01-26 Thread Mohammad Azam
Amen to that :D -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

[Ironruby-core] Why IronRuby?

2010-01-26 Thread Mohammad Azam
Hi, I was thinking about why to use IronRuby and one of the things that came to my mind is because of better gems like spec, cucumber etc. Mostly my use of IronRuby is around unit testing .NET CLR frameworks. But then .NET CLR implementations is catching up with all these tools like specflow and (

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
I was trying to make ironruby to perform code coverage for a .NET assembly using rcov but it seems like it is not currently supported yet.. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rub

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
Most people will use Program files then c"\IronRuby or c:\devtools\Ironruby. Consider this thread closed! -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironru

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
>>Seriously? If a developer isn't comfortable with setting ENV variables >>what >>hope do they have to actually write decent code? Even visual studio has >>it's >>own special command prompt runner (guess what, it's a bat file, just >>like >>dev.bat) Can we move forward to solve the problem inst

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
You are completely missing my point gems are like GAC but IronRuby is not using them as GAC. It is using it like a simple zip file extraction and folder path mechanism. Since, it is not an installable every developer can download the IronRuby framework in a different folder. Which means tha

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
The problem is that every person has their own IronRuby folder. It has to work same for everyone. Kind of like libraries in GAC. You are NOT thinking throughly about the problem! This is not regarding putting the path in ENV variables and copying couple of files. This is about doing the same th

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
>> This is just basic Ruby. If you want to use Ruby, you have to learn >> Ruby's >> nuances. :) Disagree! You don't have to perform configurations in Ruby. It just works :) -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironr

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
Currently in order to run spec I did the following: 1) Set the environment variable for IronRuby (This is done to use IronRuby on the machine) 2) Copying the files and renaming them. 3) Add IronRuby configs in App.config if I need to invoke spec command from C#. Sorry to say but 90% of the pe

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
Okay that worked out but I am still not comfortable copying files and renaming them to batch files and putting them in the bin directory of the IronRuby folder. Also switching back and forth between the dev.bat and console. Also, cmd console is not able to find dev.bat from anywhere so I have t

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
OKay let's do this step by step. I am failing on step ONE! C:\Projects\EStudyVS2008\EStudySoltution\EStudy\ConsoleApplication2>igem install rspec ERROR: While executing gem ... (RangeError) bignum too big to convert into Fixnum -- Posted via http://www.ruby-forum.com/. __

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
I guess there is no point doing all of this since IronRuby does not support rCov for code coverage for the .NET CLR assemblies. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/ma

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
Does that mean I have to go to the following folder: C:\DevTools\ironruby-1.0-rc1\lib\ironruby\gems\1.8\gems\rspec-1.3.0\bin and copy the files into the C:\DevTools\ironruby-1.0-rc1\bin folder? -- Posted via http://www.ruby-forum.com/. ___ Ironruby

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
I don't like to execute dev.bat each time I need to work with IronRuby. Why can't it just work out of the box like PowerShell. This is a big defect in the IronRuby. Too many configurations will scare developers away. People are not interested in setting paths in ENV variables, performing config

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
The problem is that my command line does not recognize ispec or rspec or mspec. it only recognize spec which is basically ruby framework and not ironruby. Previously with IronRuby 0.9 I used the following command: spec test_prime.rb --format nested and it worked. Now, when I use spec it execu

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
There is mspec, spec, rspec... In order to run IronRuby specification framework do I have to use rspec. Also, I think I have to set the ENVIRONMENT variables again for this to work right?? -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core ma

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
I did ran igem install spec and it worked fine in IR 0.9. Anyway, how should I make it work with IronRuby and not Ruby. Does this mean I have to alter the ENV path AGAIN! -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby

[Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Mohammad Azam
I am trying to unit test my .NET CLR assembly using IronRuby spec framework. First, the following command does not work anymore igem install spec Now, I have to type the following: igem install rspec Anyway, when I run the following script: require 'rubygems' require 'spec' require File.dirn

Re: [Ironruby-core] rexml/document with IronRuby

2010-01-16 Thread Mohammad Azam
var scriptingRuntime = IronRuby.Ruby.CreateRuntime(); var engine = scriptingRuntime.GetEngine("rb"); var operations = engine.CreateOperations(); var paths = new List(); paths.Add(@"C:\ironruby\ironruby\Merlin\Main\Languages\Ruby\Libs");

Re: [Ironruby-core] rexml/document with IronRuby

2010-01-15 Thread Mohammad Azam
BTW, I like to mention that I love IronRuby. The above post is the feedback I received from the audience who were in my "I Love IronRuby" session. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org htt

Re: [Ironruby-core] rexml/document with IronRuby

2010-01-15 Thread Mohammad Azam
When I presented on IronRuby at different events and showed people how much they have to do in order to get the thing in working state they nudge their head and says no thanks. Developers are already drained under configuration and now they have to remember this one more configuration. Settin

Re: [Ironruby-core] rexml/document with IronRuby

2010-01-15 Thread Mohammad Azam
Will this be changed in the final release!! This configuration, setting different paths etc is too much a hassle for developers. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/m

Re: [Ironruby-core] rexml/document with IronRuby

2010-01-15 Thread Mohammad Azam
I thought this path mess was cleaned in the IronRuby RC version. I have the "bin" folder path in my environment variable. I can execute the ruby implemention of the rexml/document without any problems. But when I try to do the same using C# invoking IronRuby it throws exceptions. -- Posted via

[Ironruby-core] rexml/document with IronRuby

2010-01-15 Thread Mohammad Azam
Is rexml/document compatible with IronRuby? I am running the following code: and it throws me the exception: require 'rexml/document' include REXML class EnvironmentSetupService def setupEnvironment(connectionString) # open the file file = File.open('../../Web.config','w+') doc = Document.n

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
This works if I create a ruby file and execute it like this: ir something.rb but it does not work using the following code: static void Main(string[] args) { var script = @"require 'rubygems' require 'rake' require 'rakefile'; Rake::Task['foo'].execute"; var

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
Jim Deville wrote: > http://onestepback.org/index.cgi/Tech/Rake/FindInCode.red I am not sure if the article above is related to my issue. I want to simply execute a rake task using IronRuby engine in DLR. I can do this: static void Main(string[] args) { var engine = IronRu

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
Jim Deville wrote: > a) irake is meant to be a command line runner, if you are trying to > execute it from C#, then you should be executing a single file that is a > rake application. > b) dev.bat is for developing IronRuby. If you don't like dev.bat, and > you just want to use IronRuby, use a r

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
call irake foo did not work! The reason is that in order to run irake it is required that I run dev.bat first which seems weird and silly! -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http:/

Re: [Ironruby-core] igem not working

2010-01-14 Thread Mohammad Azam
Hi, Thanks! I got it working using Dev.bat. It will my pleasure to meet you at the MVP Summit :) Maybe we can record a Podcast about IronRuby. Thanks, Azam -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyfor

[Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
How can I execute irake from C#? static void Main(string[] args) { var engine = IronRuby.Ruby.CreateEngine(); engine.Execute("../../rake foo"); } The above does not work! -- Posted via http://www.ruby-forum.com/. _

Re: [Ironruby-core] igem not working

2010-01-14 Thread Mohammad Azam
And here is my environment variables: c:\ruby\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\DevTools\IronRuby\ironruby\Merlin\Main\bin\Debug;C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\l

[Ironruby-core] igem not working

2010-01-14 Thread Mohammad Azam
When I execute igem install rake I get the following error: C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>irake.bat '"C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin\ir.exe"' is not recognized as an internal or external command, operable program or batch

Re: [Ironruby-core] Confused and Dazed

2009-10-06 Thread Mohammad Azam
mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] calling ruby scripts from C#

2009-09-30 Thread Mohammad Azam
_ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Is there a But keyword in Cucumber?

2009-09-24 Thread Mohammad Azam
Also, I like to mention that for some reason I had to provide the --guess parameter for cucumber to work. icucumber features/some_step.rb --guess If I don't use the guess parameter then it was picking the values from the previous defined examples. On Thu, Sep 24, 2009 at 2:34 PM, Mohammad

Re: [Ironruby-core] Is there a But keyword in Cucumber?

2009-09-24 Thread Mohammad Azam
at least one Ruby company that is using it, I don’t know > about any IronRuby users, but I hope there are some J > > > > JD > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Mohammad Azam > *Sent:*

Re: [Ironruby-core] Is there a But keyword in Cucumber?

2009-09-24 Thread Mohammad Azam
t; > > > Then /the service should throw exception/ do > > lambda {...@primeservice.isprime(@n_number.to_i)}.should raise_error > > end > > > > JD > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf O

Re: [Ironruby-core] Is there a But keyword in Cucumber?

2009-09-24 Thread Mohammad Azam
error end Then /the service should throw exception/ do end On Thu, Sep 24, 2009 at 1:58 PM, Mohammad Azam wrote: > I am having trouble in where to throw the exception. The exception will be > thrown in "When" and not "Then" as shown below: > Scenario Outline: Th

Re: [Ironruby-core] Is there a But keyword in Cucumber?

2009-09-24 Thread Mohammad Azam
mbda { @primeService.IsPrime(number.to_i) }.should raise_error Exception > > > > Does that help? > > JD > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Mohammad Azam > *Sent:* Thursday, Sept

Re: [Ironruby-core] Is there a But keyword in Cucumber?

2009-09-24 Thread Mohammad Azam
t be an else construct, but I would argue that if you need an > else/but, then you have 2 behaviors in a single scenario. > > > > JD > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Mohammad Azam > *S

[Ironruby-core] Is there a But keyword in Cucumber?

2009-09-24 Thread Mohammad Azam
the prime service should throw an exception But it shows up as "Then" and not "But". Is there anything related to "But" in Cucumber. -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com ___

[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.c

Re: [Ironruby-core] Cucumber Problems with IronRuby

2009-09-23 Thread Mohammad Azam
t; > 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 and .NET class. For > some > > reason it does not like the describe keyword from spec and b

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

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

2009-09-23 Thread Mohammad Azam
STRICTE D\Builtins\KernelOps.cs:1326:in `load' C:\Projects\ILoveIronRuby\ILoveIronRuby\testing> On Wed, Sep 23, 2009 at 9:38 AM, Jim Deville wrote: > Can you start a new cmd process, run dev.bat, and then run "set" and > paste that output? > > Thanks > JD > >

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

2009-09-23 Thread Mohammad Azam
cess, 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 i

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

2009-09-23 Thread Mohammad Azam
re-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Mohammad Azam > *Sent:* Wednesday, September 23, 2009 8:58 AM > > *To:* ironruby-core@rubyforge.org > *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby > libraries instead of I

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

2009-09-23 Thread Mohammad Azam
make sure to unset that variable at the > command line (set GEM_PATH=) or from your Ruby scripts themselves (ENV > ['GEM_PATH'] = nil), but the latter is preferred. > > ~js > > -- > *From:* ironruby-core-boun...@rubyforge.org [ > ir

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

2009-09-23 Thread Mohammad Azam
> *From:* ironruby-core-boun...@rubyforge.org [ > ironruby-core-boun...@rubyforge.org] on behalf of Mohammad Azam [ > azamsh...@gmail.com] > *Sent:* Tuesday, September 22, 2009 9:12 PM > *To:* ironruby-core@rubyforge.org > *Subject:* [Ironruby-core] before is different from Before > >

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

2009-09-23 Thread Mohammad Azam
22, 2009 9:35 PM >> *To:* ironruby-core@rubyforge.org >> *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby >> libraries instead of IronRuby gems >> >> What are the values of gem_path and gem_home? >> >> Sent from my iPhone >> &g

[Ironruby-core] Cucumber Problems with IronRuby

2009-09-22 Thread Mohammad Azam
xtensions\IListOps.cs:810:in `each' C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA CTED\Builtins\Enumerable.cs:150:in `b__9' C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA CTED\Extensions\IListOps.cs:810:in `each' C:\DevTools\Iro

  1   2   3   >