Re: [Ironruby-core] Why IronRuby?

2010-01-26 Thread Miguel Madero
I've been willing to try it with Silverlight Apps, I know it has a lot of potential and I'm thinking of IR as full replacement of C#. Binding doesn't work for dynamic objects which is a big showstopper (although I know there're ways around it, I've not had a chance to get aroudn that). I see a lot

Re: [Ironruby-core] Mocking behavior between clr types

2010-01-26 Thread Ivan Porto Carrero
yes typemock uses the CLR profiling API and is a paid product. I don't know if typemock runs on Mono either, couldn't find it on their website. For me running on mono is one of the base requirements of my mocker, because I'm too often on my mac or linux machines to neglect that. That being said 99

Re: [Ironruby-core] dealing with TFS

2010-01-26 Thread Miguel Madero
I've not gone through the full post, but based on the title this might help: http://richardsbraindump.blogspot.com/2010/01/how-to-get-git-and-tfs-working-together.html On Tue, Jan 26, 2010 at 7:37 PM, Jimmy Schementi < jimmy.scheme...@microsoft.com> wrote: > That blogpost is basically all Jim

Re: [Ironruby-core] Mocking behavior between clr types

2010-01-26 Thread Miguel Madero
TypeMock is doing thing slightly different that allows you to intercept essentially calls to any member (static, sealed types, non-virtuals, etc). It take sa different approach than Rhino and Moq, I'm not sure if something similar could be done using Ruby, I'm just dropping the idea here On Mo

Re: [Ironruby-core] RCov

2010-01-26 Thread Ben Hall
I've worked with the COR_PROFILER a little bit before... I'll look if it's possible from IronRuby :) On Tue, Jan 26, 2010 at 7:16 PM, Shri Borde wrote: > Ivan, no, you do not need to instrument your dll to use the profiling APIs. > Instead, you have to set an environment variable called COR_PROFI

Re: [Ironruby-core] Updated Rails instructions

2010-01-26 Thread Sam Clopton
The database has information that is FOUO. Even though to me it seems that none of the source code has any of that information (why should it), I don't really want to send any of it other than snippets just to protect myself. I should be able to put together a different case at home that has

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

2010-01-26 Thread Orion Edwards
> > > Can we move forward to solve the problem instead of mocking? > -- > I would expect you would have better success moving forward if you did not make inflammatory statements such as these: "This is a big defect in the IronRuby. Too many configurations will scare developers away." "Not many p

Re: [Ironruby-core] Code Review: eaccess

2010-01-26 Thread Tomas Matousek
Looks good. Tomas -Original Message- From: Shri Borde Sent: Tuesday, January 26, 2010 12:59 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: eaccess tfpt review "/shelveset:eaccess;REDMOND\sborde" Comment : Dir.mkdir should raise Err

Re: [Ironruby-core] Code Review: eaccess

2010-01-26 Thread Jim Deville
Looks good -Original Message- From: Shri Borde Sent: Tuesday, January 26, 2010 12:59 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: eaccess tfpt review "/shelveset:eaccess;REDMOND\sborde" Comment : Dir.mkdir should raise Errno::EACC

[Ironruby-core] Code Review: eaccess

2010-01-26 Thread Shri Borde
tfpt review "/shelveset:eaccess;REDMOND\sborde" Comment : Dir.mkdir should raise Errno::EACCESS instead of System.UnauthorizedException Diables ActiveRecord tests since some fail intermittently eaccess.diff Description: eaccess.diff ___ Iro

Re: [Ironruby-core] Contributing to IronRuby on *nix

2010-01-26 Thread Ivan Porto Carrero
Ok. In that case you can find a dev.sh and alias.sh in the following links http://github.com/casualjim/ironruby/blob/linux/Merlin/Main/Languages/Ruby/Scripts/dev.sh http://github.com/casualjim/ironruby/blob/linux/Merlin/Main/Scripts/Bat/Alias.sh --- Met vriendelijke groeten - Best regards - Sal

Re: [Ironruby-core] Contributing to IronRuby on *nix

2010-01-26 Thread Ivan Porto Carrero
no guide so far. To work and browse the IronRuby source I've been using monodevelop. For ruby dev I've been using textmate on mac, gmate (plugin for gedit) on ubuntu and notepad++ on windows, as well as Rubymine on all platforms but that doesn't feel completely right. With monodevelop you can ope

