From Tomas.Matousek at microsoft.com Thu Jul 1 14:31:01 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 1 Jul 2010 18:31:01 +0000 Subject: [Ironruby-core] Code Review: noea6 Message-ID: tfpt review "/shelveset:noea6;REDMOND\tomat" Comment : Removes Microsoft.Scripting.ExtensionAttribute.dll. Upgrades target framework versions of all projects from 2.0 to 3.5. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: noea6.diff Type: application/octet-stream Size: 39653 bytes Desc: noea6.diff URL: From shay.friedman at gmail.com Thu Jul 1 14:39:06 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Thu, 1 Jul 2010 20:39:06 +0200 Subject: [Ironruby-core] Code Review: noea6 In-Reply-To: References: Message-ID: Does this mean that we're stopping to support .NET 2.0 SP1? Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Thu, Jul 1, 2010 at 8:31 PM, Tomas Matousek wrote: > tfpt review "/shelveset:noea6;REDMOND\tomat" > Comment : > Removes Microsoft.Scripting.ExtensionAttribute.dll. > Upgrades target framework versions of all projects from 2.0 to 3.5. > > Tomas > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Thu Jul 1 14:48:41 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 1 Jul 2010 18:48:41 +0000 Subject: [Ironruby-core] Code Review: noea6 In-Reply-To: References: Message-ID: Yes. We require 3.5 SP1 from now on. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Thursday, July 01, 2010 11:39 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Code Review: noea6 Does this mean that we're stopping to support .NET 2.0 SP1? Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Thu, Jul 1, 2010 at 8:31 PM, Tomas Matousek > wrote: tfpt review "/shelveset:noea6;REDMOND\tomat" Comment : Removes Microsoft.Scripting.ExtensionAttribute.dll. Upgrades target framework versions of all projects from 2.0 to 3.5. Tomas _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Jul 2 12:16:51 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 2 Jul 2010 16:16:51 +0000 Subject: [Ironruby-core] Code Review: RemoveObsolete Message-ID: tfpt review "/shelveset:RemoveObsolete;REDMOND\tomat" Comment : Removes obsolete APIs and dead code. Tomas From jimmy at schementi.com Fri Jul 2 18:06:25 2010 From: jimmy at schementi.com (Jimmy Schementi) Date: Fri, 2 Jul 2010 15:06:25 -0700 Subject: [Ironruby-core] Preview of ironruby-rack gem Message-ID: All, I?d like your feedback and testing of a *early-but-near-to-beta-quality* build of IronRuby.Rack, packaged in a RubyGem with some very simple scripts to configure rack-based applications for running on ASP.NETand deploying to IIS on Windows. *INSTALL* First you'll need IronRuby 1.0 for .NET 4.0installed: http://ironruby.codeplex.com/releases/view/25901#DownloadId=116524 Since it?s a for-the-mailing-list-only preview, I am not publishing it to rubygems.org until I?ve gotten enough of your feedback that it?s ready, so you?ll have to first download the gem from: http://jimmy.schementi.com/downloads/ironruby-rack-0.0.9-universal-dotnet.gem And then install it with your IronRuby installation: D:\>igem install path\to\ironruby-rack-0.0.9-universal-dotnet.gem This gem packages up the following components: - IronRuby.Rack.dll: integration between Rack and ASP.NET - Cassini.exe: a open-source development-time web server - rack2aspnet [rails|sinatra]: takes a Rack application and enables it to run on ASP.NET - deploy2iis : takes a Rack-enabled ASP.NETapplication and deploys it to the IIS web server. *USAGE* Lets take a tiny Sinatra app and deploy it to IIS. Given this app: D:\>cd demo D:\>more app.rb require 'rubygems' require 'sinatra' get '/' do 'hi' end Run rack2aspnet to set it up for running on ASP.NET: D:\demo>rack2aspnet . sinatra rack2aspnet copied IronRuby.Rack, Cassini, and your local copy of IronRuby to the "bin" directory, a config.ru for sinatra (if not present already), and a web.config all pre-configured to point at your local IronRuby installation: - bin\Cassini.exe - bin\ir.exe - bin\ir.exe.config - bin\IronRuby.dll - bin\IronRuby.Libraries.dll - bin\IronRuby.Libraries.Yaml.dll - bin\IronRuby.Rack.dll - bin\Microsoft.Dynamic.dll - bin\Microsoft.Scripting.dll - config.ru - log - web.config Because it's been ASP.NET-ified, it can run on any ASP.NET web-server; this gem includes Cassini.exe: D:\demo>bin\Cassini.exe D:\demo 9202 / Now this app can be deployed to an IIS web server with deploy2iis: D:\demo>deploy2iis myapp d:\demo Gives IIS_IUSRS FullControl to d:\demo myapp has been created successfully. myapp has been configured successfully. IIS Restarted Note: you'll still have to give IIS_IUSRS read-only access to your IronRuby installation; the script will enable this in the future. You can now navigate to the Sinatra app at http://localhost/myapp, which will be running on IIS. *FEEDBACK* For now, just reply to the list with any major issues you find. Feel free to try it with your own apps too, but make sure they run OK on IronRuby first. If you find some bugs and what to take a stab at fixing them yourself, you can find the source code here: http://github.com/jschementi/ironruby/tree/master/Hosts/IronRuby.Rack Enjoy, ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From charles.c.strahan at gmail.com Tue Jul 6 01:59:26 2010 From: charles.c.strahan at gmail.com (Charles Strahan) Date: Tue, 6 Jul 2010 00:59:26 -0500 Subject: [Ironruby-core] Setting and initializing instance variables on RubyClasses Message-ID: <4c32c641.0b37970a.1d2b.16d7@mx.google.com> Hello, How can I go about setting an instance variable on a RubyClass? Here's some code for context: [RubyClass("Graphics")] public class Graphics { [RubyMethod("frame_rate", RubyMethodAttributes.PublicSingleton)] public static int GetFrameRate(RubyClass self) { // What goes here? // I could use self.TryGetClassVariable, but that's a *class* variable, correct? // I want to achieve the same thing as "return @frame_rate", // not "return @@frame_rate" } [RubyMethod("frame_rate=", RubyMethodAttributes.PublicSingleton)] public static void SetFrameRate(RubyClass self, int frameRate) { // Same thing here. I could do this: // self.SetClassVariable("frame_rate", frameRate); // but I want to achieve the same as this: // @frame_rate = frame_rate } } Another option *just* dawned on me; how about these two: self.Context.SetInstanceVariable(self, "frame_rate", frameRate); self.Context.TryGetInstanceVariable(self, "frame_rate", out frameRate); Is that what I'm looking for? One more question: is there a way to get the library initializer to invoke a callback so that I may perform some initialization for the RubyClass itself? In the case above, I'd like to initialize the frame_rate when the RubyClass is created. As an example: class Graphics attr_accessor :frame_rate frame_rate = 40 end ... Graphics.frame_rate = something_else I'd like that "frame_rate = 40" to happen when the assembly is loaded by the IronRuby runtime, if possible. I'm sure I could type that into my auto-generated LibraryInitializer, but I'd rather do this declaratively, perhaps using Attributes (like RubyMethod and RubyClass, etc). Thanks, -Charles From Tomas.Matousek at microsoft.com Tue Jul 6 02:17:22 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 6 Jul 2010 06:17:22 +0000 Subject: [Ironruby-core] Setting and initializing instance variables on RubyClasses In-Reply-To: <4c32c641.0b37970a.1d2b.16d7@mx.google.com> References: <4c32c641.0b37970a.1d2b.16d7@mx.google.com> Message-ID: What is your overall goal? Are you implementing a Ruby native library? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Charles Strahan Sent: Monday, July 05, 2010 10:59 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Setting and initializing instance variables on RubyClasses Hello, How can I go about setting an instance variable on a RubyClass? Here's some code for context: [RubyClass("Graphics")] public class Graphics { [RubyMethod("frame_rate", RubyMethodAttributes.PublicSingleton)] public static int GetFrameRate(RubyClass self) { // What goes here? // I could use self.TryGetClassVariable, but that's a *class* variable, correct? // I want to achieve the same thing as "return @frame_rate", // not "return @@frame_rate" } [RubyMethod("frame_rate=", RubyMethodAttributes.PublicSingleton)] public static void SetFrameRate(RubyClass self, int frameRate) { // Same thing here. I could do this: // self.SetClassVariable("frame_rate", frameRate); // but I want to achieve the same as this: // @frame_rate = frame_rate } } Another option *just* dawned on me; how about these two: self.Context.SetInstanceVariable(self, "frame_rate", frameRate); self.Context.TryGetInstanceVariable(self, "frame_rate", out frameRate); Is that what I'm looking for? One more question: is there a way to get the library initializer to invoke a callback so that I may perform some initialization for the RubyClass itself? In the case above, I'd like to initialize the frame_rate when the RubyClass is created. As an example: class Graphics attr_accessor :frame_rate frame_rate = 40 end ... Graphics.frame_rate = something_else I'd like that "frame_rate = 40" to happen when the assembly is loaded by the IronRuby runtime, if possible. I'm sure I could type that into my auto-generated LibraryInitializer, but I'd rather do this declaratively, perhaps using Attributes (like RubyMethod and RubyClass, etc). Thanks, -Charles _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From charles.c.strahan at gmail.com Tue Jul 6 02:47:47 2010 From: charles.c.strahan at gmail.com (Charles Strahan) Date: Tue, 6 Jul 2010 01:47:47 -0500 Subject: [Ironruby-core] Extends and Inherits Message-ID: <4c32d195.03a8960a.1f46.ffffc9a9@mx.google.com> Hello, What do the Extends and Inherits properties do for Attributes like RubyModuleAttribute and RubyClassAttribute? Cheers, -Charles -------------- next part -------------- An HTML attachment was scrubbed... URL: From charles.c.strahan at gmail.com Tue Jul 6 02:55:02 2010 From: charles.c.strahan at gmail.com (Charles Strahan) Date: Tue, 6 Jul 2010 01:55:02 -0500 Subject: [Ironruby-core] Setting and initializing instance variables on RubyClasses In-Reply-To: References: <4c32c641.0b37970a.1d2b.16d7@mx.google.com> Message-ID: <4c32d34a.2a45960a.1494.15c9@mx.google.com> Wow, that was quick! Thanks Tomas. If by Ruby native you mean mostly implemented in Ruby, then no. I mentioned the Ruby snippets just for clarification. If I understand correctly, SetClassVariable has the same semantics as declaring what Ruby would call a class variable, as in @@some_var. @@some_var would be visible to the whole class hierarchy, so `FancyGraphics < Graphics; end` would share the same @@some_var instance - which is _not_ what I'd like. Just curious how that might work using the IR APIs. I assume the second question made sense. If not, let me know. Cheers, Charles -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Tuesday, July 06, 2010 1:17 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Setting and initializing instance variables on RubyClasses What is your overall goal? Are you implementing a Ruby native library? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Charles Strahan Sent: Monday, July 05, 2010 10:59 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Setting and initializing instance variables on RubyClasses Hello, How can I go about setting an instance variable on a RubyClass? Here's some code for context: [RubyClass("Graphics")] public class Graphics { [RubyMethod("frame_rate", RubyMethodAttributes.PublicSingleton)] public static int GetFrameRate(RubyClass self) { // What goes here? // I could use self.TryGetClassVariable, but that's a *class* variable, correct? // I want to achieve the same thing as "return @frame_rate", // not "return @@frame_rate" } [RubyMethod("frame_rate=", RubyMethodAttributes.PublicSingleton)] public static void SetFrameRate(RubyClass self, int frameRate) { // Same thing here. I could do this: // self.SetClassVariable("frame_rate", frameRate); // but I want to achieve the same as this: // @frame_rate = frame_rate } } Another option *just* dawned on me; how about these two: self.Context.SetInstanceVariable(self, "frame_rate", frameRate); self.Context.TryGetInstanceVariable(self, "frame_rate", out frameRate); Is that what I'm looking for? One more question: is there a way to get the library initializer to invoke a callback so that I may perform some initialization for the RubyClass itself? In the case above, I'd like to initialize the frame_rate when the RubyClass is created. As an example: class Graphics attr_accessor :frame_rate frame_rate = 40 end ... Graphics.frame_rate = something_else I'd like that "frame_rate = 40" to happen when the assembly is loaded by the IronRuby runtime, if possible. I'm sure I could type that into my auto-generated LibraryInitializer, but I'd rather do this declaratively, perhaps using Attributes (like RubyMethod and RubyClass, etc). Thanks, -Charles _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From kevin.radcliffe at gmail.com Tue Jul 6 16:11:17 2010 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Tue, 6 Jul 2010 14:11:17 -0600 Subject: [Ironruby-core] Preview of ironruby-rack gem In-Reply-To: References: Message-ID: Jimmy, This is great! Thanks for your work. I've run into a few issues so far: 1) not IronRuby.Rack's fault, but the latest rack (1.2.1) breaks the minimal test app above due to this issue: http://github.com/rack/rack/issues/issue/32 (I had to apply the patch mentioned via that link to get things working w/ rack 1.2.1) 2) Is there any way you can detect if sintra is not already installed when running: rack2aspnet . sinatra I did not have the gem installed, and so I received an error when browsing to the app via cassini If possible, it would be cool to warn the user that sinatra (or rails) is not installed when running rack2aspnet 3) Very minor - I created the app.rb like above, and then ran rack2aspnet. At first, I was a little confused why my app.rb wasn't used at all, and instead, some default text from the config.ru was used instead. Is it possible to detect if app.rb already exists, and use it by default if so (from the config.ru)? Will continue working with this, thanks again! Best Regards, Kevin Radcliffe -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Tue Jul 6 23:14:08 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Tue, 6 Jul 2010 20:14:08 -0700 Subject: [Ironruby-core] Preview of ironruby-rack gem In-Reply-To: References: Message-ID: <4c33f10d.2765730a.0fc6.72b7@mx.google.com> This is great, Jimmy! Thanks! I tried the simple example you explain below, and everything worked except for deploying to IIS. Probably something I did or didn't do, but it looks like IIS is looking in the wrong spot for my web.config file. I'll try to dig further when I have a bit more time. Cheers, Ryan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Friday, July 02, 2010 3:06 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Preview of ironruby-rack gem All, I'd like your feedback and testing of a early-but-near-to-beta-quality build of IronRuby.Rack, packaged in a RubyGem with some very simple scripts to configure rack-based applications for running on ASP.NET and deploying to IIS on Windows. INSTALL First you'll need IronRuby 1.0 for .NET 4.0 installed: http://ironruby.codeplex.com/releases/view/25901#DownloadId=116524 Since it's a for-the-mailing-list-only preview, I am not publishing it to rubygems.org until I've gotten enough of your feedback that it's ready, so you'll have to first download the gem from: http://jimmy.schementi.com/downloads/ironruby-rack-0.0.9-universal-dotnet.ge m And then install it with your IronRuby installation: D:\>igem install path\to\ironruby-rack-0.0.9-universal-dotnet.gem This gem packages up the following components: * IronRuby.Rack.dll: integration between Rack and ASP.NET * Cassini.exe: a open-source development-time web server * rack2aspnet [rails|sinatra]: takes a Rack application and enables it to run on ASP.NET * deploy2iis : takes a Rack-enabled ASP.NET application and deploys it to the IIS web server. USAGE Lets take a tiny Sinatra app and deploy it to IIS. Given this app: D:\>cd demo D:\>more app.rb require 'rubygems' require 'sinatra' get '/' do 'hi' end Run rack2aspnet to set it up for running on ASP.NET: D:\demo>rack2aspnet . sinatra rack2aspnet copied IronRuby.Rack, Cassini, and your local copy of IronRuby to the "bin" directory, a config.ru for sinatra (if not present already), and a web.config all pre-configured to point at your local IronRuby installation: * bin\Cassini.exe * bin\ir.exe * bin\ir.exe.config * bin\IronRuby.dll * bin\IronRuby.Libraries.dll * bin\IronRuby.Libraries.Yaml.dll * bin\IronRuby.Rack.dll * bin\Microsoft.Dynamic.dll * bin\Microsoft.Scripting.dll * config.ru * log * web.config Because it's been ASP.NET-ified, it can run on any ASP.NET web-server; this gem includes Cassini.exe: D:\demo>bin\Cassini.exe D:\demo 9202 / Now this app can be deployed to an IIS web server with deploy2iis: D:\demo>deploy2iis myapp d:\demo Gives IIS_IUSRS FullControl to d:\demo myapp has been created successfully. myapp has been configured successfully. IIS Restarted Note: you'll still have to give IIS_IUSRS read-only access to your IronRuby installation; the script will enable this in the future. You can now navigate to the Sinatra app at http://localhost/myapp, which will be running on IIS. FEEDBACK For now, just reply to the list with any major issues you find. Feel free to try it with your own apps too, but make sure they run OK on IronRuby first. If you find some bugs and what to take a stab at fixing them yourself, you can find the source code here: http://github.com/jschementi/ironruby/tree/master/Hosts/IronRuby.Rack Enjoy, ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 12353 bytes Desc: not available URL: From ryan.riley at panesofglass.org Tue Jul 6 23:41:39 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Tue, 6 Jul 2010 20:41:39 -0700 Subject: [Ironruby-core] Preview of ironruby-rack gem In-Reply-To: References: Message-ID: <4c33f780.26f88e0a.7cbb.533e@mx.google.com> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Kevin Radcliffe Sent: Tuesday, July 06, 2010 1:11 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Preview of ironruby-rack gem 3) Very minor - I created the app.rb like above, and then ran rack2aspnet. At first, I was a little confused why my app.rb wasn't used at all, and instead, some default text from the config.ru was used instead. Is it possible to detect if app.rb already exists, and use it by default if so (from the config.ru)? I hit this, too. If nothing else, just don't put a default app in the config.ru at all and let the developer add it. I know you only add the config.ru if it doesn't already exist. I suppose it's a toss up as to whether to show a default message or leave it blank. I can go either way, but I kinda lean toward blank. Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ali_bush at gentoo.org Wed Jul 7 08:11:11 2010 From: ali_bush at gentoo.org (Alistair Bush) Date: Thu, 8 Jul 2010 00:11:11 +1200 Subject: [Ironruby-core] Ironruby and Gentoo Linux Message-ID: <201007080011.12178.ali_bush@gentoo.org> Hi guys. Im a developer/packager for Gentoo Linux [1] and I have been looking at packaging IronRuby. Within gentoo the long-term goal would be to have all >300 ruby packages ( could be anything from gems to applications ) supported by IronRuby (this also includes their unit tests [2]) and to have the ability to set IronRuby as the system ruby implementation ( ie no cruby just IronRuby ). We have ways of supporting specific ruby implementations so minor compatibility issues wont be a problem. So don't start worrying :) Hopefully you guys are interested in this as I would like to get IronRuby into a state where it is easy to package. This leads me onto the following... I noticed that within your git repository you have the Microsoft.Dynamic and Scripting projects. I also believe that they are replicated in the IronPython tree but have different assembly version numbers. this is fine by itself but more concerned about pulling 2 version of a package from 2 different locations. Is there a master repository for these projects. Is it safe to package directly them from your repository ( ie have you made any changes to them? would ironpython have?) I also checked out your git repository and have noticed the some of the Rakefiles are missing. (eg Languages/Ruby/Rakefile ). It seems that you guys had continuous integration for mono but that website seems to be down. Thanks Alistair [1] Gentoo is a source-based linux distro, we compile everything from source. even things that don't get compiled like ruby/perl are "compiled". see www.gentoo.org for more. [2] From a ruby perspective the major benefit of [1] is that we can run the packages testsuite before we install the package. In rubys case we could run the testsuite against multiple implementations of ruby ( ruby18 ruby18 ree jruby and eventually ironruby with any luck) From Tomas.Matousek at microsoft.com Wed Jul 7 12:15:49 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 7 Jul 2010 16:15:49 +0000 Subject: [Ironruby-core] Setting and initializing instance variables on RubyClasses In-Reply-To: <4c32d34a.2a45960a.1494.15c9@mx.google.com> References: <4c32c641.0b37970a.1d2b.16d7@mx.google.com> <4c32d34a.2a45960a.1494.15c9@mx.google.com> Message-ID: By native Ruby library/extension I meant an implementation in C. Although possible it's not easy to simulate Ruby classes definition in C# in a declarative way. I would suggest writing your implementation in Ruby and calling .NET when you need so using IronRuby's .NET interop. If you absolutely need to implement your Ruby classes in C# (I would be interested to understand why) you can use C# instance fields instead of Ruby's instance variables. They won't be exposed as instance variables to Ruby but they would be faster to work with. The fact they are not exposed shouldn't matter since instance variables should be a private implementation detail of the class anyways. It is more complicated with per-class data. You shouldn't use static fields since the value should be bound to Ruby runtime. To allocate data bound to a runtime we provide GetOrCreateLibraryData method on RubyContext. You'll find a few places where it's used in IronRuby.Library. But before you dig into that consider writing your code in Ruby and perhaps parts of it that are perf critical in pure C# (w/o Ruby specific attributes). Our C# interop is strong so there shouldn't be generally a need for writing Ruby code in C#. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Charles Strahan Sent: Monday, July 05, 2010 11:55 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Setting and initializing instance variables on RubyClasses Wow, that was quick! Thanks Tomas. If by Ruby native you mean mostly implemented in Ruby, then no. I mentioned the Ruby snippets just for clarification. If I understand correctly, SetClassVariable has the same semantics as declaring what Ruby would call a class variable, as in @@some_var. @@some_var would be visible to the whole class hierarchy, so `FancyGraphics < Graphics; end` would share the same @@some_var instance - which is _not_ what I'd like. Just curious how that might work using the IR APIs. I assume the second question made sense. If not, let me know. Cheers, Charles -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Tuesday, July 06, 2010 1:17 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Setting and initializing instance variables on RubyClasses What is your overall goal? Are you implementing a Ruby native library? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Charles Strahan Sent: Monday, July 05, 2010 10:59 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Setting and initializing instance variables on RubyClasses Hello, How can I go about setting an instance variable on a RubyClass? Here's some code for context: [RubyClass("Graphics")] public class Graphics { [RubyMethod("frame_rate", RubyMethodAttributes.PublicSingleton)] public static int GetFrameRate(RubyClass self) { // What goes here? // I could use self.TryGetClassVariable, but that's a *class* variable, correct? // I want to achieve the same thing as "return @frame_rate", // not "return @@frame_rate" } [RubyMethod("frame_rate=", RubyMethodAttributes.PublicSingleton)] public static void SetFrameRate(RubyClass self, int frameRate) { // Same thing here. I could do this: // self.SetClassVariable("frame_rate", frameRate); // but I want to achieve the same as this: // @frame_rate = frame_rate } } Another option *just* dawned on me; how about these two: self.Context.SetInstanceVariable(self, "frame_rate", frameRate); self.Context.TryGetInstanceVariable(self, "frame_rate", out frameRate); Is that what I'm looking for? One more question: is there a way to get the library initializer to invoke a callback so that I may perform some initialization for the RubyClass itself? In the case above, I'd like to initialize the frame_rate when the RubyClass is created. As an example: class Graphics attr_accessor :frame_rate frame_rate = 40 end ... Graphics.frame_rate = something_else I'd like that "frame_rate = 40" to happen when the assembly is loaded by the IronRuby runtime, if possible. I'm sure I could type that into my auto-generated LibraryInitializer, but I'd rather do this declaratively, perhaps using Attributes (like RubyMethod and RubyClass, etc). Thanks, -Charles _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Wed Jul 7 12:46:27 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 7 Jul 2010 16:46:27 +0000 Subject: [Ironruby-core] Ironruby and Gentoo Linux In-Reply-To: <201007080011.12178.ali_bush@gentoo.org> References: <201007080011.12178.ali_bush@gentoo.org> Message-ID: We are definitely interested! Please feel free to file bugs on CodePlex (http://ironruby.codeplex.com/WorkItem/AdvancedList.aspx) whenever you find some compatibility issue (even minor - chances are it would be easy to fix). IronRuby is indeed accepting contributions so you can even send us a patch if you feel like fixing the issue. Unfortunately we don't have resources to run automated tests on other OSes than Windows, although we would like to. If you could help us with that we would very much appreciate it. Regarding different versions of IronRuby and IronPython shared libraries... once in a while we synchronize our releases so that our languages can work together. The last time we did so was for IronRuby v1.0 (http://ironruby.codeplex.com/releases/view/25901) and IronPython v2.6.1 (http://ironpython.codeplex.com/releases/view/36280). We used to include IronPython in Ruby's GIThub repo. I'm not sure why we don't do so any more. We should. Let me check it out. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Alistair Bush Sent: Wednesday, July 07, 2010 5:11 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Ironruby and Gentoo Linux Hi guys. Im a developer/packager for Gentoo Linux [1] and I have been looking at packaging IronRuby. Within gentoo the long-term goal would be to have all >300 ruby packages ( could be anything from gems to applications ) >supported by IronRuby (this also includes their unit tests [2]) and to have the ability to set IronRuby as the system ruby implementation ( ie no cruby just IronRuby ). We have ways of supporting specific ruby implementations so minor compatibility issues wont be a problem. So don't start worrying :) Hopefully you guys are interested in this as I would like to get IronRuby into a state where it is easy to package. This leads me onto the following... I noticed that within your git repository you have the Microsoft.Dynamic and Scripting projects. I also believe that they are replicated in the IronPython tree but have different assembly version numbers. this is fine by itself but more concerned about pulling 2 version of a package from 2 different locations. Is there a master repository for these projects. Is it safe to package directly them from your repository ( ie have you made any changes to them? would ironpython have?) I also checked out your git repository and have noticed the some of the Rakefiles are missing. (eg Languages/Ruby/Rakefile ). It seems that you guys had continuous integration for mono but that website seems to be down. Thanks Alistair [1] Gentoo is a source-based linux distro, we compile everything from source. even things that don't get compiled like ruby/perl are "compiled". see www.gentoo.org for more. [2] From a ruby perspective the major benefit of [1] is that we can run the packages testsuite before we install the package. In rubys case we could run the testsuite against multiple implementations of ruby ( ruby18 ruby18 ree jruby and eventually ironruby with any luck) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From kevin.radcliffe at gmail.com Wed Jul 7 13:11:59 2010 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Wed, 7 Jul 2010 11:11:59 -0600 Subject: [Ironruby-core] Preview of ironruby-rack gem In-Reply-To: <4c33f10d.2765730a.0fc6.72b7@mx.google.com> References: <4c33f10d.2765730a.0fc6.72b7@mx.google.com> Message-ID: Ryan, Jimmy, 1) I hit the issue also with deploy2iis. It looks like rack\deploy\iis.rb thinks it is setting the permissions, but they don't actually get set. Here is the output I got: C:\Users\kradcliffe\jsRackTest\testPerms>deploy2iis myapp . Gives IIS_IUSRS FullControl to C:\Users\kradcliffe\jsRackTest\testPerms However, when I looked at the actual directory perms, IIS_IUSRS was added as a user, but with no perms at all. Manually setting the perms to include FullControl worked fine. 2) After that, the app pool didn't like the app because by default it went into an older framework app pool. 3) I set it to the 4.0 app pool, but still no dice, because by default my 4.0 app pool does not allow 32 bit apps (which win32api requires) Updated my 4.0 app pool to enable 32-bit apps. (in a prod scenario, probably better to have a seperate 32-bit 4.0 app pool) After that, the simple sample app worked properly. Best Regards, Kevin Radcliffe On Tue, Jul 6, 2010 at 9:14 PM, Ryan Riley wrote: > This is great, Jimmy! Thanks! I tried the simple example you explain > below, and everything worked except for deploying to IIS. Probably something > I did or didn?t do, but it looks like IIS is looking in the wrong spot for > my web.config file. I?ll try to dig further when I have a bit more time. > > > > > > Cheers, > > Ryan > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jimmy Schementi > *Sent:* Friday, July 02, 2010 3:06 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] Preview of ironruby-rack gem > > > > All, > > I?d like your feedback and testing of a *early-but-near-to-beta-quality* build > of IronRuby.Rack, packaged in a RubyGem with some very simple scripts to > configure rack-based applications for running on ASP.NETand deploying to > IIS on Windows. > > > > *INSTALL* > > > > First you'll need IronRuby 1.0 for .NET 4.0installed: > > http://ironruby.codeplex.com/releases/view/25901#DownloadId=116524 > > > > Since it?s a for-the-mailing-list-only preview, I am not publishing it to > rubygems.org until I?ve gotten enough of your feedback that it?s ready, so > you?ll have to first download the gem from: > > http://jimmy.schementi.com/downloads/ironruby-rack-0.0.9-universal-dotnet.gem > > > > And then install it with your IronRuby installation: > > D:\>igem install path\to\ironruby-rack-0.0.9-universal-dotnet.gem > > > > This gem packages up the following components: > > - IronRuby.Rack.dll: integration between Rack and ASP.NET > - Cassini.exe: a open-source development-time web server > - rack2aspnet [rails|sinatra]: takes a Rack application and > enables it to run on ASP.NET > - deploy2iis : takes a Rack-enabled ASP.NETapplication and deploys it to the IIS web server. > > *USAGE* > > > > Lets take a tiny Sinatra app and deploy it to IIS. Given this app: > > > > D:\>cd demo > > > > D:\>more app.rb > > require 'rubygems' > > require 'sinatra' > > > > get '/' do > > 'hi' > > end > > > > Run rack2aspnet to set it up for running on ASP.NET: > > > > D:\demo>rack2aspnet . sinatra > > > > rack2aspnet copied IronRuby.Rack, Cassini, and your local copy of IronRuby > to the "bin" directory, a config.ru for sinatra (if not present already), > and a web.config all pre-configured to point at your local IronRuby > installation: > > - bin\Cassini.exe > - bin\ir.exe > - bin\ir.exe.config > - bin\IronRuby.dll > - bin\IronRuby.Libraries.dll > - bin\IronRuby.Libraries.Yaml.dll > - bin\IronRuby.Rack.dll > - bin\Microsoft.Dynamic.dll > - bin\Microsoft.Scripting.dll > - config.ru > - log > - web.config > > Because it's been ASP.NET-ified, it can run on any ASP.NET web-server; > this gem includes Cassini.exe: > > > > D:\demo>bin\Cassini.exe D:\demo 9202 / > > > > Now this app can be deployed to an IIS web server with deploy2iis: > > > > D:\demo>deploy2iis myapp d:\demo > > Gives IIS_IUSRS FullControl to d:\demo > > myapp has been created successfully. > > myapp has been configured successfully. > > IIS Restarted > > > > Note: you'll still have to give IIS_IUSRS read-only access to your IronRuby > installation; the script will enable this in the future. > > > > You can now navigate to the Sinatra app at http://localhost/myapp, which > will be running on IIS. > > > > *FEEDBACK* > > > > For now, just reply to the list with any major issues you find. Feel free > to try it with your own apps too, but make sure they run OK on IronRuby > first. > > > > If you find some bugs and what to take a stab at fixing them yourself, you > can find the source code here: > > http://github.com/jschementi/ironruby/tree/master/Hosts/IronRuby.Rack > > > > > > Enjoy, > > ~Jimmy > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 12353 bytes Desc: not available URL: From jdeville at microsoft.com Wed Jul 7 13:13:46 2010 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 7 Jul 2010 17:13:46 +0000 Subject: [Ironruby-core] Ironruby and Gentoo Linux In-Reply-To: References: <201007080011.12178.ali_bush@gentoo.org> Message-ID: <571651983633624F9BA6BDE490351AEE03741B@TK5EX14MBXC201.redmond.corp.microsoft.com> We used to include IronPython in IronRuby's repo in order to make sure it would work with us since IronPython had a different source layout. I removed it when IronPython removed most of their transforms, but I could add it if needed. DLR's codeplex site should have all 3 projects in it, so that might be an option. While we don't have resources to setup automated tests on other OSes, if you were able to help prepare a VHD for Hyper-V, I could try to get it into our systems (assuming I don't get pushback from legal and so on :(). If you are interested, feel free to contact me directly and we'll go from there. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Wednesday, July 07, 2010 9:46 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ironruby and Gentoo Linux We are definitely interested! Please feel free to file bugs on CodePlex (http://ironruby.codeplex.com/WorkItem/AdvancedList.aspx) whenever you find some compatibility issue (even minor - chances are it would be easy to fix). IronRuby is indeed accepting contributions so you can even send us a patch if you feel like fixing the issue. Unfortunately we don't have resources to run automated tests on other OSes than Windows, although we would like to. If you could help us with that we would very much appreciate it. Regarding different versions of IronRuby and IronPython shared libraries... once in a while we synchronize our releases so that our languages can work together. The last time we did so was for IronRuby v1.0 (http://ironruby.codeplex.com/releases/view/25901) and IronPython v2.6.1 (http://ironpython.codeplex.com/releases/view/36280). We used to include IronPython in Ruby's GIThub repo. I'm not sure why we don't do so any more. We should. Let me check it out. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Alistair Bush Sent: Wednesday, July 07, 2010 5:11 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Ironruby and Gentoo Linux Hi guys. Im a developer/packager for Gentoo Linux [1] and I have been looking at packaging IronRuby. Within gentoo the long-term goal would be to have all >300 ruby packages ( could be anything from gems to applications ) >supported by IronRuby (this also includes their unit tests [2]) and to have the ability to set IronRuby as the system ruby implementation ( ie no cruby just IronRuby ). We have ways of supporting specific ruby implementations so minor compatibility issues wont be a problem. So don't start worrying :) Hopefully you guys are interested in this as I would like to get IronRuby into a state where it is easy to package. This leads me onto the following... I noticed that within your git repository you have the Microsoft.Dynamic and Scripting projects. I also believe that they are replicated in the IronPython tree but have different assembly version numbers. this is fine by itself but more concerned about pulling 2 version of a package from 2 different locations. Is there a master repository for these projects. Is it safe to package directly them from your repository ( ie have you made any changes to them? would ironpython have?) I also checked out your git repository and have noticed the some of the Rakefiles are missing. (eg Languages/Ruby/Rakefile ). It seems that you guys had continuous integration for mono but that website seems to be down. Thanks Alistair [1] Gentoo is a source-based linux distro, we compile everything from source. even things that don't get compiled like ruby/perl are "compiled". see www.gentoo.org for more. [2] From a ruby perspective the major benefit of [1] is that we can run the packages testsuite before we install the package. In rubys case we could run the testsuite against multiple implementations of ruby ( ruby18 ruby18 ree jruby and eventually ironruby with any luck) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Wed Jul 7 13:34:20 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 7 Jul 2010 17:34:20 +0000 Subject: [Ironruby-core] Ironruby and Gentoo Linux In-Reply-To: <571651983633624F9BA6BDE490351AEE03741B@TK5EX14MBXC201.redmond.corp.microsoft.com> References: <201007080011.12178.ali_bush@gentoo.org> <571651983633624F9BA6BDE490351AEE03741B@TK5EX14MBXC201.redmond.corp.microsoft.com> Message-ID: I think we should include IronPython in GIT repo since some of our interop tests depend on it. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Wednesday, July 07, 2010 10:14 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ironruby and Gentoo Linux We used to include IronPython in IronRuby's repo in order to make sure it would work with us since IronPython had a different source layout. I removed it when IronPython removed most of their transforms, but I could add it if needed. DLR's codeplex site should have all 3 projects in it, so that might be an option. While we don't have resources to setup automated tests on other OSes, if you were able to help prepare a VHD for Hyper-V, I could try to get it into our systems (assuming I don't get pushback from legal and so on :(). If you are interested, feel free to contact me directly and we'll go from there. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Wednesday, July 07, 2010 9:46 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ironruby and Gentoo Linux We are definitely interested! Please feel free to file bugs on CodePlex (http://ironruby.codeplex.com/WorkItem/AdvancedList.aspx) whenever you find some compatibility issue (even minor - chances are it would be easy to fix). IronRuby is indeed accepting contributions so you can even send us a patch if you feel like fixing the issue. Unfortunately we don't have resources to run automated tests on other OSes than Windows, although we would like to. If you could help us with that we would very much appreciate it. Regarding different versions of IronRuby and IronPython shared libraries... once in a while we synchronize our releases so that our languages can work together. The last time we did so was for IronRuby v1.0 (http://ironruby.codeplex.com/releases/view/25901) and IronPython v2.6.1 (http://ironpython.codeplex.com/releases/view/36280). We used to include IronPython in Ruby's GIThub repo. I'm not sure why we don't do so any more. We should. Let me check it out. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Alistair Bush Sent: Wednesday, July 07, 2010 5:11 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Ironruby and Gentoo Linux Hi guys. Im a developer/packager for Gentoo Linux [1] and I have been looking at packaging IronRuby. Within gentoo the long-term goal would be to have all >300 ruby packages ( could be anything from gems to applications ) >supported by IronRuby (this also includes their unit tests [2]) and to have the ability to set IronRuby as the system ruby implementation ( ie no cruby just IronRuby ). We have ways of supporting specific ruby implementations so minor compatibility issues wont be a problem. So don't start worrying :) Hopefully you guys are interested in this as I would like to get IronRuby into a state where it is easy to package. This leads me onto the following... I noticed that within your git repository you have the Microsoft.Dynamic and Scripting projects. I also believe that they are replicated in the IronPython tree but have different assembly version numbers. this is fine by itself but more concerned about pulling 2 version of a package from 2 different locations. Is there a master repository for these projects. Is it safe to package directly them from your repository ( ie have you made any changes to them? would ironpython have?) I also checked out your git repository and have noticed the some of the Rakefiles are missing. (eg Languages/Ruby/Rakefile ). It seems that you guys had continuous integration for mono but that website seems to be down. Thanks Alistair [1] Gentoo is a source-based linux distro, we compile everything from source. even things that don't get compiled like ruby/perl are "compiled". see www.gentoo.org for more. [2] From a ruby perspective the major benefit of [1] is that we can run the packages testsuite before we install the package. In rubys case we could run the testsuite against multiple implementations of ruby ( ruby18 ruby18 ree jruby and eventually ironruby with any luck) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From nrhird at gmail.com Wed Jul 7 14:10:54 2010 From: nrhird at gmail.com (Nick Hird) Date: Wed, 7 Jul 2010 14:10:54 -0400 Subject: [Ironruby-core] IronRuby-Rake-0.0.9-Universal-dotnet only for IIS 7? Message-ID: I have a Windows XP machine and noticed when i try and run the deploy2iis i get an error (see below). Looking at the source of the error its trying to do something with the user IIS_IUSRS which isn't a user under Windows XP. Is this by design? I know Windows XP is old and all, but getting work to upgrade isnt possible right now. I changed the user to the IIS user under Windows XP and now it says it can connect to the server but it just cant view the page, 403 Error, it created the site in IIS. Any ideas? Error: C:\Code>deploy2iis myapp C:\Code mscorlib:0:in `Translate': Some or all identity references could not be translated. (System::Security::Principal::IdentityNotMappedException) from mscorlib:0:in `Translate' from mscorlib:0:in `ModifyAccess' from mscorlib:0:in `AddAccessRule' from mscorlib:0:in `AddAccessRule' from C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:161:in `add_acl' from C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:48:in `set_permissions' from C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:32:in `deploy' from C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/deploy2iis:36:in `__send__' from C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/deploy2iis:36 from C:/IronRuby/bin/deploy2iis:19:in `load' from C:/IronRuby/bin/deploy2iis:19 Code: def set_permissions app_path dfr = FileSystemRights.full_control gan = 'IIS_IUSRS' unless acl_exists? app_path, dfr, gan add_acl app_path, dfr, gan end end Thanks, Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimmy at schementi.com Wed Jul 7 14:40:54 2010 From: jimmy at schementi.com (Jimmy Schementi) Date: Wed, 7 Jul 2010 11:40:54 -0700 Subject: [Ironruby-core] IronRuby-Rake-0.0.9-Universal-dotnet only for IIS 7? In-Reply-To: References: Message-ID: The deploy2iis hasn't been tested on IIS6; I can provide a better error message in the meantime. The application generated by rack2aspnet should run on IIS6, so let me know if at least that works for you. deploy2iis is just intended to do the one-time setup required to run the application in IIS; I can also include the manual steps in the error message when IIS7 isn't installed. If you're interested in tracking down some of the issues on IIS6 and reporting more directed bugs / submitting patches, I'd be more than happy to support configuring IIS6 for IronRuby Rack. ~Jimmy On Wed, Jul 7, 2010 at 11:10 AM, Nick Hird wrote: > I have a Windows XP machine and noticed when i try and run the deploy2iis i > get an error (see below). Looking at the source of the error its trying to > do something with the user IIS_IUSRS which isn't a user under Windows XP. Is > this by design? I know Windows XP is old and all, but getting work to > upgrade isnt possible right now. I changed the user to the IIS user under > Windows XP and now it says it can connect to the server but it just cant > view the page, 403 Error, it created the site in IIS. Any ideas? > > Error: > C:\Code>deploy2iis myapp C:\Code > mscorlib:0:in `Translate': Some or all identity references could not be > translated. (System::Security::Principal::IdentityNotMappedException) > from mscorlib:0:in `Translate' > from mscorlib:0:in `ModifyAccess' > from mscorlib:0:in `AddAccessRule' > from mscorlib:0:in `AddAccessRule' > from > C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:161:in > `add_acl' > from > C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:48:in > `set_permissions' > from > C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:32:in > `deploy' > from > C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/deploy2iis:36:in > `__send__' > from > C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/deploy2iis:36 > from C:/IronRuby/bin/deploy2iis:19:in `load' > from C:/IronRuby/bin/deploy2iis:19 > > Code: > def set_permissions app_path > dfr = FileSystemRights.full_control > gan = 'IIS_IUSRS' > > unless acl_exists? app_path, dfr, gan > add_acl app_path, dfr, gan > end > end > > Thanks, > Nick > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nrhird at gmail.com Wed Jul 7 15:14:35 2010 From: nrhird at gmail.com (Nick Hird) Date: Wed, 7 Jul 2010 15:14:35 -0400 Subject: [Ironruby-core] IronRuby-Rake-0.0.9-Universal-dotnet only for IIS 7? In-Reply-To: References: Message-ID: Jimmy, The rack2aspnet worked fine. I was able to use Cassini to load and run the simple app, but for some reason it wont run under IIS6. I will try and track down what i can and see why its not working. It may be a configuration issue on my iis server. I will keep looking and see what i can come up with. -Nick On Wed, Jul 7, 2010 at 2:40 PM, Jimmy Schementi wrote: > The deploy2iis hasn't been tested on IIS6; I can provide a better error > message in the meantime. The application generated by rack2aspnet should run > on IIS6, so let me know if at least that works for you. deploy2iis is just > intended to do the one-time setup required to run the application in IIS; I > can also include the manual steps in the error message when IIS7 isn't > installed. > > If you're interested in tracking down some of the issues on IIS6 and > reporting more directed bugs / submitting patches, I'd be more than happy to > support configuring IIS6 for IronRuby Rack. > > ~Jimmy > > > On Wed, Jul 7, 2010 at 11:10 AM, Nick Hird wrote: > >> I have a Windows XP machine and noticed when i try and run the deploy2iis >> i get an error (see below). Looking at the source of the error its trying to >> do something with the user IIS_IUSRS which isn't a user under Windows XP. Is >> this by design? I know Windows XP is old and all, but getting work to >> upgrade isnt possible right now. I changed the user to the IIS user under >> Windows XP and now it says it can connect to the server but it just cant >> view the page, 403 Error, it created the site in IIS. Any ideas? >> >> Error: >> C:\Code>deploy2iis myapp C:\Code >> mscorlib:0:in `Translate': Some or all identity references could not be >> translated. (System::Security::Principal::IdentityNotMappedException) >> from mscorlib:0:in `Translate' >> from mscorlib:0:in `ModifyAccess' >> from mscorlib:0:in `AddAccessRule' >> from mscorlib:0:in `AddAccessRule' >> from >> C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:161:in >> `add_acl' >> from >> C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:48:in >> `set_permissions' >> from >> C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:32:in >> `deploy' >> from >> C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/deploy2iis:36:in >> `__send__' >> from >> C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/deploy2iis:36 >> from C:/IronRuby/bin/deploy2iis:19:in `load' >> from C:/IronRuby/bin/deploy2iis:19 >> >> Code: >> def set_permissions app_path >> dfr = FileSystemRights.full_control >> gan = 'IIS_IUSRS' >> >> unless acl_exists? app_path, dfr, gan >> add_acl app_path, dfr, gan >> end >> end >> >> Thanks, >> Nick >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- --Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From ali_bush at gentoo.org Wed Jul 7 16:09:29 2010 From: ali_bush at gentoo.org (Alistair Bush) Date: Thu, 8 Jul 2010 08:09:29 +1200 Subject: [Ironruby-core] Ironruby and Gentoo Linux In-Reply-To: <571651983633624F9BA6BDE490351AEE03741B@TK5EX14MBXC201.redmond.corp.microsoft.com> References: <201007080011.12178.ali_bush@gentoo.org> <571651983633624F9BA6BDE490351AEE03741B@TK5EX14MBXC201.redmond.corp.microsoft.com> Message-ID: <201007080809.29354.ali_bush@gentoo.org> > We used to include IronPython in IronRuby's repo in order to make sure it > would work with us since IronPython had a different source layout. I > removed it when IronPython removed most of their transforms, but I could > add it if needed. DLR's codeplex site should have all 3 projects in it, so > that might be an option. I suppose that is completely up to you. What im more worried about is there being 2 parallel streams of development for DLR but from the sounds of it that doesn't really occur. obviously my main effort will be packaging your releases which you sync anyway. > While we don't have resources to setup automated > tests on other OSes, if you were able to help prepare a VHD for Hyper-V, I > could try to get it into our systems (assuming I don't get pushback from > legal and so on :(). If you are interested, feel free to contact me > directly and we'll go from there. > I will be able to create ebuilds (the build scripts we use) that target your git repositories. Currently I have those "live" packages reinstalling (and doing an update) weekly on my system. In the future it might be nice to have more but it will do for now. I won't be able to get ironruby into the tree at least until the next release of mono as it will not build with 2.6.4 (a mono bug I think you guys now about). but it does with mono trunk. Alistair. From kevin.radcliffe at gmail.com Wed Jul 7 17:20:28 2010 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Wed, 7 Jul 2010 15:20:28 -0600 Subject: [Ironruby-core] Preview of ironruby-rack gem In-Reply-To: References: <4c33f10d.2765730a.0fc6.72b7@mx.google.com> Message-ID: Jimmy, As mentioned before, it appears (at least on my own Windows 7 x64 system) that add_acl (in lib\rack\deploy\iis.rb) was not giving FullControl rights to IIS_IUSRS as expected. This results in the "cannot read configuration file" that Ryan reported above. I was able to get the system to give appropriate rights to IIS_IUSRS but in a very strange way: I had to give it 2 FileSystemAccessRules, one simpler one and the full one (that you already had in iis.rb) If I give it one or the other but not BOTH, it will add IIS_IUSRS as a user of the app directory, but will NOT give it any permissions at all. Here's the gist with my minor edits (in case it is helpful). (again, this is from lib\rack\deploy\iis.rb): http://gist.github.com/467279 Unfortunately, I'm not really sure WHY this is the case. It seems strange to be required to essentially add 2 rules that appear to do the same thing. Best Regards, Kevin Radcliffe -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Thu Jul 8 21:58:49 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 9 Jul 2010 01:58:49 +0000 Subject: [Ironruby-core] Code Review: RenameStorageSetVariable Message-ID: tfpt review "/shelveset:RenameStorageSetVariable;REDMOND\tomat" Comment : Renames ScopeStorage.GetVariable to GetScopeVariable to avoid conflict with ScriptScope.GetVariable on dynamic lookup. Tomas From lists at ruby-forum.com Fri Jul 9 08:47:00 2010 From: lists at ruby-forum.com (Aaron Clauson) Date: Fri, 9 Jul 2010 14:47:00 +0200 Subject: [Ironruby-core] Library path in order to use gems Message-ID: Hi, I'd like my C# hosted IronRuby script to be able to use gems (I install them with igem so they go into the IronRuby directory). I've been able to successfully require an installed gem but to do so I had to explicitly add the path it was installed in to the app.config LibraryPaths setting. If I have to do that for every gem it's going to end up being a very long parameter. Is there a library path I can specify so that IronRuby will search beneath it to when doing requires? My code looks like: var setup = ScriptRuntimeSetup.ReadConfiguration(); var scriptRuntime = Ruby.CreateRuntime(setup); ScriptEngine scriptEngine = Ruby.GetEngine(scriptRuntime); string script = "require 'httpclient'\n" + "print 'hello\n'"; scriptEngine.Execute(script); The require works with a LibraryPath setting of: I would have thought instead of C:\Data\Dev\IronRuby\ironruby-1.0v4\lib\ironruby\gems\1.8\gems\httpclient-2.1.5.2\lib I would specify C:\Data\Dev\IronRuby\ironruby-1.0v4\lib\ironruby\gems\1.8\gems and sub directories would be automatically searched? Thanks, Aaron -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Fri Jul 9 12:44:10 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 9 Jul 2010 16:44:10 +0000 Subject: [Ironruby-core] Library path in order to use gems In-Reply-To: References: Message-ID: If you first require 'rubygems' you shouldn't need to set any paths. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Aaron Clauson Sent: Friday, July 09, 2010 5:47 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Library path in order to use gems Hi, I'd like my C# hosted IronRuby script to be able to use gems (I install them with igem so they go into the IronRuby directory). I've been able to successfully require an installed gem but to do so I had to explicitly add the path it was installed in to the app.config LibraryPaths setting. If I have to do that for every gem it's going to end up being a very long parameter. Is there a library path I can specify so that IronRuby will search beneath it to when doing requires? My code looks like: var setup = ScriptRuntimeSetup.ReadConfiguration(); var scriptRuntime = Ruby.CreateRuntime(setup); ScriptEngine scriptEngine = Ruby.GetEngine(scriptRuntime); string script = "require 'httpclient'\n" + "print 'hello\n'"; scriptEngine.Execute(script); The require works with a LibraryPath setting of: I would have thought instead of C:\Data\Dev\IronRuby\ironruby-1.0v4\lib\ironruby\gems\1.8\gems\httpclient-2.1.5.2\lib I would specify C:\Data\Dev\IronRuby\ironruby-1.0v4\lib\ironruby\gems\1.8\gems and sub directories would be automatically searched? Thanks, Aaron -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Fri Jul 9 21:09:44 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 10 Jul 2010 01:09:44 +0000 Subject: [Ironruby-core] Code Review: CP4752 Message-ID: tfpt review "/shelveset:CP4752;REDMOND\tomat" Comment : Fixes http://ironruby.codeplex.com/workitem/4752. Tomas From ryan.riley at panesofglass.org Sun Jul 11 16:41:38 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 11 Jul 2010 13:41:38 -0700 Subject: [Ironruby-core] Ironruby and Gentoo Linux In-Reply-To: <201007080809.29354.ali_bush@gentoo.org> References: <201007080011.12178.ali_bush@gentoo.org> <571651983633624F9BA6BDE490351AEE03741B@TK5EX14MBXC201.redmond.corp.microsoft.com> <201007080809.29354.ali_bush@gentoo.org> Message-ID: <4c3a2c96.02b28f0a.2f03.ffffbb7a@mx.google.com> Ivan Porto Carrero (@casualjim) had a ci build for linux running at one time. You could check with him. I believe he was running off of mono trunk (2.7) at the time. ~ Ryan Riley -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Alistair Bush Sent: Wednesday, July 07, 2010 1:09 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ironruby and Gentoo Linux > We used to include IronPython in IronRuby's repo in order to make sure it > would work with us since IronPython had a different source layout. I > removed it when IronPython removed most of their transforms, but I could > add it if needed. DLR's codeplex site should have all 3 projects in it, so > that might be an option. I suppose that is completely up to you. What im more worried about is there being 2 parallel streams of development for DLR but from the sounds of it that doesn't really occur. obviously my main effort will be packaging your releases which you sync anyway. > While we don't have resources to setup automated > tests on other OSes, if you were able to help prepare a VHD for Hyper-V, I > could try to get it into our systems (assuming I don't get pushback from > legal and so on :(). If you are interested, feel free to contact me > directly and we'll go from there. > I will be able to create ebuilds (the build scripts we use) that target your git repositories. Currently I have those "live" packages reinstalling (and doing an update) weekly on my system. In the future it might be nice to have more but it will do for now. I won't be able to get ironruby into the tree at least until the next release of mono as it will not build with 2.6.4 (a mono bug I think you guys now about). but it does with mono trunk. Alistair. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Mon Jul 12 06:47:43 2010 From: lists at ruby-forum.com (Aaron Clauson) Date: Mon, 12 Jul 2010 12:47:43 +0200 Subject: [Ironruby-core] Library path in order to use gems In-Reply-To: References: Message-ID: Perfect, thanks! -- Posted via http://www.ruby-forum.com/. From ali_bush at gentoo.org Mon Jul 12 19:58:16 2010 From: ali_bush at gentoo.org (Alistair Bush) Date: Tue, 13 Jul 2010 11:58:16 +1200 Subject: [Ironruby-core] Ironruby and Gentoo Linux In-Reply-To: <4c3a2c96.02b28f0a.2f03.ffffbb7a@mx.google.com> References: <201007080011.12178.ali_bush@gentoo.org> <201007080809.29354.ali_bush@gentoo.org> <4c3a2c96.02b28f0a.2f03.ffffbb7a@mx.google.com> Message-ID: <201007131158.17284.ali_bush@gentoo.org> > Ivan Porto Carrero (@casualjim) had a ci build for linux running at one > time. You could check with him. I believe he was running off of mono trunk > (2.7) at the time. > Yes, I have seen his git repo and it looks a little out of date. I don't think ive got much of a problem building ironruby. As I can already do it. The only things ive got to do is make the assemblies strong named so that they can be installed into the gac and to split the Microsoft.Dynamic and Scripting dlls into 1 or 2 separate packages. I'll also want to submit any changes to do this back to ironruby. From what ive seen the Rakefiles doesn't support specifying keyfiles so I'll have to add that to their functionality. Alistair. From Tomas.Matousek at microsoft.com Mon Jul 12 17:21:59 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 12 Jul 2010 21:21:59 +0000 Subject: [Ironruby-core] Code Review: WP7CompilationThreshold Message-ID: tfpt review "/shelveset:WP7CompilationThreshold;REDMOND\tomat" Comment : Make sure we don't compile code on CF. Tomas From jdeville at microsoft.com Mon Jul 12 19:58:24 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 12 Jul 2010 23:58:24 +0000 Subject: [Ironruby-core] Ironruby and Gentoo Linux In-Reply-To: <201007131158.17284.ali_bush@gentoo.org> References: <201007080011.12178.ali_bush@gentoo.org> <201007080809.29354.ali_bush@gentoo.org> <4c3a2c96.02b28f0a.2f03.ffffbb7a@mx.google.com>, <201007131158.17284.ali_bush@gentoo.org> Message-ID: <571651983633624F9BA6BDE490351AEE044D41@TK5EX14MBXC201.redmond.corp.microsoft.com> The rakefiles are gone, but we could figure out some way to specify a keyfile -----Original Message----- From: Alistair Bush Sent: Monday, July 12, 2010 4:59 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ironruby and Gentoo Linux > Ivan Porto Carrero (@casualjim) had a ci build for linux running at one > time. You could check with him. I believe he was running off of mono trunk > (2.7) at the time. > Yes, I have seen his git repo and it looks a little out of date. I don't think ive got much of a problem building ironruby. As I can already do it. The only things ive got to do is make the assemblies strong named so that they can be installed into the gac and to split the Microsoft.Dynamic and Scripting dlls into 1 or 2 separate packages. I'll also want to submit any changes to do this back to ironruby. From what ive seen the Rakefiles doesn't support specifying keyfiles so I'll have to add that to their functionality. Alistair. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Mon Jul 12 21:02:02 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 13 Jul 2010 01:02:02 +0000 Subject: [Ironruby-core] Ironruby and Gentoo Linux In-Reply-To: <571651983633624F9BA6BDE490351AEE044D41@TK5EX14MBXC201.redmond.corp.microsoft.com> References: <201007080011.12178.ali_bush@gentoo.org> <201007080809.29354.ali_bush@gentoo.org> <4c3a2c96.02b28f0a.2f03.ffffbb7a@mx.google.com>, <201007131158.17284.ali_bush@gentoo.org> <571651983633624F9BA6BDE490351AEE044D41@TK5EX14MBXC201.redmond.corp.microsoft.com> Message-ID: Our project build looks into dlr/Internal/MSSharedLibKey.snk for the key. If you can't do that for some reason let us know. We can change the projects to accept an msbuild variable. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Monday, July 12, 2010 4:58 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ironruby and Gentoo Linux The rakefiles are gone, but we could figure out some way to specify a keyfile -----Original Message----- From: Alistair Bush Sent: Monday, July 12, 2010 4:59 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ironruby and Gentoo Linux > Ivan Porto Carrero (@casualjim) had a ci build for linux running at > one time. You could check with him. I believe he was running off of > mono trunk > (2.7) at the time. > Yes, I have seen his git repo and it looks a little out of date. I don't think ive got much of a problem building ironruby. As I can already do it. The only things ive got to do is make the assemblies strong named so that they can be installed into the gac and to split the Microsoft.Dynamic and Scripting dlls into 1 or 2 separate packages. I'll also want to submit any changes to do this back to ironruby. From what ive seen the Rakefiles doesn't support specifying keyfiles so I'll have to add that to their functionality. Alistair. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ryan.riley at panesofglass.org Tue Jul 13 00:33:09 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 12 Jul 2010 21:33:09 -0700 Subject: [Ironruby-core] IL Caching Strategy Message-ID: I remember reading a thread on the IL caching strategy, in particular that a performance optimization was made by not being too aggressive. Unfortunately, I can't find the thread. What's the strategy now? How many times will a piece of Ruby code be interpreted before it is gen'd to IL and cached? Is that configurable? If so, how? I'm not asking for anything in particular, just curiosity in general. Thanks! Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Twitter: @panesofglass Blog: http://wizardsofsmart.net/ Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Wed Jul 14 03:08:41 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Wed, 14 Jul 2010 00:08:41 -0700 Subject: [Ironruby-core] .NET 4.0 installer missing silverlight tools Message-ID: Just moved to .NET 4.0 and noticed the sl and chiron tools were not included. I pulled them from the .NET 2.0 .zip. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Twitter: @panesofglass Blog: http://wizardsofsmart.net/ Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From azamsharp at gmail.com Thu Jul 15 11:33:51 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Thu, 15 Jul 2010 10:33:51 -0500 Subject: [Ironruby-core] What gems are available for Acceptance Testing Using IronRuby Message-ID: 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 MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Thu Jul 15 12:08:14 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Thu, 15 Jul 2010 18:08:14 +0200 Subject: [Ironruby-core] What gems are available for Acceptance Testing Using IronRuby In-Reply-To: References: Message-ID: There is the bewildr gem for testing WPF apps: http://github.com/natritmeyer/bewildr Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Thu, Jul 15, 2010 at 5:33 PM, Mohammad Azam wrote: > 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 > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.foy at gmail.com Thu Jul 15 12:09:02 2010 From: cory.foy at gmail.com (Cory Foy) Date: Thu, 15 Jul 2010 12:09:02 -0400 Subject: [Ironruby-core] What gems are available for Acceptance Testing Using IronRuby In-Reply-To: References: Message-ID: <4C3F329E.7040602@gmail.com> Hi Mohammad, Mohammad Azam wrote: > 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. In addition to WatiR there is WatiN (.NET) and WatiJ (Java). You might have better success with WatiN. There's also Selenium. Though a bit old, here's an article on setting up Selenium with Cucumber: http://wiki.github.com/aslakhellesoy/cucumber/setting-up-selenium > Has anyone successfully integrated any of the gems with IronRuby? I've not tried, but others may have. You may also look at FitNesse since it has both .NET and Ruby extensions, and I wonder if that would work with IronRuby. -- Cory Foy http://www.coryfoy.com http://twitter.com/cory_foy From Tomas.Matousek at microsoft.com Thu Jul 15 19:50:00 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 15 Jul 2010 23:50:00 +0000 Subject: [Ironruby-core] Code Review: RubyLibs Message-ID: tfpt review "/shelveset:RubyLibs;REDMOND\tomat" Comment : Multitargeting for assemblies loaded by scripts in Libs. codeplexcomment Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: RubyLibs.diff Type: application/octet-stream Size: 8509 bytes Desc: RubyLibs.diff URL: From lists at ruby-forum.com Thu Jul 15 20:10:17 2010 From: lists at ruby-forum.com (Eduardo Blumenfeld) Date: Fri, 16 Jul 2010 02:10:17 +0200 Subject: [Ironruby-core] adding "each" support for a range brought from excel Message-ID: Hi, I'm trying to do the following: ---------------- load_assembly "Microsoft.Office.Interop.Excel" include Microsoft::Office::Interop app = Excel::ApplicationClass.new worksheet = app.workbooks.open("samename.xlsx".to_clr_string).worksheets[1] range = worksheet.range("A1:Z1".to_clr_string) # at this point I can: puts range[1].value # works but I can't do range.each {|r| ...} is there any way of defining, extending the class to accept each (and size for the matter) as methods? Thank you very much Eduardo Blumenfeld -- Posted via http://www.ruby-forum.com/. From will at hotgazpacho.org Fri Jul 16 11:04:16 2010 From: will at hotgazpacho.org (Will Green) Date: Fri, 16 Jul 2010 11:04:16 -0400 Subject: [Ironruby-core] adding "each" support for a range brought from excel In-Reply-To: References: Message-ID: You can re-open the class that defines a Worksheet Range and include Ruby's Enumerable as a mixin -- Will Green http://hotgazpacho.org/ On Thu, Jul 15, 2010 at 8:10 PM, Eduardo Blumenfeld wrote: > Hi, > > I'm trying to do the following: > > ---------------- > load_assembly "Microsoft.Office.Interop.Excel" > include Microsoft::Office::Interop > > app = Excel::ApplicationClass.new > worksheet = > app.workbooks.open("samename.xlsx".to_clr_string).worksheets[1] > > range = worksheet.range("A1:Z1".to_clr_string) > # at this point I can: > puts range[1].value # works > > but I can't do > range.each {|r| ...} > > is there any way of defining, extending the class to accept each (and > size for the matter) as methods? > > Thank you very much > > Eduardo Blumenfeld > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Jul 16 17:32:45 2010 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 16 Jul 2010 21:32:45 +0000 Subject: [Ironruby-core] adding "each" support for a range brought from excel In-Reply-To: References: , Message-ID: <571651983633624F9BA6BDE490351AEE0594B6@TK5EX14MBXC201.redmond.corp.microsoft.com> This also seems like something that should 'just work'... Tomas, any idea why it doesn't ________________________________ From: Will Green Sent: Friday, July 16, 2010 8:27 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] adding "each" support for a range brought from excel You can re-open the class that defines a Worksheet Range and include Ruby's Enumerable as a mixin -- Will Green http://hotgazpacho.org/ On Thu, Jul 15, 2010 at 8:10 PM, Eduardo Blumenfeld > wrote: Hi, I'm trying to do the following: ---------------- load_assembly "Microsoft.Office.Interop.Excel" include Microsoft::Office::Interop app = Excel::ApplicationClass.new worksheet = app.workbooks.open("samename.xlsx".to_clr_string).worksheets[1] range = worksheet.range("A1:Z1".to_clr_string) # at this point I can: puts range[1].value # works but I can't do range.each {|r| ...} is there any way of defining, extending the class to accept each (and size for the matter) as methods? Thank you very much Eduardo Blumenfeld -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Jul 16 20:28:26 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 17 Jul 2010 00:28:26 +0000 Subject: [Ironruby-core] adding "each" support for a range brought from excel In-Reply-To: <571651983633624F9BA6BDE490351AEE0594B6@TK5EX14MBXC201.redmond.corp.microsoft.com> References: , <571651983633624F9BA6BDE490351AEE0594B6@TK5EX14MBXC201.redmond.corp.microsoft.com> Message-ID: We don't support COM enumerators yet. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Friday, July 16, 2010 2:33 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] adding "each" support for a range brought from excel This also seems like something that should 'just work'... Tomas, any idea why it doesn't ________________________________ From: Will Green Sent: Friday, July 16, 2010 8:27 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] adding "each" support for a range brought from excel You can re-open the class that defines a Worksheet Range and include Ruby's Enumerable as a mixin -- Will Green http://hotgazpacho.org/ On Thu, Jul 15, 2010 at 8:10 PM, Eduardo Blumenfeld > wrote: Hi, I'm trying to do the following: ---------------- load_assembly "Microsoft.Office.Interop.Excel" include Microsoft::Office::Interop app = Excel::ApplicationClass.new worksheet = app.workbooks.open("samename.xlsx".to_clr_string).worksheets[1] range = worksheet.range("A1:Z1".to_clr_string) # at this point I can: puts range[1].value # works but I can't do range.each {|r| ...} is there any way of defining, extending the class to accept each (and size for the matter) as methods? Thank you very much Eduardo Blumenfeld -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Jul 16 21:08:11 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 17 Jul 2010 01:08:11 +0000 Subject: [Ironruby-core] Code Review: Ruby19Update Message-ID: tfpt review "/shelveset:Ruby19Update;REDMOND\tomat" Comment : Updates Ruby 1.9 to "Ruby 1.9.1-p378 RubyInstaller". Tomas From jimmy at schementi.com Sat Jul 17 04:01:28 2010 From: jimmy at schementi.com (Jimmy Schementi) Date: Sat, 17 Jul 2010 01:01:28 -0700 Subject: [Ironruby-core] [ANN] IronRuby 1.1 Released! Message-ID: * The IronRuby team is pleased to announce the release of IronRuby 1.1! Download IronRuby 1.1 now: http://ironruby.net/download Direct download links: http://ironruby.codeplex.com/releases/view/43540 Online release notes: http://ironruby.codeplex.com/releases/view/43540#ReleaseNotes IronRuby 1.1* is the first release after IronRuby 1.0, the first stable version of the Ruby 1.8.6 compiler for the .NET framework. IronRuby 1.1 is *NOT* fully backwards compatible with IronRuby 1.0; most notably that IronRuby 1.1 no longer supports .NET 2.0 SP1. .NET 3.5 is the minimum requirement for IronRuby 1.1, though using .NET 4.0 is strongly advised. Also, though this release is primarily bug-fixes for 1.0, consider any new features "Alpha" quality. This release adds support for .NET extension methods in IronRuby. This works by calling the *using_clr_extensions* method, which activates all extension methods defined on classes defined in a given namespace, regardless of the assembly they are defined in; assemblies loaded in the future that define extension methods in the activated namespace will automatically appear on the correct types. Here?s a simple example of using LINQ extension methods: load_assembly "System.Core" using_clr_extensions System::Linq # ... products. where(lambda { |p| p.units_in_stock == 0 }). each { |x| puts x.product_name } For more information see the LINQ 101 sampes ported to IronRuby IronRuby 1.1 is now licensed under the Apache License (Version 2), rather than the Microsoft Public License. This decision is based upon continual feedback and questions from the community, as well as for consistency between IronPython and the Dynamic Language Runtime , which are now also licensed under the Apache License. Other fixes in IronRuby 1.1: - 1754 CLR method enumeration returns invisible members - 1462 eval'ing a heredoc and defining a method causes an ArgumentError - 4363 Dir.glob should support more than one argument - 4003 "".rindex("somestring") raises RangeError - 4204 require and $" issue. MRI difference - 4448 IO.readline does not take account of the optional separator - 4446 enumerator#each_cons - 4089 "Start and End must be well ordered" using Heredoc in console. - 4128 Can't send SIGINT to autospec - 4031 Rubygems are very slow after including Windows forms - 3392 overriding indexer - 3279 Python-Ruby interop issues - 2609 Splatting COM out params - 2243 C# constructor with internal visibility inaccessible when using -X:PrivateBinding - 772 System::TypeLoadException when including C**/CLI interface with modopts For more detailed list of changes and bugfixes please see the CHANGELOG.txt in the release. As always, if you find any bugs or have a feature request, please open an issue on CodePlex . Sincerely, *The IronRuby Core Team* Jim Deville , Tomas Matousek, and Jimmy Schementi -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Sat Jul 17 08:27:11 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Sat, 17 Jul 2010 14:27:11 +0200 Subject: [Ironruby-core] Problem with latest github commits Message-ID: Hi guys, I've just pulled the latest bits from the github repository. Now when I open the solution I get an error that a project cannot be loaded - Microsoft.Scripting.Metadata. It turns out that this project does not exist in the repository at all... It is not possible to build the project because of that. Shay. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ironruby at monnet-usa.com Sat Jul 17 08:32:04 2010 From: ironruby at monnet-usa.com (Philippe Monnet) Date: Sat, 17 Jul 2010 06:32:04 -0600 Subject: [Ironruby-core] [ANN] IronRuby 1.1 Released! In-Reply-To: References: Message-ID: <4C41A2C4.8040601@monnet-usa.com> An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Jul 17 12:44:58 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sat, 17 Jul 2010 16:44:58 +0000 Subject: [Ironruby-core] Problem with latest github commits In-Reply-To: References: Message-ID: <571651983633624F9BA6BDE490351AEE05FFFC@TK5EX14MBXC201.redmond.corp.microsoft.com> My bad, Metadata was added recently, and as we held off on pushes to make sure that the license change was reflected across the sources, I forgot to update the TFS workspace. I will fix that right away. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Saturday, July 17, 2010 5:27 AM To: ironruby-core Subject: [Ironruby-core] Problem with latest github commits Hi guys, I've just pulled the latest bits from the github repository. Now when I open the solution I get an error that a project cannot be loaded - Microsoft.Scripting.Metadata. It turns out that this project does not exist in the repository at all... It is not possible to build the project because of that. Shay. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Sat Jul 17 13:19:24 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Sat, 17 Jul 2010 19:19:24 +0200 Subject: [Ironruby-core] Problem with latest github commits In-Reply-To: <571651983633624F9BA6BDE490351AEE05FFFC@TK5EX14MBXC201.redmond.corp.microsoft.com> References: <571651983633624F9BA6BDE490351AEE05FFFC@TK5EX14MBXC201.redmond.corp.microsoft.com> Message-ID: Thanks for the fast reply! On Sat, Jul 17, 2010 at 6:44 PM, Jim Deville wrote: > My bad, Metadata was added recently, and as we held off on pushes to make > sure that the license change was reflected across the sources, I forgot to > update the TFS workspace. I will fix that right away. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Shay Friedman > *Sent:* Saturday, July 17, 2010 5:27 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] Problem with latest github commits > > > > Hi guys, > > > > I've just pulled the latest bits from the github repository. Now when I > open the solution I get an error that a project cannot be loaded - > Microsoft.Scripting.Metadata. > > It turns out that this project does not exist in the repository at all... > > > > It is not possible to build the project because of that. > > > > Shay. > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimmy at schementi.com Sun Jul 18 16:17:23 2010 From: jimmy at schementi.com (Jimmy Schementi) Date: Sun, 18 Jul 2010 13:17:23 -0700 Subject: [Ironruby-core] Send your IronRuby usage and quotes Message-ID: All, It's that time again, where I ask everyone to post what specifically you use IronRuby for, your opinions about IronRuby, or anything you want to say about the project. Just reply to this thread with what you want to say, but also feel free to reply directly to me if you don't want to tell the world about it (jimmy at schementi.com). I'd like to take whatever public info and put it on http://ironruby.net/About/Usage and http://ironruby.net/About/Quotes. Even if you have talked about your IronRuby usages and praise on the mailing list before, please send again! This makes sure we know about it and put it online. Thanks! ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Sun Jul 18 21:02:29 2010 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Sun, 18 Jul 2010 18:02:29 -0700 Subject: [Ironruby-core] Send your IronRuby usage and quotes In-Reply-To: References: Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02ECCC14@hsi-fs.HSIHealth.local> We're using IronRuby as an integration layer in our .NET applications. All of our client/server apps fire fine grained business events whenever anything interesting happens. We set up a convention based file structure on our app servers that can allow us to handle any of these events by dropping rb files in a directory with certain names that match the event we want to handle, and the context surrounding each event is given to that ruby code during execution. (We use http://github.com/PlasticLizard/Bracket to boil IronRuby down to a zip file for easy versioning and deployment without having to actually install IronRuby on our deployment targets). We used to have a formal .NET message contract for each type of event we wanted to send out of our systems (a la WCF or NServiceBus), but we've found it much more flexible to do the mapping in IronRuby and compose our outbound messages in dynamic code. So far we're using this scheme to write XML files to network shares for other apps to pick up or to publish messages to a RabbitMQ broker (via the Bunny gem, which works well with IronRuby). Having the combined power of .NET and Ruby and the flexibility of Ruby at the integration layer is very liberating. IronRuby was the gateway drug at our shop to Ruby itself, so now instead of using .NET/SQL Server for our web apps we use Rails/MongoDB and deploy on Linux boxes hosted at Rackspace, but because of IronRuby we are able to share a common set of messaging libraries at the edges of the systems, which reduces friction quite a bit. We can evolve our integrations with our .NET applications orders of magnitude faster using IronRuby than we used to achieve purely using managed code, which, of course, requires a full build/package/deploy cycle for any kind of change, and change at the integration layer especially in an event-driven environment is usually fast and furious. My hope for IronRuby is that it will someday run native gems and be truly cross platform. Every time I try to use IronRuby as a first class environment, meaning beyond auxiliary roles such as integration or automation scripts, I hit a brick wall pretty quickly - things like EventMachine, cloud storage gems, image processing, etc. somehow always pop up as requirements, and eliminate IronRuby as a viable runtime, which is too bad, because otherwise I would prefer it to MRI or JRuby given our extensive .NET investments. All in all though we are tremendously happy with the technology. For me, it is probably the most exciting addition to the .NET landscape that I can remember, with potential that far exceeds things like ASP.NET MVC or Entity Framework or whatever other edgy things MS is putting out. Thanks for all the hard work! Nathan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Sunday, July 18, 2010 1:17 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Send your IronRuby usage and quotes All, It's that time again, where I ask everyone to post what specifically you use IronRuby for, your opinions about IronRuby, or anything you want to say about the project. Just reply to this thread with what you want to say, but also feel free to reply directly to me if you don't want to tell the world about it (jimmy at schementi.com). I'd like to take whatever public info and put it on http://ironruby.net/About/Usage and http://ironruby.net/About/Quotes. Even if you have talked about your IronRuby usages and praise on the mailing list before, please send again! This makes sure we know about it and put it online. Thanks! ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jul 19 10:42:29 2010 From: lists at ruby-forum.com (Eduardo Blumenfeld) Date: Mon, 19 Jul 2010 16:42:29 +0200 Subject: [Ironruby-core] Send your IronRuby usage and quotes In-Reply-To: References: Message-ID: Hi, I use Iron ruby as the glue between sqlserver, dynamic processing for complex order scheduling, with excel connections for review/updating of scheduling. The tools that I am missing so far (and I guess that it is because IronRuby is a new platform within the .net universe) are: a) a simple GUI platform (or a nice port of either Shoes / FXRuby / wxRuby for .net) - WPF/Silverlight targeting would be great!!! b) An IronRuby IDE (VS10 support maybe?) What I find great about IronRuby is all the technologies you can target from IronRuby within the same environment: SqlServer (using ActiveRecord gem as an example) Excel (through: load_assembly "Microsoft.Office.Interop.Excel") and all the other ones: xml, yaml, json, http, ftp, etc. I'm not saying that we cannot access all the technologies using plain .net. However, in the .net world, you really have to master several "visual" environments just to accomplish a simple CRUD: EntityFramework / Linq SQLServer either VB.NET or C# Blend (or VS xaml) if you want to work with "visual" design of the screens, having to figure out how to "Bind" controls to tables, Excel VBA, in case of some automation in Excel directly, etc. etc. And all the source generated for each of the components is just very long and difficult to grasp if you need to maintain the code in a later time. With IronRuby (and RUBY), due to its Dynamic nature and the elegance of the language, the DRY concept, the testing capabilities and the immediate execution of ir, this gives back the "fun" part of programming to developers. It also contributes to improving development productivity big time. It is NOT the same to maintain a 600 line piece of code, scattered across different environments and a 60 line piece of code with the same functionality in only one environment. Please continue with this great work, you are really heading in the right direction!!! . Jimmy Schementi wrote: > All, > > It's that time again, where I ask everyone to post what specifically you > use > IronRuby for, your opinions about IronRuby, or anything you want to say > about the project. Just reply to this thread with what you want to say, > but > also feel free to reply directly to me if you don't want to tell the > world > about it (jimmy at schementi.com). I'd like to take whatever public info > and > put it on http://ironruby.net/About/Usage and > http://ironruby.net/About/Quotes. > > Even if you have talked about your IronRuby usages and praise on the > mailing > list before, please send again! This makes sure we know about it and put > it > online. > > Thanks! > ~Jimmy -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Mon Jul 19 14:42:56 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 19 Jul 2010 18:42:56 +0000 Subject: [Ironruby-core] Code Review: MonoFixes Message-ID: tfpt review "/shelveset:MonoFixes;REDMOND\tomat" Comment : Fixes infrastructure so that irtests work on Mono (2.6.7 preview). codeplexcomment Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: MonoFixes.diff Type: application/octet-stream Size: 6100 bytes Desc: MonoFixes.diff URL: From Tomas.Matousek at microsoft.com Mon Jul 19 16:35:28 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 19 Jul 2010 20:35:28 +0000 Subject: [Ironruby-core] Code Review: 19compat Message-ID: tfpt review "/shelveset:19compat;REDMOND\tomat" Comment : Adds LibraryPath19 option. This option allows to set paths to 1.9 libs and is used in -1.9 mode. Implements Kernel#trusted?, Kernel#trust, Kernel#untrust. The flag is always settable and not checked anywhere as we don't support Ruby's security model. Fixes Array#fill overload ambiguity. Fixes Array#== and Hash#== to handle recursive structures properly. Tomas From lists at ruby-forum.com Mon Jul 19 21:58:49 2010 From: lists at ruby-forum.com (Eduardo Blumenfeld) Date: Tue, 20 Jul 2010 03:58:49 +0200 Subject: [Ironruby-core] WARNING: YAML.add_builtin_type is not implemented Message-ID: <4180032f5e77bdc2f1f51d5fdc89b1fe@ruby-forum.com> Hi all: I have the following gems installed -------------------------- actionmailer (2.3.8) actionpack (2.3.8) activerecord (2.3.8) activerecord-sqlserver-adapter (2.3.8) activeresource (2.3.8) activesupport (2.3.8) dbi (0.4.3) deprecated (3.0.0) rack (1.1.0) rails (2.3.8) rake (0.8.7) rubygems-update (1.3.7) shoesgem (0.1469.0) -------------------------- whenever I run a program with: -------------------------- require 'rubygems' require 'active_record' require 'active_support' require 'yaml' ... I receive a warning: ---------------------------------- WARNING: YAML.add_builtin_type is not implemented ---------------------------------- any clues? Thank you in advance... -- Posted via http://www.ruby-forum.com/. From shay.friedman at gmail.com Tue Jul 20 12:11:03 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Tue, 20 Jul 2010 18:11:03 +0200 Subject: [Ironruby-core] Preview of ironruby-rack gem In-Reply-To: References: <4c33f10d.2765730a.0fc6.72b7@mx.google.com> Message-ID: Hi, I'm checking out the new IronRuby.Rack utils with a small web application (not the sample one) I have here. The first problems I had were related to version problems since the project had been created using version 1.0.0.0 (and I'm using 1.1). Small fixes for the references in the project made this problem go away. Another problem was that the virtual directory on the IIS server was created using the default application pool, which uses .NET 2. Since I'm using the .NET 4 version I had to change the application pool. Last problem, which I couldn't figure out yet is that now I get the next error: unknown: No coercion operator is defined between types 'System.String' and 'IronRuby.Builtins.MutableString'. (TypeError) I took a look at the log and it seems like the problem is somewhere in this method: private object Rackup() { Utils.Log("=> Loading Rack application"); var fullPath = Path.Combine(_appRoot, "config.ru"); if (File.Exists(fullPath)) { return IronRubyEngine.ExecuteMethod( IronRubyEngine.Execute("Rack::Builder"), "parse_file", MutableString.CreateAscii(fullPath))[0]; } return null; } Any ideas? Thanks! Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Wed, Jul 7, 2010 at 11:20 PM, Kevin Radcliffe wrote: > Jimmy, > > As mentioned before, it appears (at least on my own Windows 7 x64 system) > that add_acl (in lib\rack\deploy\iis.rb) was not giving FullControl rights > to IIS_IUSRS as expected. > This results in the "cannot read configuration file" that Ryan reported > above. > > I was able to get the system to give appropriate rights to IIS_IUSRS but in > a very strange way: > > I had to give it 2 FileSystemAccessRules, one simpler one and the full one > (that you already had in iis.rb) > If I give it one or the other but not BOTH, it will add IIS_IUSRS as a user > of the app directory, but will NOT give it any permissions at all. > > Here's the gist with my minor edits (in case it is helpful). > (again, this is from lib\rack\deploy\iis.rb): > > http://gist.github.com/467279 > > Unfortunately, I'm not really sure WHY this is the case. > It seems strange to be required to essentially add 2 rules that appear to > do the same thing. > > Best Regards, > Kevin Radcliffe > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jb at nurv.fr Wed Jul 21 05:02:21 2010 From: jb at nurv.fr (Jb Evain) Date: Wed, 21 Jul 2010 11:02:21 +0200 Subject: [Ironruby-core] [patch] building Microsoft.Scripting.Metadata on Mono Message-ID: Hey, Microsoft.Scripting.Metadata is being built with warnaserror, but it contains a couple of issues that are not detected by csc, but that are by dmcs, crashing the build. Here's a fix: <<<<<< diff --git a/Runtime/Microsoft.Scripting.Metadata/MemoryMapping.V2.cs b/Runtime/Microsoft.Scripting.Metadata/MemoryMapping.V2.cs index ddb9387..7ed9bd5 100644 --- a/Runtime/Microsoft.Scripting.Metadata/MemoryMapping.V2.cs +++ b/Runtime/Microsoft.Scripting.Metadata/MemoryMapping.V2.cs @@ -108,7 +108,6 @@ namespace Microsoft.Scripting.Metadata { int size; int fileDescriptor = 0; MemoryMapping mapping = null; - IntPtr ptr = IntPtr.Zero; // make sure we don't get interrupted before we save the handle and the pointer: RuntimeHelpers.PrepareConstrainedRegions(); diff --git a/Runtime/Microsoft.Scripting.Metadata/MetadataImport.cs b/Runtime/Microsoft.Scripting.Metadata/MetadataImport.cs index 22655c5..17c375a 100644 --- a/Runtime/Microsoft.Scripting.Metadata/MetadataImport.cs +++ b/Runtime/Microsoft.Scripting.Metadata/MetadataImport.cs @@ -1100,7 +1100,6 @@ namespace Microsoft.Scripting.Metadata { #region Dump #if DEBUG public unsafe void Dump(TextWriter output) { - IntPtr imageStart = (IntPtr)_image.Pointer; output.WriteLine("Image:"); output.WriteLine(" {0}", _image.Length); output.WriteLine(); <<<<<< Those variables aren't used, triggering warnings, that are turned into errors. And geez, looking at the code, you guys should have used cecil/light ;) -- Jb Evain From mark at markrendle.net Wed Jul 21 08:45:20 2010 From: mark at markrendle.net (Mark Rendle) Date: Wed, 21 Jul 2010 13:45:20 +0100 Subject: [Ironruby-core] Send your IronRuby usage and quotes In-Reply-To: References: Message-ID: Hi Jimmy, I've just released the first version of IronMock ( http://bit.ly/ironmock ) which uses 9 lines of embedded IronRuby to apply interfaces to objects at runtime. It can be used for duck-typing any object, but there's also a DynamicObject-based mocking class. If you want a quote: "I achieved in a couple of lunchbreaks and a few lines of Ruby and C# something which used to take reams of IL Emit code. IronRuby rocks." Cheers, Mark On Sun, Jul 18, 2010 at 9:17 PM, Jimmy Schementi wrote: > All, > > It's that time again, where I ask everyone to post what specifically you > use IronRuby for, your opinions about IronRuby, or anything you want to say > about the project. Just reply to this thread with what you want to say, but > also feel free to reply directly to me if you don't want to tell the world > about it (jimmy at schementi.com). I'd like to take whatever public info and > put it on http://ironruby.net/About/Usage and > http://ironruby.net/About/Quotes. > > Even if you have talked about your IronRuby usages and praise on the > mailing list before, please send again! This makes sure we know about it and > put it online. > > Thanks! > ~Jimmy > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Jul 21 12:08:58 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 21 Jul 2010 16:08:58 +0000 Subject: [Ironruby-core] [patch] building Microsoft.Scripting.Metadata on Mono In-Reply-To: References: Message-ID: Thanks, I'll fix it. BTW: The code is based on CCI2 PE reader (http://ccimetadata.codeplex.com). Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jb Evain Sent: Wednesday, July 21, 2010 2:02 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] [patch] building Microsoft.Scripting.Metadata on Mono Hey, Microsoft.Scripting.Metadata is being built with warnaserror, but it contains a couple of issues that are not detected by csc, but that are by dmcs, crashing the build. Here's a fix: <<<<<< diff --git a/Runtime/Microsoft.Scripting.Metadata/MemoryMapping.V2.cs b/Runtime/Microsoft.Scripting.Metadata/MemoryMapping.V2.cs index ddb9387..7ed9bd5 100644 --- a/Runtime/Microsoft.Scripting.Metadata/MemoryMapping.V2.cs +++ b/Runtime/Microsoft.Scripting.Metadata/MemoryMapping.V2.cs @@ -108,7 +108,6 @@ namespace Microsoft.Scripting.Metadata { int size; int fileDescriptor = 0; MemoryMapping mapping = null; - IntPtr ptr = IntPtr.Zero; // make sure we don't get interrupted before we save the handle and the pointer: RuntimeHelpers.PrepareConstrainedRegions(); diff --git a/Runtime/Microsoft.Scripting.Metadata/MetadataImport.cs b/Runtime/Microsoft.Scripting.Metadata/MetadataImport.cs index 22655c5..17c375a 100644 --- a/Runtime/Microsoft.Scripting.Metadata/MetadataImport.cs +++ b/Runtime/Microsoft.Scripting.Metadata/MetadataImport.cs @@ -1100,7 +1100,6 @@ namespace Microsoft.Scripting.Metadata { #region Dump #if DEBUG public unsafe void Dump(TextWriter output) { - IntPtr imageStart = (IntPtr)_image.Pointer; output.WriteLine("Image:"); output.WriteLine(" {0}", _image.Length); output.WriteLine(); <<<<<< Those variables aren't used, triggering warnings, that are turned into errors. And geez, looking at the code, you guys should have used cecil/light ;) -- Jb Evain _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Wed Jul 21 12:15:11 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 21 Jul 2010 16:15:11 +0000 Subject: [Ironruby-core] WARNING: YAML.add_builtin_type is not implemented In-Reply-To: <4180032f5e77bdc2f1f51d5fdc89b1fe@ruby-forum.com> References: <4180032f5e77bdc2f1f51d5fdc89b1fe@ruby-forum.com> Message-ID: This just means that something is calling add_builtin_type for wich we don't have implementation yet. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eduardo Blumenfeld Sent: Monday, July 19, 2010 6:59 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] WARNING: YAML.add_builtin_type is not implemented Hi all: I have the following gems installed -------------------------- actionmailer (2.3.8) actionpack (2.3.8) activerecord (2.3.8) activerecord-sqlserver-adapter (2.3.8) activeresource (2.3.8) activesupport (2.3.8) dbi (0.4.3) deprecated (3.0.0) rack (1.1.0) rails (2.3.8) rake (0.8.7) rubygems-update (1.3.7) shoesgem (0.1469.0) -------------------------- whenever I run a program with: -------------------------- require 'rubygems' require 'active_record' require 'active_support' require 'yaml' ... I receive a warning: ---------------------------------- WARNING: YAML.add_builtin_type is not implemented ---------------------------------- any clues? Thank you in advance... -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From briangenisio at gmail.com Wed Jul 21 12:34:06 2010 From: briangenisio at gmail.com (Brian Genisio) Date: Wed, 21 Jul 2010 12:34:06 -0400 Subject: [Ironruby-core] Why does attr_accessor create a property, but method is just a method? Message-ID: This is a cross-post from Stack Overflow, but I haven't heard a peep there, so I figured I'd try here: I am playing around with the interop between C# and IronRuby. I have noticed that if I define a property in Ruby using `attr_accessor`, it is presented to C# as a property. If, on the other hand, I create the exact same code manually, it comes back as a method. For example, take this code: var engine = IronRuby.Ruby.CreateEngine(); string script = @" class Test attr_accessor :automatic def manual @manual end def manual=(val) @manual = val end def initialize @automatic = ""testing"" @manual = ""testing"" end end Test.new "; var testObject = engine.Execute(script); var automatic = testObject.automatic; var manual = testObject.manual; When you look at the C# `automatic` variable, the value is a string of "testing". If you look at the C# `manual` variable, it is type IronRuby.Builtins.RubyMethod. Ultimately, I want to create my own properties in Ruby that can be used in C#, but I can't seem to make them be visible as properties like `attr_accessor` does. I THINK, that there is some magic going on in the Module code of the Ruby source code (ModuleOps.cs:DefineAccessor). Is there any way to do this in Ruby code directly? Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Jul 21 21:04:11 2010 From: lists at ruby-forum.com (Eduardo Blumenfeld) Date: Thu, 22 Jul 2010 03:04:11 +0200 Subject: [Ironruby-core] WARNING: YAML.add_builtin_type is not implemented In-Reply-To: References: <4180032f5e77bdc2f1f51d5fdc89b1fe@ruby-forum.com> Message-ID: Tomas Matousek wrote: > This just means that something is calling add_builtin_type for wich we > don't have implementation yet. > > Tomas I know, fortunately it is just a warning, however, I'm just speaking of standard gems, That warning appears just after I execute the requires I'm mentioning. Thank you in advance, Eduardo -- Posted via http://www.ruby-forum.com/. From kevin at ouelong.com Thu Jul 22 08:28:37 2010 From: kevin at ouelong.com (Kevin Pratt) Date: Thu, 22 Jul 2010 15:28:37 +0300 Subject: [Ironruby-core] Accessing classes that are inherited from generics. Message-ID: Hello, I have a few classes in a namespace that follow this form. public class ExampleName : BaseClass { } Any class that follows this structure does not get pulled through when I require my DLL. Does anyone have any ideas? I'm also using the Castle ActiveRecord project and the classes that inherit from ActiveRecordBase<> also do not come through. Thank you. Kevin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jb at nurv.fr Thu Jul 22 08:48:12 2010 From: jb at nurv.fr (Jb Evain) Date: Thu, 22 Jul 2010 14:48:12 +0200 Subject: [Ironruby-core] [patch] building Microsoft.Scripting.Core on Mono Message-ID: Hey, In the same vein of the patch to build Microsoft.Scripting.Metadata on Mono, the attached patch shows unused variables, triggering a build failure as Microsoft.Scripting.Core is being built with warnaserror+. -- Jb Evain -------------- next part -------------- A non-text attachment was scrubbed... Name: msc.diff Type: text/x-patch Size: 7677 bytes Desc: not available URL: From briangenisio at gmail.com Thu Jul 22 08:49:20 2010 From: briangenisio at gmail.com (Brian Genisio) Date: Thu, 22 Jul 2010 08:49:20 -0400 Subject: [Ironruby-core] Why does attr_accessor create a property, but method is just a method? In-Reply-To: References: Message-ID: So, I haven't heard anything about this yet on Stack Overflow, or this list. Does anyone know if this is this a bug in IronRuby interop? Thanks, Brian On Wed, Jul 21, 2010 at 12:34 PM, Brian Genisio wrote: > This is a cross-post from Stack Overflow, but I haven't heard a peep there, > so I figured I'd try here: > > I am playing around with the interop between C# and IronRuby. I have > noticed that if I define a property in Ruby using `attr_accessor`, it is > presented to C# as a property. If, on the other hand, I create the exact > same code manually, it comes back as a method. > > For example, take this code: > > var engine = IronRuby.Ruby.CreateEngine(); > string script = @" > class Test > attr_accessor :automatic > > def manual > @manual > end > > def manual=(val) > @manual = val > end > > def initialize > @automatic = ""testing"" > @manual = ""testing"" > end > end > > Test.new > "; > var testObject = engine.Execute(script); > > var automatic = testObject.automatic; > var manual = testObject.manual; > > When you look at the C# `automatic` variable, the value is a string of > "testing". If you look at the C# `manual` variable, it is type > IronRuby.Builtins.RubyMethod. > > Ultimately, I want to create my own properties in Ruby that can be used in > C#, but I can't seem to make them be visible as properties like > `attr_accessor` does. > > I THINK, that there is some magic going on in the Module code of the Ruby > source code (ModuleOps.cs:DefineAccessor). Is there any way to do this in > Ruby code directly? > > Thanks, > Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Thu Jul 22 09:17:43 2010 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 22 Jul 2010 13:17:43 +0000 Subject: [Ironruby-core] Why does attr_accessor create a property, but method is just a method? In-Reply-To: References: Message-ID: <9DBDB52016D6F34AABBACF6C2876EA285C799FEA@TK5EX14MBXC137.redmond.corp.microsoft.com> I believe this works as designed. The problem is that Ruby doesn't otherwise distinguish syntactically between a property and a method with no parameters. Imagine that you're in tooling such as Visual Studio. By default, the values of properties are automatically displayed in the debugger and in tool tips. But if I happen to have a no-args method named format_cdrive, I probably don't want that code to be run just to inspect its value. Effectively, attr_accessor, attr_reader and attr_writer are used by IronRuby as signals that indicate this operation is free of potentially-nasty side effects. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Brian Genisio Sent: Thursday, July 22, 2010 5:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Why does attr_accessor create a property, but method is just a method? So, I haven't heard anything about this yet on Stack Overflow, or this list. Does anyone know if this is this a bug in IronRuby interop? Thanks, Brian On Wed, Jul 21, 2010 at 12:34 PM, Brian Genisio > wrote: This is a cross-post from Stack Overflow, but I haven't heard a peep there, so I figured I'd try here: I am playing around with the interop between C# and IronRuby. I have noticed that if I define a property in Ruby using `attr_accessor`, it is presented to C# as a property. If, on the other hand, I create the exact same code manually, it comes back as a method. For example, take this code: var engine = IronRuby.Ruby.CreateEngine(); string script = @" class Test attr_accessor :automatic def manual @manual end def manual=(val) @manual = val end def initialize @automatic = ""testing"" @manual = ""testing"" end end Test.new "; var testObject = engine.Execute(script); var automatic = testObject.automatic; var manual = testObject.manual; When you look at the C# `automatic` variable, the value is a string of "testing". If you look at the C# `manual` variable, it is type IronRuby.Builtins.RubyMethod. Ultimately, I want to create my own properties in Ruby that can be used in C#, but I can't seem to make them be visible as properties like `attr_accessor` does. I THINK, that there is some magic going on in the Module code of the Ruby source code (ModuleOps.cs:DefineAccessor). Is there any way to do this in Ruby code directly? Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonas at follesoe.no Thu Jul 22 09:13:40 2010 From: jonas at follesoe.no (=?ISO-8859-1?Q?Jonas_Folles=F8?=) Date: Thu, 22 Jul 2010 15:13:40 +0200 Subject: [Ironruby-core] IronRuby, Silverlight and executing code dynamically in the browser Message-ID: I'm toying around with the idea of a simple in-browser "coding environment" for IronRuby, think JSFiddle but for DLR languages. I'm fairly new to IronRuby, but have lots of Silverlight experience. I have gotten the basics up and running, but have ran into a couple issues. My initial idea was to use the virtual file system the IronPython Silverlight Host creates when it downloads files included using