Re: [Ironruby-core] Why IronRuby?

2010-01-26 Thread Orion Edwards
I'm currently using IronRuby to do automated UI testing using the WPF UI Automation framework. IronRuby is working out brilliantly, the WPF UI automation framework on the other hand is "sub par", but that's another story. Have also used it for many ad-hoc tasks such as exploring .NET api's, transf

[Ironruby-core] RCov

2010-01-26 Thread Shri Borde
Ivan, no, you do not need to instrument your dll to use the profiling APIs. Instead, you have to set an environment variable called COR_PROFILER. http://msdn.microsoft.com/en-us/library/bb384689.aspx has more info. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforg

Re: [Ironruby-core] Updated Rails instructions

2010-01-26 Thread Shri Borde
The ActiveRecord unit tests do have failures where extra 0s are appended. You can see it from the following disabled tags in Merlin\Main\Languages\Ruby\Tests\Scripts\utr\active_record_tests.rb (its not yet pushed to GIT). disable InheritanceTest, # <#> expected but was # <#>.

[Ironruby-core] Contributing to IronRuby on *nix

2010-01-26 Thread C. K. Ponnappa
Hello everyone, Recently I've been trying develop a gem with native extensions in C, Java and C# just to learn what's involved. When working with IronRuby, I ran into a few small issues so I figured I'd learn how to build and modify IronRuby source so I can take a shot at fixing these issues a

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

2010-01-26 Thread C. K. Ponnappa
Any particular reason you aren't using NCover or Clover? I'm not sure generating coverage reports via rcov (even if it existed for the CLR) for dlls written in C# would actually produce anything usable. Cheers, Sidu. http://blog.sidu.in http://twitter.com/ponnappa Mohammad Azam wrote: I was tr

Re: [Ironruby-core] Why IronRuby?

2010-01-26 Thread Ivan Porto Carrero
The productivity increase vs programming in a language like C# is a big one too :) So why ironruby and not ruby? if you're a .NET shop you probably already have a serious investment in libraries, control suites and so on. With IronRuby you don't lose anything you can reuse those items but still ge

Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7)

2010-01-26 Thread C. K. Ponnappa
I believe per-user gems is now the default That's right - now if you sudo install a system wide gem, if not, it just creates a .gems in your home dir and installs there. Of course, the local gems are only available to Ruby apps running as that user. Cheers, Sidu. Thibaut Barrère wrote: Per

Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7)

2010-01-26 Thread Will Green
Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barrère wrote: > > Per-user gems should not be the default. In RubyInstaller (mingw MRI),

Re: [Ironruby-core] Why IronRuby?

2010-01-26 Thread Ryan Riley
On Tue, Jan 26, 2010 at 10:35 AM, Shay Friedman wrote: > This question keeps coming back :) > > Testing is a great use of IronRuby, maybe even the top reason for .NET guys > to use it. However, there are more reasons for .NET guys to adopt IronRuby > like: > I agree with that. :-/ > - Make it po

Re: [Ironruby-core] Why IronRuby?

2010-01-26 Thread Thibaut Barrère
A while back I really thought testing would be the largest use case, but it went differently - here are my current real use cases: - faster UI development (windows forms) - interop with solutions already built on Ruby (see my previous message on Resque) - Excel templating (things like embedding IR

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

Re: [Ironruby-core] Why IronRuby?

2010-01-26 Thread Shay Friedman
This question keeps coming back :) Testing is a great use of IronRuby, maybe even the top reason for .NET guys to use it. However, there are more reasons for .NET guys to adopt IronRuby like: - Writing internal tools. - Make it possible to extend .NET applications using IronRuby. - Using IronRuby'

Re: [Ironruby-core] Why IronRuby?

2010-01-26 Thread Randall Sutton
I have been using it the last couple months for building out a Silverlight app and have found a lot less friction coding WPF with IronRuby as opposed to XAML and C#. Randall On Jan 26, 2010, at 9:13 AM, Mohammad Azam wrote: > Hi, > > I was thinking about why to use IronRuby and one of the th

[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-26 Thread Ryan Riley
On Tue, Jan 26, 2010 at 3:36 AM, Ivan Porto Carrero wrote: > rcov has a pure ruby variant too IIRC. And for the sake of this discussion > let's just say that that works as is with IronRuby. > > Then I'd be looking at the CLR profiling api again isn't it. > And to enable that profiling API don't I

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

2010-01-26 Thread Ryan Riley
Also, I think Ruby's FFI is relatively new and not in great use, atm, so even adding FFI to IronRuby wouldn't do a whole lot to enable the C extensions of most Ruby libraries until those are ported to use FFI. Is that right? Ryan Riley Email: ryan.ri...@panesofglass.org LinkedIn: http://www.link

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

2010-01-26 Thread Ryan Riley
What Jimmy said. :D Ryan Riley Email: ryan.ri...@panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Jan 26, 2010 at 3:17 AM, Jimmy Schementi < jimmy.scheme...@microsoft.com> wrote: >

Re: [Ironruby-core] using custom controls with gestalt

2010-01-26 Thread Mark Ryall
Thanks. That's excellent - I can easily load gems that way too I guess (adding foo.zip to the load path). I got the impression from the "sl back to just text" document that loading zips wasn't implemented yet - should've just given it a try. Gestalt does seem really awesome - providing textmate

Re: [Ironruby-core] can't generate the initializers

2010-01-26 Thread Ivan Porto Carrero
bugs have been submitted http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3655 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue

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

2010-01-26 Thread Ivan Porto Carrero
rcov has a pure ruby variant too IIRC. And for the sake of this discussion let's just say that that works as is with IronRuby. Then I'd be looking at the CLR profiling api again isn't it. And to enable that profiling API don't I have to instrument my dll with some constants so it knows it's going

Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7)

2010-01-26 Thread Thibaut Barrère
> Per-user gems should not be the default. In RubyInstaller (mingw MRI), as > well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'

Re: [Ironruby-core] Mocking behavior between clr types

2010-01-26 Thread Ivan Porto Carrero
I'm not sure if the CLR profiling API is in Mono I'd have to find that out first. My thing against mono.cecil is that you need to instrument the DLL and rewrite the IL before running your app. I'd prefer to do stuff during instead of beforehand. I need to be able to intercept and decide whether t

Re: [Ironruby-core] Updated Rails instructions

2010-01-26 Thread Ivan Porto Carrero
I'm not seeing that issue atm but I'll work on ironruby-sqlserver tonight. So if Sam wants to send me a repro I can also look at the cause for his problem and hopefully fix it. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://t

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

2010-01-26 Thread Ivan Porto Carrero
How does implementing FFI provide code coverage for the CLR, isn't that mutually exclusive? Shouldn't FFI provide us with a way to use C-based extensions? But C-based extensions won't know about the ironruby internals etc. Just thinking out loud so feel free to correct me :) Also aren't the stack

Re: [Ironruby-core] Updated Rails instructions

2010-01-26 Thread Jimmy Schementi
I wanted to see "p @company" (equivalent of "puts @company.inspect") to see what fields it had, since ActiveRecord shows detailed view of the object, including fields. Really I want to see whether the ID is "269" or "26900". Ivan, does this issue seem at all familiar to you? Sam, it'd be helpfu

Re: [Ironruby-core] can't generate the initializers

2010-01-26 Thread Jimmy Schementi
Sorry for the confusion, I didn’t realize you were just building an external IronRuby library. Can you also open a bug against the generator to not spit the “Copyright (c) Microsoft Corporation” out into user-code? =P ~Jimmy From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun

Re: [Ironruby-core] Is it possible to generate DLLs?

2010-01-26 Thread Jimmy Schementi
After 1.0 we’ll be making IronRuby integrate better with its “static” world. I’m not sure the current state of precompiling, but I’m pretty sure we’re not even testing it. ~Jimmy From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carr

Re: [Ironruby-core] Mocking behavior between clr types

2010-01-26 Thread Jimmy Schementi
Basically, Ruby is able to do all the crazy mocking stuff because of its mutable type system, and the only way to make the CLR's type-system mutable is to rewrite the IL. To put it in SAT terms: "rewriting IL" is to "static languages" as "monkey-patching" is to "dynamic languages" =P ~Jimmy

Re: [Ironruby-core] dealing with TFS

2010-01-26 Thread Jimmy Schementi
That blogpost is basically all Jim and I would want to do – wrap the GIT and TFS command-lines. A step above that would be to use grit (GIT implementation in Ruby … or even Git#) as well as the TFS APIs. But as Jim said, we haven’t found the time to make this really nice, so I welcome anyone els