From Jimmy.Schementi at microsoft.com Thu Apr 1 00:40:38 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 1 Apr 2010 04:40:38 +0000 Subject: [Ironruby-core] Using Ruby's standard libraries in Silverlight In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217315A7B@TK5EX14MBXC136.redmond.corp.microsoft.com> Wow, a lot of questions to answer here; let me know if I missed one ... > What is the recommendation for using Ruby's standard libraries in Silverlight applications? > Should the lib be copied to the project dir? should a reference be added to the manifest? some other technique? Depends on whether your using the Chiron to generate a XAP file, or your using dlr.js and embedding Ruby code in the HTML page with script-tags. Chiron to generate the XAP: Just copy the necessary Ruby stdlib files into your XAP file directory. If you just want to reference an entire directory, you can use the "-path" Chiron.exe option. Script-tags: See the IronPython docs on this: http://ironpython.net/browser/docs.html#zip-files. Basically you must have a script-tag like this: . Then you can reference the "lib" directory in your scripts, including adding it to the path: . You can also just list out each Ruby file used: # foo.rb require 'bar' I hope this shows that script-tags just download the script, and add it to the "virtual file-system" that the DLR-languages see. The "defer" attribute causes the script to not be run; it will be run when a script requires it. > I zipped the libs folder and added it to the page as . > When I try to require the assemblies, the files are not found. > > I tried to make the case simpler and zipped a simple rb file to a zip and included it in the page as well: > > I tried: > require "TestClass.rb" > require "TestClass" > require 'test.zip/TestClass.rb' > require 'test.zip/TestClass' > > None of these worked. > > By the way, I see that Chiron loads the zip files... > > What am I doing wrong? Change the mime-type to application/x-zip-compressed and try requiring "test/TestClass" ... that will work. We should also allow application/zip as the mime-type: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26676. Keep in mind that Silverlight can only read archived files created with a deflate ZIP algorithm; but using Chiron to create the zip file will ensure it works ... something like "Chiron.exe /d:lib /x:lib.zip". > for assemblies you need to add an appmanifest I think Actually, all the AppManifest.xaml does it load the assemblies for you; you can use "require" or "load_assembly" to accomplish the same thing, so I advise against touching the AppManifest.xaml, unless your XAML has dependencies on an assembly. Keep in mind there is no way to have an "assembly script-tag" ... you must put the assembly in a ZIP file. > if you put a app\myfile.rb in the zip file, you should be able to do require 'app/myfile' Close ... you have to use the file filename in the require call, or add the zip file name to the path (see example above). Today this only works when you use the zip file name without it's extension, but that's a bug IMO: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26677. > Which brings up another question - are we willing to "standardize" Gestalt by making it the best practice for using DLR languages in Silverlight? Well on its way; the http://ironpython.net/browser/ page only has documentation for the "Gestalt"-way, though the Chiron/XAP model will also be documented. Fun fact: while the first version of Gestalt (0.5) was made completely independently by the visitmix.com/labs team, the 1.0 release was completely rewritten and merged into Microsoft.Scripting.Silverlight.dll. In fact, the current source code on gestalt.codeplex.com is only the code from 0.5; the latest source code for Microsoft.Scripting.Silverlight is in IronRuby's GitHub and IronPython's CodePlex source repos. Keep in mind the previous Chiron/XAP file model isn't going away; Gestalt takes [too-must] advantage of how Silverlight expects apps to be structured, so there are some limitations to it. The glaring limitation is you can't run gestalt apps out-of-browser; HTML doesn't work there ... there might be a way around this by using Silverlight's ability to host HTML content IN a Silverlight control, but that hasn't been tested yet. So the Chiron/XAP model will continue to be supported, but I don't advise using it unless you need to run out-of-browser. You can also combine the two; the IronRuby tutorial uses the Chiron/XAP model for the app, but the Gestalt-way to enable tests running in the browser. ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at whiterabbitconsulting.eu Thu Apr 1 01:59:24 2010 From: ivan at whiterabbitconsulting.eu (Ivan Porto Carrero) Date: Thu, 1 Apr 2010 07:59:24 +0200 Subject: [Ironruby-core] IronRuby on Rails and IIS 6 or IIS 7 In-Reply-To: References: <6459203F8B1AF641995AE49D47FA51A7133C7422@TK5EX14MBXC134.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92173157F4@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: I can get it to work kind of.. (IronRuby.Rack) but it doesn't show images for me. everything else works great. Here's an example of a config.ru file. Although in rails I put the bin folder and web.config file in the public folder and change the app root setting in web.config. http://github.com/casualjim/rubyconfindia/tree/master/samples/sinatra/ --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero - Mob: +32.486.787.582 Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Thu, Apr 1, 2010 at 1:46 AM, Robert Rouse wrote: > It probably is a configuration issue for me. > > I could never get it to actually run anything through Rack. > > I'll try again at some point very soon and note what I've tried. I was > just a little frustrated last time, so I didn't write anything useful > down. > > On Wed, Mar 31, 2010 at 5:37 PM, Jimmy Schementi > wrote: > > Nick, > > > > IronRuby.Rack lets you run Rack-based applications on IIS, like Rails. > Read more here: > > > http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack#readme > > > > Basically get the IronRuby source code, build IronRuby.Rack.sln, and try > the IronRuby.Rails.Example app; it will run Rails in IIS. If it doesn't > work, it's probably just a configuration issue, so please let me know. The > next release of IronRuby will be accompanied by a build of > IronRuby.Rack.dll, if you'd rather wait until then. > > > > Robert, what problems have you been having? I'll want to capture common > issues in the docs, and also make sure you're unblocked. > > > > ~Jimmy > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Robert Rouse > > Sent: Wednesday, March 31, 2010 4:09 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] IronRuby on Rails and IIS 6 or IIS 7 > > > > I think the problem is that the information really isn't complete. The > IIS stuff isn't even on this page, it's in the IronRuby.Rack readme, which I > have yet to have success with. > > > > On Wed, Mar 31, 2010 at 4:06 PM, Shri Borde > wrote: > >> http://ironruby.net/Documentation/Real_Ruby_Applications/Rails should > have the info you need. > >> > >> Did this not show up in a web search? Could the web site be better > organized? Just wondering how we could make it easier for people to get to > the info on ironruby.net... > >> > >> -----Original Message----- > >> From: ironruby-core-bounces at rubyforge.org > >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nick Hird > >> Sent: Wednesday, March 31, 2010 2:33 PM > >> To: Ironruby-core at rubyforge.org > >> Subject: [Ironruby-core] IronRuby on Rails and IIS 6 or IIS 7 > >> > >> Is there a way to get IronRuby on Rails to work under IIS6 or IIS7? I > >> have seen some articles about Ruby on Rails, but not IronRuby. I guess > >> it wouldn't be too difficult since these are both MS apps. I just cant > >> find how to do it, sure the built in tester for rails is there for > >> development, but i would like a static always-on-solution for some > >> serious testing of my app as well as available to anyone who can hit > >> the web server. > >> 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 > >> > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Apr 2 13:48:51 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 2 Apr 2010 17:48:51 +0000 Subject: [Ironruby-core] Code Review: InterpretInterop Message-ID: <4B342496A3EFEB48839E10BB4BF5964C49293733@TK5EX14MBXC124.redmond.corp.microsoft.com> tfpt review "/shelveset:InterpretInterop;REDMOND\tomat" Comment : Makes Ruby interop binders interpreted. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: InterpretInterop.diff Type: application/octet-stream Size: 19572 bytes Desc: InterpretInterop.diff URL: From jdeville at microsoft.com Fri Apr 2 14:46:11 2010 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 2 Apr 2010 18:46:11 +0000 Subject: [Ironruby-core] Code Review: rubyreleasechanges Message-ID: <31BD916A7536A242870B0B4E3F9068D703DCB7E3@TK5EX14MBXC136.redmond.corp.microsoft.com> tfpt review "/shelveset:rubyreleasechanges;REDMOND\jdeville" Comment : * update reflector in servicing branch * make the Tutorial rakefile build the required assemblies, and also to depend on Rake's clean and clobber task. Clean does the same as before. Clobber also deletes compiled dlls * Updates the needed DLL's to the latest I could find. This also ensures PDB location * Fixes a typo in the tutorial * Updates to the installer ** Creation of a IRONRUBY_10_20 environment variable that will point to the installation location ** Addition of start menu shortcuts that point to the Create Issue page on codeplex and the Documentation page on http://ironruby.net ** Addition of a start menu shortcut to uninstall ironruby ** Creation of a reg key that points to the installation location, thus giving people options on that front ** Dropped installer version to 3.0 which should help xp users From zbrown at microsoft.com Fri Apr 2 16:45:50 2010 From: zbrown at microsoft.com (Zac Brown) Date: Fri, 2 Apr 2010 20:45:50 +0000 Subject: [Ironruby-core] helping with IronRuby Message-ID: <8AF1C0EB9192E245B471BDDC84B82A050AEE25F3@TK5EX14MBXC103.redmond.corp.microsoft.com> Hi all, I'm looking to get involved with some IronRuby development. Are there some simple janitorial tasks that I get can my feet with? Thanks, Zac Brown (zbrown), SDET Microsoft - Windows - REX Client (86/1601) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Fri Apr 2 17:00:56 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 2 Apr 2010 21:00:56 +0000 Subject: [Ironruby-core] helping with IronRuby In-Reply-To: <8AF1C0EB9192E245B471BDDC84B82A050AEE25F3@TK5EX14MBXC103.redmond.corp.microsoft.com> References: <8AF1C0EB9192E245B471BDDC84B82A050AEE25F3@TK5EX14MBXC103.redmond.corp.microsoft.com> Message-ID: <6459203F8B1AF641995AE49D47FA51A7133CCE47@TK5EX14MBXC134.redmond.corp.microsoft.com> Hi Zac, http://wiki.github.com/ironruby/ironruby/contributing has a general list of ideas for contributions. You could browse that for some ideas of which are you want to contribute in. By janitorial tasks, are you saying you are more interested in things like documentation and websites? If so, you will have to coordinate with Jimmy. If you want to help with coding tasks, the first step is to get a clean run of the "irtests" command (see bottom of http://wiki.github.com/ironruby/ironruby/modifying-the-sources). From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Friday, April 02, 2010 1:46 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] helping with IronRuby Hi all, I'm looking to get involved with some IronRuby development. Are there some simple janitorial tasks that I get can my feet with? Thanks, Zac Brown (zbrown), SDET Microsoft - Windows - REX Client (86/1601) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Fri Apr 2 19:37:52 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 2 Apr 2010 16:37:52 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <6459203F8B1AF641995AE49D47FA51A7133BEBAC@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC921731015F@TK5EX14MBXC136.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133BEBAC@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: Sorry I wasn't able to get this to you in time. I'm finally making some progress, but I won't have it done in time for release. Ryan On Mon, Mar 29, 2010 at 1:39 PM, Shri Borde wrote: > Ryan, fwiw, the window for getting this into the V1 release will be closing > down in the next few days. > > -----Original Message----- > Posted by Ryan Riley (Guest) on 04.03.2010 02:27 > Well, I'm still trying to get my environment set up and having little > luck. > Still getting used to Mac OS X and *nix development. Has anyone else > attempted the fix? Hopefully I'll have this sorted soon and can get on > it. > > Regards, > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > _______________________________________________ > 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 Shri.Borde at microsoft.com Sat Apr 3 02:04:18 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Sat, 3 Apr 2010 06:04:18 +0000 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC921731015F@TK5EX14MBXC136.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133BEBAC@TK5EX14MBXC134.redmond.corp.microsoft.com>, Message-ID: <6459203F8B1AF641995AE49D47FA51A7133D94E9@TK5EX14MBXC139.redmond.corp.microsoft.com> Thanks for the update. We can target getting this into the next bug-fix release (1.0.1). ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Ryan Riley [ryan.riley at panesofglass.org] Sent: Friday, April 02, 2010 4:37 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Sorry I wasn't able to get this to you in time. I'm finally making some progress, but I won't have it done in time for release. Ryan On Mon, Mar 29, 2010 at 1:39 PM, Shri Borde > wrote: Ryan, fwiw, the window for getting this into the V1 release will be closing down in the next few days. -----Original Message----- Posted by Ryan Riley (Guest) on 04.03.2010 02:27 Well, I'm still trying to get my environment set up and having little luck. Still getting used to Mac OS X and *nix development. Has anyone else attempted the fix? Hopefully I'll have this sorted soon and can get on it. Regards, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ _______________________________________________ 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 ryan.riley at panesofglass.org Sat Apr 3 02:37:01 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 2 Apr 2010 23:37:01 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <6459203F8B1AF641995AE49D47FA51A7133D94E9@TK5EX14MBXC139.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC921731015F@TK5EX14MBXC136.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133BEBAC@TK5EX14MBXC134.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133D94E9@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: Sounds good. I think I'm making good progress, though figuring out how to run tests is a challenge right now. Anyone run tests on linux? By the way, I finally got a good build by using Ivan's linux branch on Mono 2.7 (trunk) using rake compile and setting the environment variables noted in the wiki docs. xbuild threw a load of errors. I think I can sort out the testing issue by figuring out from Dev.bat what paths I need to get mspec to run. Right now it's not recognized and won't run. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Fri, Apr 2, 2010 at 11:04 PM, Shri Borde wrote: > Thanks for the update. We can target getting this into the next bug-fix > release (1.0.1). > > ------------------------------ > *From:* ironruby-core-bounces at rubyforge.org [ > ironruby-core-bounces at rubyforge.org] on behalf of Ryan Riley [ > ryan.riley at panesofglass.org] > *Sent:* Friday, April 02, 2010 4:37 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > Sorry I wasn't able to get this to you in time. I'm finally making some > progress, but I won't have it done in time for release. > > Ryan > > > On Mon, Mar 29, 2010 at 1:39 PM, Shri Borde wrote: > >> Ryan, fwiw, the window for getting this into the V1 release will be >> closing down in the next few days. >> >> -----Original Message----- >> Posted by Ryan Riley (Guest) on 04.03.2010 02:27 >> Well, I'm still trying to get my environment set up and having little >> luck. >> Still getting used to Mac OS X and *nix development. Has anyone else >> attempted the fix? Hopefully I'll have this sorted soon and can get on >> it. >> >> Regards, >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at whiterabbitconsulting.eu Sat Apr 3 02:42:52 2010 From: ivan at whiterabbitconsulting.eu (Ivan Porto Carrero) Date: Sat, 3 Apr 2010 08:42:52 +0200 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC921731015F@TK5EX14MBXC136.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133BEBAC@TK5EX14MBXC134.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133D94E9@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: for xbuild you have to turn off warnings as errors with a command-line switch. ...so I think you can do MONO_IOMAP=all xbuild ./Ruby.sln /clp:warnaserror- that last command line parameter could be a little bit different but that gives the idea. You would still need mono trunk because of a bug in the compiler on 2.6.3 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Sat, Apr 3, 2010 at 8:37 AM, Ryan Riley wrote: > Sounds good. I think I'm making good progress, though figuring out how to > run tests is a challenge right now. Anyone run tests on linux? > > By the way, I finally got a good build by using Ivan's linux branch on Mono > 2.7 (trunk) using rake compile and setting the environment variables noted > in the wiki docs. xbuild threw a load of errors. I think I can sort out the > testing issue by figuring out from Dev.bat what paths I need to get mspec to > run. Right now it's not recognized and won't run. > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Fri, Apr 2, 2010 at 11:04 PM, Shri Borde wrote: > >> Thanks for the update. We can target getting this into the next bug-fix >> release (1.0.1). >> >> ------------------------------ >> *From:* ironruby-core-bounces at rubyforge.org [ >> ironruby-core-bounces at rubyforge.org] on behalf of Ryan Riley [ >> ryan.riley at panesofglass.org] >> *Sent:* Friday, April 02, 2010 4:37 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> Sorry I wasn't able to get this to you in time. I'm finally making some >> progress, but I won't have it done in time for release. >> >> Ryan >> >> >> On Mon, Mar 29, 2010 at 1:39 PM, Shri Borde wrote: >> >>> Ryan, fwiw, the window for getting this into the V1 release will be >>> closing down in the next few days. >>> >>> -----Original Message----- >>> Posted by Ryan Riley (Guest) on 04.03.2010 02:27 >>> Well, I'm still trying to get my environment set up and having little >>> luck. >>> Still getting used to Mac OS X and *nix development. Has anyone else >>> attempted the fix? Hopefully I'll have this sorted soon and can get on >>> it. >>> >>> Regards, >>> >>> Ryan Riley >>> >>> Email: ryan.riley at panesofglass.org >>> LinkedIn: http://www.linkedin.com/in/ryanriley >>> Blog: http://wizardsofsmart.net/ >>> Twitter: @panesofglass >>> Website: http://panesofglass.org/ >>> _______________________________________________ >>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sat Apr 3 03:11:50 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 3 Apr 2010 00:11:50 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC921731015F@TK5EX14MBXC136.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133BEBAC@TK5EX14MBXC134.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133D94E9@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: Where is documentation on converting between CLR and Ruby types? I can get RubyStrings, but what about Fixnum and Array? Thanks, Ryan Riley -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Apr 3 14:00:08 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sat, 3 Apr 2010 18:00:08 +0000 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Message-ID: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside that file is a to_clr_array method JD ________________________________ From: Ryan Riley Sent: Saturday, April 03, 2010 12:13 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Where is documentation on converting between CLR and Ruby types? I can get RubyStrings, but what about Fixnum and Array? Thanks, Ryan Riley -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sat Apr 3 14:25:56 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 3 Apr 2010 18:25:56 +0000 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> Can you give an example of where you need the conversions? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Saturday, April 03, 2010 11:00 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside that file is a to_clr_array method JD ________________________________ From: Ryan Riley Sent: Saturday, April 03, 2010 12:13 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Where is documentation on converting between CLR and Ruby types? I can get RubyStrings, but what about Fixnum and Array? Thanks, Ryan Riley -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sat Apr 3 17:30:47 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 3 Apr 2010 14:30:47 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: Sure! Mono::Unix::Native::Passwdand Mono::Unix::Native::Groupthat are returned from the Mono::Unix::Native::Syscallfunctions have UInt32, System.String, and System.String[]. System.String is no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum as the type, and I was trying to get the correct types back from the functions. That leaves MRI's Array to Mono's System.String[]. My current implementation is just a Ruby module wrapping calls to the Mono functions and returning the appropriate types. Most of it is working, though without being able to run tests easily, I'm testing from the command line. I still need to add conditionals to return nil if it's run on Windows. I suppose I also need to conditionally load the Mono.Posix.dll if it's on Windows, too. I'm about to finish the basic implementation and post to github. (I've already got what I finished last night up there.) I also asked Shri for a pairing session to make sure it's inline with what you're wanting. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > Can you give an example of where you need the conversions? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville > *Sent:* Saturday, April 03, 2010 11:00 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > > No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. > I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside > that file is a to_clr_array method > > JD > > ------------------------------ > > *From: *Ryan Riley > *Sent: *Saturday, April 03, 2010 12:13 AM > *To: *ironruby-core at rubyforge.org > *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > Where is documentation on converting between CLR and Ruby types? I can get > RubyStrings, but what about Fixnum and Array? > > > > Thanks, > > > Ryan Riley > > _______________________________________________ > 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 ryan.riley at panesofglass.org Sat Apr 3 17:32:29 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 3 Apr 2010 14:32:29 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: Does a clr_array map to a Ruby Array? Ryan Riley On Sat, Apr 3, 2010 at 11:00 AM, Jim Deville wrote: > > No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. > I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside > that file is a to_clr_array method > > JD > > > ------------------------------ > From: Ryan Riley > Sent: Saturday, April 03, 2010 12:13 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module > for Mono? > > Where is documentation on converting between CLR and Ruby types? I can > get RubyStrings, but what about Fixnum and Array? > > Thanks, > > Ryan Riley > > _______________________________________________ > 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 ryan.riley at panesofglass.org Sat Apr 3 18:58:35 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 3 Apr 2010 15:58:35 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: I've posted an initial "complete" implementation, though I have only done basic testing. I have a couple of TODO's remaining and some cleanup, as well as writing actual specs. I still don't have tests running. You can find the module here: http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb Not the prettiest thing in the world, but I just wanted to get it working. I definitely still have work to do. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley wrote: > Sure! Mono::Unix::Native::Passwdand > Mono::Unix::Native::Groupthat are returned from the > Mono::Unix::Native::Syscallfunctions have UInt32, System.String, and System.String[]. System.String is > no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as > System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum > as the type, and I was trying to get the correct types back from the > functions. That leaves MRI's Array to Mono's System.String[]. > > My current implementation is just a Ruby module wrapping calls to the Mono > functions and returning the appropriate types. Most of it is working, though > without being able to run tests easily, I'm testing from the command line. I > still need to add conditionals to return nil if it's run on Windows. I > suppose I also need to conditionally load the Mono.Posix.dll if it's on > Windows, too. > > I'm about to finish the basic implementation and post to github. (I've > already got what I finished last night up there.) I also asked Shri for a > pairing session to make sure it's inline with what you're wanting. > > Cheers, > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > >> Can you give an example of where you need the conversions? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville >> *Sent:* Saturday, April 03, 2010 11:00 AM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> >> No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. >> I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside >> that file is a to_clr_array method >> >> JD >> >> ------------------------------ >> >> *From: *Ryan Riley >> *Sent: *Saturday, April 03, 2010 12:13 AM >> *To: *ironruby-core at rubyforge.org >> *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> Where is documentation on converting between CLR and Ruby types? I can get >> RubyStrings, but what about Fixnum and Array? >> >> >> >> Thanks, >> >> >> Ryan Riley >> >> _______________________________________________ >> 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 Sat Apr 3 19:43:40 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 3 Apr 2010 23:43:40 +0000 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> Nice work. A few suggestions: - You can move the file to C:\M0\Merlin\Main\Languages\Ruby\Libs. - Use System::Environment:: System::Environment.OSVersion.Platform to detect the OS (see e.g. Win32API.rb in Libs). - Rather than check for the platform in every method it might be better to define the methods differently on Windows. Something like: module Etc platform = System::PlatformID case System::Environment.OSVersion.Platform when platform.Win32S, platform.WinCE, platform.Win32Windows, platform.Win32NT: def self.endgrent; end def self.endpwent; end def self.getgrent; end ? else load_assembly 'Mono.Posix' def self.endgrent Mono::Unix::Native::Syscall.endgrent end def self.endpwent Mono::Unix::Native::Syscall.endpwent end def self.getgrent to_group(Mono::Unix::Native::Syscall.getgrent) end ? end end From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 3:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? I've posted an initial "complete" implementation, though I have only done basic testing. I have a couple of TODO's remaining and some cleanup, as well as writing actual specs. I still don't have tests running. You can find the module here: http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb Not the prettiest thing in the world, but I just wanted to get it working. I definitely still have work to do. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: Sure! Mono::Unix::Native::Passwd and Mono::Unix::Native::Group that are returned from the Mono::Unix::Native::Syscall functions have UInt32, System.String, and System.String[]. System.String is no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum as the type, and I was trying to get the correct types back from the functions. That leaves MRI's Array to Mono's System.String[]. My current implementation is just a Ruby module wrapping calls to the Mono functions and returning the appropriate types. Most of it is working, though without being able to run tests easily, I'm testing from the command line. I still need to add conditionals to return nil if it's run on Windows. I suppose I also need to conditionally load the Mono.Posix.dll if it's on Windows, too. I'm about to finish the basic implementation and post to github. (I've already got what I finished last night up there.) I also asked Shri for a pairing session to make sure it's inline with what you're wanting. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek > wrote: Can you give an example of where you need the conversions? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Saturday, April 03, 2010 11:00 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside that file is a to_clr_array method JD ________________________________ From: Ryan Riley > Sent: Saturday, April 03, 2010 12:13 AM To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Where is documentation on converting between CLR and Ruby types? I can get RubyStrings, but what about Fixnum and Array? Thanks, Ryan Riley _______________________________________________ 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 ryan.riley at panesofglass.org Sat Apr 3 19:49:44 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 3 Apr 2010 16:49:44 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: <57F3515D-D697-45DA-A813-B552144F41AA@panesofglass.org> I was hoping for just such pointers, thanks! I will try to get this updated tonight. Ryan Sent from my iPhone On Apr 3, 2010, at 4:43 PM, Tomas Matousek wrote: > Nice work. > > > > A few suggestions: > > > > - You can move the file to C:\M0\Merlin\Main\Languages\Ruby > \Libs. > > - Use System::Environment:: > System::Environment.OSVersion.Platform to detect the OS (see e.g. > Win32API.rb in Libs). > > - Rather than check for the platform in every method it > might be better to define the methods differently on Windows. > Something like: > > > > module Etc > > platform = System::PlatformID > > case System::Environment.OSVersion.Platform > > when platform.Win32S, platform.WinCE, platform.Win32Windows, > platform.Win32NT: > > def self.endgrent; end > def self.endpwent; end > > def self.getgrent; end > > ? > > else > > load_assembly 'Mono.Posix' > > > def self.endgrent > Mono::Unix::Native::Syscall.endgrent > end > > def self.endpwent > Mono::Unix::Native::Syscall.endpwent > end > > def self.getgrent > to_group(Mono::Unix::Native::Syscall.getgrent) > end > > ? > end > > end > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Ryan Riley > Sent: Saturday, April 03, 2010 3:59 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > I've posted an initial "complete" implementation, though I have only > done basic testing. I have a couple of TODO's remaining and some > cleanup, as well as writing actual specs. I still don't have tests > running. You can find the module here: http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb > > > > Not the prettiest thing in the world, but I just wanted to get it > working. I definitely still have work to do. > > > > Cheers, > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: > > Sure! Mono::Unix::Native::Passwd and Mono::Unix::Native::Group that > are returned from the Mono::Unix::Native::Syscall functions have > UInt32, System.String, and System.String[]. System.String is no > biggie, and I'm finding .to_i on a System.UInt32 is still displayed > as System.UInt32, so I suppose that's not an issue, either. MRI > displays Fixnum as the type, and I was trying to get the correct > types back from the functions. That leaves MRI's Array to Mono's > System.String[]. > > > > My current implementation is just a Ruby module wrapping calls to > the Mono functions and returning the appropriate types. Most of it > is working, though without being able to run tests easily, I'm > testing from the command line. I still need to add conditionals to > return nil if it's run on Windows. I suppose I also need to > conditionally load the Mono.Posix.dll if it's on Windows, too. > > > > I'm about to finish the basic implementation and post to github. > (I've already got what I finished last night up there.) I also asked > Shri for a pairing session to make sure it's inline with what you're > wanting. > > > > Cheers, > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek > wrote: > > Can you give an example of where you need the conversions? > > > > Tomas > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Saturday, April 03, 2010 11:00 AM > > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > > No conversion for Fixnums is needed (Fixnums are ints). Arrays are > harder. I would take a look at clr_ext in merlin/main/languages/ruby/ > samples. Inside that file is a to_clr_array method > > JD > > From: Ryan Riley > Sent: Saturday, April 03, 2010 12:13 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > Where is documentation on converting between CLR and Ruby types? I > can get RubyStrings, but what about Fixnum and Array? > > > > Thanks, > > > Ryan Riley > > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sat Apr 3 20:02:16 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 3 Apr 2010 17:02:16 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: Quick question: The etc.rb in Libs is a class, but the implementation in the Ruby Standard Library appears to be a module. Should I keep the class or use the module? Ryan Riley On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek wrote: > Nice work. > > > > A few suggestions: > > > > - You can move the file to C:\M0\Merlin\Main\Languages\Ruby\Libs. > > - Use System::Environment:: System::Environment.OSVersion.Platform > to detect the OS (see e.g. Win32API.rb in Libs). > > - Rather than check for the platform in every method it might be > better to define the methods differently on Windows. Something like: > > > > module Etc > > platform = System::PlatformID > > case System::Environment.OSVersion.Platform > > when platform.Win32S, platform.WinCE, platform.Win32Windows, > platform.Win32NT: > > def self.endgrent; end > > def self.endpwent; end > > def self.getgrent; end > > ? > > else > > load_assembly 'Mono.Posix' > > > > def self.endgrent > > Mono::Unix::Native::Syscall.endgrent > > end > > > > def self.endpwent > > Mono::Unix::Native::Syscall.endpwent > > end > > > > def self.getgrent > > to_group(Mono::Unix::Native::Syscall.getgrent) > > > end > > > > ? > > end > > end > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Saturday, April 03, 2010 3:59 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > I've posted an initial "complete" implementation, though I have only done > basic testing. I have a couple of TODO's remaining and some cleanup, as well > as writing actual specs. I still don't have tests running. You can find the > module here: > http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb > > > > Not the prettiest thing in the world, but I just wanted to get it working. > I definitely still have work to do. > > > > Cheers, > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: > > Sure! Mono::Unix::Native::Passwdand > Mono::Unix::Native::Groupthat are returned from the > Mono::Unix::Native::Syscallfunctions have UInt32, System.String, and System.String[]. System.String is > no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as > System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum > as the type, and I was trying to get the correct types back from the > functions. That leaves MRI's Array to Mono's System.String[]. > > > > My current implementation is just a Ruby module wrapping calls to the Mono > functions and returning the appropriate types. Most of it is working, though > without being able to run tests easily, I'm testing from the command line. I > still need to add conditionals to return nil if it's run on Windows. I > suppose I also need to conditionally load the Mono.Posix.dll if it's on > Windows, too. > > > > I'm about to finish the basic implementation and post to github. (I've > already got what I finished last night up there.) I also asked Shri for a > pairing session to make sure it's inline with what you're wanting. > > > > Cheers, > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > > Can you give an example of where you need the conversions? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville > *Sent:* Saturday, April 03, 2010 11:00 AM > > > *To:* ironruby-core at rubyforge.org > > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > > No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. > I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside > that file is a to_clr_array method > > JD > ------------------------------ > > *From: *Ryan Riley > *Sent: *Saturday, April 03, 2010 12:13 AM > *To: *ironruby-core at rubyforge.org > *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > Where is documentation on converting between CLR and Ruby types? I can get > RubyStrings, but what about Fixnum and Array? > > > > Thanks, > > > Ryan Riley > > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sat Apr 3 20:48:31 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 3 Apr 2010 17:48:31 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: Nm ... I just made the changes and committed to my linux branch. I'll work on tests, rebasing, etc. tonight. http://github.com/panesofglass/ironruby/blob/linux/Merlin/Main/Languages/Ruby/Libs/etc.rb Cheers, Ryan Riley On Sat, Apr 3, 2010 at 5:02 PM, Ryan Riley wrote: > Quick question: The etc.rb in Libs is a class, but the implementation in > the Ruby Standard Library appears to be a module. Should I keep the class or > use the module? > > Ryan Riley > > > > On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > >> Nice work. >> >> >> >> A few suggestions: >> >> >> >> - You can move the file to >> C:\M0\Merlin\Main\Languages\Ruby\Libs. >> >> - Use System::Environment:: System::Environment.OSVersion.Platform >> to detect the OS (see e.g. Win32API.rb in Libs). >> >> - Rather than check for the platform in every method it might be >> better to define the methods differently on Windows. Something like: >> >> >> >> module Etc >> >> platform = System::PlatformID >> >> case System::Environment.OSVersion.Platform >> >> when platform.Win32S, platform.WinCE, platform.Win32Windows, >> platform.Win32NT: >> >> def self.endgrent; end >> >> def self.endpwent; end >> >> def self.getgrent; end >> >> ? >> >> else >> >> load_assembly 'Mono.Posix' >> >> >> >> def self.endgrent >> >> Mono::Unix::Native::Syscall.endgrent >> >> end >> >> >> >> def self.endpwent >> >> Mono::Unix::Native::Syscall.endpwent >> >> end >> >> >> >> def self.getgrent >> >> to_group(Mono::Unix::Native::Syscall.getgrent) >> >> >> end >> >> >> >> ? >> >> end >> >> end >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Saturday, April 03, 2010 3:59 PM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> I've posted an initial "complete" implementation, though I have only done >> basic testing. I have a couple of TODO's remaining and some cleanup, as well >> as writing actual specs. I still don't have tests running. You can find the >> module here: >> http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb >> >> >> >> Not the prettiest thing in the world, but I just wanted to get it working. >> I definitely still have work to do. >> >> >> >> Cheers, >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley >> wrote: >> >> Sure! Mono::Unix::Native::Passwdand >> Mono::Unix::Native::Groupthat are returned from the >> Mono::Unix::Native::Syscallfunctions have UInt32, System.String, and System.String[]. System.String is >> no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as >> System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum >> as the type, and I was trying to get the correct types back from the >> functions. That leaves MRI's Array to Mono's System.String[]. >> >> >> >> My current implementation is just a Ruby module wrapping calls to the Mono >> functions and returning the appropriate types. Most of it is working, though >> without being able to run tests easily, I'm testing from the command line. I >> still need to add conditionals to return nil if it's run on Windows. I >> suppose I also need to conditionally load the Mono.Posix.dll if it's on >> Windows, too. >> >> >> >> I'm about to finish the basic implementation and post to github. (I've >> already got what I finished last night up there.) I also asked Shri for a >> pairing session to make sure it's inline with what you're wanting. >> >> >> >> Cheers, >> >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> Can you give an example of where you need the conversions? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville >> *Sent:* Saturday, April 03, 2010 11:00 AM >> >> >> *To:* ironruby-core at rubyforge.org >> >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> >> No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. >> I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside >> that file is a to_clr_array method >> >> JD >> ------------------------------ >> >> *From: *Ryan Riley >> *Sent: *Saturday, April 03, 2010 12:13 AM >> *To: *ironruby-core at rubyforge.org >> *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> Where is documentation on converting between CLR and Ruby types? I can get >> RubyStrings, but what about Fixnum and Array? >> >> >> >> Thanks, >> >> >> Ryan Riley >> >> >> >> _______________________________________________ >> 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 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sat Apr 3 21:00:33 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 4 Apr 2010 01:00:33 +0000 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> That is a bug. Make it a module. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 5:02 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Quick question: The etc.rb in Libs is a class, but the implementation in the Ruby Standard Library appears to be a module. Should I keep the class or use the module? Ryan Riley On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek > wrote: Nice work. A few suggestions: - You can move the file to C:\M0\Merlin\Main\Languages\Ruby\Libs. - Use System::Environment:: System::Environment.OSVersion.Platform to detect the OS (see e.g. Win32API.rb in Libs). - Rather than check for the platform in every method it might be better to define the methods differently on Windows. Something like: module Etc platform = System::PlatformID case System::Environment.OSVersion.Platform when platform.Win32S, platform.WinCE, platform.Win32Windows, platform.Win32NT: def self.endgrent; end def self.endpwent; end def self.getgrent; end ? else load_assembly 'Mono.Posix' def self.endgrent Mono::Unix::Native::Syscall.endgrent end def self.endpwent Mono::Unix::Native::Syscall.endpwent end def self.getgrent to_group(Mono::Unix::Native::Syscall.getgrent) end ? end end From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 3:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? I've posted an initial "complete" implementation, though I have only done basic testing. I have a couple of TODO's remaining and some cleanup, as well as writing actual specs. I still don't have tests running. You can find the module here: http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb Not the prettiest thing in the world, but I just wanted to get it working. I definitely still have work to do. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: Sure! Mono::Unix::Native::Passwd and Mono::Unix::Native::Group that are returned from the Mono::Unix::Native::Syscall functions have UInt32, System.String, and System.String[]. System.String is no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum as the type, and I was trying to get the correct types back from the functions. That leaves MRI's Array to Mono's System.String[]. My current implementation is just a Ruby module wrapping calls to the Mono functions and returning the appropriate types. Most of it is working, though without being able to run tests easily, I'm testing from the command line. I still need to add conditionals to return nil if it's run on Windows. I suppose I also need to conditionally load the Mono.Posix.dll if it's on Windows, too. I'm about to finish the basic implementation and post to github. (I've already got what I finished last night up there.) I also asked Shri for a pairing session to make sure it's inline with what you're wanting. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek > wrote: Can you give an example of where you need the conversions? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Saturday, April 03, 2010 11:00 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside that file is a to_clr_array method JD ________________________________ From: Ryan Riley > Sent: Saturday, April 03, 2010 12:13 AM To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Where is documentation on converting between CLR and Ruby types? I can get RubyStrings, but what about Fixnum and Array? Thanks, Ryan Riley _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From zbrown at microsoft.com Sat Apr 3 21:56:38 2010 From: zbrown at microsoft.com (Zac Brown) Date: Sun, 4 Apr 2010 01:56:38 +0000 Subject: [Ironruby-core] helping with IronRuby In-Reply-To: <6459203F8B1AF641995AE49D47FA51A7133CCE47@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <8AF1C0EB9192E245B471BDDC84B82A050AEE25F3@TK5EX14MBXC103.redmond.corp.microsoft.com>, <6459203F8B1AF641995AE49D47FA51A7133CCE47@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: <8AF1C0EB9192E245B471BDDC84B82A050AEE2CFC@TK5EX14MBXC103.redmond.corp.microsoft.com> By janitorial I meant more simple bug fixing as opposed to docs and websites. I'll look into getting a clean run of irtests. -Zac ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Shri Borde [Shri.Borde at microsoft.com] Sent: Friday, April 02, 2010 2:00 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] helping with IronRuby Hi Zac, http://wiki.github.com/ironruby/ironruby/contributing has a general list of ideas for contributions. You could browse that for some ideas of which are you want to contribute in. By janitorial tasks, are you saying you are more interested in things like documentation and websites? If so, you will have to coordinate with Jimmy. If you want to help with coding tasks, the first step is to get a clean run of the ?irtests? command (see bottom of http://wiki.github.com/ironruby/ironruby/modifying-the-sources). From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Friday, April 02, 2010 1:46 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] helping with IronRuby Hi all, I?m looking to get involved with some IronRuby development. Are there some simple janitorial tasks that I get can my feet with? Thanks, Zac Brown (zbrown), SDET Microsoft - Windows ? REX Client (86/1601) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sat Apr 3 22:38:21 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 4 Apr 2010 02:38:21 +0000 Subject: [Ironruby-core] helping with IronRuby In-Reply-To: <8AF1C0EB9192E245B471BDDC84B82A050AEE2CFC@TK5EX14MBXC103.redmond.corp.microsoft.com> References: <8AF1C0EB9192E245B471BDDC84B82A050AEE25F3@TK5EX14MBXC103.redmond.corp.microsoft.com>, <6459203F8B1AF641995AE49D47FA51A7133CCE47@TK5EX14MBXC134.redmond.corp.microsoft.com> <8AF1C0EB9192E245B471BDDC84B82A050AEE2CFC@TK5EX14MBXC103.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C49294679@TK5EX14MBXC124.redmond.corp.microsoft.com> Here is something small you could start with: Kernel#test (http://ruby-doc.org/core/classes/Kernel.html#M005948) has many cases that we don't implement yet. The implementation of this method is in Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\KernelOps.cs It might be possible to reuse code in IoOps.cs and FileOps.cs ti implement this method. There are some specs for the method in Merlin\External.LCA_RESTRICTED\Languages\IronRuby\mspec\rubyspec\core\kernel\test_specs.rb but not many. Add specs here for each case you implement. You'll need to figure out what CRuby is doing here as the documentation is not very good. The behavior might be different between Ruby 1.8.6 and Ruby 1.9. For now implement 1.8.6 behavior since we haven't switched to 1.9 yet and the differences seems to be minimal. If you would be interested in something bigger we can use some help in OpenSSL module. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Saturday, April 03, 2010 6:57 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] helping with IronRuby By janitorial I meant more simple bug fixing as opposed to docs and websites. I'll look into getting a clean run of irtests. -Zac ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Shri Borde [Shri.Borde at microsoft.com] Sent: Friday, April 02, 2010 2:00 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] helping with IronRuby Hi Zac, http://wiki.github.com/ironruby/ironruby/contributing has a general list of ideas for contributions. You could browse that for some ideas of which are you want to contribute in. By janitorial tasks, are you saying you are more interested in things like documentation and websites? If so, you will have to coordinate with Jimmy. If you want to help with coding tasks, the first step is to get a clean run of the "irtests" command (see bottom of http://wiki.github.com/ironruby/ironruby/modifying-the-sources). From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Friday, April 02, 2010 1:46 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] helping with IronRuby Hi all, I'm looking to get involved with some IronRuby development. Are there some simple janitorial tasks that I get can my feet with? Thanks, Zac Brown (zbrown), SDET Microsoft - Windows - REX Client (86/1601) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sun Apr 4 01:13:21 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 4 Apr 2010 05:13:21 +0000 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> Also, to get a Int32 out of a UInt32, you should be able to use induced_from: >>> a = System::UInt32.new(1) => 1 (UInt32) >>> Fixnum.induced_from(a) => 1 Minor thing, but it will work. The fact that etc is a class is my bad. I was just getting enough implemented in order to pass some specs and use libraries that expected the nil on Windows. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Saturday, April 03, 2010 6:01 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? That is a bug. Make it a module. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 5:02 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Quick question: The etc.rb in Libs is a class, but the implementation in the Ruby Standard Library appears to be a module. Should I keep the class or use the module? Ryan Riley On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek > wrote: Nice work. A few suggestions: - You can move the file to C:\M0\Merlin\Main\Languages\Ruby\Libs. - Use System::Environment:: System::Environment.OSVersion.Platform to detect the OS (see e.g. Win32API.rb in Libs). - Rather than check for the platform in every method it might be better to define the methods differently on Windows. Something like: module Etc platform = System::PlatformID case System::Environment.OSVersion.Platform when platform.Win32S, platform.WinCE, platform.Win32Windows, platform.Win32NT: def self.endgrent; end def self.endpwent; end def self.getgrent; end ? else load_assembly 'Mono.Posix' def self.endgrent Mono::Unix::Native::Syscall.endgrent end def self.endpwent Mono::Unix::Native::Syscall.endpwent end def self.getgrent to_group(Mono::Unix::Native::Syscall.getgrent) end ? end end From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 3:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? I've posted an initial "complete" implementation, though I have only done basic testing. I have a couple of TODO's remaining and some cleanup, as well as writing actual specs. I still don't have tests running. You can find the module here: http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb Not the prettiest thing in the world, but I just wanted to get it working. I definitely still have work to do. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: Sure! Mono::Unix::Native::Passwd and Mono::Unix::Native::Group that are returned from the Mono::Unix::Native::Syscall functions have UInt32, System.String, and System.String[]. System.String is no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum as the type, and I was trying to get the correct types back from the functions. That leaves MRI's Array to Mono's System.String[]. My current implementation is just a Ruby module wrapping calls to the Mono functions and returning the appropriate types. Most of it is working, though without being able to run tests easily, I'm testing from the command line. I still need to add conditionals to return nil if it's run on Windows. I suppose I also need to conditionally load the Mono.Posix.dll if it's on Windows, too. I'm about to finish the basic implementation and post to github. (I've already got what I finished last night up there.) I also asked Shri for a pairing session to make sure it's inline with what you're wanting. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek > wrote: Can you give an example of where you need the conversions? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Saturday, April 03, 2010 11:00 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside that file is a to_clr_array method JD ________________________________ From: Ryan Riley > Sent: Saturday, April 03, 2010 12:13 AM To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Where is documentation on converting between CLR and Ruby types? I can get RubyStrings, but what about Fixnum and Array? Thanks, Ryan Riley _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sun Apr 4 12:53:51 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 4 Apr 2010 09:53:51 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: <8D314E30-CA8F-4B25-9676-16064DB70DA4@panesofglass.org> I've posted all the type fixes, but since I can't compile master, I'm hesitant to rebase. What should I do? Also, I still haven't gotten to the tests. Looks like the current ones all expect nil and assume Windows. Are those the real rubyspec specs? Sent from my iPhone On Apr 3, 2010, at 10:13 PM, Jim Deville wrote: > Also, to get a Int32 out of a UInt32, you should be able to use > induced_from: > > > > >>> a = System::UInt32.new(1) > > => 1 (UInt32) > > >>> Fixnum.induced_from(a) > > => 1 > > > > Minor thing, but it will work. > > > > The fact that etc is a class is my bad. I was just getting enough > implemented in order to pass some specs and use libraries that > expected the nil on Windows. > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Tomas Matousek > Sent: Saturday, April 03, 2010 6:01 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > That is a bug. Make it a module. > > > > Tomas > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Ryan Riley > Sent: Saturday, April 03, 2010 5:02 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > Quick question: The etc.rb in Libs is a class, but the > implementation in the Ruby Standard Library appears to be a module. > Should I keep the class or use the module? > > > Ryan Riley > > On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek > wrote: > > Nice work. > > > > A few suggestions: > > > > - You can move the file to C:\M0\Merlin\Main\Languages\Ruby > \Libs. > > - Use System::Environment:: > System::Environment.OSVersion.Platform to detect the OS (see e.g. > Win32API.rb in Libs). > > - Rather than check for the platform in every method it > might be better to define the methods differently on Windows. > Something like: > > > > module Etc > > platform = System::PlatformID > > case System::Environment.OSVersion.Platform > > when platform.Win32S, platform.WinCE, platform.Win32Windows, > platform.Win32NT: > > def self.endgrent; end > def self.endpwent; end > > def self.getgrent; end > > ? > > else > > load_assembly 'Mono.Posix' > > > def self.endgrent > Mono::Unix::Native::Syscall.endgrent > end > > def self.endpwent > Mono::Unix::Native::Syscall.endpwent > end > > def self.getgrent > to_group(Mono::Unix::Native::Syscall.getgrent) > > > end > > ? > end > > end > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Ryan Riley > Sent: Saturday, April 03, 2010 3:59 PM > > > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > I've posted an initial "complete" implementation, though I have only > done basic testing. I have a couple of TODO's remaining and some > cleanup, as well as writing actual specs. I still don't have tests > running. You can find the module here: http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb > > > > Not the prettiest thing in the world, but I just wanted to get it > working. I definitely still have work to do. > > > > Cheers, > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: > > Sure! Mono::Unix::Native::Passwd and Mono::Unix::Native::Group that > are returned from the Mono::Unix::Native::Syscall functions have > UInt32, System.String, and System.String[]. System.String is no > biggie, and I'm finding .to_i on a System.UInt32 is still displayed > as System.UInt32, so I suppose that's not an issue, either. MRI > displays Fixnum as the type, and I was trying to get the correct > types back from the functions. That leaves MRI's Array to Mono's > System.String[]. > > > > My current implementation is just a Ruby module wrapping calls to > the Mono functions and returning the appropriate types. Most of it > is working, though without being able to run tests easily, I'm > testing from the command line. I still need to add conditionals to > return nil if it's run on Windows. I suppose I also need to > conditionally load the Mono.Posix.dll if it's on Windows, too. > > > > I'm about to finish the basic implementation and post to github. > (I've already got what I finished last night up there.) I also asked > Shri for a pairing session to make sure it's inline with what you're > wanting. > > > > Cheers, > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek > wrote: > > Can you give an example of where you need the conversions? > > > > Tomas > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Saturday, April 03, 2010 11:00 AM > > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > > No conversion for Fixnums is needed (Fixnums are ints). Arrays are > harder. I would take a look at clr_ext in merlin/main/languages/ruby/ > samples. Inside that file is a to_clr_array method > > JD > > From: Ryan Riley > Sent: Saturday, April 03, 2010 12:13 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > Where is documentation on converting between CLR and Ruby types? I > can get RubyStrings, but what about Fixnum and Array? > > > > Thanks, > > > Ryan Riley > > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Sun Apr 4 13:55:46 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Sun, 4 Apr 2010 17:55:46 +0000 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <8D314E30-CA8F-4B25-9676-16064DB70DA4@panesofglass.org> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> <8D314E30-CA8F-4B25-9676-16064DB70DA4@panesofglass.org> Message-ID: <6459203F8B1AF641995AE49D47FA51A7133E19ED@TK5EX14MBXC139.redmond.corp.microsoft.com> If you run ?mspec ci library\etc?, that runs the real RubySpec specs. irtests does run a command like ?mspec ci lib? which will run the Etc RubySpec specs. http://wiki.github.com/ironruby/ironruby/rubyspec might be useful to you about how these scripts work. The RubySpecs are supposed to be working on all platforms. The specs use checks like ?platform_is :windows? or ?platform_is_not :windows? to have versions for all OSes. I am surprised that the current ones expect nil. You can fix them to have versions of the specs that work on Unixes. You can run the tests against MRI using ?mspec ?tr? to ensure that the spec you add is correct. If you can streamline the development process for Mono, that will be great so others have an easier time in the future? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Sunday, April 04, 2010 9:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? I've posted all the type fixes, but since I can't compile master, I'm hesitant to rebase. What should I do? Also, I still haven't gotten to the tests. Looks like the current ones all expect nil and assume Windows. Are those the real rubyspec specs? Sent from my iPhone On Apr 3, 2010, at 10:13 PM, Jim Deville > wrote: Also, to get a Int32 out of a UInt32, you should be able to use induced_from: >>> a = System::UInt32.new(1) => 1 (UInt32) >>> Fixnum.induced_from(a) => 1 Minor thing, but it will work. The fact that etc is a class is my bad. I was just getting enough implemented in order to pass some specs and use libraries that expected the nil on Windows. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Saturday, April 03, 2010 6:01 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? That is a bug. Make it a module. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 5:02 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Quick question: The etc.rb in Libs is a class, but the implementation in the Ruby Standard Library appears to be a module. Should I keep the class or use the module? Ryan Riley On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek > wrote: Nice work. A few suggestions: - You can move the file to C:\M0\Merlin\Main\Languages\Ruby\Libs. - Use System::Environment:: System::Environment.OSVersion.Platform to detect the OS (see e.g. Win32API.rb in Libs). - Rather than check for the platform in every method it might be better to define the methods differently on Windows. Something like: module Etc platform = System::PlatformID case System::Environment.OSVersion.Platform when platform.Win32S, platform.WinCE, platform.Win32Windows, platform.Win32NT: def self.endgrent; end def self.endpwent; end def self.getgrent; end ? else load_assembly 'Mono.Posix' def self.endgrent Mono::Unix::Native::Syscall.endgrent end def self.endpwent Mono::Unix::Native::Syscall.endpwent end def self.getgrent to_group(Mono::Unix::Native::Syscall.getgrent) end ? end end From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 3:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? I've posted an initial "complete" implementation, though I have only done basic testing. I have a couple of TODO's remaining and some cleanup, as well as writing actual specs. I still don't have tests running. You can find the module here: http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb Not the prettiest thing in the world, but I just wanted to get it working. I definitely still have work to do. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: Sure! Mono::Unix::Native::Passwd and Mono::Unix::Native::Group that are returned from the Mono::Unix::Native::Syscall functions have UInt32, System.String, and System.String[]. System.String is no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum as the type, and I was trying to get the correct types back from the functions. That leaves MRI's Array to Mono's System.String[]. My current implementation is just a Ruby module wrapping calls to the Mono functions and returning the appropriate types. Most of it is working, though without being able to run tests easily, I'm testing from the command line. I still need to add conditionals to return nil if it's run on Windows. I suppose I also need to conditionally load the Mono.Posix.dll if it's on Windows, too. I'm about to finish the basic implementation and post to github. (I've already got what I finished last night up there.) I also asked Shri for a pairing session to make sure it's inline with what you're wanting. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek > wrote: Can you give an example of where you need the conversions? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Saturday, April 03, 2010 11:00 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside that file is a to_clr_array method JD ________________________________ From: Ryan Riley > Sent: Saturday, April 03, 2010 12:13 AM To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Where is documentation on converting between CLR and Ruby types? I can get RubyStrings, but what about Fixnum and Array? Thanks, Ryan Riley _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sun Apr 4 14:23:58 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 4 Apr 2010 18:23:58 +0000 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Message-ID: <31BD916A7536A242870B0B4E3F9068D703DCD1CF@TK5EX14MBXC136.redmond.corp.microsoft.com> Most of the libraries are still poorly specced. I actually wrote most of the current etc ones in order to get them passing. If you look around though, you can find places in the lib specs that are empty files :( ________________________________ From: Shri Borde Sent: Sunday, April 04, 2010 10:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? If you run ?mspec ci library\etc?, that runs the real RubySpec specs. irtests does run a command like ?mspec ci lib? which will run the Etc RubySpec specs. http://wiki.github.com/ironruby/ironruby/rubyspec might be useful to you about how these scripts work. The RubySpecs are supposed to be working on all platforms. The specs use checks like ?platform_is :windows? or ?platform_is_not :windows? to have versions for all OSes. I am surprised that the current ones expect nil. You can fix them to have versions of the specs that work on Unixes. You can run the tests against MRI using ?mspec ?tr? to ensure that the spec you add is correct. If you can streamline the development process for Mono, that will be great so others have an easier time in the future? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Sunday, April 04, 2010 9:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? I've posted all the type fixes, but since I can't compile master, I'm hesitant to rebase. What should I do? Also, I still haven't gotten to the tests. Looks like the current ones all expect nil and assume Windows. Are those the real rubyspec specs? Sent from my iPhone On Apr 3, 2010, at 10:13 PM, Jim Deville > wrote: Also, to get a Int32 out of a UInt32, you should be able to use induced_from: >>> a = System::UInt32.new(1) => 1 (UInt32) >>> Fixnum.induced_from(a) => 1 Minor thing, but it will work. The fact that etc is a class is my bad. I was just getting enough implemented in order to pass some specs and use libraries that expected the nil on Windows. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Saturday, April 03, 2010 6:01 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? That is a bug. Make it a module. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 5:02 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Quick question: The etc.rb in Libs is a class, but the implementation in the Ruby Standard Library appears to be a module. Should I keep the class or use the module? Ryan Riley On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek > wrote: Nice work. A few suggestions: - You can move the file to C:\M0\Merlin\Main\Languages\Ruby\Libs. - Use System::Environment:: System::Environment.OSVersion.Platform to detect the OS (see e.g. Win32API.rb in Libs). - Rather than check for the platform in every method it might be better to define the methods differently on Windows. Something like: module Etc platform = System::PlatformID case System::Environment.OSVersion.Platform when platform.Win32S, platform.WinCE, platform.Win32Windows, platform.Win32NT: def self.endgrent; end def self.endpwent; end def self.getgrent; end ? else load_assembly 'Mono.Posix' def self.endgrent Mono::Unix::Native::Syscall.endgrent end def self.endpwent Mono::Unix::Native::Syscall.endpwent end def self.getgrent to_group(Mono::Unix::Native::Syscall.getgrent) end ? end end From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 3:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? I've posted an initial "complete" implementation, though I have only done basic testing. I have a couple of TODO's remaining and some cleanup, as well as writing actual specs. I still don't have tests running. You can find the module here: http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb Not the prettiest thing in the world, but I just wanted to get it working. I definitely still have work to do. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: Sure! Mono::Unix::Native::Passwd and Mono::Unix::Native::Group that are returned from the Mono::Unix::Native::Syscall functions have UInt32, System.String, and System.String[]. System.String is no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum as the type, and I was trying to get the correct types back from the functions. That leaves MRI's Array to Mono's System.String[]. My current implementation is just a Ruby module wrapping calls to the Mono functions and returning the appropriate types. Most of it is working, though without being able to run tests easily, I'm testing from the command line. I still need to add conditionals to return nil if it's run on Windows. I suppose I also need to conditionally load the Mono.Posix.dll if it's on Windows, too. I'm about to finish the basic implementation and post to github. (I've already got what I finished last night up there.) I also asked Shri for a pairing session to make sure it's inline with what you're wanting. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek > wrote: Can you give an example of where you need the conversions? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Saturday, April 03, 2010 11:00 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside that file is a to_clr_array method JD ________________________________ From: Ryan Riley > Sent: Saturday, April 03, 2010 12:13 AM To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Where is documentation on converting between CLR and Ruby types? I can get RubyStrings, but what about Fixnum and Array? Thanks, Ryan Riley _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sun Apr 4 21:32:46 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 4 Apr 2010 18:32:46 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <6459203F8B1AF641995AE49D47FA51A7133E19ED@TK5EX14MBXC139.redmond.corp.microsoft.com> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492944E1@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> <8D314E30-CA8F-4B25-9676-16064DB70DA4@panesofglass.org> <6459203F8B1AF641995AE49D47FA51A7133E19ED@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: Thanks, Shri. The problem is that I cannot run mspec at all. I have added it to my path, but I get a message saying thtat the command can't be found, even while in the bin folder. (And yes, the files are executable. :) I'll keep trying to determine what's wrong, but I would think this should just work. In other news, I was able to get master built on linux using rake compile. I've checked this into my copy of master on github, along with the etc.rb updates and Ivan's dev.sh script. I can write the additional test cases, but they should also work now on windows. I'm about to pull and try it myself. Cheers! Ryan Riley On Sun, Apr 4, 2010 at 10:55 AM, Shri Borde wrote: > If you run ?mspec ci library\etc?, that runs the real RubySpec specs. > irtests does run a command like ?mspec ci lib? which will run the Etc > RubySpec specs. http://wiki.github.com/ironruby/ironruby/rubyspec might be > useful to you about how these scripts work. > > > > The RubySpecs are supposed to be working on all platforms. The specs use > checks like ?platform_is :windows? or ?platform_is_not :windows? to have > versions for all OSes. I am surprised that the current ones expect nil. You > can fix them to have versions of the specs that work on Unixes. You can run > the tests against MRI using ?mspec ?tr? to ensure that the spec you add is > correct. > > > > If you can streamline the development process for Mono, that will be great > so others have an easier time in the future? > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Sunday, April 04, 2010 9:54 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > I've posted all the type fixes, but since I can't compile master, I'm > hesitant to rebase. What should I do? Also, I still haven't gotten to the > tests. Looks like the current ones all expect nil and assume Windows. Are > those the real rubyspec specs? > > Sent from my iPhone > > > On Apr 3, 2010, at 10:13 PM, Jim Deville wrote: > > Also, to get a Int32 out of a UInt32, you should be able to use > induced_from: > > > > >>> a = System::UInt32.new(1) > > => 1 (UInt32) > > >>> Fixnum.induced_from(a) > > => 1 > > > > Minor thing, but it will work. > > > > The fact that etc is a class is my bad. I was just getting enough > implemented in order to pass some specs and use libraries that expected the > nil on Windows. > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Tomas Matousek > *Sent:* Saturday, April 03, 2010 6:01 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > That is a bug. Make it a module. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Saturday, April 03, 2010 5:02 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > Quick question: The etc.rb in Libs is a class, but the implementation in > the Ruby Standard Library appears to be a module. Should I keep the class or > use the module? > > > Ryan Riley > > On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > > Nice work. > > > > A few suggestions: > > > > - You can move the file to C:\M0\Merlin\Main\Languages\Ruby\Libs. > > - Use System::Environment:: System::Environment.OSVersion.Platform > to detect the OS (see e.g. Win32API.rb in Libs). > > - Rather than check for the platform in every method it might be > better to define the methods differently on Windows. Something like: > > > > module Etc > > platform = System::PlatformID > > case System::Environment.OSVersion.Platform > > when platform.Win32S, platform.WinCE, platform.Win32Windows, > platform.Win32NT: > > def self.endgrent; end > > def self.endpwent; end > > def self.getgrent; end > > ? > > else > > load_assembly 'Mono.Posix' > > > > def self.endgrent > > Mono::Unix::Native::Syscall.endgrent > > end > > > > def self.endpwent > > Mono::Unix::Native::Syscall.endpwent > > end > > > > > def self.getgrent > > to_group(Mono::Unix::Native::Syscall.getgrent) > > > > > > end > > > > ? > > end > > end > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Saturday, April 03, 2010 3:59 PM > > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > I've posted an initial "complete" implementation, though I have only done > basic testing. I have a couple of TODO's remaining and some cleanup, as well > as writing actual specs. I still don't have tests running. You can find the > module here: > http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb > > > > Not the prettiest thing in the world, but I just wanted to get it working. > I definitely still have work to do. > > > > Cheers, > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: > > Sure! Mono::Unix::Native::Passwdand > Mono::Unix::Native::Groupthat are returned from the > Mono::Unix::Native::Syscallfunctions have UInt32, System.String, and System.String[]. System.String is > no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as > System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum > as the type, and I was trying to get the correct types back from the > functions. That leaves MRI's Array to Mono's System.String[]. > > > > My current implementation is just a Ruby module wrapping calls to the Mono > functions and returning the appropriate types. Most of it is working, though > without being able to run tests easily, I'm testing from the command line. I > still need to add conditionals to return nil if it's run on Windows. I > suppose I also need to conditionally load the Mono.Posix.dll if it's on > Windows, too. > > > > I'm about to finish the basic implementation and post to github. (I've > already got what I finished last night up there.) I also asked Shri for a > pairing session to make sure it's inline with what you're wanting. > > > > Cheers, > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > > Can you give an example of where you need the conversions? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville > *Sent:* Saturday, April 03, 2010 11:00 AM > > > *To:* ironruby-core at rubyforge.org > > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > > No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. > I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside > that file is a to_clr_array method > > JD > ------------------------------ > > *From: *Ryan Riley > *Sent: *Saturday, April 03, 2010 12:13 AM > *To: *ironruby-core at rubyforge.org > *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > Where is documentation on converting between CLR and Ruby types? I can get > RubyStrings, but what about Fixnum and Array? > > > > Thanks, > > > Ryan Riley > > > > _______________________________________________ > 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 > > > _______________________________________________ > 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 ryan.riley at panesofglass.org Sun Apr 4 21:49:11 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 4 Apr 2010 18:49:11 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> <8D314E30-CA8F-4B25-9676-16064DB70DA4@panesofglass.org> <6459203F8B1AF641995AE49D47FA51A7133E19ED@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: Here's the error I get with xbuild: Errors: /home/ryan/dev/ironruby/Merlin/Main/Languages/Ruby/Ruby.sln (default targets) -> (ValidateSolutionConfiguration target) -> : error : Error initializing task Message: Not registered task Message. 14 Warning(s) 1 Error(s) Time Elapsed 00:00:00.1908000 Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sun, Apr 4, 2010 at 6:32 PM, Ryan Riley wrote: > Thanks, Shri. The problem is that I cannot run mspec at all. I have added > it to my path, but I get a message saying thtat the command can't be found, > even while in the bin folder. (And yes, the files are executable. :) I'll > keep trying to determine what's wrong, but I would think this should just > work. > > In other news, I was able to get master built on linux using rake compile. > I've checked this into my copy of master on github, along with the etc.rb > updates and Ivan's dev.sh script. I can write the additional test cases, but > they should also work now on windows. I'm about to pull and try it myself. > > Cheers! > > Ryan Riley > > > > On Sun, Apr 4, 2010 at 10:55 AM, Shri Borde wrote: > >> If you run ?mspec ci library\etc?, that runs the real RubySpec specs. >> irtests does run a command like ?mspec ci lib? which will run the Etc >> RubySpec specs. http://wiki.github.com/ironruby/ironruby/rubyspec might >> be useful to you about how these scripts work. >> >> >> >> The RubySpecs are supposed to be working on all platforms. The specs use >> checks like ?platform_is :windows? or ?platform_is_not :windows? to have >> versions for all OSes. I am surprised that the current ones expect nil. You >> can fix them to have versions of the specs that work on Unixes. You can run >> the tests against MRI using ?mspec ?tr? to ensure that the spec you add is >> correct. >> >> >> >> If you can streamline the development process for Mono, that will be great >> so others have an easier time in the future? >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Sunday, April 04, 2010 9:54 AM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> I've posted all the type fixes, but since I can't compile master, I'm >> hesitant to rebase. What should I do? Also, I still haven't gotten to the >> tests. Looks like the current ones all expect nil and assume Windows. Are >> those the real rubyspec specs? >> >> Sent from my iPhone >> >> >> On Apr 3, 2010, at 10:13 PM, Jim Deville wrote: >> >> Also, to get a Int32 out of a UInt32, you should be able to use >> induced_from: >> >> >> >> >>> a = System::UInt32.new(1) >> >> => 1 (UInt32) >> >> >>> Fixnum.induced_from(a) >> >> => 1 >> >> >> >> Minor thing, but it will work. >> >> >> >> The fact that etc is a class is my bad. I was just getting enough >> implemented in order to pass some specs and use libraries that expected the >> nil on Windows. >> >> >> >> JD >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Tomas Matousek >> *Sent:* Saturday, April 03, 2010 6:01 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> That is a bug. Make it a module. >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Saturday, April 03, 2010 5:02 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> Quick question: The etc.rb in Libs is a class, but the implementation in >> the Ruby Standard Library appears to be a module. Should I keep the class or >> use the module? >> >> >> Ryan Riley >> >> On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> Nice work. >> >> >> >> A few suggestions: >> >> >> >> - You can move the file to >> C:\M0\Merlin\Main\Languages\Ruby\Libs. >> >> - Use System::Environment:: System::Environment.OSVersion.Platform >> to detect the OS (see e.g. Win32API.rb in Libs). >> >> - Rather than check for the platform in every method it might be >> better to define the methods differently on Windows. Something like: >> >> >> >> module Etc >> >> platform = System::PlatformID >> >> case System::Environment.OSVersion.Platform >> >> when platform.Win32S, platform.WinCE, platform.Win32Windows, >> platform.Win32NT: >> >> def self.endgrent; end >> >> def self.endpwent; end >> >> def self.getgrent; end >> >> ? >> >> else >> >> load_assembly 'Mono.Posix' >> >> >> >> def self.endgrent >> >> Mono::Unix::Native::Syscall.endgrent >> >> end >> >> >> >> def self.endpwent >> >> Mono::Unix::Native::Syscall.endpwent >> >> end >> >> >> >> >> def self.getgrent >> >> to_group(Mono::Unix::Native::Syscall.getgrent) >> >> >> >> >> >> end >> >> >> >> ? >> >> end >> >> end >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Saturday, April 03, 2010 3:59 PM >> >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> I've posted an initial "complete" implementation, though I have only done >> basic testing. I have a couple of TODO's remaining and some cleanup, as well >> as writing actual specs. I still don't have tests running. You can find the >> module here: >> http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb >> >> >> >> Not the prettiest thing in the world, but I just wanted to get it working. >> I definitely still have work to do. >> >> >> >> Cheers, >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley >> wrote: >> >> Sure! Mono::Unix::Native::Passwdand >> Mono::Unix::Native::Groupthat are returned from the >> Mono::Unix::Native::Syscallfunctions have UInt32, System.String, and System.String[]. System.String is >> no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as >> System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum >> as the type, and I was trying to get the correct types back from the >> functions. That leaves MRI's Array to Mono's System.String[]. >> >> >> >> My current implementation is just a Ruby module wrapping calls to the Mono >> functions and returning the appropriate types. Most of it is working, though >> without being able to run tests easily, I'm testing from the command line. I >> still need to add conditionals to return nil if it's run on Windows. I >> suppose I also need to conditionally load the Mono.Posix.dll if it's on >> Windows, too. >> >> >> >> I'm about to finish the basic implementation and post to github. (I've >> already got what I finished last night up there.) I also asked Shri for a >> pairing session to make sure it's inline with what you're wanting. >> >> >> >> Cheers, >> >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> Can you give an example of where you need the conversions? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville >> *Sent:* Saturday, April 03, 2010 11:00 AM >> >> >> *To:* ironruby-core at rubyforge.org >> >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> >> No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. >> I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside >> that file is a to_clr_array method >> >> JD >> ------------------------------ >> >> *From: *Ryan Riley >> *Sent: *Saturday, April 03, 2010 12:13 AM >> *To: *ironruby-core at rubyforge.org >> *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> Where is documentation on converting between CLR and Ruby types? I can get >> RubyStrings, but what about Fixnum and Array? >> >> >> >> Thanks, >> >> >> Ryan Riley >> >> >> >> _______________________________________________ >> 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 >> >> >> _______________________________________________ >> 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 ryan.riley at panesofglass.org Sun Apr 4 22:33:04 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 4 Apr 2010 19:33:04 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> <8D314E30-CA8F-4B25-9676-16064DB70DA4@panesofglass.org> <6459203F8B1AF641995AE49D47FA51A7133E19ED@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: Nm... I figured out that dev.sh, despite the command to export to PATH was not. I'm working on rubyspecs now. Do I put these in the rubyspec git repo or in the IR copy (MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec)? Ryan On Sun, Apr 4, 2010 at 6:32 PM, Ryan Riley wrote: > Thanks, Shri. The problem is that I cannot run mspec at all. I have added > it to my path, but I get a message saying thtat the command can't be found, > even while in the bin folder. (And yes, the files are executable. :) I'll > keep trying to determine what's wrong, but I would think this should just > work. > > In other news, I was able to get master built on linux using rake compile. > I've checked this into my copy of master on github, along with the etc.rb > updates and Ivan's dev.sh script. I can write the additional test cases, but > they should also work now on windows. I'm about to pull and try it myself. > > Cheers! > > Ryan Riley > > > > On Sun, Apr 4, 2010 at 10:55 AM, Shri Borde wrote: > >> If you run ?mspec ci library\etc?, that runs the real RubySpec specs. >> irtests does run a command like ?mspec ci lib? which will run the Etc >> RubySpec specs. http://wiki.github.com/ironruby/ironruby/rubyspec might >> be useful to you about how these scripts work. >> >> >> >> The RubySpecs are supposed to be working on all platforms. The specs use >> checks like ?platform_is :windows? or ?platform_is_not :windows? to have >> versions for all OSes. I am surprised that the current ones expect nil. You >> can fix them to have versions of the specs that work on Unixes. You can run >> the tests against MRI using ?mspec ?tr? to ensure that the spec you add is >> correct. >> >> >> >> If you can streamline the development process for Mono, that will be great >> so others have an easier time in the future? >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Sunday, April 04, 2010 9:54 AM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> I've posted all the type fixes, but since I can't compile master, I'm >> hesitant to rebase. What should I do? Also, I still haven't gotten to the >> tests. Looks like the current ones all expect nil and assume Windows. Are >> those the real rubyspec specs? >> >> Sent from my iPhone >> >> >> On Apr 3, 2010, at 10:13 PM, Jim Deville wrote: >> >> Also, to get a Int32 out of a UInt32, you should be able to use >> induced_from: >> >> >> >> >>> a = System::UInt32.new(1) >> >> => 1 (UInt32) >> >> >>> Fixnum.induced_from(a) >> >> => 1 >> >> >> >> Minor thing, but it will work. >> >> >> >> The fact that etc is a class is my bad. I was just getting enough >> implemented in order to pass some specs and use libraries that expected the >> nil on Windows. >> >> >> >> JD >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Tomas Matousek >> *Sent:* Saturday, April 03, 2010 6:01 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> That is a bug. Make it a module. >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Saturday, April 03, 2010 5:02 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> Quick question: The etc.rb in Libs is a class, but the implementation in >> the Ruby Standard Library appears to be a module. Should I keep the class or >> use the module? >> >> >> Ryan Riley >> >> On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> Nice work. >> >> >> >> A few suggestions: >> >> >> >> - You can move the file to >> C:\M0\Merlin\Main\Languages\Ruby\Libs. >> >> - Use System::Environment:: System::Environment.OSVersion.Platform >> to detect the OS (see e.g. Win32API.rb in Libs). >> >> - Rather than check for the platform in every method it might be >> better to define the methods differently on Windows. Something like: >> >> >> >> module Etc >> >> platform = System::PlatformID >> >> case System::Environment.OSVersion.Platform >> >> when platform.Win32S, platform.WinCE, platform.Win32Windows, >> platform.Win32NT: >> >> def self.endgrent; end >> >> def self.endpwent; end >> >> def self.getgrent; end >> >> ? >> >> else >> >> load_assembly 'Mono.Posix' >> >> >> >> def self.endgrent >> >> Mono::Unix::Native::Syscall.endgrent >> >> end >> >> >> >> def self.endpwent >> >> Mono::Unix::Native::Syscall.endpwent >> >> end >> >> >> >> >> def self.getgrent >> >> to_group(Mono::Unix::Native::Syscall.getgrent) >> >> >> >> >> >> end >> >> >> >> ? >> >> end >> >> end >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Saturday, April 03, 2010 3:59 PM >> >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> I've posted an initial "complete" implementation, though I have only done >> basic testing. I have a couple of TODO's remaining and some cleanup, as well >> as writing actual specs. I still don't have tests running. You can find the >> module here: >> http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb >> >> >> >> Not the prettiest thing in the world, but I just wanted to get it working. >> I definitely still have work to do. >> >> >> >> Cheers, >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley >> wrote: >> >> Sure! Mono::Unix::Native::Passwdand >> Mono::Unix::Native::Groupthat are returned from the >> Mono::Unix::Native::Syscallfunctions have UInt32, System.String, and System.String[]. System.String is >> no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as >> System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum >> as the type, and I was trying to get the correct types back from the >> functions. That leaves MRI's Array to Mono's System.String[]. >> >> >> >> My current implementation is just a Ruby module wrapping calls to the Mono >> functions and returning the appropriate types. Most of it is working, though >> without being able to run tests easily, I'm testing from the command line. I >> still need to add conditionals to return nil if it's run on Windows. I >> suppose I also need to conditionally load the Mono.Posix.dll if it's on >> Windows, too. >> >> >> >> I'm about to finish the basic implementation and post to github. (I've >> already got what I finished last night up there.) I also asked Shri for a >> pairing session to make sure it's inline with what you're wanting. >> >> >> >> Cheers, >> >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> Can you give an example of where you need the conversions? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville >> *Sent:* Saturday, April 03, 2010 11:00 AM >> >> >> *To:* ironruby-core at rubyforge.org >> >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> >> No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. >> I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside >> that file is a to_clr_array method >> >> JD >> ------------------------------ >> >> *From: *Ryan Riley >> *Sent: *Saturday, April 03, 2010 12:13 AM >> *To: *ironruby-core at rubyforge.org >> *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> Where is documentation on converting between CLR and Ruby types? I can get >> RubyStrings, but what about Fixnum and Array? >> >> >> >> Thanks, >> >> >> Ryan Riley >> >> >> >> _______________________________________________ >> 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 >> >> >> _______________________________________________ >> 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 Shri.Borde at microsoft.com Mon Apr 5 01:29:40 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 5 Apr 2010 05:29:40 +0000 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> <8D314E30-CA8F-4B25-9676-16064DB70DA4@panesofglass.org> <6459203F8B1AF641995AE49D47FA51A7133E19ED@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: <6459203F8B1AF641995AE49D47FA51A7133E34F0@TK5EX14MBXC139.redmond.corp.microsoft.com> You should add new/updated specs to MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec so that all IronRuby devs will immediately start running the new/updated specs (after your changes get pulled into the IronRuby master repo). Jim will then periodically push these back to the RubySpec git repo. He also does pull periodically from the RubySpec repo into MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Sunday, April 04, 2010 7:33 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Nm... I figured out that dev.sh, despite the command to export to PATH was not. I'm working on rubyspecs now. Do I put these in the rubyspec git repo or in the IR copy (MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec)? Ryan On Sun, Apr 4, 2010 at 6:32 PM, Ryan Riley > wrote: Thanks, Shri. The problem is that I cannot run mspec at all. I have added it to my path, but I get a message saying thtat the command can't be found, even while in the bin folder. (And yes, the files are executable. :) I'll keep trying to determine what's wrong, but I would think this should just work. In other news, I was able to get master built on linux using rake compile. I've checked this into my copy of master on github, along with the etc.rb updates and Ivan's dev.sh script. I can write the additional test cases, but they should also work now on windows. I'm about to pull and try it myself. Cheers! Ryan Riley On Sun, Apr 4, 2010 at 10:55 AM, Shri Borde > wrote: If you run ?mspec ci library\etc?, that runs the real RubySpec specs. irtests does run a command like ?mspec ci lib? which will run the Etc RubySpec specs. http://wiki.github.com/ironruby/ironruby/rubyspec might be useful to you about how these scripts work. The RubySpecs are supposed to be working on all platforms. The specs use checks like ?platform_is :windows? or ?platform_is_not :windows? to have versions for all OSes. I am surprised that the current ones expect nil. You can fix them to have versions of the specs that work on Unixes. You can run the tests against MRI using ?mspec ?tr? to ensure that the spec you add is correct. If you can streamline the development process for Mono, that will be great so others have an easier time in the future? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Sunday, April 04, 2010 9:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? I've posted all the type fixes, but since I can't compile master, I'm hesitant to rebase. What should I do? Also, I still haven't gotten to the tests. Looks like the current ones all expect nil and assume Windows. Are those the real rubyspec specs? Sent from my iPhone On Apr 3, 2010, at 10:13 PM, Jim Deville > wrote: Also, to get a Int32 out of a UInt32, you should be able to use induced_from: >>> a = System::UInt32.new(1) => 1 (UInt32) >>> Fixnum.induced_from(a) => 1 Minor thing, but it will work. The fact that etc is a class is my bad. I was just getting enough implemented in order to pass some specs and use libraries that expected the nil on Windows. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Saturday, April 03, 2010 6:01 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? That is a bug. Make it a module. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 5:02 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Quick question: The etc.rb in Libs is a class, but the implementation in the Ruby Standard Library appears to be a module. Should I keep the class or use the module? Ryan Riley On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek > wrote: Nice work. A few suggestions: - You can move the file to C:\M0\Merlin\Main\Languages\Ruby\Libs. - Use System::Environment:: System::Environment.OSVersion.Platform to detect the OS (see e.g. Win32API.rb in Libs). - Rather than check for the platform in every method it might be better to define the methods differently on Windows. Something like: module Etc platform = System::PlatformID case System::Environment.OSVersion.Platform when platform.Win32S, platform.WinCE, platform.Win32Windows, platform.Win32NT: def self.endgrent; end def self.endpwent; end def self.getgrent; end ? else load_assembly 'Mono.Posix' def self.endgrent Mono::Unix::Native::Syscall.endgrent end def self.endpwent Mono::Unix::Native::Syscall.endpwent end def self.getgrent to_group(Mono::Unix::Native::Syscall.getgrent) end ? end end From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 03, 2010 3:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? I've posted an initial "complete" implementation, though I have only done basic testing. I have a couple of TODO's remaining and some cleanup, as well as writing actual specs. I still don't have tests running. You can find the module here: http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb Not the prettiest thing in the world, but I just wanted to get it working. I definitely still have work to do. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: Sure! Mono::Unix::Native::Passwd and Mono::Unix::Native::Group that are returned from the Mono::Unix::Native::Syscall functions have UInt32, System.String, and System.String[]. System.String is no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum as the type, and I was trying to get the correct types back from the functions. That leaves MRI's Array to Mono's System.String[]. My current implementation is just a Ruby module wrapping calls to the Mono functions and returning the appropriate types. Most of it is working, though without being able to run tests easily, I'm testing from the command line. I still need to add conditionals to return nil if it's run on Windows. I suppose I also need to conditionally load the Mono.Posix.dll if it's on Windows, too. I'm about to finish the basic implementation and post to github. (I've already got what I finished last night up there.) I also asked Shri for a pairing session to make sure it's inline with what you're wanting. Cheers, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek > wrote: Can you give an example of where you need the conversions? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Saturday, April 03, 2010 11:00 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside that file is a to_clr_array method JD ________________________________ From: Ryan Riley > Sent: Saturday, April 03, 2010 12:13 AM To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Anyone interested in implementing Etc module for Mono? Where is documentation on converting between CLR and Ruby types? I can get RubyStrings, but what about Fixnum and Array? Thanks, Ryan Riley _______________________________________________ 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 _______________________________________________ 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 ryan.riley at panesofglass.org Mon Apr 5 02:05:52 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 4 Apr 2010 23:05:52 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: <6459203F8B1AF641995AE49D47FA51A7133E34F0@TK5EX14MBXC139.redmond.corp.microsoft.com> References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945A0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> <8D314E30-CA8F-4B25-9676-16064DB70DA4@panesofglass.org> <6459203F8B1AF641995AE49D47FA51A7133E19ED@TK5EX14MBXC139.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133E34F0@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: Great. I've been working on cleaning up the file paths so that I can run the specs (and irtests). The problem seems to be just having '\\' hard-coded everywhere. I'm changing this to File.join("abc","xyz"). I've still got a few remaining, notably ir.cmd and irtests.rb. Then I'll get on the specs for Etc. Those really shouldn't be hard to write up as I've typed them over and over into the REPL the last few days. :) Cheers, Ryan On Sun, Apr 4, 2010 at 10:29 PM, Shri Borde wrote: > You should add new/updated specs to > MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspecso that all IronRuby devs will immediately start running the new/updated > specs (after your changes get pulled into the IronRuby master repo). Jim > will then periodically push these back to the RubySpec git repo. He also > does pull periodically from the RubySpec repo into > MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Sunday, April 04, 2010 7:33 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > Nm... I figured out that dev.sh, despite the command to export to PATH was > not. I'm working on rubyspecs now. Do I put these in the rubyspec git repo > or in the IR copy > (MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec)? > > > Ryan > > On Sun, Apr 4, 2010 at 6:32 PM, Ryan Riley > wrote: > > Thanks, Shri. The problem is that I cannot run mspec at all. I have added > it to my path, but I get a message saying thtat the command can't be found, > even while in the bin folder. (And yes, the files are executable. :) I'll > keep trying to determine what's wrong, but I would think this should just > work. > > > > In other news, I was able to get master built on linux using rake compile. > I've checked this into my copy of master on github, along with the etc.rb > updates and Ivan's dev.sh script. I can write the additional test cases, but > they should also work now on windows. I'm about to pull and try it myself. > > > > Cheers! > > > Ryan Riley > > > > On Sun, Apr 4, 2010 at 10:55 AM, Shri Borde > wrote: > > If you run ?mspec ci library\etc?, that runs the real RubySpec specs. > irtests does run a command like ?mspec ci lib? which will run the Etc > RubySpec specs. http://wiki.github.com/ironruby/ironruby/rubyspec might be > useful to you about how these scripts work. > > > > The RubySpecs are supposed to be working on all platforms. The specs use > checks like ?platform_is :windows? or ?platform_is_not :windows? to have > versions for all OSes. I am surprised that the current ones expect nil. You > can fix them to have versions of the specs that work on Unixes. You can run > the tests against MRI using ?mspec ?tr? to ensure that the spec you add is > correct. > > > > If you can streamline the development process for Mono, that will be great > so others have an easier time in the future? > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Sunday, April 04, 2010 9:54 AM > > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > I've posted all the type fixes, but since I can't compile master, I'm > hesitant to rebase. What should I do? Also, I still haven't gotten to the > tests. Looks like the current ones all expect nil and assume Windows. Are > those the real rubyspec specs? > > Sent from my iPhone > > > On Apr 3, 2010, at 10:13 PM, Jim Deville wrote: > > Also, to get a Int32 out of a UInt32, you should be able to use > induced_from: > > > > >>> a = System::UInt32.new(1) > > => 1 (UInt32) > > >>> Fixnum.induced_from(a) > > => 1 > > > > Minor thing, but it will work. > > > > The fact that etc is a class is my bad. I was just getting enough > implemented in order to pass some specs and use libraries that expected the > nil on Windows. > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Tomas Matousek > *Sent:* Saturday, April 03, 2010 6:01 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > That is a bug. Make it a module. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Saturday, April 03, 2010 5:02 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > Quick question: The etc.rb in Libs is a class, but the implementation in > the Ruby Standard Library appears to be a module. Should I keep the class or > use the module? > > > Ryan Riley > > On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > > Nice work. > > > > A few suggestions: > > > > - You can move the file to C:\M0\Merlin\Main\Languages\Ruby\Libs. > > - Use System::Environment:: System::Environment.OSVersion.Platform > to detect the OS (see e.g. Win32API.rb in Libs). > > - Rather than check for the platform in every method it might be > better to define the methods differently on Windows. Something like: > > > > module Etc > > platform = System::PlatformID > > case System::Environment.OSVersion.Platform > > when platform.Win32S, platform.WinCE, platform.Win32Windows, > platform.Win32NT: > > def self.endgrent; end > > def self.endpwent; end > > def self.getgrent; end > > ? > > else > > load_assembly 'Mono.Posix' > > > > def self.endgrent > > Mono::Unix::Native::Syscall.endgrent > > end > > > > def self.endpwent > > Mono::Unix::Native::Syscall.endpwent > > end > > > > > > > > > def self.getgrent > > to_group(Mono::Unix::Native::Syscall.getgrent) > > > > > > end > > > > ? > > end > > end > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Saturday, April 03, 2010 3:59 PM > > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > I've posted an initial "complete" implementation, though I have only done > basic testing. I have a couple of TODO's remaining and some cleanup, as well > as writing actual specs. I still don't have tests running. You can find the > module here: > http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb > > > > Not the prettiest thing in the world, but I just wanted to get it working. > I definitely still have work to do. > > > > Cheers, > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley > wrote: > > Sure! Mono::Unix::Native::Passwdand > Mono::Unix::Native::Groupthat are returned from the > Mono::Unix::Native::Syscallfunctions have UInt32, System.String, and System.String[]. System.String is > no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as > System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum > as the type, and I was trying to get the correct types back from the > functions. That leaves MRI's Array to Mono's System.String[]. > > > > My current implementation is just a Ruby module wrapping calls to the Mono > functions and returning the appropriate types. Most of it is working, though > without being able to run tests easily, I'm testing from the command line. I > still need to add conditionals to return nil if it's run on Windows. I > suppose I also need to conditionally load the Mono.Posix.dll if it's on > Windows, too. > > > > I'm about to finish the basic implementation and post to github. (I've > already got what I finished last night up there.) I also asked Shri for a > pairing session to make sure it's inline with what you're wanting. > > > > Cheers, > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > > Can you give an example of where you need the conversions? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville > *Sent:* Saturday, April 03, 2010 11:00 AM > > > *To:* ironruby-core at rubyforge.org > > *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > > > > No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. > I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside > that file is a to_clr_array method > > JD > ------------------------------ > > *From: *Ryan Riley > *Sent: *Saturday, April 03, 2010 12:13 AM > *To: *ironruby-core at rubyforge.org > *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc > module for Mono? > > Where is documentation on converting between CLR and Ruby types? I can get > RubyStrings, but what about Fixnum and Array? > > > > Thanks, > > > Ryan Riley > > > > _______________________________________________ > 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 > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zac at zacbrown.org Mon Apr 5 02:12:12 2010 From: zac at zacbrown.org (Zac Brown) Date: Sun, 04 Apr 2010 23:12:12 -0700 Subject: [Ironruby-core] Expectations for runs of irtests Message-ID: <4BB97F3C.4090002@zacbrown.org> Hi all, I've run irtests and I know failures expected. I am however unclear on how to determine whether or not I've got the expected results for my current build of IronRuby. Could someone shed some light on what I'm to expect? I presently get somewhere in the realm of ~22 failures from a quick skim of the irtest log I saved. Any light shed would be appreciated :). -Zac From Tomas.Matousek at microsoft.com Mon Apr 5 02:25:53 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 5 Apr 2010 06:25:53 +0000 Subject: [Ironruby-core] Expectations for runs of irtests In-Reply-To: <4BB97F3C.4090002@zacbrown.org> References: <4BB97F3C.4090002@zacbrown.org> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C49294BC0@TK5EX14MBXC124.redmond.corp.microsoft.com> There should be no failures. Could you send us the results? Could you reproduce the failures consistently? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Sunday, April 04, 2010 11:12 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Expectations for runs of irtests Hi all, I've run irtests and I know failures expected. I am however unclear on how to determine whether or not I've got the expected results for my current build of IronRuby. Could someone shed some light on what I'm to expect? I presently get somewhere in the realm of ~22 failures from a quick skim of the irtest log I saved. Any light shed would be appreciated :). -Zac _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at whiterabbitconsulting.eu Mon Apr 5 02:29:23 2010 From: ivan at whiterabbitconsulting.eu (Ivan Porto Carrero) Date: Mon, 5 Apr 2010 08:29:23 +0200 Subject: [Ironruby-core] Expectations for runs of irtests In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C49294BC0@TK5EX14MBXC124.redmond.corp.microsoft.com> References: <4BB97F3C.4090002@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C49294BC0@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: I can :) http://hudson.colliertech.org that's a windows build machine with en-us culture --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero - Mob: +32.486.787.582 Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Mon, Apr 5, 2010 at 8:25 AM, Tomas Matousek wrote: > There should be no failures. Could you send us the results? Could you > reproduce the failures consistently? > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown > Sent: Sunday, April 04, 2010 11:12 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Expectations for runs of irtests > > Hi all, > > I've run irtests and I know failures expected. I am however unclear on how > to determine whether or not I've got the expected results for my current > build of IronRuby. Could someone shed some light on what I'm to expect? I > presently get somewhere in the realm of ~22 failures from a quick skim of > the irtest log I saved. > > Any light shed would be appreciated :). > > -Zac > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Mon Apr 5 04:14:48 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Mon, 5 Apr 2010 10:14:48 +0200 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? Message-ID: Hi there, I'm trying to use Shoulda to test code (not in a Rails project) and I can't get it to work. It seems like it doesn't convert the should statements to test methods at all. Has anyone run into this before? Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Apr 5 09:30:16 2010 From: lists at ruby-forum.com (Shay Friedman) Date: Mon, 5 Apr 2010 15:30:16 +0200 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? In-Reply-To: References: Message-ID: <94b872205982f053762dba20aac80fa9@ruby-forum.com> I get the same problem with test-spec. Both frameworks enhance Test::Unit and they both don't work... Thanks, Shay. Shay Friedman wrote: > Hi there, > > I'm trying to use Shoulda to test code (not in a Rails project) and I > can't > get it to work. It seems like it doesn't convert the should statements > to > test methods at all. > Has anyone run into this before? > > Thanks, > Shay. -- Posted via http://www.ruby-forum.com/. From will at hotgazpacho.org Mon Apr 5 10:26:26 2010 From: will at hotgazpacho.org (Will Green) Date: Mon, 5 Apr 2010 10:26:26 -0400 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? In-Reply-To: <94b872205982f053762dba20aac80fa9@ruby-forum.com> References: <94b872205982f053762dba20aac80fa9@ruby-forum.com> Message-ID: Shoulda has a test suite. Have you run that to see what breaks? -- Will Green http://hotgazpacho.org/ On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman wrote: > I get the same problem with test-spec. Both frameworks enhance > Test::Unit and they both don't work... > > Thanks, > Shay. > > Shay Friedman wrote: > > Hi there, > > > > I'm trying to use Shoulda to test code (not in a Rails project) and I > > can't > > get it to work. It seems like it doesn't convert the should statements > > to > > test methods at all. > > Has anyone run into this before? > > > > Thanks, > > Shay. > > -- > 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 shay.friedman at gmail.com Mon Apr 5 10:32:52 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Mon, 5 Apr 2010 16:32:52 +0200 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? In-Reply-To: References: <94b872205982f053762dba20aac80fa9@ruby-forum.com> Message-ID: When I run it, it doesn't find any test cases (even though I have one)... So nothing breaks because nothing is run. Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Apr 5, 2010 at 4:26 PM, Will Green wrote: > Shoulda has a test suite. Have you run that to see what breaks? > -- > Will Green > http://hotgazpacho.org/ > > > > On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman wrote: > >> I get the same problem with test-spec. Both frameworks enhance >> Test::Unit and they both don't work... >> >> Thanks, >> Shay. >> >> Shay Friedman wrote: >> > Hi there, >> > >> > I'm trying to use Shoulda to test code (not in a Rails project) and I >> > can't >> > get it to work. It seems like it doesn't convert the should statements >> > to >> > test methods at all. >> > Has anyone run into this before? >> > >> > Thanks, >> > Shay. >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zac at zacbrown.org Mon Apr 5 10:41:44 2010 From: zac at zacbrown.org (Zac Brown) Date: Mon, 05 Apr 2010 07:41:44 -0700 Subject: [Ironruby-core] Expectations for runs of irtests In-Reply-To: References: <4BB97F3C.4090002@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C49294BC0@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: <4BB9F6A8.1050806@zacbrown.org> Hi, This first link is irtests run with the latest github changes: http://dl.dropbox.com/u/3527783/irtests-04042010-ruby18.log This link is after I made a couple changes in Builtins\FileOps.cs, Builtins\KernelOps.cs and the associated MSpec tests: http://dl.dropbox.com/u/3527783/irtests-04052010-ruby18.log This is a patch for the changes I made, in case its relevant to you guys: http://dl.dropbox.com/u/3527783/0001-Add-support-for-A-atime-in-Kernel-test-and-appropria.patch -Zac On 4/4/2010 11:29 PM, Ivan Porto Carrero wrote: > I can :) > > http://hudson.colliertech.org that's a windows build machine with > en-us culture > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero - Mob: +32.486.787.582 > Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > Microsoft IronRuby/C# MVP > > > On Mon, Apr 5, 2010 at 8:25 AM, Tomas Matousek > > > wrote: > > There should be no failures. Could you send us the results? Could > you reproduce the failures consistently? > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org > ] On Behalf Of Zac Brown > Sent: Sunday, April 04, 2010 11:12 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Expectations for runs of irtests > > Hi all, > > I've run irtests and I know failures expected. I am however > unclear on how to determine whether or not I've got the expected > results for my current build of IronRuby. Could someone shed some > light on what I'm to expect? I presently get somewhere in the > realm of ~22 failures from a quick skim of the irtest log I saved. > > Any light shed would be appreciated :). > > -Zac > _______________________________________________ > 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 ryan.riley at panesofglass.org Mon Apr 5 11:30:10 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 5 Apr 2010 08:30:10 -0700 Subject: [Ironruby-core] Anyone interested in implementing Etc module for Mono? In-Reply-To: References: <31BD916A7536A242870B0B4E3F9068D703DCC866@TK5EX14MBXC136.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C492945ED@TK5EX14MBXC124.redmond.corp.microsoft.com> <31BD916A7536A242870B0B4E3F9068D703DCCF1C@TK5EX14MBXC136.redmond.corp.microsoft.com> <8D314E30-CA8F-4B25-9676-16064DB70DA4@panesofglass.org> <6459203F8B1AF641995AE49D47FA51A7133E19ED@TK5EX14MBXC139.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A7133E34F0@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: By the way, if I've changed jobs since I signed my LCA, do I need to do it again for my current employer? Ryan On Sun, Apr 4, 2010 at 11:05 PM, Ryan Riley wrote: > Great. I've been working on cleaning up the file paths so that I can run > the specs (and irtests). The problem seems to be just having '\\' hard-coded > everywhere. I'm changing this to File.join("abc","xyz"). I've still got a > few remaining, notably ir.cmd and irtests.rb. Then I'll get on the specs for > Etc. Those really shouldn't be hard to write up as I've typed them over and > over into the REPL the last few days. :) > > Cheers, > > Ryan > > > On Sun, Apr 4, 2010 at 10:29 PM, Shri Borde wrote: > >> You should add new/updated specs to >> MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspecso that all IronRuby devs will immediately start running the new/updated >> specs (after your changes get pulled into the IronRuby master repo). Jim >> will then periodically push these back to the RubySpec git repo. He also >> does pull periodically from the RubySpec repo into >> MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec. >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Sunday, April 04, 2010 7:33 PM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> Nm... I figured out that dev.sh, despite the command to export to PATH was >> not. I'm working on rubyspecs now. Do I put these in the rubyspec git repo >> or in the IR copy >> (MERLIN_ROOT/../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec)? >> >> >> Ryan >> >> On Sun, Apr 4, 2010 at 6:32 PM, Ryan Riley >> wrote: >> >> Thanks, Shri. The problem is that I cannot run mspec at all. I have added >> it to my path, but I get a message saying thtat the command can't be found, >> even while in the bin folder. (And yes, the files are executable. :) I'll >> keep trying to determine what's wrong, but I would think this should just >> work. >> >> >> >> In other news, I was able to get master built on linux using rake compile. >> I've checked this into my copy of master on github, along with the etc.rb >> updates and Ivan's dev.sh script. I can write the additional test cases, but >> they should also work now on windows. I'm about to pull and try it myself. >> >> >> >> Cheers! >> >> >> Ryan Riley >> >> >> >> On Sun, Apr 4, 2010 at 10:55 AM, Shri Borde >> wrote: >> >> If you run ?mspec ci library\etc?, that runs the real RubySpec specs. >> irtests does run a command like ?mspec ci lib? which will run the Etc >> RubySpec specs. http://wiki.github.com/ironruby/ironruby/rubyspec might >> be useful to you about how these scripts work. >> >> >> >> The RubySpecs are supposed to be working on all platforms. The specs use >> checks like ?platform_is :windows? or ?platform_is_not :windows? to have >> versions for all OSes. I am surprised that the current ones expect nil. You >> can fix them to have versions of the specs that work on Unixes. You can run >> the tests against MRI using ?mspec ?tr? to ensure that the spec you add is >> correct. >> >> >> >> If you can streamline the development process for Mono, that will be great >> so others have an easier time in the future? >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Sunday, April 04, 2010 9:54 AM >> >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> I've posted all the type fixes, but since I can't compile master, I'm >> hesitant to rebase. What should I do? Also, I still haven't gotten to the >> tests. Looks like the current ones all expect nil and assume Windows. Are >> those the real rubyspec specs? >> >> Sent from my iPhone >> >> >> On Apr 3, 2010, at 10:13 PM, Jim Deville wrote: >> >> Also, to get a Int32 out of a UInt32, you should be able to use >> induced_from: >> >> >> >> >>> a = System::UInt32.new(1) >> >> => 1 (UInt32) >> >> >>> Fixnum.induced_from(a) >> >> => 1 >> >> >> >> Minor thing, but it will work. >> >> >> >> The fact that etc is a class is my bad. I was just getting enough >> implemented in order to pass some specs and use libraries that expected the >> nil on Windows. >> >> >> >> JD >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Tomas Matousek >> *Sent:* Saturday, April 03, 2010 6:01 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> That is a bug. Make it a module. >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Saturday, April 03, 2010 5:02 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> Quick question: The etc.rb in Libs is a class, but the implementation in >> the Ruby Standard Library appears to be a module. Should I keep the class or >> use the module? >> >> >> Ryan Riley >> >> On Sat, Apr 3, 2010 at 4:43 PM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> Nice work. >> >> >> >> A few suggestions: >> >> >> >> - You can move the file to >> C:\M0\Merlin\Main\Languages\Ruby\Libs. >> >> - Use System::Environment:: System::Environment.OSVersion.Platform >> to detect the OS (see e.g. Win32API.rb in Libs). >> >> - Rather than check for the platform in every method it might be >> better to define the methods differently on Windows. Something like: >> >> >> >> module Etc >> >> platform = System::PlatformID >> >> case System::Environment.OSVersion.Platform >> >> when platform.Win32S, platform.WinCE, platform.Win32Windows, >> platform.Win32NT: >> >> def self.endgrent; end >> >> def self.endpwent; end >> >> def self.getgrent; end >> >> ? >> >> else >> >> load_assembly 'Mono.Posix' >> >> >> >> def self.endgrent >> >> Mono::Unix::Native::Syscall.endgrent >> >> end >> >> >> >> def self.endpwent >> >> Mono::Unix::Native::Syscall.endpwent >> >> end >> >> >> >> >> >> >> >> >> def self.getgrent >> >> to_group(Mono::Unix::Native::Syscall.getgrent) >> >> >> >> >> >> end >> >> >> >> ? >> >> end >> >> end >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Saturday, April 03, 2010 3:59 PM >> >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> I've posted an initial "complete" implementation, though I have only done >> basic testing. I have a couple of TODO's remaining and some cleanup, as well >> as writing actual specs. I still don't have tests running. You can find the >> module here: >> http://github.com/panesofglass/ironruby/blob/linux/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/Etc/IronRuby.Libraries.Etc/etc.rb >> >> >> >> Not the prettiest thing in the world, but I just wanted to get it working. >> I definitely still have work to do. >> >> >> >> Cheers, >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> On Sat, Apr 3, 2010 at 2:30 PM, Ryan Riley >> wrote: >> >> Sure! Mono::Unix::Native::Passwdand >> Mono::Unix::Native::Groupthat are returned from the >> Mono::Unix::Native::Syscallfunctions have UInt32, System.String, and System.String[]. System.String is >> no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as >> System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum >> as the type, and I was trying to get the correct types back from the >> functions. That leaves MRI's Array to Mono's System.String[]. >> >> >> >> My current implementation is just a Ruby module wrapping calls to the Mono >> functions and returning the appropriate types. Most of it is working, though >> without being able to run tests easily, I'm testing from the command line. I >> still need to add conditionals to return nil if it's run on Windows. I >> suppose I also need to conditionally load the Mono.Posix.dll if it's on >> Windows, too. >> >> >> >> I'm about to finish the basic implementation and post to github. (I've >> already got what I finished last night up there.) I also asked Shri for a >> pairing session to make sure it's inline with what you're wanting. >> >> >> >> Cheers, >> >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> Can you give an example of where you need the conversions? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville >> *Sent:* Saturday, April 03, 2010 11:00 AM >> >> >> *To:* ironruby-core at rubyforge.org >> >> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> >> >> >> No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder. >> I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside >> that file is a to_clr_array method >> >> JD >> ------------------------------ >> >> *From: *Ryan Riley >> *Sent: *Saturday, April 03, 2010 12:13 AM >> *To: *ironruby-core at rubyforge.org >> *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc >> module for Mono? >> >> Where is documentation on converting between CLR and Ruby types? I can get >> RubyStrings, but what about Fixnum and Array? >> >> >> >> Thanks, >> >> >> Ryan Riley >> >> >> >> _______________________________________________ >> 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 >> >> >> _______________________________________________ >> 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 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Mon Apr 5 12:00:52 2010 From: will at hotgazpacho.org (Will Green) Date: Mon, 5 Apr 2010 12:00:52 -0400 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? In-Reply-To: References: <94b872205982f053762dba20aac80fa9@ruby-forum.com> Message-ID: This what I did: cd %HOME%\dev ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc --no-ri git clone http://github.com/thoughtbot/shoulda.git cd shoulda ir -S rake test It appears to pass. Results are here: http://gist.github.com/356509 -- Will Green http://hotgazpacho.org/ On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman wrote: > When I run it, it doesn't find any test cases (even though I have one)... > So nothing breaks because nothing is run. > > Thanks, > Shay. > -------------------------------------------------------- > Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby > Unleashed | Sela Technology Center > Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay > > > On Mon, Apr 5, 2010 at 4:26 PM, Will Green wrote: > >> Shoulda has a test suite. Have you run that to see what breaks? >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> >> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman wrote: >> >>> I get the same problem with test-spec. Both frameworks enhance >>> Test::Unit and they both don't work... >>> >>> Thanks, >>> Shay. >>> >>> Shay Friedman wrote: >>> > Hi there, >>> > >>> > I'm trying to use Shoulda to test code (not in a Rails project) and I >>> > can't >>> > get it to work. It seems like it doesn't convert the should statements >>> > to >>> > test methods at all. >>> > Has anyone run into this before? >>> > >>> > Thanks, >>> > Shay. >>> >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Apr 5 13:01:20 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 5 Apr 2010 17:01:20 +0000 Subject: [Ironruby-core] Expectations for runs of irtests In-Reply-To: <4BB9F6A8.1050806@zacbrown.org> References: <4BB97F3C.4090002@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C49294BC0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4BB9F6A8.1050806@zacbrown.org> Message-ID: <31BD916A7536A242870B0B4E3F9068D703DCDC7E@TK5EX14MBXC136.redmond.corp.microsoft.com> For the 6k failures in netinterop, please try the following: 1) Setup the environment (dev.bat or dev.ps1 or whatever :)) 2) rbt 3) cd interop 4) ..\Scripts\csc This should recompile the fixtures so that they are linked against the the unsigned Git binaries instead of the delay-signed Merlin binaries. I'll be fixing this during our cleanup period next month. For the ARGF failures.... What is the output of "git config core.autocrlf"? It should be true, but irtests should also be checking that. I'll look into it and let you know. I'm not sure why you are getting the other errors. JD > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Zac Brown > Sent: Monday, April 05, 2010 7:42 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Expectations for runs of irtests > > Hi, > > This first link is irtests run with the latest github changes: > http://dl.dropbox.com/u/3527783/irtests-04042010-ruby18.log > > This link is after I made a couple changes in Builtins\FileOps.cs, > Builtins\KernelOps.cs and the associated MSpec tests: > http://dl.dropbox.com/u/3527783/irtests-04052010-ruby18.log > > This is a patch for the changes I made, in case its relevant to you guys: > http://dl.dropbox.com/u/3527783/0001-Add-support-for-A-atime-in-Kernel- > test-and-appropria.patch > > -Zac > > On 4/4/2010 11:29 PM, Ivan Porto Carrero wrote: > > I can :) > > > > http://hudson.colliertech.org that's a windows build machine with > > en-us culture > > > > --- > > Met vriendelijke groeten - Best regards - Salutations > > Ivan Porto Carrero - Mob: +32.486.787.582 > > Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > > Twitter: http://twitter.com/casualjim > > Author of IronRuby in Action (http://manning.com/carrero) > > Microsoft IronRuby/C# MVP > > > > > > On Mon, Apr 5, 2010 at 8:25 AM, Tomas Matousek > > > > > wrote: > > > > There should be no failures. Could you send us the results? Could > > you reproduce the failures consistently? > > > > Tomas > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org > > > > [mailto:ironruby-core-bounces at rubyforge.org > > ] On Behalf Of Zac > Brown > > Sent: Sunday, April 04, 2010 11:12 PM > > To: ironruby-core at rubyforge.org > > Subject: [Ironruby-core] Expectations for runs of irtests > > > > Hi all, > > > > I've run irtests and I know failures expected. I am however > > unclear on how to determine whether or not I've got the expected > > results for my current build of IronRuby. Could someone shed some > > light on what I'm to expect? I presently get somewhere in the > > realm of ~22 failures from a quick skim of the irtest log I saved. > > > > Any light shed would be appreciated :). > > > > -Zac > > _______________________________________________ > > 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 > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From zac at zacbrown.org Mon Apr 5 13:18:56 2010 From: zac at zacbrown.org (Zac Brown) Date: Mon, 05 Apr 2010 10:18:56 -0700 Subject: [Ironruby-core] Expectations for runs of irtests In-Reply-To: <31BD916A7536A242870B0B4E3F9068D703DCDC7E@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <4BB97F3C.4090002@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C49294BC0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4BB9F6A8.1050806@zacbrown.org> <31BD916A7536A242870B0B4E3F9068D703DCDC7E@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: <4BBA1B80.2000803@zacbrown.org> Hi, Just fyi, it doesn't appear that 'rbt' is an alias setup by dev.bat yet. I figured it out though that you meant Ruby\Tests. When I run the "..\Scripts\csc" in Ruby\Tests\Interop I get the following: E:\code\ironruby.git\Merlin\Main\Languages\Ruby\Tests\Interop>..\Scripts\csc Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) Microsoft Corporation. All rights reserved. Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) Microsoft Corporation. All rights reserved. Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) Microsoft Corporation. All rights reserved. method\fixtures\classes.rb(1040,43): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) method\fixtures\classes.rb(1076,71): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) method\fixtures\classes.rb(1080,74): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) method\fixtures\classes.rb(1115,46): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) method\fixtures\classes.rb(1120,45): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) method\fixtures\classes.rb(1229,36): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) method\fixtures\classes.rb(1265,64): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) method\fixtures\classes.rb(1269,67): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) method\fixtures\classes.rb(1304,39): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) method\fixtures\classes.rb(1309,38): error CS0104: 'Func' is an ambiguous reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of symbol related to previous error) e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: (Location of symbol related to previous error) E:\code\ironruby.git\Merlin\Main\Languages\Ruby\Tests\Interop> Is that the expected output? Setting the irtests to run again now. -Zac On 4/5/2010 10:01 AM, Jim Deville wrote: > For the 6k failures in netinterop, please try the following: > 1) Setup the environment (dev.bat or dev.ps1 or whatever :)) > 2) rbt > 3) cd interop > 4) ..\Scripts\csc > > This should recompile the fixtures so that they are linked against the the unsigned Git binaries instead of the delay-signed Merlin binaries. I'll be fixing this during our cleanup period next month. > > For the ARGF failures.... What is the output of "git config core.autocrlf"? It should be true, but irtests should also be checking that. I'll look into it and let you know. I'm not sure why you are getting the other errors. > > JD > > >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >> bounces at rubyforge.org] On Behalf Of Zac Brown >> Sent: Monday, April 05, 2010 7:42 AM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Expectations for runs of irtests >> >> Hi, >> >> This first link is irtests run with the latest github changes: >> http://dl.dropbox.com/u/3527783/irtests-04042010-ruby18.log >> >> This link is after I made a couple changes in Builtins\FileOps.cs, >> Builtins\KernelOps.cs and the associated MSpec tests: >> http://dl.dropbox.com/u/3527783/irtests-04052010-ruby18.log >> >> This is a patch for the changes I made, in case its relevant to you guys: >> http://dl.dropbox.com/u/3527783/0001-Add-support-for-A-atime-in-Kernel- >> test-and-appropria.patch >> >> -Zac >> >> On 4/4/2010 11:29 PM, Ivan Porto Carrero wrote: >> >>> I can :) >>> >>> http://hudson.colliertech.org that's a windows build machine with >>> en-us culture >>> >>> --- >>> Met vriendelijke groeten - Best regards - Salutations >>> Ivan Porto Carrero - Mob: +32.486.787.582 >>> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz >>> Twitter: http://twitter.com/casualjim >>> Author of IronRuby in Action (http://manning.com/carrero) >>> Microsoft IronRuby/C# MVP >>> >>> >>> On Mon, Apr 5, 2010 at 8:25 AM, Tomas Matousek >>> >> >> > >> >>> wrote: >>> >>> There should be no failures. Could you send us the results? Could >>> you reproduce the failures consistently? >>> >>> Tomas >>> >>> -----Original Message----- >>> From: ironruby-core-bounces at rubyforge.org >>> >>> [mailto:ironruby-core-bounces at rubyforge.org >>> ] On Behalf Of Zac >>> >> Brown >> >>> Sent: Sunday, April 04, 2010 11:12 PM >>> To: ironruby-core at rubyforge.org >>> Subject: [Ironruby-core] Expectations for runs of irtests >>> >>> Hi all, >>> >>> I've run irtests and I know failures expected. I am however >>> unclear on how to determine whether or not I've got the expected >>> results for my current build of IronRuby. Could someone shed some >>> light on what I'm to expect? I presently get somewhere in the >>> realm of ~22 failures from a quick skim of the irtest log I saved. >>> >>> Any light shed would be appreciated :). >>> >>> -Zac >>> _______________________________________________ >>> 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 >>> >>> >> _______________________________________________ >> 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 jdeville at microsoft.com Mon Apr 5 14:19:35 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 5 Apr 2010 18:19:35 +0000 Subject: [Ironruby-core] Expectations for runs of irtests In-Reply-To: <4BBA1B80.2000803@zacbrown.org> References: <4BB97F3C.4090002@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C49294BC0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4BB9F6A8.1050806@zacbrown.org> <31BD916A7536A242870B0B4E3F9068D703DCDC7E@TK5EX14MBXC136.redmond.corp.microsoft.com> <4BBA1B80.2000803@zacbrown.org> Message-ID: <31BD916A7536A242870B0B4E3F9068D703DCDF98@TK5EX14MBXC136.redmond.corp.microsoft.com> Yes and no. It is expected that some of the tests will have issues on CLR4, but I thought Tomas had fixed most of them. Either way, pull the latest from the v1.0 branch, and those binaries should work. JD > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Zac Brown > Sent: Monday, April 05, 2010 10:19 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Expectations for runs of irtests > > Hi, > > Just fyi, it doesn't appear that 'rbt' is an alias setup by dev.bat yet. > I figured it out though that you meant Ruby\Tests. > > When I run the "..\Scripts\csc" in Ruby\Tests\Interop I get the following: > > E:\code\ironruby.git\Merlin\Main\Languages\Ruby\Tests\Interop>..\Scripts > \csc > Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) > Microsoft Corporation. All rights reserved. > > Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) > Microsoft Corporation. All rights reserved. > > Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) > Microsoft Corporation. All rights reserved. > > method\fixtures\classes.rb(1040,43): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > method\fixtures\classes.rb(1076,71): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and > 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > method\fixtures\classes.rb(1080,74): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and > 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > method\fixtures\classes.rb(1115,46): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and > 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > method\fixtures\classes.rb(1120,45): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and > 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > method\fixtures\classes.rb(1229,36): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > method\fixtures\classes.rb(1265,64): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and > 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > method\fixtures\classes.rb(1269,67): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and > 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > method\fixtures\classes.rb(1304,39): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and > 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > method\fixtures\classes.rb(1309,38): error CS0104: 'Func' is an ambiguous > reference between 'System.Func' and > 'Microsoft.Scripting.Utils.Func' > c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of > symbol related to previous error) > e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: > (Location of symbol related to previous error) > E:\code\ironruby.git\Merlin\Main\Languages\Ruby\Tests\Interop> > > Is that the expected output? > > Setting the irtests to run again now. > > -Zac > > On 4/5/2010 10:01 AM, Jim Deville wrote: > > For the 6k failures in netinterop, please try the following: > > 1) Setup the environment (dev.bat or dev.ps1 or whatever :)) > > 2) rbt > > 3) cd interop > > 4) ..\Scripts\csc > > > > This should recompile the fixtures so that they are linked against the the > unsigned Git binaries instead of the delay-signed Merlin binaries. I'll be fixing > this during our cleanup period next month. > > > > For the ARGF failures.... What is the output of "git config core.autocrlf"? It > should be true, but irtests should also be checking that. I'll look into it and let > you know. I'm not sure why you are getting the other errors. > > > > JD > > > > > >> -----Original Message----- > >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > >> bounces at rubyforge.org] On Behalf Of Zac Brown > >> Sent: Monday, April 05, 2010 7:42 AM > >> To: ironruby-core at rubyforge.org > >> Subject: Re: [Ironruby-core] Expectations for runs of irtests > >> > >> Hi, > >> > >> This first link is irtests run with the latest github changes: > >> http://dl.dropbox.com/u/3527783/irtests-04042010-ruby18.log > >> > >> This link is after I made a couple changes in Builtins\FileOps.cs, > >> Builtins\KernelOps.cs and the associated MSpec tests: > >> http://dl.dropbox.com/u/3527783/irtests-04052010-ruby18.log > >> > >> This is a patch for the changes I made, in case its relevant to you guys: > >> http://dl.dropbox.com/u/3527783/0001-Add-support-for-A-atime-in- > Kerne > >> l- > >> test-and-appropria.patch > >> > >> -Zac > >> > >> On 4/4/2010 11:29 PM, Ivan Porto Carrero wrote: > >> > >>> I can :) > >>> > >>> http://hudson.colliertech.org that's a windows build machine with > >>> en-us culture > >>> > >>> --- > >>> Met vriendelijke groeten - Best regards - Salutations Ivan Porto > >>> Carrero - Mob: +32.486.787.582 > >>> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > >>> Twitter: http://twitter.com/casualjim Author of IronRuby in Action > >>> (http://manning.com/carrero) Microsoft IronRuby/C# MVP > >>> > >>> > >>> On Mon, Apr 5, 2010 at 8:25 AM, Tomas Matousek > >>> >>> > >> > > >> > >>> wrote: > >>> > >>> There should be no failures. Could you send us the results? Could > >>> you reproduce the failures consistently? > >>> > >>> Tomas > >>> > >>> -----Original Message----- > >>> From: ironruby-core-bounces at rubyforge.org > >>> > >>> [mailto:ironruby-core-bounces at rubyforge.org > >>> ] On Behalf Of Zac > >>> > >> Brown > >> > >>> Sent: Sunday, April 04, 2010 11:12 PM > >>> To: ironruby-core at rubyforge.org core at rubyforge.org> > >>> Subject: [Ironruby-core] Expectations for runs of irtests > >>> > >>> Hi all, > >>> > >>> I've run irtests and I know failures expected. I am however > >>> unclear on how to determine whether or not I've got the expected > >>> results for my current build of IronRuby. Could someone shed some > >>> light on what I'm to expect? I presently get somewhere in the > >>> realm of ~22 failures from a quick skim of the irtest log I saved. > >>> > >>> Any light shed would be appreciated :). > >>> > >>> -Zac > >>> _______________________________________________ > >>> 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 > >>> > >>> > >> _______________________________________________ > >> 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 shay.friedman at gmail.com Tue Apr 6 02:54:56 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Tue, 6 Apr 2010 08:54:56 +0200 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? In-Reply-To: References: <94b872205982f053762dba20aac80fa9@ruby-forum.com> Message-ID: This doesn't work for me: require 'rubygems' require 'shoulda' class MyTest < Test::Unit::TestCase context "something" do should "be true" do assert true end end end -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Apr 5, 2010 at 6:00 PM, Will Green wrote: > This what I did: > cd %HOME%\dev > ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc > --no-ri > git clone http://github.com/thoughtbot/shoulda.git > cd shoulda > ir -S rake test > > It appears to pass. Results are here: http://gist.github.com/356509 > > -- > Will Green > http://hotgazpacho.org/ > > > On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman wrote: > >> When I run it, it doesn't find any test cases (even though I have one)... >> So nothing breaks because nothing is run. >> >> Thanks, >> Shay. >> -------------------------------------------------------- >> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >> Unleashed | Sela Technology Center >> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >> >> >> On Mon, Apr 5, 2010 at 4:26 PM, Will Green wrote: >> >>> Shoulda has a test suite. Have you run that to see what breaks? >>> -- >>> Will Green >>> http://hotgazpacho.org/ >>> >>> >>> >>> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman wrote: >>> >>>> I get the same problem with test-spec. Both frameworks enhance >>>> Test::Unit and they both don't work... >>>> >>>> Thanks, >>>> Shay. >>>> >>>> Shay Friedman wrote: >>>> > Hi there, >>>> > >>>> > I'm trying to use Shoulda to test code (not in a Rails project) and I >>>> > can't >>>> > get it to work. It seems like it doesn't convert the should statements >>>> > to >>>> > test methods at all. >>>> > Has anyone run into this before? >>>> > >>>> > Thanks, >>>> > Shay. >>>> >>>> -- >>>> Posted via http://www.ruby-forum.com/. >>>> _______________________________________________ >>>> 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 >> >> > > _______________________________________________ > 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.Schementi at microsoft.com Tue Apr 6 03:30:28 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 6 Apr 2010 07:30:28 +0000 Subject: [Ironruby-core] ruby soc In-Reply-To: <505e3f1badb369e618ae3d8af0cb3a5c@ruby-forum.com> References: <505e3f1badb369e618ae3d8af0cb3a5c@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921731DB06@TK5EX14MBXC136.redmond.corp.microsoft.com> Good idea; we're a little late on getting this going, but if people want to help with ideas, feel free to update the Contribution Ideas page: http://wiki.github.com/ironruby/ironruby/contribution-ideas. It's sparse at the moment, so any ideas would be awesome. I can probably work on it a bit shortly, but please don't wait for me; if anyone has ideas for future features or other wacky ideas, libraries they want supported, or just fixing a pain-point, put it on the wiki. ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Roger Pack > Sent: Monday, March 29, 2010 9:53 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] ruby soc > > Might be worthwhile for IronRuby to put together a project list wiki and add > it to the ruby Soc list (http://rubysoc.org/students). > > The one I'd like to see would be "Ruby in the server and the client using > silverlight" (guide) or work on it or what not. > > Cheers and good luck. > -rp > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From will at hotgazpacho.org Tue Apr 6 09:16:58 2010 From: will at hotgazpacho.org (Will Green) Date: Tue, 6 Apr 2010 09:16:58 -0400 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? In-Reply-To: References: <94b872205982f053762dba20aac80fa9@ruby-forum.com> Message-ID: I'll have to try that later. Have you run the shoulda tests on MRI? Does it report a different number of Tests and Assertions? -- Will Green http://hotgazpacho.org/ On Tue, Apr 6, 2010 at 2:54 AM, Shay Friedman wrote: > This doesn't work for me: > > require 'rubygems' > require 'shoulda' > > class MyTest < Test::Unit::TestCase > context "something" do > should "be true" do > assert true > end > end > end > -------------------------------------------------------- > Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby > Unleashed | Sela Technology Center > Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay > > > On Mon, Apr 5, 2010 at 6:00 PM, Will Green wrote: > >> This what I did: >> cd %HOME%\dev >> ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc >> --no-ri >> git clone http://github.com/thoughtbot/shoulda.git >> cd shoulda >> ir -S rake test >> >> It appears to pass. Results are here: http://gist.github.com/356509 >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman wrote: >> >>> When I run it, it doesn't find any test cases (even though I have one)... >>> So nothing breaks because nothing is run. >>> >>> Thanks, >>> Shay. >>> -------------------------------------------------------- >>> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >>> Unleashed | Sela Technology Center >>> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >>> >>> >>> On Mon, Apr 5, 2010 at 4:26 PM, Will Green wrote: >>> >>>> Shoulda has a test suite. Have you run that to see what breaks? >>>> -- >>>> Will Green >>>> http://hotgazpacho.org/ >>>> >>>> >>>> >>>> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman wrote: >>>> >>>>> I get the same problem with test-spec. Both frameworks enhance >>>>> Test::Unit and they both don't work... >>>>> >>>>> Thanks, >>>>> Shay. >>>>> >>>>> Shay Friedman wrote: >>>>> > Hi there, >>>>> > >>>>> > I'm trying to use Shoulda to test code (not in a Rails project) and I >>>>> > can't >>>>> > get it to work. It seems like it doesn't convert the should >>>>> statements >>>>> > to >>>>> > test methods at all. >>>>> > Has anyone run into this before? >>>>> > >>>>> > Thanks, >>>>> > Shay. >>>>> >>>>> -- >>>>> Posted via http://www.ruby-forum.com/. >>>>> _______________________________________________ >>>>> 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 >>> >>> >> >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Tue Apr 6 09:36:39 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Tue, 6 Apr 2010 15:36:39 +0200 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? In-Reply-To: References: <94b872205982f053762dba20aac80fa9@ruby-forum.com> Message-ID: No, I don't have MRI installed on this computer (I'm loyal to my IronRuby! :-) )... If someone can try it, please do. Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Apr 6, 2010 at 3:16 PM, Will Green wrote: > I'll have to try that later. > > Have you run the shoulda tests on MRI? Does it report a different number of > Tests and Assertions? > > -- > Will Green > http://hotgazpacho.org/ > > > On Tue, Apr 6, 2010 at 2:54 AM, Shay Friedman wrote: > >> This doesn't work for me: >> >> require 'rubygems' >> require 'shoulda' >> >> class MyTest < Test::Unit::TestCase >> context "something" do >> should "be true" do >> assert true >> end >> end >> end >> -------------------------------------------------------- >> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >> Unleashed | Sela Technology Center >> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >> >> >> On Mon, Apr 5, 2010 at 6:00 PM, Will Green wrote: >> >>> This what I did: >>> cd %HOME%\dev >>> ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc >>> --no-ri >>> git clone http://github.com/thoughtbot/shoulda.git >>> cd shoulda >>> ir -S rake test >>> >>> It appears to pass. Results are here: http://gist.github.com/356509 >>> >>> -- >>> Will Green >>> http://hotgazpacho.org/ >>> >>> >>> On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman wrote: >>> >>>> When I run it, it doesn't find any test cases (even though I have >>>> one)... >>>> So nothing breaks because nothing is run. >>>> >>>> Thanks, >>>> Shay. >>>> -------------------------------------------------------- >>>> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >>>> Unleashed | Sela Technology Center >>>> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >>>> >>>> >>>> On Mon, Apr 5, 2010 at 4:26 PM, Will Green wrote: >>>> >>>>> Shoulda has a test suite. Have you run that to see what breaks? >>>>> -- >>>>> Will Green >>>>> http://hotgazpacho.org/ >>>>> >>>>> >>>>> >>>>> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman wrote: >>>>> >>>>>> I get the same problem with test-spec. Both frameworks enhance >>>>>> Test::Unit and they both don't work... >>>>>> >>>>>> Thanks, >>>>>> Shay. >>>>>> >>>>>> Shay Friedman wrote: >>>>>> > Hi there, >>>>>> > >>>>>> > I'm trying to use Shoulda to test code (not in a Rails project) and >>>>>> I >>>>>> > can't >>>>>> > get it to work. It seems like it doesn't convert the should >>>>>> statements >>>>>> > to >>>>>> > test methods at all. >>>>>> > Has anyone run into this before? >>>>>> > >>>>>> > Thanks, >>>>>> > Shay. >>>>>> >>>>>> -- >>>>>> Posted via http://www.ruby-forum.com/. >>>>>> _______________________________________________ >>>>>> 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 >>>> >>>> >>> >>> _______________________________________________ >>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Tue Apr 6 11:10:14 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Tue, 6 Apr 2010 17:10:14 +0200 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? In-Reply-To: References: <94b872205982f053762dba20aac80fa9@ruby-forum.com> Message-ID: OK, I installed MRI and it worked. So it's a problem with IronRuby... -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Apr 6, 2010 at 3:36 PM, Shay Friedman wrote: > No, I don't have MRI installed on this computer (I'm loyal to my IronRuby! > :-) )... If someone can try it, please do. > > Thanks, > Shay. > -------------------------------------------------------- > Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby > Unleashed | Sela Technology Center > Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay > > > On Tue, Apr 6, 2010 at 3:16 PM, Will Green wrote: > >> I'll have to try that later. >> >> Have you run the shoulda tests on MRI? Does it report a different number >> of Tests and Assertions? >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> On Tue, Apr 6, 2010 at 2:54 AM, Shay Friedman wrote: >> >>> This doesn't work for me: >>> >>> require 'rubygems' >>> require 'shoulda' >>> >>> class MyTest < Test::Unit::TestCase >>> context "something" do >>> should "be true" do >>> assert true >>> end >>> end >>> end >>> -------------------------------------------------------- >>> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >>> Unleashed | Sela Technology Center >>> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >>> >>> >>> On Mon, Apr 5, 2010 at 6:00 PM, Will Green wrote: >>> >>>> This what I did: >>>> cd %HOME%\dev >>>> ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc >>>> --no-ri >>>> git clone http://github.com/thoughtbot/shoulda.git >>>> cd shoulda >>>> ir -S rake test >>>> >>>> It appears to pass. Results are here: http://gist.github.com/356509 >>>> >>>> -- >>>> Will Green >>>> http://hotgazpacho.org/ >>>> >>>> >>>> On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman >>> > wrote: >>>> >>>>> When I run it, it doesn't find any test cases (even though I have >>>>> one)... >>>>> So nothing breaks because nothing is run. >>>>> >>>>> Thanks, >>>>> Shay. >>>>> -------------------------------------------------------- >>>>> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >>>>> Unleashed | Sela Technology Center >>>>> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >>>>> >>>>> >>>>> On Mon, Apr 5, 2010 at 4:26 PM, Will Green wrote: >>>>> >>>>>> Shoulda has a test suite. Have you run that to see what breaks? >>>>>> -- >>>>>> Will Green >>>>>> http://hotgazpacho.org/ >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman wrote: >>>>>> >>>>>>> I get the same problem with test-spec. Both frameworks enhance >>>>>>> Test::Unit and they both don't work... >>>>>>> >>>>>>> Thanks, >>>>>>> Shay. >>>>>>> >>>>>>> Shay Friedman wrote: >>>>>>> > Hi there, >>>>>>> > >>>>>>> > I'm trying to use Shoulda to test code (not in a Rails project) and >>>>>>> I >>>>>>> > can't >>>>>>> > get it to work. It seems like it doesn't convert the should >>>>>>> statements >>>>>>> > to >>>>>>> > test methods at all. >>>>>>> > Has anyone run into this before? >>>>>>> > >>>>>>> > Thanks, >>>>>>> > Shay. >>>>>>> >>>>>>> -- >>>>>>> Posted via http://www.ruby-forum.com/. >>>>>>> _______________________________________________ >>>>>>> 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 >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> 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 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Apr 6 12:11:32 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 6 Apr 2010 16:11:32 +0000 Subject: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? In-Reply-To: References: <94b872205982f053762dba20aac80fa9@ruby-forum.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C492955F0@TK5EX14MBXC124.redmond.corp.microsoft.com> Filed a bug: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4327. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Tuesday, April 06, 2010 8:10 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? OK, I installed MRI and it worked. So it's a problem with IronRuby... -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Apr 6, 2010 at 3:36 PM, Shay Friedman > wrote: No, I don't have MRI installed on this computer (I'm loyal to my IronRuby! :-) )... If someone can try it, please do. Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Apr 6, 2010 at 3:16 PM, Will Green > wrote: I'll have to try that later. Have you run the shoulda tests on MRI? Does it report a different number of Tests and Assertions? -- Will Green http://hotgazpacho.org/ On Tue, Apr 6, 2010 at 2:54 AM, Shay Friedman > wrote: This doesn't work for me: require 'rubygems' require 'shoulda' class MyTest < Test::Unit::TestCase context "something" do should "be true" do assert true end end end -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Apr 5, 2010 at 6:00 PM, Will Green > wrote: This what I did: cd %HOME%\dev ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc --no-ri git clone http://github.com/thoughtbot/shoulda.git cd shoulda ir -S rake test It appears to pass. Results are here: http://gist.github.com/356509 -- Will Green http://hotgazpacho.org/ On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman > wrote: When I run it, it doesn't find any test cases (even though I have one)... So nothing breaks because nothing is run. Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Apr 5, 2010 at 4:26 PM, Will Green > wrote: Shoulda has a test suite. Have you run that to see what breaks? -- Will Green http://hotgazpacho.org/ On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman > wrote: I get the same problem with test-spec. Both frameworks enhance Test::Unit and they both don't work... Thanks, Shay. Shay Friedman wrote: > Hi there, > > I'm trying to use Shoulda to test code (not in a Rails project) and I > can't > get it to work. It seems like it doesn't convert the should statements > to > test methods at all. > Has anyone run into this before? > > Thanks, > Shay. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From zac at zacbrown.org Tue Apr 6 22:04:36 2010 From: zac at zacbrown.org (Zac Brown) Date: Tue, 06 Apr 2010 19:04:36 -0700 Subject: [Ironruby-core] Expectations for runs of irtests In-Reply-To: <31BD916A7536A242870B0B4E3F9068D703DCDF98@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <4BB97F3C.4090002@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C49294BC0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4BB9F6A8.1050806@zacbrown.org> <31BD916A7536A242870B0B4E3F9068D703DCDC7E@TK5EX14MBXC136.redmond.corp.microsoft.com> <4BBA1B80.2000803@zacbrown.org> <31BD916A7536A242870B0B4E3F9068D703DCDF98@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: <4BBBE834.2020307@zacbrown.org> So I pulled the latest changes from v1.0 HEAD and still get the compile errors in Tests\Interop. Going to run irtests again tonight and see what I get. -Zac On 4/5/2010 11:19 AM, Jim Deville wrote: > Yes and no. It is expected that some of the tests will have issues on CLR4, but I thought Tomas had fixed most of them. Either way, pull the latest from the v1.0 branch, and those binaries should work. > > JD > > > >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >> bounces at rubyforge.org] On Behalf Of Zac Brown >> Sent: Monday, April 05, 2010 10:19 AM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Expectations for runs of irtests >> >> Hi, >> >> Just fyi, it doesn't appear that 'rbt' is an alias setup by dev.bat yet. >> I figured it out though that you meant Ruby\Tests. >> >> When I run the "..\Scripts\csc" in Ruby\Tests\Interop I get the following: >> >> E:\code\ironruby.git\Merlin\Main\Languages\Ruby\Tests\Interop>..\Scripts >> \csc >> Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) >> Microsoft Corporation. All rights reserved. >> >> Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) >> Microsoft Corporation. All rights reserved. >> >> Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) >> Microsoft Corporation. All rights reserved. >> >> method\fixtures\classes.rb(1040,43): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1076,71): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1080,74): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1115,46): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1120,45): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1229,36): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1265,64): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1269,67): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1304,39): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1309,38): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> E:\code\ironruby.git\Merlin\Main\Languages\Ruby\Tests\Interop> >> >> Is that the expected output? >> >> Setting the irtests to run again now. >> >> -Zac >> >> On 4/5/2010 10:01 AM, Jim Deville wrote: >> >>> For the 6k failures in netinterop, please try the following: >>> 1) Setup the environment (dev.bat or dev.ps1 or whatever :)) >>> 2) rbt >>> 3) cd interop >>> 4) ..\Scripts\csc >>> >>> This should recompile the fixtures so that they are linked against the the >>> >> unsigned Git binaries instead of the delay-signed Merlin binaries. I'll be fixing >> this during our cleanup period next month. >> >>> For the ARGF failures.... What is the output of "git config core.autocrlf"? It >>> >> should be true, but irtests should also be checking that. I'll look into it and let >> you know. I'm not sure why you are getting the other errors. >> >>> JD >>> >>> >>> >>>> -----Original Message----- >>>> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >>>> bounces at rubyforge.org] On Behalf Of Zac Brown >>>> Sent: Monday, April 05, 2010 7:42 AM >>>> To: ironruby-core at rubyforge.org >>>> Subject: Re: [Ironruby-core] Expectations for runs of irtests >>>> >>>> Hi, >>>> >>>> This first link is irtests run with the latest github changes: >>>> http://dl.dropbox.com/u/3527783/irtests-04042010-ruby18.log >>>> >>>> This link is after I made a couple changes in Builtins\FileOps.cs, >>>> Builtins\KernelOps.cs and the associated MSpec tests: >>>> http://dl.dropbox.com/u/3527783/irtests-04052010-ruby18.log >>>> >>>> This is a patch for the changes I made, in case its relevant to you guys: >>>> http://dl.dropbox.com/u/3527783/0001-Add-support-for-A-atime-in- >>>> >> Kerne >> >>>> l- >>>> test-and-appropria.patch >>>> >>>> -Zac >>>> >>>> On 4/4/2010 11:29 PM, Ivan Porto Carrero wrote: >>>> >>>> >>>>> I can :) >>>>> >>>>> http://hudson.colliertech.org that's a windows build machine with >>>>> en-us culture >>>>> >>>>> --- >>>>> Met vriendelijke groeten - Best regards - Salutations Ivan Porto >>>>> Carrero - Mob: +32.486.787.582 >>>>> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz >>>>> Twitter: http://twitter.com/casualjim Author of IronRuby in Action >>>>> (http://manning.com/carrero) Microsoft IronRuby/C# MVP >>>>> >>>>> >>>>> On Mon, Apr 5, 2010 at 8:25 AM, Tomas Matousek >>>>> >>>> >>>>> >>>> > >>>> >>>> >>>>> wrote: >>>>> >>>>> There should be no failures. Could you send us the results? Could >>>>> you reproduce the failures consistently? >>>>> >>>>> Tomas >>>>> >>>>> -----Original Message----- >>>>> From: ironruby-core-bounces at rubyforge.org >>>>> >>>>> [mailto:ironruby-core-bounces at rubyforge.org >>>>> ] On Behalf Of Zac >>>>> >>>>> >>>> Brown >>>> >>>> >>>>> Sent: Sunday, April 04, 2010 11:12 PM >>>>> To: ironruby-core at rubyforge.org>>>> >> core at rubyforge.org> >> >>>>> Subject: [Ironruby-core] Expectations for runs of irtests >>>>> >>>>> Hi all, >>>>> >>>>> I've run irtests and I know failures expected. I am however >>>>> unclear on how to determine whether or not I've got the expected >>>>> results for my current build of IronRuby. Could someone shed some >>>>> light on what I'm to expect? I presently get somewhere in the >>>>> realm of ~22 failures from a quick skim of the irtest log I saved. >>>>> >>>>> Any light shed would be appreciated :). >>>>> >>>>> -Zac >>>>> _______________________________________________ >>>>> 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 >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> 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 >> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From Shri.Borde at microsoft.com Wed Apr 7 01:16:20 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 7 Apr 2010 05:16:20 +0000 Subject: [Ironruby-core] Expectations for runs of irtests In-Reply-To: <4BBBE834.2020307@zacbrown.org> References: <4BB97F3C.4090002@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C49294BC0@TK5EX14MBXC124.redmond.corp.microsoft.com> <4BB9F6A8.1050806@zacbrown.org> <31BD916A7536A242870B0B4E3F9068D703DCDC7E@TK5EX14MBXC136.redmond.corp.microsoft.com> <4BBA1B80.2000803@zacbrown.org> <31BD916A7536A242870B0B4E3F9068D703DCDF98@TK5EX14MBXC136.redmond.corp.microsoft.com> <4BBBE834.2020307@zacbrown.org> Message-ID: <6459203F8B1AF641995AE49D47FA51A7133EA168@TK5EX14MBXC139.redmond.corp.microsoft.com> In this case, Zac is not trying to run the tests using .NET 4 (which can be done using "irtests.bat --clr4"). And so the .NET 3.5 C# compiler should be used. However, dev.bat calls vsvars32.bat which seems to add all versions of .NET to the path, with .NET 4 (C:\Windows\Microsoft.NET\Framework\v4.0.30128) before .NET 3.5 (C:\Windows\Microsoft.NET\Framework\v3.5) if you have .NET 4 installed. As a result, the C# 4 compiler is being invoked. Zac, for now, you could try adding C:\Windows\Microsoft.NET\Framework\v3.5 to the start of the path. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Tuesday, April 06, 2010 7:05 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Expectations for runs of irtests So I pulled the latest changes from v1.0 HEAD and still get the compile errors in Tests\Interop. Going to run irtests again tonight and see what I get. -Zac On 4/5/2010 11:19 AM, Jim Deville wrote: > Yes and no. It is expected that some of the tests will have issues on CLR4, but I thought Tomas had fixed most of them. Either way, pull the latest from the v1.0 branch, and those binaries should work. > > JD > > > >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >> bounces at rubyforge.org] On Behalf Of Zac Brown >> Sent: Monday, April 05, 2010 10:19 AM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Expectations for runs of irtests >> >> Hi, >> >> Just fyi, it doesn't appear that 'rbt' is an alias setup by dev.bat yet. >> I figured it out though that you meant Ruby\Tests. >> >> When I run the "..\Scripts\csc" in Ruby\Tests\Interop I get the following: >> >> E:\code\ironruby.git\Merlin\Main\Languages\Ruby\Tests\Interop>..\Scripts >> \csc >> Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) >> Microsoft Corporation. All rights reserved. >> >> Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) >> Microsoft Corporation. All rights reserved. >> >> Microsoft (R) Visual C# 2010 Compiler version 4.0.30128.1 Copyright (C) >> Microsoft Corporation. All rights reserved. >> >> method\fixtures\classes.rb(1040,43): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1076,71): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1080,74): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1115,46): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1120,45): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1229,36): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1265,64): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1269,67): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1304,39): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> method\fixtures\classes.rb(1309,38): error CS0104: 'Func' is an ambiguous >> reference between 'System.Func' and >> 'Microsoft.Scripting.Utils.Func' >> c:\Windows\Microsoft.NET\Framework\v4.0.30128\mscorlib.dll: (Location of >> symbol related to previous error) >> e:\code\ironruby.git\Merlin\Main\bin\Debug\Microsoft.Scripting.Core.dll: >> (Location of symbol related to previous error) >> E:\code\ironruby.git\Merlin\Main\Languages\Ruby\Tests\Interop> >> >> Is that the expected output? >> >> Setting the irtests to run again now. >> >> -Zac >> >> On 4/5/2010 10:01 AM, Jim Deville wrote: >> >>> For the 6k failures in netinterop, please try the following: >>> 1) Setup the environment (dev.bat or dev.ps1 or whatever :)) >>> 2) rbt >>> 3) cd interop >>> 4) ..\Scripts\csc >>> >>> This should recompile the fixtures so that they are linked against the the >>> >> unsigned Git binaries instead of the delay-signed Merlin binaries. I'll be fixing >> this during our cleanup period next month. >> >>> For the ARGF failures.... What is the output of "git config core.autocrlf"? It >>> >> should be true, but irtests should also be checking that. I'll look into it and let >> you know. I'm not sure why you are getting the other errors. >> >>> JD >>> >>> >>> >>>> -----Original Message----- >>>> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >>>> bounces at rubyforge.org] On Behalf Of Zac Brown >>>> Sent: Monday, April 05, 2010 7:42 AM >>>> To: ironruby-core at rubyforge.org >>>> Subject: Re: [Ironruby-core] Expectations for runs of irtests >>>> >>>> Hi, >>>> >>>> This first link is irtests run with the latest github changes: >>>> http://dl.dropbox.com/u/3527783/irtests-04042010-ruby18.log >>>> >>>> This link is after I made a couple changes in Builtins\FileOps.cs, >>>> Builtins\KernelOps.cs and the associated MSpec tests: >>>> http://dl.dropbox.com/u/3527783/irtests-04052010-ruby18.log >>>> >>>> This is a patch for the changes I made, in case its relevant to you guys: >>>> http://dl.dropbox.com/u/3527783/0001-Add-support-for-A-atime-in- >>>> >> Kerne >> >>>> l- >>>> test-and-appropria.patch >>>> >>>> -Zac >>>> >>>> On 4/4/2010 11:29 PM, Ivan Porto Carrero wrote: >>>> >>>> >>>>> I can :) >>>>> >>>>> http://hudson.colliertech.org that's a windows build machine with >>>>> en-us culture >>>>> >>>>> --- >>>>> Met vriendelijke groeten - Best regards - Salutations Ivan Porto >>>>> Carrero - Mob: +32.486.787.582 >>>>> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz >>>>> Twitter: http://twitter.com/casualjim Author of IronRuby in Action >>>>> (http://manning.com/carrero) Microsoft IronRuby/C# MVP >>>>> >>>>> >>>>> On Mon, Apr 5, 2010 at 8:25 AM, Tomas Matousek >>>>> >>>> >>>>> >>>> > >>>> >>>> >>>>> wrote: >>>>> >>>>> There should be no failures. Could you send us the results? Could >>>>> you reproduce the failures consistently? >>>>> >>>>> Tomas >>>>> >>>>> -----Original Message----- >>>>> From: ironruby-core-bounces at rubyforge.org >>>>> >>>>> [mailto:ironruby-core-bounces at rubyforge.org >>>>> ] On Behalf Of Zac >>>>> >>>>> >>>> Brown >>>> >>>> >>>>> Sent: Sunday, April 04, 2010 11:12 PM >>>>> To: ironruby-core at rubyforge.org>>>> >> core at rubyforge.org> >> >>>>> Subject: [Ironruby-core] Expectations for runs of irtests >>>>> >>>>> Hi all, >>>>> >>>>> I've run irtests and I know failures expected. I am however >>>>> unclear on how to determine whether or not I've got the expected >>>>> results for my current build of IronRuby. Could someone shed some >>>>> light on what I'm to expect? I presently get somewhere in the >>>>> realm of ~22 failures from a quick skim of the irtest log I saved. >>>>> >>>>> Any light shed would be appreciated :). >>>>> >>>>> -Zac >>>>> _______________________________________________ >>>>> 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 >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> 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 >> > _______________________________________________ > 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 zac at zacbrown.org Wed Apr 7 23:21:56 2010 From: zac at zacbrown.org (Zac Brown) Date: Wed, 07 Apr 2010 20:21:56 -0700 Subject: [Ironruby-core] Dev.bat not quite setup for Dev10? Message-ID: <4BBD4BD4.7040706@zacbrown.org> Hi, I was looking through the Dev.bat script and it seems like its not quite setup for Dev10. It doesn't check for sdkvars.bat in the Dev10 directory which is the only instance I have of that particular batch script. Have the changes just not been pushed to the public Github repo yet or am I missing something? -Zac PS: My primary IDE is VS2010 when working in C#, I don't even have VS2008 on here. From Tomas.Matousek at microsoft.com Wed Apr 7 23:58:10 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 8 Apr 2010 03:58:10 +0000 Subject: [Ironruby-core] Dev.bat not quite setup for Dev10? In-Reply-To: <4BBD4BD4.7040706@zacbrown.org> References: <4BBD4BD4.7040706@zacbrown.org> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C492962F3@TK5EX14MBXC124.redmond.corp.microsoft.com> It looks for %PROGRAM_FILES_32%\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat. Where is sdkvars? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Wednesday, April 07, 2010 8:22 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Dev.bat not quite setup for Dev10? Hi, I was looking through the Dev.bat script and it seems like its not quite setup for Dev10. It doesn't check for sdkvars.bat in the Dev10 directory which is the only instance I have of that particular batch script. Have the changes just not been pushed to the public Github repo yet or am I missing something? -Zac PS: My primary IDE is VS2010 when working in C#, I don't even have VS2008 on here. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From zac at zacbrown.org Thu Apr 8 01:01:30 2010 From: zac at zacbrown.org (Zachary Brown) Date: Wed, 7 Apr 2010 22:01:30 -0700 Subject: [Ironruby-core] Dev.bat not quite setup for Dev10? In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C492962F3@TK5EX14MBXC124.redmond.corp.microsoft.com> References: <4BBD4BD4.7040706@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C492962F3@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: <2B332E45-C69D-45B3-9FA9-DC299519A925@zacbrown.org> Hi, In both the master and v1.0 branches, the Dev.bat file does not contain a check for Visual Studio 10.0. I can easily add one, as I've discerned (and done) but its not actually in the files. For now I've edited it for myself but I wanted you guys to be aware its not setup for Dev10 as far as I can tell on the Git repo side. Maybe the changes haven't been pushed from TFS? -Zac On Apr 7, 2010, at 8:58 PM, Tomas Matousek wrote: > It looks for %PROGRAM_FILES_32%\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat. > > Where is sdkvars? > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown > Sent: Wednesday, April 07, 2010 8:22 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Dev.bat not quite setup for Dev10? > > Hi, > > I was looking through the Dev.bat script and it seems like its not quite setup for Dev10. It doesn't check for sdkvars.bat in the Dev10 directory which is the only instance I have of that particular batch script. > > Have the changes just not been pushed to the public Github repo yet or am I missing something? > > -Zac > > PS: My primary IDE is VS2010 when working in C#, I don't even have > VS2008 on here. > _______________________________________________ > 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 jdeville at microsoft.com Thu Apr 8 01:02:11 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 8 Apr 2010 05:02:11 +0000 Subject: [Ironruby-core] Dev.bat not quite setup for Dev10? In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C492962F3@TK5EX14MBXC124.redmond.corp.microsoft.com> References: <4BBD4BD4.7040706@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C492962F3@TK5EX14MBXC124.redmond.corp.microsoft.com> Message-ID: <31BD916A7536A242870B0B4E3F9068D703DD3A8C@TK5EX14MBXC136.redmond.corp.microsoft.com> I don't have sdkvars either, and I only have Dev10 on my laptop. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Wednesday, April 07, 2010 8:58 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Dev.bat not quite setup for Dev10? It looks for %PROGRAM_FILES_32%\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat. Where is sdkvars? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Wednesday, April 07, 2010 8:22 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Dev.bat not quite setup for Dev10? Hi, I was looking through the Dev.bat script and it seems like its not quite setup for Dev10. It doesn't check for sdkvars.bat in the Dev10 directory which is the only instance I have of that particular batch script. Have the changes just not been pushed to the public Github repo yet or am I missing something? -Zac PS: My primary IDE is VS2010 when working in C#, I don't even have VS2008 on here. _______________________________________________ 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 zac at zacbrown.org Thu Apr 8 01:09:59 2010 From: zac at zacbrown.org (Zachary Brown) Date: Wed, 7 Apr 2010 22:09:59 -0700 Subject: [Ironruby-core] IronRuby + Mono 2.6.3 Message-ID: <691B30F1-969C-49E5-B28B-5BEFF857D9DE@zacbrown.org> Hi again :) Trying to build IR on Mono 2.6.3 on my Macbook (10.6.3). Followed basic instructions and get it to start building but I'm running into the following error on both CasualJim's Linux branch as well as mainline ironruby git: 21:56:18 zbrown at riemann: ~/Code/ironruby.git/Merlin/Main/Languages/Ruby > rake compile mono=1 (in /Users/zbrown/Code/ironruby.git/Merlin/Main/Languages/Ruby) ------------------------------------------------------------------------------- dlr_extension ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- dlr_core ------------------------------------------------------------------------------- Actions/CallSiteBinder.cs(169,18): warning CS0219: The variable `targetType' is assigned but its value is never used Actions/CallSite.cs(317,17): warning CS0168: The variable `site' is declared but never used Ast/ExpressionStringBuilder.cs(165,28): warning CS0219: The variable `getIndex' is assigned but its value is never used Ast/ExpressionStringBuilder.cs(166,28): warning CS0219: The variable `setIndex' is assigned but its value is never used Ast/ExpressionStringBuilder.cs(167,31): warning CS0219: The variable `deleteIndex' is assigned but its value is never used Ast/ExpressionStringBuilder.cs(169,26): warning CS0219: The variable `invoke' is assigned but its value is never used Ast/ExpressionStringBuilder.cs(170,34): warning CS0219: The variable `create' is assigned but its value is never used Ast/DebugViewWriter.cs(232,28): warning CS0219: The variable `getIndex' is assigned but its value is never used Ast/DebugViewWriter.cs(233,28): warning CS0219: The variable `setIndex' is assigned but its value is never used Ast/DebugViewWriter.cs(234,31): warning CS0219: The variable `deleteIndex' is assigned but its value is never used Ast/DebugViewWriter.cs(236,26): warning CS0219: The variable `invoke' is assigned but its value is never used Ast/DebugViewWriter.cs(237,34): warning CS0219: The variable `create' is assigned but its value is never used Ast/DebugViewWriter.cs(869,18): warning CS0219: The variable `parenthesize' is assigned but its value is never used Compiler/LambdaCompiler.Logical.cs(178,33): warning CS0219: The variable `p' is assigned but its value is never used Compiler/LambdaCompiler.Unary.cs(111,35): warning CS0219: The variable `labIfNull' is assigned but its value is never used Compilation succeeded - 15 warning(s) ------------------------------------------------------------------------------- dlr_libs ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- dlr_com ------------------------------------------------------------------------------- Actions/ActionBinder.cs(131,18): warning CS0219: The variable `visType' is assigned but its value is never used Actions/DefaultBinder.Conversions.cs(48,18): warning CS0219: The variable `knownType' is assigned but its value is never used Actions/DefaultBinder.GetMember.cs(215,26): warning CS0219: The variable `x' is assigned but its value is never used Actions/DefaultBinder.Invoke.cs(261,24): warning CS0219: The variable `instance' is assigned but its value is never used Interpreter/LightCompiler.cs(915,21): warning CS0219: The variable `handlerContinuationDepth' is assigned but its value is never used Interpreter/LightCompiler.cs(895,17): warning CS0219: The variable `tryStackDepth' is assigned but its value is never used Generation/ILGen.cs(1188,18): warning CS0219: The variable `isFromFloatingPoint' is assigned but its value is never used Generation/Snippets.cs(115,30): warning CS0219: The variable `coreAssemblyLocations' is assigned but its value is never used Runtime/DelegateInfo.cs(102,26): warning CS0219: The variable `convertSiteType' is assigned but its value is never used Runtime/DelegateInfo.cs(100,26): warning CS0219: The variable `siteType' is assigned but its value is never used Unhandled Exception: System.ArgumentException: The field handle and the type handle are incompatible. at System.Reflection.FieldInfo.GetFieldFromHandle (RuntimeFieldHandle handle, RuntimeTypeHandle declaringType) [0x00000] in :0 at Mono.CSharp.AnonymousMethodStorey.MutateField (System.Reflection.FieldInfo field) [0x00000] in :0 at Mono.CSharp.FieldExpr.MutateHoistedGenericType (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 at Mono.CSharp.TypeCast.MutateHoistedGenericType (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 at Mono.CSharp.Binary.MutateHoistedGenericType (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 at Mono.CSharp.If.MutateHoistedGenericType (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 at Mono.CSharp.Block.MutateHoistedGenericType (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 at Mono.CSharp.AnonymousExpression+AnonymousMethodMethod.Emit () [0x00000] in :0 at Mono.CSharp.TypeContainer.EmitType () [0x00000] in :0 at Mono.CSharp.AnonymousMethodStorey.EmitType () [0x00000] in :0 at Mono.CSharp.TypeContainer.EmitType () [0x00000] in :0 at Mono.CSharp.RootContext.EmitCode () [0x00000] in :0 at Mono.CSharp.Driver.Compile () [0x00000] in :0 at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0 rake aborted! Command failed with status (1): [gmcs /noconfig @/var/folders/v1/v1QIwFBJFh...] (See full trace by running task with --trace) Thanks, -- Zac From ivan at cloudslide.net Thu Apr 8 01:22:41 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Thu, 8 Apr 2010 07:22:41 +0200 Subject: [Ironruby-core] IronRuby + Mono 2.6.3 In-Reply-To: <691B30F1-969C-49E5-B28B-5BEFF857D9DE@zacbrown.org> References: <691B30F1-969C-49E5-B28B-5BEFF857D9DE@zacbrown.org> Message-ID: you can't. you need mono trunk --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Thu, Apr 8, 2010 at 7:09 AM, Zachary Brown wrote: > Hi again :) > > Trying to build IR on Mono 2.6.3 on my Macbook (10.6.3). Followed basic > instructions and get it to start building but I'm running into the following > error on both CasualJim's Linux branch as well as mainline ironruby git: > > 21:56:18 zbrown at riemann: ~/Code/ironruby.git/Merlin/Main/Languages/Ruby > > rake compile mono=1 > (in /Users/zbrown/Code/ironruby.git/Merlin/Main/Languages/Ruby) > > ------------------------------------------------------------------------------- > dlr_extension > > ------------------------------------------------------------------------------- > > ------------------------------------------------------------------------------- > dlr_core > > ------------------------------------------------------------------------------- > Actions/CallSiteBinder.cs(169,18): warning CS0219: The variable > `targetType' is assigned but its value is never used > Actions/CallSite.cs(317,17): warning CS0168: The variable `site' is > declared but never used > Ast/ExpressionStringBuilder.cs(165,28): warning CS0219: The variable > `getIndex' is assigned but its value is never used > Ast/ExpressionStringBuilder.cs(166,28): warning CS0219: The variable > `setIndex' is assigned but its value is never used > Ast/ExpressionStringBuilder.cs(167,31): warning CS0219: The variable > `deleteIndex' is assigned but its value is never used > Ast/ExpressionStringBuilder.cs(169,26): warning CS0219: The variable > `invoke' is assigned but its value is never used > Ast/ExpressionStringBuilder.cs(170,34): warning CS0219: The variable > `create' is assigned but its value is never used > Ast/DebugViewWriter.cs(232,28): warning CS0219: The variable `getIndex' is > assigned but its value is never used > Ast/DebugViewWriter.cs(233,28): warning CS0219: The variable `setIndex' is > assigned but its value is never used > Ast/DebugViewWriter.cs(234,31): warning CS0219: The variable `deleteIndex' > is assigned but its value is never used > Ast/DebugViewWriter.cs(236,26): warning CS0219: The variable `invoke' is > assigned but its value is never used > Ast/DebugViewWriter.cs(237,34): warning CS0219: The variable `create' is > assigned but its value is never used > Ast/DebugViewWriter.cs(869,18): warning CS0219: The variable `parenthesize' > is assigned but its value is never used > Compiler/LambdaCompiler.Logical.cs(178,33): warning CS0219: The variable > `p' is assigned but its value is never used > Compiler/LambdaCompiler.Unary.cs(111,35): warning CS0219: The variable > `labIfNull' is assigned but its value is never used > Compilation succeeded - 15 warning(s) > > ------------------------------------------------------------------------------- > dlr_libs > > ------------------------------------------------------------------------------- > > ------------------------------------------------------------------------------- > dlr_com > > ------------------------------------------------------------------------------- > Actions/ActionBinder.cs(131,18): warning CS0219: The variable `visType' is > assigned but its value is never used > Actions/DefaultBinder.Conversions.cs(48,18): warning CS0219: The variable > `knownType' is assigned but its value is never used > Actions/DefaultBinder.GetMember.cs(215,26): warning CS0219: The variable > `x' is assigned but its value is never used > Actions/DefaultBinder.Invoke.cs(261,24): warning CS0219: The variable > `instance' is assigned but its value is never used > Interpreter/LightCompiler.cs(915,21): warning CS0219: The variable > `handlerContinuationDepth' is assigned but its value is never used > Interpreter/LightCompiler.cs(895,17): warning CS0219: The variable > `tryStackDepth' is assigned but its value is never used > Generation/ILGen.cs(1188,18): warning CS0219: The variable > `isFromFloatingPoint' is assigned but its value is never used > Generation/Snippets.cs(115,30): warning CS0219: The variable > `coreAssemblyLocations' is assigned but its value is never used > Runtime/DelegateInfo.cs(102,26): warning CS0219: The variable > `convertSiteType' is assigned but its value is never used > Runtime/DelegateInfo.cs(100,26): warning CS0219: The variable `siteType' is > assigned but its value is never used > > Unhandled Exception: System.ArgumentException: The field handle and the > type handle are incompatible. > at System.Reflection.FieldInfo.GetFieldFromHandle (RuntimeFieldHandle > handle, RuntimeTypeHandle declaringType) [0x00000] in :0 > at Mono.CSharp.AnonymousMethodStorey.MutateField > (System.Reflection.FieldInfo field) [0x00000] in :0 > at Mono.CSharp.FieldExpr.MutateHoistedGenericType > (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 > at Mono.CSharp.TypeCast.MutateHoistedGenericType > (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 > at Mono.CSharp.Binary.MutateHoistedGenericType > (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 > at Mono.CSharp.If.MutateHoistedGenericType > (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 > at Mono.CSharp.Block.MutateHoistedGenericType > (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 > at Mono.CSharp.AnonymousExpression+AnonymousMethodMethod.Emit () [0x00000] > in :0 > at Mono.CSharp.TypeContainer.EmitType () [0x00000] in :0 > at Mono.CSharp.AnonymousMethodStorey.EmitType () [0x00000] in unknown>:0 > at Mono.CSharp.TypeContainer.EmitType () [0x00000] in :0 > at Mono.CSharp.RootContext.EmitCode () [0x00000] in :0 > at Mono.CSharp.Driver.Compile () [0x00000] in :0 > at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in unknown>:0 > rake aborted! > Command failed with status (1): [gmcs /noconfig > @/var/folders/v1/v1QIwFBJFh...] > > (See full trace by running task with --trace) > > Thanks, > > -- Zac > _______________________________________________ > 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 Thu Apr 8 01:43:06 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 8 Apr 2010 05:43:06 +0000 Subject: [Ironruby-core] Dev.bat not quite setup for Dev10? In-Reply-To: <2B332E45-C69D-45B3-9FA9-DC299519A925@zacbrown.org> References: <4BBD4BD4.7040706@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C492962F3@TK5EX14MBXC124.redmond.corp.microsoft.com> <2B332E45-C69D-45B3-9FA9-DC299519A925@zacbrown.org> Message-ID: <31BD916A7536A242870B0B4E3F9068D703DD3B03@TK5EX14MBXC136.redmond.corp.microsoft.com> Lovely. We have 2 versions of dev.bat, and this one has not been updated. My dev.ps1 in languages\ruby\scripts\powershell\ should work if you call it as "path\to\dev.ps1 10.0". Using 9.0 should use the 9.0 libs. We'll be doing some moving around over the next few weeks that should help us clean this up -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zachary Brown Sent: Wednesday, April 07, 2010 10:02 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Dev.bat not quite setup for Dev10? Hi, In both the master and v1.0 branches, the Dev.bat file does not contain a check for Visual Studio 10.0. I can easily add one, as I've discerned (and done) but its not actually in the files. For now I've edited it for myself but I wanted you guys to be aware its not setup for Dev10 as far as I can tell on the Git repo side. Maybe the changes haven't been pushed from TFS? -Zac On Apr 7, 2010, at 8:58 PM, Tomas Matousek wrote: > It looks for %PROGRAM_FILES_32%\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat. > > Where is sdkvars? > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown > Sent: Wednesday, April 07, 2010 8:22 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Dev.bat not quite setup for Dev10? > > Hi, > > I was looking through the Dev.bat script and it seems like its not quite setup for Dev10. It doesn't check for sdkvars.bat in the Dev10 directory which is the only instance I have of that particular batch script. > > Have the changes just not been pushed to the public Github repo yet or am I missing something? > > -Zac > > PS: My primary IDE is VS2010 when working in C#, I don't even have > VS2008 on here. > _______________________________________________ > 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 zbrown at microsoft.com Mon Apr 12 14:16:04 2010 From: zbrown at microsoft.com (Zac Brown) Date: Mon, 12 Apr 2010 18:16:04 +0000 Subject: [Ironruby-core] Confirmation of contributor status...? Message-ID: <9A0A7E749ECE86428F45AFEC8A6ECD3F014A4F@TK5EX14MBXC140.redmond.corp.microsoft.com> Hi, I sent an email to ssiadmin asking them to add me as a contributor to IronRuby but haven't heard a peep out of them. What's the usual turn around for emails sent to them? Sidenote: I asked to be confirmed on this email address (zbrown at microsoft.com and zac at zacbrown.org). -Zac Zac Brown (zbrown), SDET Windows - REX Client (86/1601) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Apr 12 22:35:13 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 13 Apr 2010 02:35:13 +0000 Subject: [Ironruby-core] [ANN] IronRuby 1.0 Released! Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92173287FE@TK5EX14MBXC136.redmond.corp.microsoft.com> Ruby and .NET developers, The IronRuby team is pleased to announce IronRuby 1.0! Download IronRuby 1.0 now: http://ironruby.net/download Direct download links (Windows installers and ZIP files for both .NET 2.0 SP1 and .NET 4.0): http://ironruby.codeplex.com/releases/view/25901 IronRuby 1.0 is the first stable version of IronRuby, targeting Ruby 1.8.6 compatibility. For a high-level compatibility report solely based on RubySpec, see http://ironruby.info. For a detailed change-log since 0.3, see the change-log page: http://rubyforge.org/frs/shownotes.php?release_id=43292. IronRuby now comes in two flavors - one that runs on top of .NET 4.0, and one that runs on any earlier framework starting with .NET 2.0 SP1. The .NET 4.0 flavor features faster startup time, compatibility with C#'s dynamic keyword, and access to the new features in .NET 4.0. So, the .NET 4.0 flavor is the preferred download now, as the Microsoft .NET Framework 4.0 is publically available as of today. For Mono compatibility, use the zip file release for 2.0 SP1. Download .NET 4.0: http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992 Since IronRuby's first public release there have been 455 reported bugs fixed, 98 community members reporting bugs, 100+ code contributions by 15 community members, and 11 core-team members. Thank you to everyone who made IronRuby 1.0 possible: IronRuby Core Team Alumni: Curt Hagenlocher, Dave Remy, Haibo Luo, John Lam, John Messerly, Oleg Tkachenko, and Srivatsn Narayanan. Source code contributors: Daniele Alessandri, Eric Nicholson, Ivan Porto Carrero, Jayme Edwards, Jb Evain, Jirapong Nanta, Kevin Radcliffe, Michael Letterle, Peter Bacon Darwin, Ryan Riley, Seo Sanghyeon, Shay Friedman, Timothy Chen, Unnikrishnan Nair, and Wayne Kelly. Bug Reporters: Aghoda, akaranta, Alex C., Alexandro Rocha, Andrius Bentkus, Antonio Cangiano, Antti Karanta, aslakhellesoy, atownley, Bela Babik, Ben Hall, Bex_3000, Brad Wilson, Brian Blackwell, brunomlopes, Charles Lowe, chrismaduro, Coder42, cr?mes, Dan Fitch, Daniele Alessandri, DavidSchmitt, daytrip00, DotNetNerd, eoinomeara, Eric Nicholson, Florian Kruesch, giggio, glennen, Greg Houston, harald42, hedge_hog, hoornet, hotgazpacho, i_iob, imasho, Ivan Porto Carrero, Jirapong Nanta, john5exonets, Joxter Mumurik, just3ws, Justin Bailey, JustinCle, jwthompson2, K E, kaiwren, KAZUu, Kevin Radcliffe, kralor, lukesmith, m4dc4p, maslov, mayuki, meinrad recheis, michaelerasmus, MiddleTommy, motobuzz, Narko, Nick , chrock, niclasnilsson, nikosd, Nobody, nolith, Orion Edwards, ourben, Peter Bacon Darwin, PlasticLIzard, pwistrand, raubarede, Ray Vernagus, rbandrews, rbrother, rifraf, riles01, Robert Brotherus, rohancragg, romanvbabenko, ruzplex, Seo Sanghyeon, SergeyMirvoda, shannoncornish, Shay Friedman, Stefan Dobrev, Steve Eichert, stkenned8, Thibaut Barr?re, TimothyB, timross, Timothy Chen, turp, undees, vaderpi, vertiginous, vvnurmi, Wayne Kelly, xerxesb, xport, and Zyl Wolf. I think I speak for everyone when I extend a very special thanks to John Lam, for without his pursuit of an integration between Ruby and the CLR, IronRuby would surely never gotten a chance to exist. As always, if you find any bugs or have a feature request, please open an issue on CodePlex: http://ironruby.codeplex.com/WorkItem/Create.aspx. We hope you enjoy writing Ruby code for the .NET framework, and thank you for your continued support! Sincerely, The IronRuby Core Team Shri Borde, Jim Deville, Tomas Matousek, and Jimmy Schementi From shay.friedman at gmail.com Tue Apr 13 00:23:28 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Tue, 13 Apr 2010 06:23:28 +0200 Subject: [Ironruby-core] [ANN] IronRuby 1.0 Released! In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92173287FE@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC92173287FE@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: AWESOME work guys!!!!!! My prediction: until IronRuby 4.0, we're bigger than C#! :-) Way to go! Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Apr 13, 2010 at 4:35 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Ruby and .NET developers, > > The IronRuby team is pleased to announce IronRuby 1.0! > > Download IronRuby 1.0 now: > http://ironruby.net/download > > Direct download links (Windows installers and ZIP files for both .NET 2.0 > SP1 and .NET 4.0): > http://ironruby.codeplex.com/releases/view/25901 > > > IronRuby 1.0 is the first stable version of IronRuby, targeting Ruby 1.8.6 > compatibility. For a high-level compatibility report solely based on > RubySpec, see http://ironruby.info. For a detailed change-log since 0.3, > see the change-log page: > http://rubyforge.org/frs/shownotes.php?release_id=43292. > > IronRuby now comes in two flavors - one that runs on top of .NET 4.0, and > one that runs on any earlier framework starting with .NET 2.0 SP1. The .NET > 4.0 flavor features faster startup time, compatibility with C#'s dynamic > keyword, and access to the new features in .NET 4.0. So, the .NET 4.0 flavor > is the preferred download now, as the Microsoft .NET Framework 4.0 is > publically available as of today. For Mono compatibility, use the zip file > release for 2.0 SP1. > > Download .NET 4.0: > > http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992 > > > Since IronRuby's first public release there have been 455 reported bugs > fixed, 98 community members reporting bugs, 100+ code contributions by 15 > community members, and 11 core-team members. Thank you to everyone who made > IronRuby 1.0 possible: > > IronRuby Core Team Alumni: > Curt Hagenlocher, Dave Remy, Haibo Luo, John Lam, John Messerly, Oleg > Tkachenko, and Srivatsn Narayanan. > > Source code contributors: > Daniele Alessandri, Eric Nicholson, Ivan Porto Carrero, Jayme Edwards, Jb > Evain, Jirapong Nanta, Kevin Radcliffe, Michael Letterle, Peter Bacon > Darwin, Ryan Riley, Seo Sanghyeon, Shay Friedman, Timothy Chen, Unnikrishnan > Nair, and Wayne Kelly. > > Bug Reporters: > Aghoda, akaranta, Alex C., Alexandro Rocha, Andrius Bentkus, Antonio > Cangiano, Antti Karanta, aslakhellesoy, atownley, Bela Babik, Ben Hall, > Bex_3000, Brad Wilson, Brian Blackwell, brunomlopes, Charles Lowe, > chrismaduro, Coder42, cr?mes, Dan Fitch, Daniele Alessandri, DavidSchmitt, > daytrip00, DotNetNerd, eoinomeara, Eric Nicholson, Florian Kruesch, giggio, > glennen, Greg Houston, harald42, hedge_hog, hoornet, hotgazpacho, i_iob, > imasho, Ivan Porto Carrero, Jirapong Nanta, john5exonets, Joxter Mumurik, > just3ws, Justin Bailey, JustinCle, jwthompson2, K E, kaiwren, KAZUu, Kevin > Radcliffe, kralor, lukesmith, m4dc4p, maslov, mayuki, meinrad recheis, > michaelerasmus, MiddleTommy, motobuzz, Narko, Nick , chrock, niclasnilsson, > nikosd, Nobody, nolith, Orion Edwards, ourben, Peter Bacon Darwin, > PlasticLIzard, pwistrand, raubarede, Ray Vernagus, rbandrews, rbrother, > rifraf, riles01, Robert Brotherus, rohancragg, romanvbabenko, ruzplex, Seo > Sanghyeon, SergeyMirvoda, shannoncornish, Shay Friedman, Stefan Dobrev, > Steve Eichert, stkenned8, Thibaut Barr?re, TimothyB, timross, Timothy Chen, > turp, undees, vaderpi, vertiginous, vvnurmi, Wayne Kelly, xerxesb, xport, > and Zyl Wolf. > > I think I speak for everyone when I extend a very special thanks to John > Lam, for without his pursuit of an integration between Ruby and the CLR, > IronRuby would surely never gotten a chance to exist. > > > As always, if you find any bugs or have a feature request, please open an > issue on CodePlex: http://ironruby.codeplex.com/WorkItem/Create.aspx. > > We hope you enjoy writing Ruby code for the .NET framework, and thank you > for your continued support! > > Sincerely, > The IronRuby Core Team > Shri Borde, Jim Deville, Tomas Matousek, and Jimmy Schementi > > _______________________________________________ > 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 headius at headius.com Tue Apr 13 04:13:09 2010 From: headius at headius.com (Charles Oliver Nutter) Date: Tue, 13 Apr 2010 03:13:09 -0500 Subject: [Ironruby-core] [ANN] IronRuby 1.0 Released! In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92173287FE@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC92173287FE@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: Congrats again, guys :) On Mon, Apr 12, 2010 at 9:35 PM, Jimmy Schementi wrote: > Ruby and .NET developers, > > The IronRuby team is pleased to announce IronRuby 1.0! > > Download IronRuby 1.0 now: > http://ironruby.net/download > > Direct download links (Windows installers and ZIP files for both .NET 2.0 SP1 and .NET 4.0): > http://ironruby.codeplex.com/releases/view/25901 > > > IronRuby 1.0 is the first stable version of IronRuby, targeting Ruby 1.8.6 compatibility. For a high-level compatibility report solely based on RubySpec, see http://ironruby.info. For a detailed change-log since 0.3, see the change-log page: http://rubyforge.org/frs/shownotes.php?release_id=43292. > > IronRuby now comes in two flavors - one that runs on top of .NET 4.0, and one that runs on any earlier framework starting with .NET 2.0 SP1. The .NET 4.0 flavor features faster startup time, compatibility with C#'s dynamic keyword, and access to the new features in .NET 4.0. So, the .NET 4.0 flavor is the preferred download now, as the Microsoft .NET Framework 4.0 is publically available as of today. For Mono compatibility, use the zip file release for 2.0 SP1. > > Download .NET 4.0: > http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992 > > > Since IronRuby's first public release there have been 455 reported bugs fixed, 98 community members reporting bugs, 100+ code contributions by 15 community members, and 11 core-team members. Thank you to everyone who made IronRuby 1.0 possible: > > IronRuby Core Team Alumni: > Curt Hagenlocher, Dave Remy, Haibo Luo, John Lam, John Messerly, Oleg Tkachenko, and Srivatsn Narayanan. > > Source code contributors: > Daniele Alessandri, Eric Nicholson, Ivan Porto Carrero, Jayme Edwards, Jb Evain, Jirapong Nanta, Kevin Radcliffe, Michael Letterle, Peter Bacon Darwin, Ryan Riley, Seo Sanghyeon, Shay Friedman, Timothy Chen, Unnikrishnan Nair, and Wayne Kelly. > > Bug Reporters: > Aghoda, akaranta, Alex C., Alexandro Rocha, Andrius Bentkus, Antonio Cangiano, Antti Karanta, aslakhellesoy, atownley, Bela Babik, Ben Hall, Bex_3000, Brad Wilson, Brian Blackwell, brunomlopes, Charles Lowe, chrismaduro, Coder42, cr?mes, Dan Fitch, Daniele Alessandri, DavidSchmitt, daytrip00, DotNetNerd, eoinomeara, Eric Nicholson, Florian Kruesch, giggio, glennen, Greg Houston, harald42, hedge_hog, hoornet, hotgazpacho, i_iob, imasho, Ivan Porto Carrero, Jirapong Nanta, john5exonets, Joxter Mumurik, just3ws, Justin Bailey, JustinCle, jwthompson2, K E, kaiwren, KAZUu, Kevin Radcliffe, kralor, lukesmith, m4dc4p, maslov, mayuki, meinrad recheis, michaelerasmus, MiddleTommy, motobuzz, Narko, Nick , chrock, niclasnilsson, nikosd, Nobody, nolith, Orion Edwards, ourben, Peter Bacon Darwin, PlasticLIzard, pwistrand, raubarede, Ray Vernagus, rbandrews, rbrother, rifraf, riles01, Robert Brotherus, rohancragg, romanvbabenko, ruzplex, Seo Sanghyeon, SergeyMirvoda, shannoncornish, Shay Friedman, Stefan Dobrev, Steve Eichert, stkenned8, Thibaut Barr?re, TimothyB, timross, Timothy Chen, turp, undees, vaderpi, vertiginous, vvnurmi, Wayne Kelly, xerxesb, xport, and Zyl Wolf. > > I think I speak for everyone when I extend a very special thanks to John Lam, for without his pursuit of an integration between Ruby and the CLR, IronRuby would surely never gotten a chance to exist. > > > As always, if you find any bugs or have a feature request, please open an issue on CodePlex: http://ironruby.codeplex.com/WorkItem/Create.aspx. > > We hope you enjoy writing Ruby code for the .NET framework, and thank you for your continued support! > > Sincerely, > The IronRuby Core Team > Shri Borde, Jim Deville, Tomas Matousek, and Jimmy Schementi > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From justin.hartman at gmail.com Tue Apr 13 10:37:04 2010 From: justin.hartman at gmail.com (Justin Hartman) Date: Tue, 13 Apr 2010 10:37:04 -0400 Subject: [Ironruby-core] IronRuby and IronPython Message-ID: Hi all, First, many thanks to the IronRuby team and their outstanding work on the 1.0 release! Now, my question: I want to embed both IronRuby and IronPython in my application. In the past, in order to avoid namespace/assembly/version collisions, I've just downloaded one of the builds from one team or the other that includes both sets of binaries. However, yesterday, all the planets aligned, and both teams released a build I've been waiting for (IronRuby 1.0 and IronPython 2.6.1). What is the best way for me to keep in sync with both teams' releases? Is there a coordinated build that is released on a regular basis? I did try downloading the DLR sources and building from scratch. It appears IronPython is up to 2.6.1 in the DLR source, but IronRuby is still reporting 0.9.something. Many thanks, -Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: From ironruby at monnet-usa.com Tue Apr 13 20:09:01 2010 From: ironruby at monnet-usa.com (Philippe Monnet) Date: Tue, 13 Apr 2010 18:09:01 -0600 Subject: [Ironruby-core] [ANN] IronRuby 1.0 Released! In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92173287FE@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC92173287FE@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: <4BC5079D.6020909@monnet-usa.com> An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Apr 14 03:36:17 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 14 Apr 2010 07:36:17 +0000 Subject: [Ironruby-core] Confirmation of contributor status...? In-Reply-To: <9A0A7E749ECE86428F45AFEC8A6ECD3F014A4F@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <9A0A7E749ECE86428F45AFEC8A6ECD3F014A4F@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <44670685-215D-4F59-9688-84198F365C30@microsoft.com> Usually its immediately. Jim gets notifications of contributor agreement requests, so maybe he knows more. Do you already have some part of ironruby in mind to work on? ~Jimmy On Apr 12, 2010, at 11:17 AM, "Zac Brown" > wrote: Hi, I sent an email to ssiadmin asking them to add me as a contributor to IronRuby but haven?t heard a peep out of them. What?s the usual turn around for emails sent to them? Sidenote: I asked to be confirmed on this email address (zbrown at microsoft.com and zac at zacbrown.org). -Zac Zac Brown (zbrown), SDET Windows ? REX Client (86/1601) _______________________________________________ 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.Schementi at microsoft.com Wed Apr 14 03:52:06 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 14 Apr 2010 07:52:06 +0000 Subject: [Ironruby-core] IronRuby and IronPython In-Reply-To: References: Message-ID: <3CF160F6-F4CE-478B-AFC4-AC3CC6AAA11F@microsoft.com> Your welcome :) IronPython and IronRuby not only released on the same date, but we released out of the same branch, so we have dependencies on the same exact DLR; a first in the project's history. This is why IronRuby didn't release a "for IronPython interop" package. Going forward, we will not always be this fortunate to sync up releases. This time around we decided to snap to .NET 4.0's releases, but that only happens every couple years, so not a great release strategy for us. In general, it's best to pull sources from dlr.codeplex.com if you absolutely need binaries that work together. Keep in mind you can also get the sources from github.com/ironruby/ironruby, as they include IronPython's sources as well (Merlin/main/languages/IronPython). Unfortunately, neither repository is up to date with our main branch, though ironruby's 1.0 branch is exactly the sources for 1.0. This is because our CI lab is being moved to another building, and we've yet to get it back up, so the source publishing hasn't been happening. It will resume shortly. ~Jimmy On Apr 13, 2010, at 7:42 AM, "Justin Hartman" wrote: > Hi all, > > First, many thanks to the IronRuby team and their outstanding work on the 1.0 release! > > Now, my question: I want to embed both IronRuby and IronPython in my application. In the past, in order to avoid namespace/assembly/version collisions, I've just downloaded one of the builds from one team or the other that includes both sets of binaries. However, yesterday, all the planets aligned, and both teams released a build I've been waiting for (IronRuby 1.0 and IronPython 2.6.1). > > What is the best way for me to keep in sync with both teams' releases? Is there a coordinated build that is released on a regular basis? I did try downloading the DLR sources and building from scratch. It appears IronPython is up to 2.6.1 in the DLR source, but IronRuby is still reporting 0.9.something. > > Many thanks, > > -Justin > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From zbrown at microsoft.com Wed Apr 14 11:01:35 2010 From: zbrown at microsoft.com (Zac Brown) Date: Wed, 14 Apr 2010 15:01:35 +0000 Subject: [Ironruby-core] Confirmation of contributor status...? In-Reply-To: <44670685-215D-4F59-9688-84198F365C30@microsoft.com> References: <9A0A7E749ECE86428F45AFEC8A6ECD3F014A4F@TK5EX14MBXC140.redmond.corp.microsoft.com> <44670685-215D-4F59-9688-84198F365C30@microsoft.com> Message-ID: <9A0A7E749ECE86428F45AFEC8A6ECD3F017549@TK5EX14MBXC140.redmond.corp.microsoft.com> I hadn?t realized the MSFT employment agreement would count so that?s good ?. I?ve been taking Tomas?s suggestion and working my way through Kernel#test flag implementations. I?m interested on the whole in the DLR and IronRuby though. I?d like someday to move that way within the company. I?m fairly close already, working in Runtime Experience in Windows so I get a fair amount of interaction with DevDiv as it is. Anyway back the point at hand, I?d just like to improve things like Kernel#test. Not looking for any high profile work yet, trying to get my feet wet ?. -Zac From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, April 14, 2010 12:36 AM To: Subject: Re: [Ironruby-core] Confirmation of contributor status...? Usually its immediately. Jim gets notifications of contributor agreement requests, so maybe he knows more. Do you already have some part of ironruby in mind to work on? ~Jimmy On Apr 12, 2010, at 11:17 AM, "Zac Brown" > wrote: Hi, I sent an email to ssiadmin asking them to add me as a contributor to IronRuby but haven?t heard a peep out of them. What?s the usual turn around for emails sent to them? Sidenote: I asked to be confirmed on this email address (zbrown at microsoft.com and zac at zacbrown.org). -Zac Zac Brown (zbrown), SDET Windows ? REX Client (86/1601) _______________________________________________ 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 zbrown at microsoft.com Wed Apr 14 11:22:13 2010 From: zbrown at microsoft.com (Zac Brown) Date: Wed, 14 Apr 2010 15:22:13 +0000 Subject: [Ironruby-core] Confirmation of contributor status...? In-Reply-To: <9A0A7E749ECE86428F45AFEC8A6ECD3F017549@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <9A0A7E749ECE86428F45AFEC8A6ECD3F014A4F@TK5EX14MBXC140.redmond.corp.microsoft.com> <44670685-215D-4F59-9688-84198F365C30@microsoft.com> <9A0A7E749ECE86428F45AFEC8A6ECD3F017549@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <9A0A7E749ECE86428F45AFEC8A6ECD3F01758E@TK5EX14MBXC140.redmond.corp.microsoft.com> I forgot to mention that I prefer to go where ?the help is most needed.? So if you guys have areas of particular interest that are lacking, I?d be interested in those once I?ve made my way through the rest of the Kernel#test stuff. -Zac From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Wednesday, April 14, 2010 8:02 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Confirmation of contributor status...? I hadn?t realized the MSFT employment agreement would count so that?s good ?. I?ve been taking Tomas?s suggestion and working my way through Kernel#test flag implementations. I?m interested on the whole in the DLR and IronRuby though. I?d like someday to move that way within the company. I?m fairly close already, working in Runtime Experience in Windows so I get a fair amount of interaction with DevDiv as it is. Anyway back the point at hand, I?d just like to improve things like Kernel#test. Not looking for any high profile work yet, trying to get my feet wet ?. -Zac From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, April 14, 2010 12:36 AM To: Subject: Re: [Ironruby-core] Confirmation of contributor status...? Usually its immediately. Jim gets notifications of contributor agreement requests, so maybe he knows more. Do you already have some part of ironruby in mind to work on? ~Jimmy On Apr 12, 2010, at 11:17 AM, "Zac Brown" > wrote: Hi, I sent an email to ssiadmin asking them to add me as a contributor to IronRuby but haven?t heard a peep out of them. What?s the usual turn around for emails sent to them? Sidenote: I asked to be confirmed on this email address (zbrown at microsoft.com and zac at zacbrown.org). -Zac Zac Brown (zbrown), SDET Windows ? REX Client (86/1601) _______________________________________________ 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 Apr 14 13:56:51 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 14 Apr 2010 17:56:51 +0000 Subject: [Ironruby-core] Confirmation of contributor status...? In-Reply-To: <9A0A7E749ECE86428F45AFEC8A6ECD3F01758E@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <9A0A7E749ECE86428F45AFEC8A6ECD3F014A4F@TK5EX14MBXC140.redmond.corp.microsoft.com> <44670685-215D-4F59-9688-84198F365C30@microsoft.com> <9A0A7E749ECE86428F45AFEC8A6ECD3F017549@TK5EX14MBXC140.redmond.corp.microsoft.com> <9A0A7E749ECE86428F45AFEC8A6ECD3F01758E@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C54210751@TK5EX14MBXC131.redmond.corp.microsoft.com> Cool. That would be the OpenSSL library that I mentioned ?. Thanks! Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Wednesday, April 14, 2010 8:22 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Confirmation of contributor status...? I forgot to mention that I prefer to go where ?the help is most needed.? So if you guys have areas of particular interest that are lacking, I?d be interested in those once I?ve made my way through the rest of the Kernel#test stuff. -Zac From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Wednesday, April 14, 2010 8:02 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Confirmation of contributor status...? I hadn?t realized the MSFT employment agreement would count so that?s good ?. I?ve been taking Tomas?s suggestion and working my way through Kernel#test flag implementations. I?m interested on the whole in the DLR and IronRuby though. I?d like someday to move that way within the company. I?m fairly close already, working in Runtime Experience in Windows so I get a fair amount of interaction with DevDiv as it is. Anyway back the point at hand, I?d just like to improve things like Kernel#test. Not looking for any high profile work yet, trying to get my feet wet ?. -Zac From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, April 14, 2010 12:36 AM To: Subject: Re: [Ironruby-core] Confirmation of contributor status...? Usually its immediately. Jim gets notifications of contributor agreement requests, so maybe he knows more. Do you already have some part of ironruby in mind to work on? ~Jimmy On Apr 12, 2010, at 11:17 AM, "Zac Brown" > wrote: Hi, I sent an email to ssiadmin asking them to add me as a contributor to IronRuby but haven?t heard a peep out of them. What?s the usual turn around for emails sent to them? Sidenote: I asked to be confirmed on this email address (zbrown at microsoft.com and zac at zacbrown.org). -Zac Zac Brown (zbrown), SDET Windows ? REX Client (86/1601) _______________________________________________ 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 Wed Apr 14 10:41:52 2010 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 14 Apr 2010 14:41:52 +0000 Subject: [Ironruby-core] Confirmation of contributor status...? Message-ID: <31BD916A7536A242870B0B4E3F9068D703DE3B81@TK5EX14MBXC136.redmond.corp.microsoft.com> After talking to the Codeplex team (they handle the agreement process), it turns out Ssiadmin has been deprecated and the new process involves the Codeplex feedback form. I'll be updating the wiki. JD ________________________________ From: Jimmy Schementi Sent: Wednesday, April 14, 2010 12:37 AM To: Subject: Re: [Ironruby-core] Confirmation of contributor status...? Usually its immediately. Jim gets notifications of contributor agreement requests, so maybe he knows more. Do you already have some part of ironruby in mind to work on? ~Jimmy On Apr 12, 2010, at 11:17 AM, "Zac Brown" > wrote: Hi, I sent an email to ssiadmin asking them to add me as a contributor to IronRuby but haven?t heard a peep out of them. What?s the usual turn around for emails sent to them? Sidenote: I asked to be confirmed on this email address (zbrown at microsoft.com and zac at zacbrown.org). -Zac Zac Brown (zbrown), SDET Windows ? REX Client (86/1601) _______________________________________________ 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 Wed Apr 14 10:41:52 2010 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 14 Apr 2010 14:41:52 +0000 Subject: [Ironruby-core] Confirmation of contributor status...? Message-ID: <31BD916A7536A242870B0B4E3F9068D703DE3B81@TK5EX14MBXC136.redmond.corp.microsoft.com> After talking to the Codeplex team (they handle the agreement process), it turns out Ssiadmin has been deprecated and the new process involves the Codeplex feedback form. I'll be updating the wiki. JD ________________________________ From: Jimmy Schementi Sent: Wednesday, April 14, 2010 12:37 AM To: Subject: Re: [Ironruby-core] Confirmation of contributor status...? Usually its immediately. Jim gets notifications of contributor agreement requests, so maybe he knows more. Do you already have some part of ironruby in mind to work on? ~Jimmy On Apr 12, 2010, at 11:17 AM, "Zac Brown" > wrote: Hi, I sent an email to ssiadmin asking them to add me as a contributor to IronRuby but haven?t heard a peep out of them. What?s the usual turn around for emails sent to them? Sidenote: I asked to be confirmed on this email address (zbrown at microsoft.com and zac at zacbrown.org). -Zac Zac Brown (zbrown), SDET Windows ? REX Client (86/1601) _______________________________________________ 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 kumpera at gmail.com Thu Apr 15 11:36:26 2010 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Thu, 15 Apr 2010 12:36:26 -0300 Subject: [Ironruby-core] IronRuby + Mono 2.6.3 In-Reply-To: References: <691B30F1-969C-49E5-B28B-5BEFF857D9DE@zacbrown.org> Message-ID: I rather have IronRuby working out of the 2.6 tree since there are going to be a few more 2.6 bugfix releases before 2.8 is out. Do you know what bugs from trunk needs to be backported? On Thu, Apr 8, 2010 at 2:22 AM, Ivan Porto Carrero wrote: > you can't. you need mono trunk > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > Microsoft IronRuby/C# MVP > > > > On Thu, Apr 8, 2010 at 7:09 AM, Zachary Brown wrote: > >> Hi again :) >> >> Trying to build IR on Mono 2.6.3 on my Macbook (10.6.3). Followed basic >> instructions and get it to start building but I'm running into the following >> error on both CasualJim's Linux branch as well as mainline ironruby git: >> >> 21:56:18 zbrown at riemann: ~/Code/ironruby.git/Merlin/Main/Languages/Ruby > >> rake compile mono=1 >> (in /Users/zbrown/Code/ironruby.git/Merlin/Main/Languages/Ruby) >> >> ------------------------------------------------------------------------------- >> dlr_extension >> >> ------------------------------------------------------------------------------- >> >> ------------------------------------------------------------------------------- >> dlr_core >> >> ------------------------------------------------------------------------------- >> Actions/CallSiteBinder.cs(169,18): warning CS0219: The variable >> `targetType' is assigned but its value is never used >> Actions/CallSite.cs(317,17): warning CS0168: The variable `site' is >> declared but never used >> Ast/ExpressionStringBuilder.cs(165,28): warning CS0219: The variable >> `getIndex' is assigned but its value is never used >> Ast/ExpressionStringBuilder.cs(166,28): warning CS0219: The variable >> `setIndex' is assigned but its value is never used >> Ast/ExpressionStringBuilder.cs(167,31): warning CS0219: The variable >> `deleteIndex' is assigned but its value is never used >> Ast/ExpressionStringBuilder.cs(169,26): warning CS0219: The variable >> `invoke' is assigned but its value is never used >> Ast/ExpressionStringBuilder.cs(170,34): warning CS0219: The variable >> `create' is assigned but its value is never used >> Ast/DebugViewWriter.cs(232,28): warning CS0219: The variable `getIndex' is >> assigned but its value is never used >> Ast/DebugViewWriter.cs(233,28): warning CS0219: The variable `setIndex' is >> assigned but its value is never used >> Ast/DebugViewWriter.cs(234,31): warning CS0219: The variable `deleteIndex' >> is assigned but its value is never used >> Ast/DebugViewWriter.cs(236,26): warning CS0219: The variable `invoke' is >> assigned but its value is never used >> Ast/DebugViewWriter.cs(237,34): warning CS0219: The variable `create' is >> assigned but its value is never used >> Ast/DebugViewWriter.cs(869,18): warning CS0219: The variable >> `parenthesize' is assigned but its value is never used >> Compiler/LambdaCompiler.Logical.cs(178,33): warning CS0219: The variable >> `p' is assigned but its value is never used >> Compiler/LambdaCompiler.Unary.cs(111,35): warning CS0219: The variable >> `labIfNull' is assigned but its value is never used >> Compilation succeeded - 15 warning(s) >> >> ------------------------------------------------------------------------------- >> dlr_libs >> >> ------------------------------------------------------------------------------- >> >> ------------------------------------------------------------------------------- >> dlr_com >> >> ------------------------------------------------------------------------------- >> Actions/ActionBinder.cs(131,18): warning CS0219: The variable `visType' is >> assigned but its value is never used >> Actions/DefaultBinder.Conversions.cs(48,18): warning CS0219: The variable >> `knownType' is assigned but its value is never used >> Actions/DefaultBinder.GetMember.cs(215,26): warning CS0219: The variable >> `x' is assigned but its value is never used >> Actions/DefaultBinder.Invoke.cs(261,24): warning CS0219: The variable >> `instance' is assigned but its value is never used >> Interpreter/LightCompiler.cs(915,21): warning CS0219: The variable >> `handlerContinuationDepth' is assigned but its value is never used >> Interpreter/LightCompiler.cs(895,17): warning CS0219: The variable >> `tryStackDepth' is assigned but its value is never used >> Generation/ILGen.cs(1188,18): warning CS0219: The variable >> `isFromFloatingPoint' is assigned but its value is never used >> Generation/Snippets.cs(115,30): warning CS0219: The variable >> `coreAssemblyLocations' is assigned but its value is never used >> Runtime/DelegateInfo.cs(102,26): warning CS0219: The variable >> `convertSiteType' is assigned but its value is never used >> Runtime/DelegateInfo.cs(100,26): warning CS0219: The variable `siteType' >> is assigned but its value is never used >> >> Unhandled Exception: System.ArgumentException: The field handle and the >> type handle are incompatible. >> at System.Reflection.FieldInfo.GetFieldFromHandle (RuntimeFieldHandle >> handle, RuntimeTypeHandle declaringType) [0x00000] in :0 >> at Mono.CSharp.AnonymousMethodStorey.MutateField >> (System.Reflection.FieldInfo field) [0x00000] in :0 >> at Mono.CSharp.FieldExpr.MutateHoistedGenericType >> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >> at Mono.CSharp.TypeCast.MutateHoistedGenericType >> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >> at Mono.CSharp.Binary.MutateHoistedGenericType >> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >> at Mono.CSharp.If.MutateHoistedGenericType >> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >> at Mono.CSharp.Block.MutateHoistedGenericType >> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >> at Mono.CSharp.AnonymousExpression+AnonymousMethodMethod.Emit () >> [0x00000] in :0 >> at Mono.CSharp.TypeContainer.EmitType () [0x00000] in > unknown>:0 >> at Mono.CSharp.AnonymousMethodStorey.EmitType () [0x00000] in > unknown>:0 >> at Mono.CSharp.TypeContainer.EmitType () [0x00000] in > unknown>:0 >> at Mono.CSharp.RootContext.EmitCode () [0x00000] in :0 >> at Mono.CSharp.Driver.Compile () [0x00000] in :0 >> at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in > unknown>:0 >> rake aborted! >> Command failed with status (1): [gmcs /noconfig >> @/var/folders/v1/v1QIwFBJFh...] >> >> (See full trace by running task with --trace) >> >> Thanks, >> >> -- Zac >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bobby.johnson at gmail.com Thu Apr 15 16:42:00 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Thu, 15 Apr 2010 13:42:00 -0700 Subject: [Ironruby-core] Attempting To Get IronRuby.Rack Running a non-demo rails site Message-ID: I have successfully got the IronRuby.Rails.Example project running on my local machine under IIS 5.1. I am now attempting to get my own demo rails site running in the same way. My web.config is different. I am attempting to only use what was distributed with IronRuby 1.0 and what I have installed using gems. I am getting the following error which doesn't give me a lot to go on: D:/demo/config/boot.rb:66:in `exit': exit (SystemExit) After trying many different things, I think it is having a problem finding gems. I have attached my web config and ironrack.log. Does anyone have pointers on what I am doing wrong? Thanks! -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ironrack.log Type: application/octet-stream Size: 13364 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: web.config Type: application/octet-stream Size: 2305 bytes Desc: not available URL: From will at hotgazpacho.org Thu Apr 15 22:16:15 2010 From: will at hotgazpacho.org (Will Green) Date: Thu, 15 Apr 2010 22:16:15 -0400 Subject: [Ironruby-core] Attempting To Get IronRuby.Rack Running a non-demo rails site In-Reply-To: References: Message-ID: It would be helpful to know what the output of both *ir -S gem env *and *ir -S gem list* **You may have a mismatch between the version of Rails that your app is expecting vs the version you have installed. Check config/environment.rb for RAILS_GEM_VERSION -- Will Green http://hotgazpacho.org/ On Thu, Apr 15, 2010 at 4:42 PM, Bobby Johnson wrote: > I have successfully got the IronRuby.Rails.Example project running on my > local machine under IIS 5.1. I am now attempting to get my own demo rails > site running in the same way. My web.config is different. I am attempting to > only use what was distributed with IronRuby 1.0 and what I have installed > using gems. > > I am getting the following error which doesn't give me a lot to go on: > > D:/demo/config/boot.rb:66:in `exit': exit (SystemExit) > > After trying many different things, I think it is having a problem finding > gems. I have attached my web config and ironrack.log. Does anyone have > pointers on what I am doing wrong? > > Thanks! > > -- > "The explanation requiring the fewest assumptions is most likely to be > correct." > > - Occam?s Razor > http://en.wikipedia.org/wiki/Occam's_Razor > > _______________________________________________ > 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 ivan at cloudslide.net Fri Apr 16 06:09:16 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Fri, 16 Apr 2010 12:09:16 +0200 Subject: [Ironruby-core] IronRuby + Mono 2.6.3 In-Reply-To: References: <691B30F1-969C-49E5-B28B-5BEFF857D9DE@zacbrown.org> Message-ID: I'm not sure which bug it is but there is a difference between using ironruby and building ironruby on mono. You should be able to use the ms.net binaries with mono 2.6.3 It's a compiler bug that had been closed once but regressed. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Thu, Apr 15, 2010 at 5:36 PM, Rodrigo Kumpera wrote: > I rather have IronRuby working out of the 2.6 tree since there are going to > be a few more 2.6 bugfix releases > before 2.8 is out. Do you know what bugs from trunk needs to be backported? > > > On Thu, Apr 8, 2010 at 2:22 AM, Ivan Porto Carrero wrote: > >> you can't. you need mono trunk >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> Microsoft IronRuby/C# MVP >> >> >> >> On Thu, Apr 8, 2010 at 7:09 AM, Zachary Brown wrote: >> >>> Hi again :) >>> >>> Trying to build IR on Mono 2.6.3 on my Macbook (10.6.3). Followed basic >>> instructions and get it to start building but I'm running into the following >>> error on both CasualJim's Linux branch as well as mainline ironruby git: >>> >>> 21:56:18 zbrown at riemann: ~/Code/ironruby.git/Merlin/Main/Languages/Ruby >>> > rake compile mono=1 >>> (in /Users/zbrown/Code/ironruby.git/Merlin/Main/Languages/Ruby) >>> >>> ------------------------------------------------------------------------------- >>> dlr_extension >>> >>> ------------------------------------------------------------------------------- >>> >>> ------------------------------------------------------------------------------- >>> dlr_core >>> >>> ------------------------------------------------------------------------------- >>> Actions/CallSiteBinder.cs(169,18): warning CS0219: The variable >>> `targetType' is assigned but its value is never used >>> Actions/CallSite.cs(317,17): warning CS0168: The variable `site' is >>> declared but never used >>> Ast/ExpressionStringBuilder.cs(165,28): warning CS0219: The variable >>> `getIndex' is assigned but its value is never used >>> Ast/ExpressionStringBuilder.cs(166,28): warning CS0219: The variable >>> `setIndex' is assigned but its value is never used >>> Ast/ExpressionStringBuilder.cs(167,31): warning CS0219: The variable >>> `deleteIndex' is assigned but its value is never used >>> Ast/ExpressionStringBuilder.cs(169,26): warning CS0219: The variable >>> `invoke' is assigned but its value is never used >>> Ast/ExpressionStringBuilder.cs(170,34): warning CS0219: The variable >>> `create' is assigned but its value is never used >>> Ast/DebugViewWriter.cs(232,28): warning CS0219: The variable `getIndex' >>> is assigned but its value is never used >>> Ast/DebugViewWriter.cs(233,28): warning CS0219: The variable `setIndex' >>> is assigned but its value is never used >>> Ast/DebugViewWriter.cs(234,31): warning CS0219: The variable >>> `deleteIndex' is assigned but its value is never used >>> Ast/DebugViewWriter.cs(236,26): warning CS0219: The variable `invoke' is >>> assigned but its value is never used >>> Ast/DebugViewWriter.cs(237,34): warning CS0219: The variable `create' is >>> assigned but its value is never used >>> Ast/DebugViewWriter.cs(869,18): warning CS0219: The variable >>> `parenthesize' is assigned but its value is never used >>> Compiler/LambdaCompiler.Logical.cs(178,33): warning CS0219: The variable >>> `p' is assigned but its value is never used >>> Compiler/LambdaCompiler.Unary.cs(111,35): warning CS0219: The variable >>> `labIfNull' is assigned but its value is never used >>> Compilation succeeded - 15 warning(s) >>> >>> ------------------------------------------------------------------------------- >>> dlr_libs >>> >>> ------------------------------------------------------------------------------- >>> >>> ------------------------------------------------------------------------------- >>> dlr_com >>> >>> ------------------------------------------------------------------------------- >>> Actions/ActionBinder.cs(131,18): warning CS0219: The variable `visType' >>> is assigned but its value is never used >>> Actions/DefaultBinder.Conversions.cs(48,18): warning CS0219: The variable >>> `knownType' is assigned but its value is never used >>> Actions/DefaultBinder.GetMember.cs(215,26): warning CS0219: The variable >>> `x' is assigned but its value is never used >>> Actions/DefaultBinder.Invoke.cs(261,24): warning CS0219: The variable >>> `instance' is assigned but its value is never used >>> Interpreter/LightCompiler.cs(915,21): warning CS0219: The variable >>> `handlerContinuationDepth' is assigned but its value is never used >>> Interpreter/LightCompiler.cs(895,17): warning CS0219: The variable >>> `tryStackDepth' is assigned but its value is never used >>> Generation/ILGen.cs(1188,18): warning CS0219: The variable >>> `isFromFloatingPoint' is assigned but its value is never used >>> Generation/Snippets.cs(115,30): warning CS0219: The variable >>> `coreAssemblyLocations' is assigned but its value is never used >>> Runtime/DelegateInfo.cs(102,26): warning CS0219: The variable >>> `convertSiteType' is assigned but its value is never used >>> Runtime/DelegateInfo.cs(100,26): warning CS0219: The variable `siteType' >>> is assigned but its value is never used >>> >>> Unhandled Exception: System.ArgumentException: The field handle and the >>> type handle are incompatible. >>> at System.Reflection.FieldInfo.GetFieldFromHandle (RuntimeFieldHandle >>> handle, RuntimeTypeHandle declaringType) [0x00000] in :0 >>> at Mono.CSharp.AnonymousMethodStorey.MutateField >>> (System.Reflection.FieldInfo field) [0x00000] in :0 >>> at Mono.CSharp.FieldExpr.MutateHoistedGenericType >>> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >>> at Mono.CSharp.TypeCast.MutateHoistedGenericType >>> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >>> at Mono.CSharp.Binary.MutateHoistedGenericType >>> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >>> at Mono.CSharp.If.MutateHoistedGenericType >>> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >>> at Mono.CSharp.Block.MutateHoistedGenericType >>> (Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0 >>> at Mono.CSharp.AnonymousExpression+AnonymousMethodMethod.Emit () >>> [0x00000] in :0 >>> at Mono.CSharp.TypeContainer.EmitType () [0x00000] in >> unknown>:0 >>> at Mono.CSharp.AnonymousMethodStorey.EmitType () [0x00000] in >> unknown>:0 >>> at Mono.CSharp.TypeContainer.EmitType () [0x00000] in >> unknown>:0 >>> at Mono.CSharp.RootContext.EmitCode () [0x00000] in :0 >>> at Mono.CSharp.Driver.Compile () [0x00000] in :0 >>> at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in >> unknown>:0 >>> rake aborted! >>> Command failed with status (1): [gmcs /noconfig >>> @/var/folders/v1/v1QIwFBJFh...] >>> >>> (See full trace by running task with --trace) >>> >>> Thanks, >>> >>> -- Zac >>> _______________________________________________ >>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at cloudslide.net Fri Apr 16 06:11:57 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Fri, 16 Apr 2010 12:11:57 +0200 Subject: [Ironruby-core] Attempting To Get IronRuby.Rack Running a non-demo rails site In-Reply-To: References: Message-ID: where did you place the web.config? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero - Mob: +32.486.787.582 Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Thu, Apr 15, 2010 at 10:42 PM, Bobby Johnson wrote: > I have successfully got the IronRuby.Rails.Example project running on my > local machine under IIS 5.1. I am now attempting to get my own demo rails > site running in the same way. My web.config is different. I am attempting to > only use what was distributed with IronRuby 1.0 and what I have installed > using gems. > > I am getting the following error which doesn't give me a lot to go on: > > D:/demo/config/boot.rb:66:in `exit': exit (SystemExit) > > After trying many different things, I think it is having a problem finding > gems. I have attached my web config and ironrack.log. Does anyone have > pointers on what I am doing wrong? > > Thanks! > > -- > "The explanation requiring the fewest assumptions is most likely to be > correct." > > - Occam?s Razor > http://en.wikipedia.org/wiki/Occam's_Razor > > _______________________________________________ > 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 bobby.johnson at gmail.com Fri Apr 16 10:48:06 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Fri, 16 Apr 2010 07:48:06 -0700 Subject: [Ironruby-core] Attempting To Get IronRuby.Rack Running a non-demo rails site In-Reply-To: References: Message-ID: I was able to figure this one out with the help if stackoverflow. Basically what it boiled down to was having two version of the rack gem installed; 1.0.1 and 1.1.0. I uninstalled 1.1.0 and it started working. So the IronRack implementation sample doesn't quite meet the spec for the newer version. On Fri, Apr 16, 2010 at 3:11 AM, Ivan Porto Carrero wrote: > where did you place the web.config? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero - Mob: +32.486.787.582 > Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > Microsoft IronRuby/C# MVP > > > On Thu, Apr 15, 2010 at 10:42 PM, Bobby Johnson wrote: > >> I have successfully got the IronRuby.Rails.Example project running on my >> local machine under IIS 5.1. I am now attempting to get my own demo rails >> site running in the same way. My web.config is different. I am attempting to >> only use what was distributed with IronRuby 1.0 and what I have installed >> using gems. >> >> I am getting the following error which doesn't give me a lot to go on: >> >> D:/demo/config/boot.rb:66:in `exit': exit (SystemExit) >> >> After trying many different things, I think it is having a problem finding >> gems. I have attached my web config and ironrack.log. Does anyone have >> pointers on what I am doing wrong? >> >> Thanks! >> >> -- >> "The explanation requiring the fewest assumptions is most likely to be >> correct." >> >> - Occam?s Razor >> http://en.wikipedia.org/wiki/Occam's_Razor >> >> _______________________________________________ >> 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 > > -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Apr 16 13:12:23 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 16 Apr 2010 17:12:23 +0000 Subject: [Ironruby-core] Attempting To Get IronRuby.Rack Running a non-demo rails site In-Reply-To: References: Message-ID: <55156A38-F6A1-4C4E-9B01-54348129E88B@microsoft.com> I wasn't aware of any major spec changes between those versions but I'll look into it. Also, the first binary release of ironruby.rack is coming up, which will have documentation, automation scripts, and will work on IIS 6 and 7. There's also a bug with serving binary files, so images won't work, but that'll be fixed for this release. I'll also apply ivan's web.config move patch ... Any other bugs blocking people want fixed? ~Jimmy On Apr 16, 2010, at 7:48 AM, "Bobby Johnson" > wrote: I was able to figure this one out with the help if stackoverflow. Basically what it boiled down to was having two version of the rack gem installed; 1.0.1 and 1.1.0. I uninstalled 1.1.0 and it started working. So the IronRack implementation sample doesn't quite meet the spec for the newer version. On Fri, Apr 16, 2010 at 3:11 AM, Ivan Porto Carrero <ivan at cloudslide.net> wrote: where did you place the web.config? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero - Mob: +32.486.787.582 Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Thu, Apr 15, 2010 at 10:42 PM, Bobby Johnson <bobby.johnson at gmail.com> wrote: I have successfully got the IronRuby.Rails.Example project running on my local machine under IIS 5.1. I am now attempting to get my own demo rails site running in the same way. My web.config is different. I am attempting to only use what was distributed with IronRuby 1.0 and what I have installed using gems. I am getting the following error which doesn't give me a lot to go on: D:/demo/config/boot.rb:66:in `exit': exit (SystemExit) After trying many different things, I think it is having a problem finding gems. I have attached my web config and ironrack.log. Does anyone have pointers on what I am doing wrong? Thanks! -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor _______________________________________________ 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 -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor _______________________________________________ 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 bobby.johnson at gmail.com Fri Apr 16 17:41:47 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Fri, 16 Apr 2010 14:41:47 -0700 Subject: [Ironruby-core] Attempting To Get IronRuby.Rack Running a non-demo rails site In-Reply-To: <55156A38-F6A1-4C4E-9B01-54348129E88B@microsoft.com> References: <55156A38-F6A1-4C4E-9B01-54348129E88B@microsoft.com> Message-ID: I wouldn't stress to hard. I am using the IronRack build from the source on github, so it is prolly old. On Fri, Apr 16, 2010 at 10:12 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > I wasn't aware of any major spec changes between those versions but I'll > look into it. Also, the first binary release of ironruby.rack is coming up, > which will have documentation, automation scripts, and will work on IIS 6 > and 7. There's also a bug with serving binary files, so images won't work, > but that'll be fixed for this release. I'll also apply ivan's web.config > move patch ... Any other bugs blocking people want fixed? > > ~Jimmy > > On Apr 16, 2010, at 7:48 AM, "Bobby Johnson" > wrote: > > I was able to figure this one out with the help if stackoverflow. Basically > what it boiled down to was having two version of the rack gem installed; > 1.0.1 and 1.1.0. I uninstalled 1.1.0 and it started working. So the IronRack > implementation sample doesn't quite meet the spec for the newer version. > > On Fri, Apr 16, 2010 at 3:11 AM, Ivan Porto Carrero < > ivan at cloudslide.net> wrote: > >> where did you place the web.config? >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero - Mob: +32.486.787.582 >> Web: http://whiterabbitconsulting.eu - >> http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action ( >> http://manning.com/carrero) >> Microsoft IronRuby/C# MVP >> >> >> On Thu, Apr 15, 2010 at 10:42 PM, Bobby Johnson < >> bobby.johnson at gmail.com> wrote: >> >>> I have successfully got the IronRuby.Rails.Example project running on my >>> local machine under IIS 5.1. I am now attempting to get my own demo rails >>> site running in the same way. My web.config is different. I am attempting to >>> only use what was distributed with IronRuby 1.0 and what I have installed >>> using gems. >>> >>> I am getting the following error which doesn't give me a lot to go on: >>> >>> D:/demo/config/boot.rb:66:in `exit': exit (SystemExit) >>> >>> After trying many different things, I think it is having a problem >>> finding gems. I have attached my web config and ironrack.log. Does anyone >>> have pointers on what I am doing wrong? >>> >>> Thanks! >>> >>> -- >>> "The explanation requiring the fewest assumptions is most likely to be >>> correct." >>> >>> - Occam?s Razor >>> >>> http://en.wikipedia.org/wiki/Occam's_Razor >>> >>> _______________________________________________ >>> 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 >> >> > > > -- > "The explanation requiring the fewest assumptions is most likely to be > correct." > > - Occam?s Razor > > http://en.wikipedia.org/wiki/Occam's_Razor > > _______________________________________________ > 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 > > -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: From SHolder at randgrp.com Fri Apr 16 17:55:07 2010 From: SHolder at randgrp.com (Shane Holder) Date: Fri, 16 Apr 2010 16:55:07 -0500 Subject: [Ironruby-core] Attempting To Get IronRuby.Rack Running a non-demo rails site In-Reply-To: <55156A38-F6A1-4C4E-9B01-54348129E88B@microsoft.com> References: <55156A38-F6A1-4C4E-9B01-54348129E88B@microsoft.com> Message-ID: <67DA98B0F14DAD4AAC6AB14DEB37A95D5B02D93C6A@rrhoumx2.randgrp.com> I was just looking into spinning up an environment under IIS but it sounds like I should wait for IronRuby.Rack? I am new to Ruby and it seems that there is a lot of old documentation around about how to get this working. If the binary version is close to release (days) I would rather wait than try to find the right magic keystrokes to make it happen. Thanks for any advice. Shane Holder The Rand Group, LLC sholder at randgrp.com 972.978.6559 Cell 713.341.9387 Direct 713.850.0747 Main Office www.randgrp.com [cid:image001.jpg at 01CADD85.916F74B0] From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Friday, April 16, 2010 12:12 PM To: Subject: Re: [Ironruby-core] Attempting To Get IronRuby.Rack Running a non-demo rails site I wasn't aware of any major spec changes between those versions but I'll look into it. Also, the first binary release of ironruby.rack is coming up, which will have documentation, automation scripts, and will work on IIS 6 and 7. There's also a bug with serving binary files, so images won't work, but that'll be fixed for this release. I'll also apply ivan's web.config move patch ... Any other bugs blocking people want fixed? ~Jimmy On Apr 16, 2010, at 7:48 AM, "Bobby Johnson" > wrote: I was able to figure this one out with the help if stackoverflow. Basically what it boiled down to was having two version of the rack gem installed; 1.0.1 and 1.1.0. I uninstalled 1.1.0 and it started working. So the IronRack implementation sample doesn't quite meet the spec for the newer version. On Fri, Apr 16, 2010 at 3:11 AM, Ivan Porto Carrero > wrote: where did you place the web.config? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero - Mob: +32.486.787.582 Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Thu, Apr 15, 2010 at 10:42 PM, Bobby Johnson > wrote: I have successfully got the IronRuby.Rails.Example project running on my local machine under IIS 5.1. I am now attempting to get my own demo rails site running in the same way. My web.config is different. I am attempting to only use what was distributed with IronRuby 1.0 and what I have installed using gems. I am getting the following error which doesn't give me a lot to go on: D:/demo/config/boot.rb:66:in `exit': exit (SystemExit) After trying many different things, I think it is having a problem finding gems. I have attached my web config and ironrack.log. Does anyone have pointers on what I am doing wrong? Thanks! -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor _______________________________________________ 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 -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core ________________________________ This email message and any attachments are intended for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email you are hereby notified that any dissemination, distribution or copying of this email and any attachments thereto is strictly prohibited. If you have received this email in error please notify the sender and permanently delete the original and any copies of this email and any prints thereof. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3611 bytes Desc: image001.jpg URL: From bobby.johnson at gmail.com Fri Apr 16 18:15:52 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Fri, 16 Apr 2010 15:15:52 -0700 Subject: [Ironruby-core] Attempting To Get IronRuby.Rack Running a non-demo rails site In-Reply-To: <67DA98B0F14DAD4AAC6AB14DEB37A95D5B02D93C6A@rrhoumx2.randgrp.com> References: <55156A38-F6A1-4C4E-9B01-54348129E88B@microsoft.com> <67DA98B0F14DAD4AAC6AB14DEB37A95D5B02D93C6A@rrhoumx2.randgrp.com> Message-ID: Hi Shane, Id be happy to share with you what I have if you are interested. I have an app running under IIS 5.1 and have been working on getting it running under IIS7. On Fri, Apr 16, 2010 at 2:55 PM, Shane Holder wrote: > I was just looking into spinning up an environment under IIS but it > sounds like I should wait for IronRuby.Rack? I am new to Ruby and it seems > that there is a lot of old documentation around about how to get this > working. If the binary version is close to release (days) I would rather > wait than try to find the right magic keystrokes to make it happen. > > > > Thanks for any advice. > > > > Shane Holder > > The Rand Group, LLC > > sholder at randgrp.com > > 972.978.6559 Cell > > 713.341.9387 Direct > > 713.850.0747 Main Office > > www.randgrp.com > > [image: trg_email_logo (2)] > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jimmy Schementi > *Sent:* Friday, April 16, 2010 12:12 PM > *To:* > *Subject:* Re: [Ironruby-core] Attempting To Get IronRuby.Rack Running a > non-demo rails site > > > > I wasn't aware of any major spec changes between those versions but I'll > look into it. Also, the first binary release of ironruby.rack is coming up, > which will have documentation, automation scripts, and will work on IIS 6 > and 7. There's also a bug with serving binary files, so images won't work, > but that'll be fixed for this release. I'll also apply ivan's web.config > move patch ... Any other bugs blocking people want fixed? > > > ~Jimmy > > > On Apr 16, 2010, at 7:48 AM, "Bobby Johnson" > wrote: > > I was able to figure this one out with the help if stackoverflow. > Basically what it boiled down to was having two version of the rack gem > installed; 1.0.1 and 1.1.0. I uninstalled 1.1.0 and it started working. So > the IronRack implementation sample doesn't quite meet the spec for the newer > version. > > On Fri, Apr 16, 2010 at 3:11 AM, Ivan Porto Carrero > wrote: > > where did you place the web.config? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero - Mob: +32.486.787.582 > Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > Microsoft IronRuby/C# MVP > > On Thu, Apr 15, 2010 at 10:42 PM, Bobby Johnson > wrote: > > I have successfully got the IronRuby.Rails.Example project running on my > local machine under IIS 5.1. I am now attempting to get my own demo rails > site running in the same way. My web.config is different. I am attempting to > only use what was distributed with IronRuby 1.0 and what I have installed > using gems. > > I am getting the following error which doesn't give me a lot to go on: > > D:/demo/config/boot.rb:66:in `exit': exit (SystemExit) > > After trying many different things, I think it is having a problem finding > gems. I have attached my web config and ironrack.log. Does anyone have > pointers on what I am doing wrong? > > Thanks! > > -- > "The explanation requiring the fewest assumptions is most likely to be > correct." > > - Occam?s Razor > http://en.wikipedia.org/wiki/Occam's_Razor > > _______________________________________________ > 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 > > > > > -- > "The explanation requiring the fewest assumptions is most likely to be > correct." > > - Occam?s Razor > http://en.wikipedia.org/wiki/Occam's_Razor > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > ------------------------------ > This email message and any attachments are intended for use by the > addressee(s) named herein and may contain legally privileged and/or > confidential information. If you are not the intended recipient of this > email you are hereby notified that any dissemination, distribution or > copying of this email and any attachments thereto is strictly prohibited. If > you have received this email in error please notify the sender and > permanently delete the original and any copies of this email and any prints > thereof. > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 3611 bytes Desc: not available URL: From ryan.riley at panesofglass.org Sat Apr 17 02:35:47 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 16 Apr 2010 23:35:47 -0700 Subject: [Ironruby-core] Code Review: Etc module for Mono Message-ID: http://github.com/panesofglass/ironruby git diff attached * Implements the Etc module for Mono * Adds RubySpec updates for the Etc library * Additional updates (dev.sh, ir.sh, many path-related changes) to allow *nix devs to run irtests, though this isn't complete. Regards, Ryan Riley -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ironruby-etc.diff Type: application/octet-stream Size: 30457 bytes Desc: not available URL: From ryan.riley at panesofglass.org Sat Apr 17 02:39:53 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 16 Apr 2010 23:39:53 -0700 Subject: [Ironruby-core] Code Review: Etc module for Mono In-Reply-To: References: Message-ID: Many thanks to Ivan for his dev.sh, ir.sh, and help with many of the implementation details. Gotta give credit where credit is due. The bad Ruby idioms will all be due to me, so just let me know what you need me to change. :) Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Fri, Apr 16, 2010 at 11:35 PM, Ryan Riley wrote: > http://github.com/panesofglass/ironruby > git diff attached > > * Implements the Etc module for Mono > * Adds RubySpec updates for the Etc library > * Additional updates (dev.sh, ir.sh, many path-related changes) to allow > *nix devs to run irtests, though this isn't complete. > > Regards, > > Ryan Riley > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sat Apr 17 03:48:39 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 17 Apr 2010 00:48:39 -0700 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> Message-ID: <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> Or use hpricot or nokogiri Ruby libraries. You will find several libs to choose from. Sent from my iPhone On Mar 18, 2010, at 11:41 PM, Ivan Porto Carrero wrote: > There are several ways to do that with IronRuby. > > Very CLR centric: > You can create a proxy to your webservice using visual studio, > compile to a dll and use the proxy from your ruby code. > > CLR centric: > You can use System.Net.HttpWebRequest to make the request and > System.Xml.XmlDocument to parse the response > > Very Ruby centric: > Use Net::HTTP to perform the request and REXML to parse the response > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > Microsoft IronRuby/C# MVP > > > On Fri, Mar 19, 2010 at 7:19 AM, sagasw wrote: > I want to find a solution in IronRuby to use RPC function. > I tried SOAP, but it can't work, any one could tell me how to > implement RPC (or XMLRPC) in ironruby? > Thanks, > > ------------------------------------ > C++, Lua, living in Dalian > http://sunxiunan.com/ > http://twitter.com/sagasw > ------------------------------------ > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sanxiyn at gmail.com Sat Apr 17 04:47:52 2010 From: sanxiyn at gmail.com (Seo Sanghyeon) Date: Sat, 17 Apr 2010 17:47:52 +0900 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> Message-ID: 2010/4/17 Ryan Riley : > Or use hpricot or nokogiri Ruby libraries. You will find several libs to > choose from. Does nokogiri work on IronRuby?! -- Seo Sanghyeon From Tomas.Matousek at microsoft.com Sat Apr 17 12:05:42 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 17 Apr 2010 16:05:42 +0000 Subject: [Ironruby-core] Code Review: Etc module for Mono In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C54213CC8@TK5EX14MBXC131.redmond.corp.microsoft.com> In irtests.rb: We already have an environment variable ROWAN_RUNTIME that is used to run tests on Mono. No need to add cmd_prefix. Just in your dev.sh set ROWAN_RUNTIME to ?mono?. Why do you need to set debug_folder to mono_debug? Why couldn?t mono build to the same folders (Debug/V4 Debug) as on Windows? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Friday, April 16, 2010 11:40 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Code Review: Etc module for Mono Many thanks to Ivan for his dev.sh, ir.sh, and help with many of the implementation details. Gotta give credit where credit is due. The bad Ruby idioms will all be due to me, so just let me know what you need me to change. :) Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Fri, Apr 16, 2010 at 11:35 PM, Ryan Riley > wrote: http://github.com/panesofglass/ironruby git diff attached * Implements the Etc module for Mono * Adds RubySpec updates for the Etc library * Additional updates (dev.sh, ir.sh, many path-related changes) to allow *nix devs to run irtests, though this isn't complete. Regards, Ryan Riley -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sat Apr 17 14:26:42 2010 From: lists at ruby-forum.com (Brian Sullivan) Date: Sat, 17 Apr 2010 20:26:42 +0200 Subject: [Ironruby-core] IronRuby on Rails and IIS 6 or IIS 7 In-Reply-To: References: <6459203F8B1AF641995AE49D47FA51A7133C7422@TK5EX14MBXC134.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92173157F4@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: <2e1ae1c141e30e5ec5d5e15cf4529e16@ruby-forum.com> Ivan, I'm having the same problem. Everything else seems to work, but no images show up. The image URLs generated by the framework seem to be correct, but I get broken image icons when I paste those URLs directly into the address bar. It seems odd, because other types of static content (css files and index.html) seem to come down just fine. Not sure whether this needs to be tweaked in Rails, IIS, or the Rack implementation. Any guidance from the IronRuby team here? Thanks, and congrats on shipping 1.0! Brian -- Posted via http://www.ruby-forum.com/. From bobby.johnson at gmail.com Sat Apr 17 14:59:26 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Sat, 17 Apr 2010 11:59:26 -0700 Subject: [Ironruby-core] IronRuby on Rails and IIS 6 or IIS 7 In-Reply-To: <2e1ae1c141e30e5ec5d5e15cf4529e16@ruby-forum.com> References: <6459203F8B1AF641995AE49D47FA51A7133C7422@TK5EX14MBXC134.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92173157F4@TK5EX14MBXC136.redmond.corp.microsoft.com> <2e1ae1c141e30e5ec5d5e15cf4529e16@ruby-forum.com> Message-ID: yeah I am getting the same thing. Even just pulling the image up directly. mysite.com/images/image.png in firefox says the image is corrupt. On Sat, Apr 17, 2010 at 11:26 AM, Brian Sullivan wrote: > Ivan, I'm having the same problem. Everything else seems to work, but > no images show up. The image URLs generated by the framework seem to be > correct, but I get broken image icons when I paste those URLs directly > into the address bar. > > It seems odd, because other types of static content (css files and > index.html) seem to come down just fine. Not sure whether this needs to > be tweaked in Rails, IIS, or the Rack implementation. > > Any guidance from the IronRuby team here? Thanks, and congrats > on shipping 1.0! > > Brian > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sat Apr 17 15:14:46 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 17 Apr 2010 12:14:46 -0700 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> Message-ID: <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> Maybe I spoke too soon, but I thought it did. I was switching back and forth a lot at the time. I will try again once I get everything re- installed. Sent from my iPhone On Apr 17, 2010, at 1:47 AM, Seo Sanghyeon wrote: > 2010/4/17 Ryan Riley : >> Or use hpricot or nokogiri Ruby libraries. You will find several >> libs to >> choose from. > > Does nokogiri work on IronRuby?! > > -- > Seo Sanghyeon > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Sat Apr 17 15:16:29 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sat, 17 Apr 2010 19:16:29 +0000 Subject: [Ironruby-core] IronRuby on Rails and IIS 6 or IIS 7 In-Reply-To: References: <6459203F8B1AF641995AE49D47FA51A7133C7422@TK5EX14MBXC134.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92173157F4@TK5EX14MBXC136.redmond.corp.microsoft.com> <2e1ae1c141e30e5ec5d5e15cf4529e16@ruby-forum.com> Message-ID: As I've already said: > There's also a bug with serving binary files, so images won't work, but that'll be fixed for this release. ~Jimmy On Apr 17, 2010, at 12:00 PM, "Bobby Johnson" > wrote: yeah I am getting the same thing. Even just pulling the image up directly. mysite.com/images/image.png in firefox says the image is corrupt. On Sat, Apr 17, 2010 at 11:26 AM, Brian Sullivan <lists at ruby-forum.com> wrote: Ivan, I'm having the same problem. Everything else seems to work, but no images show up. The image URLs generated by the framework seem to be correct, but I get broken image icons when I paste those URLs directly into the address bar. It seems odd, because other types of static content (css files and index.html) seem to come down just fine. Not sure whether this needs to be tweaked in Rails, IIS, or the Rack implementation. Any guidance from the IronRuby team here? Thanks, and congrats on shipping 1.0! Brian -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor _______________________________________________ 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 lists at ruby-forum.com Sat Apr 17 17:06:41 2010 From: lists at ruby-forum.com (Brian Sullivan) Date: Sat, 17 Apr 2010 23:06:41 +0200 Subject: [Ironruby-core] IronRuby on Rails and IIS 6 or IIS 7 In-Reply-To: References: <6459203F8B1AF641995AE49D47FA51A7133C7422@TK5EX14MBXC134.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92173157F4@TK5EX14MBXC136.redmond.corp.microsoft.com> <2e1ae1c141e30e5ec5d5e15cf4529e16@ruby-forum.com> Message-ID: <6472e0485e8594d1d3548758e794b6de@ruby-forum.com> Jimmy, Apologies, my searches didn't turn up that particular comment. Didn't mean to make you repeat yourself. :-) Looking forward to future releases of IronRuby and Rack for IIS! Brian -- Posted via http://www.ruby-forum.com/. From ivan at cloudslide.net Sun Apr 18 03:01:20 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Sun, 18 Apr 2010 09:01:20 +0200 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> Message-ID: nokogiri works on windows but not on IronRuby ... it needs a C-extension --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Sat, Apr 17, 2010 at 9:14 PM, Ryan Riley wrote: > Maybe I spoke too soon, but I thought it did. I was switching back and > forth a lot at the time. I will try again once I get everything > re-installed. > > Sent from my iPhone > > > On Apr 17, 2010, at 1:47 AM, Seo Sanghyeon wrote: > > 2010/4/17 Ryan Riley : >> >>> Or use hpricot or nokogiri Ruby libraries. You will find several libs to >>> choose from. >>> >> >> Does nokogiri work on IronRuby?! >> >> -- >> Seo Sanghyeon >> _______________________________________________ >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Sun Apr 18 03:49:01 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sun, 18 Apr 2010 07:49:01 +0000 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> Message-ID: <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> So whose going to port it? :) or even implement FFI? ~Jimmy On Apr 18, 2010, at 12:02 AM, "Ivan Porto Carrero" > wrote: nokogiri works on windows but not on IronRuby ... it needs a C-extension --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Sat, Apr 17, 2010 at 9:14 PM, Ryan Riley <ryan.riley at panesofglass.org> wrote: Maybe I spoke too soon, but I thought it did. I was switching back and forth a lot at the time. I will try again once I get everything re-installed. Sent from my iPhone On Apr 17, 2010, at 1:47 AM, Seo Sanghyeon <sanxiyn at gmail.com> wrote: 2010/4/17 Ryan Riley <ryan.riley at panesofglass.org>: Or use hpricot or nokogiri Ruby libraries. You will find several libs to choose from. Does nokogiri work on IronRuby?! -- Seo Sanghyeon _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From suppakilla at gmail.com Sun Apr 18 05:41:26 2010 From: suppakilla at gmail.com (Daniele Alessandri) Date: Sun, 18 Apr 2010 11:41:26 +0200 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> Message-ID: On Sun, Apr 18, 2010 at 09:49, Jimmy Schementi wrote: > So whose going to port it? :) or even implement FFI? Nokogiri is built on top of libxml2 and libxslt so we could have a C# Nokogiri that performs interop with those libraries, but a fully-managed Nokogiri would be cooler (BTW the JRuby guys are reaching the goal of a pure-Java version and they are close to passing all the tests). I did a very quick research on the subject a few weeks ago. The reader bits should be relatively easy to port since, as far as I remember, the reader interface of libxml2 is modeled after the XmlTextReader class of .NET. "SAX for .NET" could be used for the SAX parser to start (it's BSD licensed but hasn't been updated since ages... we just don't have Xerces :-)). Mono has something for RelaxNG validation. -- Daniele Alessandri http://www.clorophilla.net/ http://twitter.com/JoL1hAHN From ryan.riley at panesofglass.org Sun Apr 18 17:10:30 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 18 Apr 2010 14:10:30 -0700 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> Message-ID: Speaking of FFI, what's the tradeoff here? FFI let's us use the existing libraries without porting, but a managed alternative should be more performant, right? Seems like FFI is the winner here, but I may be missing something. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sun, Apr 18, 2010 at 12:49 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > So whose going to port it? :) or even implement FFI? > > ~Jimmy > > On Apr 18, 2010, at 12:02 AM, "Ivan Porto Carrero" > wrote: > > nokogiri works on windows but not on IronRuby ... it needs a C-extension > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Web: http://whiterabbitconsulting.eu - > http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action ( > http://manning.com/carrero) > Microsoft IronRuby/C# MVP > > > On Sat, Apr 17, 2010 at 9:14 PM, Ryan Riley < > ryan.riley at panesofglass.org> wrote: > >> Maybe I spoke too soon, but I thought it did. I was switching back and >> forth a lot at the time. I will try again once I get everything >> re-installed. >> >> Sent from my iPhone >> >> >> On Apr 17, 2010, at 1:47 AM, Seo Sanghyeon < >> sanxiyn at gmail.com> wrote: >> >> 2010/4/17 Ryan Riley < >>> ryan.riley at panesofglass.org>: >>> >>>> Or use hpricot or nokogiri Ruby libraries. You will find several libs to >>>> choose from. >>>> >>> >>> Does nokogiri work on IronRuby?! >>> >>> -- >>> Seo Sanghyeon >>> _______________________________________________ >>> 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 > > > _______________________________________________ > 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 mmaxild at gmail.com Sun Apr 18 17:13:15 2010 From: mmaxild at gmail.com (Morten Maxild) Date: Sun, 18 Apr 2010 23:13:15 +0200 Subject: [Ironruby-core] ri (doc tool) under ironruby Message-ID: <19FD36DE-F739-4D12-8175-F4BD17690C3B@gmail.com> Hi, I cannot get "ri" to work under ironruby 1.0v4. When ever I try to use the iri.bat command ("PS > iri --help" or "PS > ir -S ri --help") I receive the following std output: "No ri documentation found in: Was rdoc run to create documentation? No usage information available for this program Note to developer: requested section(s) [Installing Documentation] not found" I have searched for an answer, but can't find one. Any ideas? Thanks Morten P.S. Don't know if there is a 'user mailing list' better suited for such 'basic user' questions? From ryan.riley at panesofglass.org Sun Apr 18 17:13:22 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 18 Apr 2010 14:13:22 -0700 Subject: [Ironruby-core] Code Review: Etc module for Mono In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C54213CC8@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C54213CC8@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: Given that I couldn't run tests on Mono and I couldn't figure out how ROWAN_RUNTIME was used, I went with the cmd_prefix. I can strip that back off. As to the mono_debug folder, you'll need to ask Ivan. I think I added the explicit use of that folder, but that's the folder to which the mono build was compiling. I'll check into it again. Regards, Ryan On Sat, Apr 17, 2010 at 9:05 AM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > In irtests.rb: We already have an environment variable ROWAN_RUNTIME that > is used to run tests on Mono. No need to add cmd_prefix. Just in your dev.sh > set ROWAN_RUNTIME to ?mono?. Why do you need to set debug_folder to > mono_debug? > > Why couldn?t mono build to the same folders (Debug/V4 Debug) as on Windows? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Friday, April 16, 2010 11:40 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Code Review: Etc module for Mono > > > > Many thanks to Ivan for his dev.sh, ir.sh, and help with many of the > implementation details. Gotta give credit where credit is due. The bad Ruby > idioms will all be due to me, so just let me know what you need me to > change. :) > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Fri, Apr 16, 2010 at 11:35 PM, Ryan Riley > wrote: > > http://github.com/panesofglass/ironruby > > git diff attached > > > > * Implements the Etc module for Mono > > * Adds RubySpec updates for the Etc library > > * Additional updates (dev.sh, ir.sh, many path-related changes) to allow > *nix devs to run irtests, though this isn't complete. > > > > Regards, > > > Ryan Riley > > > > _______________________________________________ > 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 ryan.riley at panesofglass.org Sun Apr 18 18:16:08 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 18 Apr 2010 15:16:08 -0700 Subject: [Ironruby-core] Code Review: Etc module for Mono In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C54213CC8@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: When I build on mono with rake compile, the debug folder created is called mono_debug. I don't think I added that myself, just in the irtest.rb file. As to the ROWAN_RUNTIME, where is that set? I don't see it in the Dev.bat file. Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sun, Apr 18, 2010 at 2:13 PM, Ryan Riley wrote: > Given that I couldn't run tests on Mono and I couldn't figure out how > ROWAN_RUNTIME was used, I went with the cmd_prefix. I can strip that back > off. As to the mono_debug folder, you'll need to ask Ivan. I think I added > the explicit use of that folder, but that's the folder to which the mono > build was compiling. I'll check into it again. > > Regards, > > Ryan > > On Sat, Apr 17, 2010 at 9:05 AM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > >> In irtests.rb: We already have an environment variable ROWAN_RUNTIME that >> is used to run tests on Mono. No need to add cmd_prefix. Just in your dev.sh >> set ROWAN_RUNTIME to ?mono?. Why do you need to set debug_folder to >> mono_debug? >> >> Why couldn?t mono build to the same folders (Debug/V4 Debug) as on >> Windows? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Friday, April 16, 2010 11:40 PM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Code Review: Etc module for Mono >> >> >> >> Many thanks to Ivan for his dev.sh, ir.sh, and help with many of the >> implementation details. Gotta give credit where credit is due. The bad Ruby >> idioms will all be due to me, so just let me know what you need me to >> change. :) >> >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> On Fri, Apr 16, 2010 at 11:35 PM, Ryan Riley >> wrote: >> >> http://github.com/panesofglass/ironruby >> >> git diff attached >> >> >> >> * Implements the Etc module for Mono >> >> * Adds RubySpec updates for the Etc library >> >> * Additional updates (dev.sh, ir.sh, many path-related changes) to allow >> *nix devs to run irtests, though this isn't complete. >> >> >> >> Regards, >> >> >> Ryan Riley >> >> >> >> _______________________________________________ >> 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 wmeissner at gmail.com Sun Apr 18 19:56:59 2010 From: wmeissner at gmail.com (Wayne Meissner) Date: Mon, 19 Apr 2010 09:56:59 +1000 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> Message-ID: Performance is one negative - since most of the logic that would normally be implemented in C, Java or C# is implemented in Ruby, it will be slower. Libxml is callback heavy, and depending on how well the FFI impl handles these, the rather large number of transitions between ruby and the native lib costs a lot. Portability is another - with a pure-ruby or C# impl, you don't need to worry about having the appropriate native lib on the system - its plug and play. libxml is also a pretty nasty api to bind using something like FFI, and nokogiri really pushes FFI, so until you have a really complete FFI impl, you'll have stability problems. In hindsight, I think JRuby would have been better served by just going for a java impl of nokogiri upfront rather than the nokogiri-over-FFI stopgap. On 19 April 2010 07:10, Ryan Riley wrote: > Speaking of FFI, what's the tradeoff here? FFI let's us use the existing > libraries without porting, but a managed alternative should be more > performant, right? Seems like FFI is the winner here, but I may be missing > something. > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Sun, Apr 18, 2010 at 12:49 AM, Jimmy Schementi > wrote: >> >> So whose going to port it? :) or even implement FFI? >> >> ~Jimmy >> On Apr 18, 2010, at 12:02 AM, "Ivan Porto Carrero" >> wrote: >> >> nokogiri works on windows but not on IronRuby ... it needs a C-extension >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> Microsoft IronRuby/C# MVP >> >> >> On Sat, Apr 17, 2010 at 9:14 PM, Ryan Riley >> wrote: >>> >>> Maybe I spoke too soon, but I thought it did. I was switching back and >>> forth a lot at the time. I will try again once I get everything >>> re-installed. >>> >>> Sent from my iPhone >>> >>> On Apr 17, 2010, at 1:47 AM, Seo Sanghyeon wrote: >>> >>>> 2010/4/17 Ryan Riley : >>>>> >>>>> Or use hpricot or nokogiri Ruby libraries. You will find several libs >>>>> to >>>>> choose from. >>>> >>>> Does nokogiri work on IronRuby?! >>>> >>>> -- >>>> Seo Sanghyeon >>>> _______________________________________________ >>>> 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 >> >> _______________________________________________ >> 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 Sun Apr 18 21:26:34 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 19 Apr 2010 01:26:34 +0000 Subject: [Ironruby-core] Code Review: Etc module for Mono In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C54213CC8@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C542143BE@TK5EX14MBXC131.redmond.corp.microsoft.com> If you pass mono arguments to dev.bat it will set it like so: REM -- Mono if "%1" == "mono" ( set ROWAN_RUNTIME=mono if NOT EXIST %2\mono.exe ( echo Error: Mono Runtime not found at %2 goto END ) ) REM Do not encapsulate this if-statement in parentheses, they might interact with %PATH% if it contains (x86): if "%1" == "mono" set PATH=%PATH%;%2 So on Windows you can have 2 shortcuts: one for Mono environment and one for .NET environment. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Sunday, April 18, 2010 3:16 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Code Review: Etc module for Mono When I build on mono with rake compile, the debug folder created is called mono_debug. I don't think I added that myself, just in the irtest.rb file. As to the ROWAN_RUNTIME, where is that set? I don't see it in the Dev.bat file. Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sun, Apr 18, 2010 at 2:13 PM, Ryan Riley > wrote: Given that I couldn't run tests on Mono and I couldn't figure out how ROWAN_RUNTIME was used, I went with the cmd_prefix. I can strip that back off. As to the mono_debug folder, you'll need to ask Ivan. I think I added the explicit use of that folder, but that's the folder to which the mono build was compiling. I'll check into it again. Regards, Ryan On Sat, Apr 17, 2010 at 9:05 AM, Tomas Matousek > wrote: In irtests.rb: We already have an environment variable ROWAN_RUNTIME that is used to run tests on Mono. No need to add cmd_prefix. Just in your dev.sh set ROWAN_RUNTIME to ?mono?. Why do you need to set debug_folder to mono_debug? Why couldn?t mono build to the same folders (Debug/V4 Debug) as on Windows? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Friday, April 16, 2010 11:40 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Code Review: Etc module for Mono Many thanks to Ivan for his dev.sh, ir.sh, and help with many of the implementation details. Gotta give credit where credit is due. The bad Ruby idioms will all be due to me, so just let me know what you need me to change. :) Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Fri, Apr 16, 2010 at 11:35 PM, Ryan Riley > wrote: http://github.com/panesofglass/ironruby git diff attached * Implements the Etc module for Mono * Adds RubySpec updates for the Etc library * Additional updates (dev.sh, ir.sh, many path-related changes) to allow *nix devs to run irtests, though this isn't complete. Regards, Ryan Riley _______________________________________________ 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 Sun Apr 18 21:46:29 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 19 Apr 2010 01:46:29 +0000 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C542143FB@TK5EX14MBXC131.redmond.corp.microsoft.com> Using native code in your app also requires full trust (implying it won't work in Silverlight) and is potentially a security issue. Any exploit in the library would make IronRuby vulnerable to attacks. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Wayne Meissner Sent: Sunday, April 18, 2010 4:57 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How could I get RPC in iron ruby? Performance is one negative - since most of the logic that would normally be implemented in C, Java or C# is implemented in Ruby, it will be slower. Libxml is callback heavy, and depending on how well the FFI impl handles these, the rather large number of transitions between ruby and the native lib costs a lot. Portability is another - with a pure-ruby or C# impl, you don't need to worry about having the appropriate native lib on the system - its plug and play. libxml is also a pretty nasty api to bind using something like FFI, and nokogiri really pushes FFI, so until you have a really complete FFI impl, you'll have stability problems. In hindsight, I think JRuby would have been better served by just going for a java impl of nokogiri upfront rather than the nokogiri-over-FFI stopgap. On 19 April 2010 07:10, Ryan Riley wrote: > Speaking of FFI, what's the tradeoff here? FFI let's us use the > existing libraries without porting, but a managed alternative should > be more performant, right? Seems like FFI is the winner here, but I > may be missing something. > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Sun, Apr 18, 2010 at 12:49 AM, Jimmy Schementi > wrote: >> >> So whose going to port it? :) or even implement FFI? >> >> ~Jimmy >> On Apr 18, 2010, at 12:02 AM, "Ivan Porto Carrero" >> >> wrote: >> >> nokogiri works on windows but not on IronRuby ... it needs a >> C-extension >> --- >> Met vriendelijke groeten - Best regards - Salutations Ivan Porto >> Carrero >> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz >> Twitter: http://twitter.com/casualjim Author of IronRuby in Action >> (http://manning.com/carrero) Microsoft IronRuby/C# MVP >> >> >> On Sat, Apr 17, 2010 at 9:14 PM, Ryan Riley >> >> wrote: >>> >>> Maybe I spoke too soon, but I thought it did. I was switching back >>> and forth a lot at the time. I will try again once I get everything >>> re-installed. >>> >>> Sent from my iPhone >>> >>> On Apr 17, 2010, at 1:47 AM, Seo Sanghyeon wrote: >>> >>>> 2010/4/17 Ryan Riley : >>>>> >>>>> Or use hpricot or nokogiri Ruby libraries. You will find several >>>>> libs to choose from. >>>> >>>> Does nokogiri work on IronRuby?! >>>> >>>> -- >>>> Seo Sanghyeon >>>> _______________________________________________ >>>> 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 >> >> _______________________________________________ >> 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 cbilson at pobox.com Mon Apr 19 18:22:52 2010 From: cbilson at pobox.com (Chris Bilson) Date: Mon, 19 Apr 2010 15:22:52 -0700 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C542143FB@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C542143FB@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: Just out of curiosity: What's the process for making an ironruby port of something like Nokogiri? I looked at a blog postby one of the people working on the JRuby port and it looks pretty involved, but essentially, to port it you would just implement all the "attach_functions" in libxml.rb in .NET? --c On Sun, Apr 18, 2010 at 18:46, Tomas Matousek wrote: > Using native code in your app also requires full trust (implying it won't > work in Silverlight) and is potentially a security issue. Any exploit in the > library would make IronRuby vulnerable to attacks. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Wayne Meissner > Sent: Sunday, April 18, 2010 4:57 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] How could I get RPC in iron ruby? > > Performance is one negative - since most of the logic that would normally > be implemented in C, Java or C# is implemented in Ruby, it will be slower. > Libxml is callback heavy, and depending on how well the FFI impl handles > these, the rather large number of transitions between ruby and the native > lib costs a lot. > > Portability is another - with a pure-ruby or C# impl, you don't need to > worry about having the appropriate native lib on the system - its plug and > play. libxml is also a pretty nasty api to bind using something like FFI, > and nokogiri really pushes FFI, so until you have a really complete FFI > impl, you'll have stability problems. > > In hindsight, I think JRuby would have been better served by just going for > a java impl of nokogiri upfront rather than the nokogiri-over-FFI stopgap. > > On 19 April 2010 07:10, Ryan Riley wrote: > > Speaking of FFI, what's the tradeoff here? FFI let's us use the > > existing libraries without porting, but a managed alternative should > > be more performant, right? Seems like FFI is the winner here, but I > > may be missing something. > > > > Ryan Riley > > > > Email: ryan.riley at panesofglass.org > > LinkedIn: http://www.linkedin.com/in/ryanriley > > Blog: http://wizardsofsmart.net/ > > Twitter: @panesofglass > > Website: http://panesofglass.org/ > > > > > > On Sun, Apr 18, 2010 at 12:49 AM, Jimmy Schementi > > wrote: > >> > >> So whose going to port it? :) or even implement FFI? > >> > >> ~Jimmy > >> On Apr 18, 2010, at 12:02 AM, "Ivan Porto Carrero" > >> > >> wrote: > >> > >> nokogiri works on windows but not on IronRuby ... it needs a > >> C-extension > >> --- > >> Met vriendelijke groeten - Best regards - Salutations Ivan Porto > >> Carrero > >> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > >> Twitter: http://twitter.com/casualjim Author of IronRuby in Action > >> (http://manning.com/carrero) Microsoft IronRuby/C# MVP > >> > >> > >> On Sat, Apr 17, 2010 at 9:14 PM, Ryan Riley > >> > >> wrote: > >>> > >>> Maybe I spoke too soon, but I thought it did. I was switching back > >>> and forth a lot at the time. I will try again once I get everything > >>> re-installed. > >>> > >>> Sent from my iPhone > >>> > >>> On Apr 17, 2010, at 1:47 AM, Seo Sanghyeon wrote: > >>> > >>>> 2010/4/17 Ryan Riley : > >>>>> > >>>>> Or use hpricot or nokogiri Ruby libraries. You will find several > >>>>> libs to choose from. > >>>> > >>>> Does nokogiri work on IronRuby?! > >>>> > >>>> -- > >>>> Seo Sanghyeon > >>>> _______________________________________________ > >>>> 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 > >> > >> _______________________________________________ > >> 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 > > _______________________________________________ > 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 zac at zacbrown.org Mon Apr 19 22:39:17 2010 From: zac at zacbrown.org (Zac Brown) Date: Mon, 19 Apr 2010 19:39:17 -0700 Subject: [Ironruby-core] Code Review: Kernel#test additions Message-ID: <4BCD13D5.9030404@zacbrown.org> Hi, Please see the attached 8 patches for additions to the Kernel#test function for code review. Thanks, Zac -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0001-Add-support-for-A-atime-in-Kernel.test-and-add-appro.patch URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0002-Add-support-for-b-block-device-in-Kernel.test-and-ad.patch URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0003-Add-support-for-C-ctime-in-Kernel.test-and-add-mspec.patch URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0004-Add-support-for-c-character-device-in-Kernel.test-an.patch URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0005-Add-support-for-g-setgid-in-Kernel.test-and-add-mspe.patch URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0006-Add-support-for-G-grpowned-in-Kernel.test-and-add-ms.patch URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0007-Add-support-for-k-sticky-bit-in-Kernel.test-and-add-.patch URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0008-Add-support-for-l-symlink-in-Kernel.test-and-add-msp.patch URL: From ivan at cloudslide.net Tue Apr 20 04:35:09 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Tue, 20 Apr 2010 10:35:09 +0200 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C542143FB@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: There are several approaches you can take. Nokogiri has been a b**** to get going on windows, and even now it only compiles on mingw based MRI AFAIK. To come close to the quality of the Nokogiri gem I think you would need to find a very fast .NET based xml library (it's not XLinq :)), that also has a SAX parser, knows about CSS3 for parsing documents in addition to XPATH, and then provide an adapter to make it look like the nokogiri API. You could potentially use P/Invoke to call to libxml2 but then you take on a dependency on a native library. I'm also not sure if libxml2 actually performs in the same way on windows as it does on *nix. If we would have an implementation of FFI then we could use the FFI based nokogiri gem. I looked at it a few times but it would be a serious amount of work, too much for my taste :). --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Tue, Apr 20, 2010 at 12:22 AM, Chris Bilson wrote: > Just out of curiosity: What's the process for making an ironruby port of > something like Nokogiri? > > I looked at a blog postby one of the people working on the JRuby port and it looks pretty involved, > but essentially, to port it you would just implement all the > "attach_functions" in libxml.rb in .NET? > > > --c > > > > On Sun, Apr 18, 2010 at 18:46, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > >> Using native code in your app also requires full trust (implying it won't >> work in Silverlight) and is potentially a security issue. Any exploit in the >> library would make IronRuby vulnerable to attacks. >> >> Tomas >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] On Behalf Of Wayne Meissner >> Sent: Sunday, April 18, 2010 4:57 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] How could I get RPC in iron ruby? >> >> Performance is one negative - since most of the logic that would normally >> be implemented in C, Java or C# is implemented in Ruby, it will be slower. >> Libxml is callback heavy, and depending on how well the FFI impl handles >> these, the rather large number of transitions between ruby and the native >> lib costs a lot. >> >> Portability is another - with a pure-ruby or C# impl, you don't need to >> worry about having the appropriate native lib on the system - its plug and >> play. libxml is also a pretty nasty api to bind using something like FFI, >> and nokogiri really pushes FFI, so until you have a really complete FFI >> impl, you'll have stability problems. >> >> In hindsight, I think JRuby would have been better served by just going >> for a java impl of nokogiri upfront rather than the nokogiri-over-FFI >> stopgap. >> >> On 19 April 2010 07:10, Ryan Riley wrote: >> > Speaking of FFI, what's the tradeoff here? FFI let's us use the >> > existing libraries without porting, but a managed alternative should >> > be more performant, right? Seems like FFI is the winner here, but I >> > may be missing something. >> > >> > Ryan Riley >> > >> > Email: ryan.riley at panesofglass.org >> > LinkedIn: http://www.linkedin.com/in/ryanriley >> > Blog: http://wizardsofsmart.net/ >> > Twitter: @panesofglass >> > Website: http://panesofglass.org/ >> > >> > >> > On Sun, Apr 18, 2010 at 12:49 AM, Jimmy Schementi >> > wrote: >> >> >> >> So whose going to port it? :) or even implement FFI? >> >> >> >> ~Jimmy >> >> On Apr 18, 2010, at 12:02 AM, "Ivan Porto Carrero" >> >> >> >> wrote: >> >> >> >> nokogiri works on windows but not on IronRuby ... it needs a >> >> C-extension >> >> --- >> >> Met vriendelijke groeten - Best regards - Salutations Ivan Porto >> >> Carrero >> >> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz >> >> Twitter: http://twitter.com/casualjim Author of IronRuby in Action >> >> (http://manning.com/carrero) Microsoft IronRuby/C# MVP >> >> >> >> >> >> On Sat, Apr 17, 2010 at 9:14 PM, Ryan Riley >> >> >> >> wrote: >> >>> >> >>> Maybe I spoke too soon, but I thought it did. I was switching back >> >>> and forth a lot at the time. I will try again once I get everything >> >>> re-installed. >> >>> >> >>> Sent from my iPhone >> >>> >> >>> On Apr 17, 2010, at 1:47 AM, Seo Sanghyeon wrote: >> >>> >> >>>> 2010/4/17 Ryan Riley : >> >>>>> >> >>>>> Or use hpricot or nokogiri Ruby libraries. You will find several >> >>>>> libs to choose from. >> >>>> >> >>>> Does nokogiri work on IronRuby?! >> >>>> >> >>>> -- >> >>>> Seo Sanghyeon >> >>>> _______________________________________________ >> >>>> 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 >> >> >> >> _______________________________________________ >> >> 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 >> >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zac at zacbrown.org Tue Apr 20 09:56:51 2010 From: zac at zacbrown.org (Zac Brown) Date: Tue, 20 Apr 2010 06:56:51 -0700 Subject: [Ironruby-core] How could I get RPC in iron ruby? In-Reply-To: References: <4de92fd1003182319n7aba8e2ao66c6212ecded61bb@mail.gmail.com> <690AAE0C-18A9-43D9-9DB7-3C526BA44743@panesofglass.org> <21B0CDF7-495E-413F-A330-5B04806A6C61@panesofglass.org> <4AA34A62-72FD-4A1A-BDD0-2CB12CFCDA5B@microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C542143FB@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <4BCDB2A3.9020008@zacbrown.org> To me at least, it seems that it might be easier to take the approach of developing an FFI. I think JRuby took that approach and they're just about at the point where they've got access to Nokogiri. Might be worth looking into if someone wants to put forth the effort. I might even look into it :). -Zac On 4/20/2010 1:35 AM, Ivan Porto Carrero wrote: > There are several approaches you can take. > > Nokogiri has been a b**** to get going on windows, and even now it > only compiles on mingw based MRI AFAIK. > To come close to the quality of the Nokogiri gem I think you would > need to find a very fast .NET based xml library (it's not XLinq :)), > that also has a SAX parser, knows about CSS3 for parsing documents in > addition to XPATH, and then provide an adapter to make it look like > the nokogiri API. > You could potentially use P/Invoke to call to libxml2 but then you > take on a dependency on a native library. I'm also not sure if libxml2 > actually performs in the same way on windows as it does on *nix. > > If we would have an implementation of FFI then we could use the FFI > based nokogiri gem. > > I looked at it a few times but it would be a serious amount of work, > too much for my taste :). > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > Microsoft IronRuby/C# MVP > > > On Tue, Apr 20, 2010 at 12:22 AM, Chris Bilson > wrote: > > Just out of curiosity: What's the process for making an ironruby > port of something like Nokogiri? > > I looked at a blog post > > by one of the people working on the JRuby port and it looks pretty > involved, but essentially, to port it you would just implement all > the "attach_functions" in libxml.rb in .NET? > > > --c > > > > On Sun, Apr 18, 2010 at 18:46, Tomas Matousek > > wrote: > > Using native code in your app also requires full trust > (implying it won't work in Silverlight) and is potentially a > security issue. Any exploit in the library would make IronRuby > vulnerable to attacks. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org > ] On Behalf Of > Wayne Meissner > Sent: Sunday, April 18, 2010 4:57 PM > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] How could I get RPC in iron ruby? > > Performance is one negative - since most of the logic that > would normally be implemented in C, Java or C# is implemented > in Ruby, it will be slower. Libxml is callback heavy, and > depending on how well the FFI impl handles these, the rather > large number of transitions between ruby and the native lib > costs a lot. > > Portability is another - with a pure-ruby or C# impl, you > don't need to worry about having the appropriate native lib on > the system - its plug and play. libxml is also a pretty nasty > api to bind using something like FFI, and nokogiri really > pushes FFI, so until you have a really complete FFI impl, > you'll have stability problems. > > In hindsight, I think JRuby would have been better served by > just going for a java impl of nokogiri upfront rather than the > nokogiri-over-FFI stopgap. > > On 19 April 2010 07:10, Ryan Riley > > wrote: > > Speaking of FFI, what's the tradeoff here? FFI let's us use the > > existing libraries without porting, but a managed > alternative should > > be more performant, right? Seems like FFI is the winner > here, but I > > may be missing something. > > > > Ryan Riley > > > > Email: ryan.riley at panesofglass.org > > > LinkedIn: http://www.linkedin.com/in/ryanriley > > Blog: http://wizardsofsmart.net/ > > Twitter: @panesofglass > > Website: http://panesofglass.org/ > > > > > > On Sun, Apr 18, 2010 at 12:49 AM, Jimmy Schementi > > > wrote: > >> > >> So whose going to port it? :) or even implement FFI? > >> > >> ~Jimmy > >> On Apr 18, 2010, at 12:02 AM, "Ivan Porto Carrero" > >> > > >> wrote: > >> > >> nokogiri works on windows but not on IronRuby ... it needs a > >> C-extension > >> --- > >> Met vriendelijke groeten - Best regards - Salutations Ivan > Porto > >> Carrero > >> Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > >> Twitter: http://twitter.com/casualjim Author of IronRuby in > Action > >> (http://manning.com/carrero) Microsoft IronRuby/C# MVP > >> > >> > >> On Sat, Apr 17, 2010 at 9:14 PM, Ryan Riley > >> > > >> wrote: > >>> > >>> Maybe I spoke too soon, but I thought it did. I was > switching back > >>> and forth a lot at the time. I will try again once I get > everything > >>> re-installed. > >>> > >>> Sent from my iPhone > >>> > >>> On Apr 17, 2010, at 1:47 AM, Seo Sanghyeon > > wrote: > >>> > >>>> 2010/4/17 Ryan Riley >: > >>>>> > >>>>> Or use hpricot or nokogiri Ruby libraries. You will find > several > >>>>> libs to choose from. > >>>> > >>>> Does nokogiri work on IronRuby?! > >>>> > >>>> -- > >>>> Seo Sanghyeon > >>>> _______________________________________________ > >>>> 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 > >> > >> _______________________________________________ > >> 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 > > _______________________________________________ > 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 chris at johnsonch.com Thu Apr 22 09:31:41 2010 From: chris at johnsonch.com (Chris Johnson) Date: Thu, 22 Apr 2010 08:31:41 -0500 Subject: [Ironruby-core] IronRuby.Rack Message-ID: Anyone have IronRuby running rails in IIS7 on server 2k8? I followed the following links: http://ironruby.net/Documentation/Real_Ruby_Applications/Rails http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack#readme I can run the app with script\server yet I am getting the error "Could not load file or assembly 'IronRuby.Rack' or one of its dependencies. The system cannot find the file specified." I'm wondering if anyone has came across this issue. I'm working on creating a picture tutorial for setting up rails to run on IronRuby and this is causing a snag :) Any advice or links would be greatly appreciated. Thanks, -CJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Apr 22 17:03:23 2010 From: lists at ruby-forum.com (Ilias bankai) Date: Thu, 22 Apr 2010 23:03:23 +0200 Subject: [Ironruby-core] Ocra Message-ID: Hi All, Is it possible to package the sourcecode in to an .exe file with IronRuby? If not, will there be a tool in the near future for IronRuby to support this method? With the MRI version I can use OCRA or Rubyscript2exe (obsolete in 1.9) It would be awesome if there where such a thing for IronRuby Cheers, iLias. -- Posted via http://www.ruby-forum.com/. From bobby.johnson at gmail.com Thu Apr 22 19:48:23 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Thu, 22 Apr 2010 16:48:23 -0700 Subject: [Ironruby-core] IronRuby.Rack In-Reply-To: References: Message-ID: Hi Chris, Don't know if you still need the help, but I put together a screencast this week that basically lays out what you need to do to get up and running under IIS7. http://www.iamnotmyself.com/2010/04/22/RunningRailsInIIS7WithIronRubyRack.aspx hope it helps. On Thu, Apr 22, 2010 at 6:31 AM, Chris Johnson wrote: > Anyone have IronRuby running rails in IIS7 on server 2k8? > > I followed the following links: > http://ironruby.net/Documentation/Real_Ruby_Applications/Rails > http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack#readme > > I can run the app with script\server yet I am getting the error "Could not > load file or assembly 'IronRuby.Rack' or one of its dependencies. The system > cannot find the file specified." I'm wondering if anyone has came across > this issue. I'm working on creating a picture tutorial for setting up rails > to run on IronRuby and this is causing a snag :) Any advice or links would > be greatly appreciated. > > Thanks, > -CJ > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Thu Apr 22 20:34:14 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 23 Apr 2010 00:34:14 +0000 Subject: [Ironruby-core] IronRuby.Rack In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217336CD3@TK5EX14MBXC136.redmond.corp.microsoft.com> Awesome! I added a link to it in the documentation. Some notes on the presentation if you care: 1. Rather than download the bits with GIT (implying someone needs to install GIT), you can just use the zip file download: http://github.com/ironruby/ironruby/zipball/v1.0-rtm. 2. What's the headache with IronRuby installing to "C:\Program Files (x86)" ? 3. Interesting that you rebuild the sln and csproj files =P I think the project converter would have done that for you ... but never-the-less what you did works too... 4. Sorry about the sources being slightly out of date. Being that our internal source repo has been out of commission for some time, only the 1.0 branch was getting updated ... and I did all the fixing to IronRuby.Rack in our main branch. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Bobby Johnson Sent: Thursday, April 22, 2010 4:48 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby.Rack Hi Chris, Don't know if you still need the help, but I put together a screencast this week that basically lays out what you need to do to get up and running under IIS7. http://www.iamnotmyself.com/2010/04/22/RunningRailsInIIS7WithIronRubyRack.aspx hope it helps. On Thu, Apr 22, 2010 at 6:31 AM, Chris Johnson > wrote: Anyone have IronRuby running rails in IIS7 on server 2k8? I followed the following links: http://ironruby.net/Documentation/Real_Ruby_Applications/Rails http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack#readme I can run the app with script\server yet I am getting the error "Could not load file or assembly 'IronRuby.Rack' or one of its dependencies. The system cannot find the file specified." I'm wondering if anyone has came across this issue. I'm working on creating a picture tutorial for setting up rails to run on IronRuby and this is causing a snag :) Any advice or links would be greatly appreciated. Thanks, -CJ _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam's Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: From bobby.johnson at gmail.com Thu Apr 22 20:50:47 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Thu, 22 Apr 2010 17:50:47 -0700 Subject: [Ironruby-core] IronRuby.Rack In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9217336CD3@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC9217336CD3@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: Glad you dig it. Yeah I should have mentioned the download link. I have run into weird path and security issues with the prog files directory. I rebuilt the solution because I actually tried using the project converter stuff and it was simply more of a pain in the ass than creating a proj for what I wanted. Especially seeing as how I wanted to build against the 1.0 assemblies. The compile issues were a snap infact i think I found a better solution that you posted a while back than my silly hack it till it works approach. Did you ever figure out what the deal was with Rack 1.1.0? On Thu, Apr 22, 2010 at 5:34 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Awesome! I added a link to it in the documentation. > Some notes on the presentation if you care: > > > > 1. Rather than download the bits with GIT (implying someone needs to > install GIT), you can just use the zip file download: > http://github.com/ironruby/ironruby/zipball/v1.0-rtm. > > 2. What?s the headache with IronRuby installing to ?C:\Program Files > (x86)? ? > > 3. Interesting that you rebuild the sln and csproj files =P I think > the project converter would have done that for you ? but never-the-less what > you did works too? > > 4. Sorry about the sources being slightly out of date. Being that > our internal source repo has been out of commission for some time, only the > 1.0 branch was getting updated ? and I did all the fixing to IronRuby.Rack > in our main branch. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Bobby Johnson > *Sent:* Thursday, April 22, 2010 4:48 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] IronRuby.Rack > > > > Hi Chris, > > Don't know if you still need the help, but I put together a screencast this > week that basically lays out what you need to do to get up and running under > IIS7. > > > http://www.iamnotmyself.com/2010/04/22/RunningRailsInIIS7WithIronRubyRack.aspx > > hope it helps. > > On Thu, Apr 22, 2010 at 6:31 AM, Chris Johnson > wrote: > > Anyone have IronRuby running rails in IIS7 on server 2k8? > > > > I followed the following links: > > http://ironruby.net/Documentation/Real_Ruby_Applications/Rails > http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack#readme > > > > I can run the app with script\server yet I am getting the error "Could not > load file or assembly 'IronRuby.Rack' or one of its dependencies. The system > cannot find the file specified." I'm wondering if anyone has came across > this issue. I'm working on creating a picture tutorial for setting up rails > to run on IronRuby and this is causing a snag :) Any advice or links would > be greatly appreciated. > > > > Thanks, > > -CJ > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > "The explanation requiring the fewest assumptions is most likely to be > correct." > > - Occam?s Razor > http://en.wikipedia.org/wiki/Occam's_Razor > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: From bobby.johnson at gmail.com Thu Apr 22 20:52:27 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Thu, 22 Apr 2010 17:52:27 -0700 Subject: [Ironruby-core] IronRuby.Rack In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC9217336CD3@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: Oh and I am officially requesting a groovy IronRuby sticker for my Mac.. 8) On Thu, Apr 22, 2010 at 5:50 PM, Bobby Johnson wrote: > Glad you dig it. > > Yeah I should have mentioned the download link. I have run into weird path > and security issues with the prog files directory. I rebuilt the solution > because I actually tried using the project converter stuff and it was simply > more of a pain in the ass than creating a proj for what I wanted. Especially > seeing as how I wanted to build against the 1.0 assemblies. The compile > issues were a snap infact i think I found a better solution that you posted > a while back than my silly hack it till it works approach. > > Did you ever figure out what the deal was with Rack 1.1.0? > > > On Thu, Apr 22, 2010 at 5:34 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> Awesome! I added a link to it in the documentation. >> Some notes on the presentation if you care: >> >> >> >> 1. Rather than download the bits with GIT (implying someone needs >> to install GIT), you can just use the zip file download: >> http://github.com/ironruby/ironruby/zipball/v1.0-rtm. >> >> 2. What?s the headache with IronRuby installing to ?C:\Program >> Files (x86)? ? >> >> 3. Interesting that you rebuild the sln and csproj files =P I think >> the project converter would have done that for you ? but never-the-less what >> you did works too? >> >> 4. Sorry about the sources being slightly out of date. Being that >> our internal source repo has been out of commission for some time, only the >> 1.0 branch was getting updated ? and I did all the fixing to IronRuby.Rack >> in our main branch. >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Bobby Johnson >> *Sent:* Thursday, April 22, 2010 4:48 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] IronRuby.Rack >> >> >> >> Hi Chris, >> >> Don't know if you still need the help, but I put together a screencast >> this week that basically lays out what you need to do to get up and running >> under IIS7. >> >> >> http://www.iamnotmyself.com/2010/04/22/RunningRailsInIIS7WithIronRubyRack.aspx >> >> hope it helps. >> >> On Thu, Apr 22, 2010 at 6:31 AM, Chris Johnson >> wrote: >> >> Anyone have IronRuby running rails in IIS7 on server 2k8? >> >> >> >> I followed the following links: >> >> http://ironruby.net/Documentation/Real_Ruby_Applications/Rails >> http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack#readme >> >> >> >> I can run the app with script\server yet I am getting the error "Could not >> load file or assembly 'IronRuby.Rack' or one of its dependencies. The system >> cannot find the file specified." I'm wondering if anyone has came across >> this issue. I'm working on creating a picture tutorial for setting up rails >> to run on IronRuby and this is causing a snag :) Any advice or links would >> be greatly appreciated. >> >> >> >> Thanks, >> >> -CJ >> >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> -- >> "The explanation requiring the fewest assumptions is most likely to be >> correct." >> >> - Occam?s Razor >> http://en.wikipedia.org/wiki/Occam's_Razor >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > "The explanation requiring the fewest assumptions is most likely to be > correct." > > - Occam?s Razor > http://en.wikipedia.org/wiki/Occam's_Razor > -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam?s Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Thu Apr 22 20:58:52 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 23 Apr 2010 00:58:52 +0000 Subject: [Ironruby-core] IronRuby.Rack In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC9217336CD3@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217336DCF@TK5EX14MBXC136.redmond.corp.microsoft.com> I usually carry around those stickers in my bag, so just ask me next time you see me. WRT Rack 1.1.0 --- it's just some changes to the rack spec that I'm working through now. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Bobby Johnson Sent: Thursday, April 22, 2010 5:52 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby.Rack Oh and I am officially requesting a groovy IronRuby sticker for my Mac.. 8) On Thu, Apr 22, 2010 at 5:50 PM, Bobby Johnson > wrote: Glad you dig it. Yeah I should have mentioned the download link. I have run into weird path and security issues with the prog files directory. I rebuilt the solution because I actually tried using the project converter stuff and it was simply more of a pain in the ass than creating a proj for what I wanted. Especially seeing as how I wanted to build against the 1.0 assemblies. The compile issues were a snap infact i think I found a better solution that you posted a while back than my silly hack it till it works approach. Did you ever figure out what the deal was with Rack 1.1.0? On Thu, Apr 22, 2010 at 5:34 PM, Jimmy Schementi > wrote: Awesome! I added a link to it in the documentation. Some notes on the presentation if you care: 1. Rather than download the bits with GIT (implying someone needs to install GIT), you can just use the zip file download: http://github.com/ironruby/ironruby/zipball/v1.0-rtm. 2. What's the headache with IronRuby installing to "C:\Program Files (x86)" ? 3. Interesting that you rebuild the sln and csproj files =P I think the project converter would have done that for you ... but never-the-less what you did works too... 4. Sorry about the sources being slightly out of date. Being that our internal source repo has been out of commission for some time, only the 1.0 branch was getting updated ... and I did all the fixing to IronRuby.Rack in our main branch. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Bobby Johnson Sent: Thursday, April 22, 2010 4:48 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby.Rack Hi Chris, Don't know if you still need the help, but I put together a screencast this week that basically lays out what you need to do to get up and running under IIS7. http://www.iamnotmyself.com/2010/04/22/RunningRailsInIIS7WithIronRubyRack.aspx hope it helps. On Thu, Apr 22, 2010 at 6:31 AM, Chris Johnson > wrote: Anyone have IronRuby running rails in IIS7 on server 2k8? I followed the following links: http://ironruby.net/Documentation/Real_Ruby_Applications/Rails http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack#readme I can run the app with script\server yet I am getting the error "Could not load file or assembly 'IronRuby.Rack' or one of its dependencies. The system cannot find the file specified." I'm wondering if anyone has came across this issue. I'm working on creating a picture tutorial for setting up rails to run on IronRuby and this is causing a snag :) Any advice or links would be greatly appreciated. Thanks, -CJ _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam's Razor http://en.wikipedia.org/wiki/Occam's_Razor _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam's Razor http://en.wikipedia.org/wiki/Occam's_Razor -- "The explanation requiring the fewest assumptions is most likely to be correct." - Occam's Razor http://en.wikipedia.org/wiki/Occam's_Razor -------------- next part -------------- An HTML attachment was scrubbed... URL: From SHolder at randgrp.com Thu Apr 22 23:37:00 2010 From: SHolder at randgrp.com (Shane Holder) Date: Thu, 22 Apr 2010 22:37:00 -0500 Subject: [Ironruby-core] Running Webrick with RAILS_ENV=production Message-ID: <67DA98B0F14DAD4AAC6AB14DEB37A95D5B02D93F39@rrhoumx2.randgrp.com> Apologies if this makes it to the list twice, I seem to be having issues with mailman. I know this probably isn't an ideal situation, but I'm building a small app for myself (1st rails app) and I want to be able to switch between dev/test/production. So, I set RAILS_ENV=production and tried to run the server as below but I get the following error. It's probably something on my end but I'm not sure where to look, can someone shed some light? Thanks, Shane Holder SHolder at SHOLDER7 TaskStatus [master +0 ~5 -1 !]> ir -S .\script\server => Booting WEBrick => Rails 2.3.5 application starting on http://0.0.0.0:3000 ir.exe : C:/Program Files (x86)/IronRuby 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require': can't convert nil into String (TypeError) At line:1 char:3 + ir <<<< -S .\script\server + CategoryInfo : NotSpecified: (C:/Program File...ing (TypeError):String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError from C:/Program Files (x86)/IronRuby 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require ' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:490:in `new_constants_in' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:154:in `require' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:269:in `require_frameworks' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:269:in `each' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:269:in `require_frameworks' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:135:in `process' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:114:in `__send__' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:114:in `run' from C:/d/TaskStatus/config/environment.rb:9 from C:/Program Files (x86)/IronRuby 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:490:in `new_constants_in' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:154:in `require' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:84 from C:/Program Files (x86)/IronRuby 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in `require' from C:/Program Files (x86)/IronRuby 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in `require' from ./script/server:3 Shane Holder The Rand Group, LLC sholder at randgrp.com 972.978.6559 Cell 713.341.9387 Direct 713.850.0747 Main Office www.randgrp.com [cid:image001.jpg at 01CAE26C.528B80E0] ________________________________ This email message and any attachments are intended for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email you are hereby notified that any dissemination, distribution or copying of this email and any attachments thereto is strictly prohibited. If you have received this email in error please notify the sender and permanently delete the original and any copies of this email and any prints thereof. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3611 bytes Desc: image001.jpg URL: From ryan.riley at panesofglass.org Fri Apr 23 00:51:47 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Thu, 22 Apr 2010 21:51:47 -0700 Subject: [Ironruby-core] Thread Priority In-Reply-To: <502e1b6d0910260702v1d1a4812t539e4baa46d58dc8@mail.gmail.com> References: <4B342496A3EFEB48839E10BB4BF5964C0671746D@TK5EX14MBXC131.redmond.corp.microsoft.com> <001d01ca55cd$d6d9e020$848da060$%normandin@convergentware.com> <502e1b6d0910260702v1d1a4812t539e4baa46d58dc8@mail.gmail.com> Message-ID: What's the status of the DataMapper port? I was just trying to use it but couldn't get the gem installed. I'm interested in helping get this working. What next steps are needed? Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Mon, Oct 26, 2009 at 7:02 AM, Alexander Coles wrote: > Quick +1 to vote this patch up. > > I've been working on the JRuby support for the DataMapper ORM and > DataObjects(.rb) database connectivity layer. These projects rely in > turn on another project called Extlib, which provides a bunch of > useful extensions (lazy arrays, thread pools, string extensions) for > the other two projects. > > I pulled down and built the latest IronRuby and running Extlib's > specs, the lack of Thread#priority appears to be the first blocker in > our support for IR. > > Alex Coles > > DataMapper: http://github.com/datamapper/dm-core > DataObjects: http://github.com/datamapper/do > Extlib: http://github.com/datamapper/extlib > > > On Mon, Oct 26, 2009 at 6:12 AM, Shay Friedman > wrote: > > I remembered something like that. Thanks for pointing it out Pascal. > > Is it going to be incorporated into V1 code? > > Thanks! > > Shay. > > > > On Mon, Oct 26, 2009 at 1:49 AM, Pascal Normandin > > wrote: > >> > >> Hello, > >> > >> I have done a very basic implementation of a while back but I did not > >> finish > >> the modifications to the specs to test this. > >> > >> Here are the commits if you want to grab it > >> > >> > >> > http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 > >> de7f305 > >> > >> > http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b > >> 164f202 > >> > >> It was decided at some point that there would only be 5 valid values > >> > >> -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities > >> Lowest, BelowNormal, Normal, AboveNormal and Highest > >> > >> If anything lower than -2 is passed in the thread will be assigned > Lowest > >> and Highest if above 2. > >> > >> Pascal > >> > >> -----Original Message----- > >> From: ironruby-core-bounces at rubyforge.org > >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman > >> Sent: October-25-09 3:55 PM > >> To: ironruby-core at rubyforge.org > >> Subject: Re: [Ironruby-core] Thread Priority > >> > >> Is it going to be implemented for V1? > >> If yes, is it going to work as MRI with numeric values? > >> > >> Thanks! > >> Shay. > >> > >> On 10/25/09, Tomas Matousek wrote: > >> > Ruby Thread#priority is not implemented yet. We disabled name mangling > >> > on > >> > built-ins recently so Thread.Priority property is not callable via > >> > lower-case name anymore. > >> > > >> > Tomas > >> > > >> > -----Original Message----- > >> > From: ironruby-core-bounces at rubyforge.org > >> > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay > Friedman > >> > Sent: Saturday, October 24, 2009 11:10 PM > >> > To: ironruby-core > >> > Subject: [Ironruby-core] Thread Priority > >> > > >> > Hi guys, > >> > > >> > I've just noticed that something happened to Thread.priority... It > >> > disappeared. > >> > I'm talking about Thread's instance attribute - priority. I'm using > the > >> > latest code from GitHub. > >> > > >> > The only available priority in the Thread instance now is a CamelCase > >> > priority, which is .Net's Priority attribute... > >> > > >> > Take a look at the next REPL session: > >> > => # > >> >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } > >> > tart=> > >> > # > >> >>>> t.priority > >> > :0: undefined method `priority' for # > >> > (NoMethodError) > >> > > >> >>>> t.Priority > >> > => Normal > >> > > >> > I remember the priority attribute was problematic because it didn't > >> receive > >> > numeric values like MRI. Maybe this is related to that? > >> > > >> > Thanks, > >> > Shay. > >> > > >> > -- > >> > -------------------------------------------------- > >> > Shay Friedman > >> > Author of IronRuby Unleashed > >> > http://www.IronShay.com > >> > Follow me: http://twitter.com/ironshay > >> > ________________________________________ > _______________________________________________ > 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 ryan.riley at panesofglass.org Fri Apr 23 01:00:12 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Thu, 22 Apr 2010 22:00:12 -0700 Subject: [Ironruby-core] Thread Priority In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C0671746D@TK5EX14MBXC131.redmond.corp.microsoft.com> <001d01ca55cd$d6d9e020$848da060$%normandin@convergentware.com> <502e1b6d0910260702v1d1a4812t539e4baa46d58dc8@mail.gmail.com> Message-ID: I'm working on installing datamapper from the sources. However, I have to manually execute `ir -S gem install .\pkg\_.gem` each time after the gem is created. I'm getting this error: C:\Users\ryan\dev\extlib>irake install 'irake' is not recognized as an internal or external command, operable program or batch file. C:\Users\ryan\dev\extlib>ir -S rake install --trace (in C:/Users/ryan/dev/extlib) ** Invoke install (first_time) ** Invoke build (first_time) ** Invoke gemspec (first_time) ** Invoke gemspec:generate (first_time) ** Invoke version_required (first_time) ** Execute version_required ** Execute gemspec:generate Generated: extlib.gemspec ** Invoke gemspec:validate (first_time) ** Invoke version_required ** Execute gemspec:validate extlib.gemspec is valid. ** Execute gemspec ** Execute build WARNING: description and summary are identical Successfully built RubyGem Name: extlib Version: 0.9.15 File: extlib-0.9.15.gem ** Execute install Executing "ir install ./pkg/extlib-0.9.15.gem": ir install ./pkg/extlib-0.9.15.gem unknown: Could not find file 'C:\Users\ryan\dev\extlib\install'. (Errno::ENOENT) rake aborted! Command failed with status (1): [ir install ./pkg/extlib-0.9.15.gem...] C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `call' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:1091:in `sh' C:/Users/ryan/.gem/ironruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/install_gem.rb:15:in `run' C:/Users/ryan/.gem/ironruby/1.8/gems/jeweler-1.4.0/lib/jeweler.rb:89:in `install_gem' C:/Users/ryan/.gem/ironruby/1.8/gems/jeweler-1.4.0/lib/jeweler/tasks.rb:77:in `define' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' C:/Program Files (x86)/IronRuby 1.0/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/bin/rake:31 C:/Users/ryan/.gem/ironruby/1.8/bin/rake:19:in `load' C:/Users/ryan/.gem/ironruby/1.8/bin/rake:19 Shouldn't this both build the gem and execute gem install on the created gem? Did I miss a step? Thanks! Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Thu, Apr 22, 2010 at 9:51 PM, Ryan Riley wrote: > What's the status of the DataMapper port? I was just trying to use it but > couldn't get the gem installed. I'm interested in helping get this working. > What next steps are needed? > > Thanks, > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > > On Mon, Oct 26, 2009 at 7:02 AM, Alexander Coles wrote: > >> Quick +1 to vote this patch up. >> >> I've been working on the JRuby support for the DataMapper ORM and >> DataObjects(.rb) database connectivity layer. These projects rely in >> turn on another project called Extlib, which provides a bunch of >> useful extensions (lazy arrays, thread pools, string extensions) for >> the other two projects. >> >> I pulled down and built the latest IronRuby and running Extlib's >> specs, the lack of Thread#priority appears to be the first blocker in >> our support for IR. >> >> Alex Coles >> >> DataMapper: http://github.com/datamapper/dm-core >> DataObjects: http://github.com/datamapper/do >> Extlib: http://github.com/datamapper/extlib >> >> >> On Mon, Oct 26, 2009 at 6:12 AM, Shay Friedman >> wrote: >> > I remembered something like that. Thanks for pointing it out Pascal. >> > Is it going to be incorporated into V1 code? >> > Thanks! >> > Shay. >> > >> > On Mon, Oct 26, 2009 at 1:49 AM, Pascal Normandin >> > wrote: >> >> >> >> Hello, >> >> >> >> I have done a very basic implementation of a while back but I did not >> >> finish >> >> the modifications to the specs to test this. >> >> >> >> Here are the commits if you want to grab it >> >> >> >> >> >> >> http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 >> >> de7f305 >> >> >> >> >> http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b >> >> 164f202 >> >> >> >> It was decided at some point that there would only be 5 valid values >> >> >> >> -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities >> >> Lowest, BelowNormal, Normal, AboveNormal and Highest >> >> >> >> If anything lower than -2 is passed in the thread will be assigned >> Lowest >> >> and Highest if above 2. >> >> >> >> Pascal >> >> >> >> -----Original Message----- >> >> From: ironruby-core-bounces at rubyforge.org >> >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay >> Friedman >> >> Sent: October-25-09 3:55 PM >> >> To: ironruby-core at rubyforge.org >> >> Subject: Re: [Ironruby-core] Thread Priority >> >> >> >> Is it going to be implemented for V1? >> >> If yes, is it going to work as MRI with numeric values? >> >> >> >> Thanks! >> >> Shay. >> >> >> >> On 10/25/09, Tomas Matousek wrote: >> >> > Ruby Thread#priority is not implemented yet. We disabled name >> mangling >> >> > on >> >> > built-ins recently so Thread.Priority property is not callable via >> >> > lower-case name anymore. >> >> > >> >> > Tomas >> >> > >> >> > -----Original Message----- >> >> > From: ironruby-core-bounces at rubyforge.org >> >> > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay >> Friedman >> >> > Sent: Saturday, October 24, 2009 11:10 PM >> >> > To: ironruby-core >> >> > Subject: [Ironruby-core] Thread Priority >> >> > >> >> > Hi guys, >> >> > >> >> > I've just noticed that something happened to Thread.priority... It >> >> > disappeared. >> >> > I'm talking about Thread's instance attribute - priority. I'm using >> the >> >> > latest code from GitHub. >> >> > >> >> > The only available priority in the Thread instance now is a CamelCase >> >> > priority, which is .Net's Priority attribute... >> >> > >> >> > Take a look at the next REPL session: >> >> > => # >> >> >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } >> >> > tart=> >> >> > # >> >> >>>> t.priority >> >> > :0: undefined method `priority' for # >> >> > (NoMethodError) >> >> > >> >> >>>> t.Priority >> >> > => Normal >> >> > >> >> > I remember the priority attribute was problematic because it didn't >> >> receive >> >> > numeric values like MRI. Maybe this is related to that? >> >> > >> >> > Thanks, >> >> > Shay. >> >> > >> >> > -- >> >> > -------------------------------------------------- >> >> > Shay Friedman >> >> > Author of IronRuby Unleashed >> >> > http://www.IronShay.com >> >> > Follow me: http://twitter.com/ironshay >> >> > ________________________________________ >> _______________________________________________ >> 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 ryan.riley at panesofglass.org Fri Apr 23 01:07:12 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Thu, 22 Apr 2010 22:07:12 -0700 Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. Message-ID: While trying to install DataMapper from source, I ran into a few additional issues. I can create cases if they are legit, but I suspect I'm just missing something. When I tried to install dm-more, I received an error stating I didn't have bundler installed. When I tried installing bundler, I couldn't because it requires RubyGems 1.3.6. When I tried executing `ir -S gem update --system`, I received the following: C:\Users\ryan>ir -S gem update --system Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.3.6 Updating RubyGems to 1.3.6 Installing RubyGems 1.3.6 ERROR: While executing gem ... (Gem::Exception) [BUG] invalid exec_format "ir", no %s Is IronRuby telling me it has a known bug, or is this something else? Can I upgrade to RubyGems 1.3.6? Can I install Bundler? Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Apr 23 01:25:26 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 23 Apr 2010 05:25:26 +0000 Subject: [Ironruby-core] DataMapper (was Re: Thread Priority) Message-ID: <3037E530-D1D5-4F1F-8D56-6743A3845AF7@microsoft.com> That's a very good question actually; I know at least one Rails + DataMapper site that will switch to IronRuby if they can get it working (one I used to work on), so I'm personally interested in this as well. :) Last I checked do_sqlserver wasn't too mature. They don't depend on dbi, so there will need to be a separate abstraction for ADO and ADO.NET. I have more faith in do_sqlite3 working, as there is a .NET API for sqlite3 (http://sqlite.phxsoftware.com/), and it would be minimal work to test do_sqlite3 with sqlite-ironruby. As far as DataMapper itself, it'd be interesting to run DataMapper with it's in-memory database to see if IronRuby at-least run it. I'll want to look into running datamapper for unit testing sake, but it would be great if someone signed up to work on the sqlserver and sqlite3 support. Ryan, you want to head that up, or at least look for a team? ~Jimmy On Apr 22, 2010, at 9:54 PM, "Ryan Riley" <ryan.riley at panesofglass.org> wrote: What's the status of the DataMapper port? I was just trying to use it but couldn't get the gem installed. I'm interested in helping get this working. What next steps are needed? Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Mon, Oct 26, 2009 at 7:02 AM, Alexander Coles <alex at alexbcoles.com> wrote: Quick +1 to vote this patch up. I've been working on the JRuby support for the DataMapper ORM and DataObjects(.rb) database connectivity layer. These projects rely in turn on another project called Extlib, which provides a bunch of useful extensions (lazy arrays, thread pools, string extensions) for the other two projects. I pulled down and built the latest IronRuby and running Extlib's specs, the lack of Thread#priority appears to be the first blocker in our support for IR. Alex Coles DataMapper: http://github.com/datamapper/dm-core DataObjects: http://github.com/datamapper/do Extlib: http://github.com/datamapper/extlib On Mon, Oct 26, 2009 at 6:12 AM, Shay Friedman <shay.friedman at gmail.com> wrote: > I remembered something like that. Thanks for pointing it out Pascal. > Is it going to be incorporated into V1 code? > Thanks! > Shay. > > On Mon, Oct 26, 2009 at 1:49 AM, Pascal Normandin > <pascal.normandin at convergentware.com> wrote: >> >> Hello, >> >> I have done a very basic implementation of a while back but I did not >> finish >> the modifications to the specs to test this. >> >> Here are the commits if you want to grab it >> >> >> http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 >> de7f305 >> >> http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b >> 164f202 >> >> It was decided at some point that there would only be 5 valid values >> >> -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities >> Lowest, BelowNormal, Normal, AboveNormal and Highest >> >> If anything lower than -2 is passed in the thread will be assigned Lowest >> and Highest if above 2. >> >> Pascal >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> Sent: October-25-09 3:55 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Thread Priority >> >> Is it going to be implemented for V1? >> If yes, is it going to work as MRI with numeric values? >> >> Thanks! >> Shay. >> >> On 10/25/09, Tomas Matousek <Tomas.Matousek at microsoft.com> wrote: >> > Ruby Thread#priority is not implemented yet. We disabled name mangling >> > on >> > built-ins recently so Thread.Priority property is not callable via >> > lower-case name anymore. >> > >> > Tomas >> > >> > -----Original Message----- >> > From: ironruby-core-bounces at rubyforge.org >> > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> > Sent: Saturday, October 24, 2009 11:10 PM >> > To: ironruby-core >> > Subject: [Ironruby-core] Thread Priority >> > >> > Hi guys, >> > >> > I've just noticed that something happened to Thread.priority... It >> > disappeared. >> > I'm talking about Thread's instance attribute - priority. I'm using the >> > latest code from GitHub. >> > >> > The only available priority in the Thread instance now is a CamelCase >> > priority, which is .Net's Priority attribute... >> > >> > Take a look at the next REPL session: >> > => # >> >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } >> > tart=> >> > # >> >>>> t.priority >> > :0: undefined method `priority' for # >> > (NoMethodError) >> > >> >>>> t.Priority >> > => Normal >> > >> > I remember the priority attribute was problematic because it didn't >> receive >> > numeric values like MRI. Maybe this is related to that? >> > >> > Thanks, >> > Shay. >> > >> > -- >> > -------------------------------------------------- >> > Shay Friedman >> > Author of IronRuby Unleashed >> > http://www.IronShay.com >> > Follow me: http://twitter.com/ironshay >> > ________________________________________ _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.radcliffe at gmail.com Fri Apr 23 01:52:39 2010 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Thu, 22 Apr 2010 23:52:39 -0600 Subject: [Ironruby-core] DataMapper (was Re: Thread Priority) In-Reply-To: References: <3037E530-D1D5-4F1F-8D56-6743A3845AF7@microsoft.com> Message-ID: Too late for email I guess. My email was re: Sequel and not Datamapper. May still apply, but probably not. My apologies. Best Regards, Kevin Radcliffe On Thu, Apr 22, 2010 at 11:46 PM, Kevin Radcliffe wrote: > I was also very interested in this. > > Jimmy, shouldn't plain old ADO support "just work" once this bug is fixed?: > ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4085 > > Obviously, > plain old ADO will not be the most optimal solution, but I think it may give > us something for MSSQL servers right away. > Thanks! > Best Regards, > Kevin Radcliffe > > > On Thu, Apr 22, 2010 at 11:25 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> That's a very good question actually; I know at least one Rails + >> DataMapper site that will switch to IronRuby if they can get it working (one >> I used to work on), so I'm personally interested in this as well. :) >> >> Last I checked do_sqlserver wasn't too mature. They don't depend on dbi, >> so there will need to be a separate abstraction for ADO and >> ADO.NET. I have more faith in do_sqlite3 working, as >> there is a .NET API for sqlite3 (http://sqlite.phxsoftware.com/), and it >> would be minimal work to test do_sqlite3 with sqlite-ironruby. >> >> As far as DataMapper itself, it'd be interesting to run DataMapper with >> it's in-memory database to see if IronRuby at-least run it. >> >> I'll want to look into running datamapper for unit testing sake, but it >> would be great if someone signed up to work on the sqlserver and sqlite3 >> support. Ryan, you want to head that up, or at least look for a team? >> >> ~Jimmy >> >> On Apr 22, 2010, at 9:54 PM, "Ryan Riley" < >> ryan.riley at panesofglass.org> wrote: >> >> What's the status of the DataMapper port? I was just trying to use it but >> couldn't get the gem installed. I'm interested in helping get this working. >> What next steps are needed? >> >> Thanks, >> >> Ryan Riley >> >> Email: >> ryan.riley at panesofglass.org >> LinkedIn: >> http://www.linkedin.com/in/ryanriley >> Blog: >> http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: >> http://panesofglass.org/ >> >> >> On Mon, Oct 26, 2009 at 7:02 AM, Alexander Coles < >> alex at alexbcoles.com> wrote: >> >>> Quick +1 to vote this patch up. >>> >>> I've been working on the JRuby support for the DataMapper ORM and >>> DataObjects(.rb) database connectivity layer. These projects rely in >>> turn on another project called Extlib, which provides a bunch of >>> useful extensions (lazy arrays, thread pools, string extensions) for >>> the other two projects. >>> >>> I pulled down and built the latest IronRuby and running Extlib's >>> specs, the lack of Thread#priority appears to be the first blocker in >>> our support for IR. >>> >>> Alex Coles >>> >>> DataMapper: >>> http://github.com/datamapper/dm-core >>> DataObjects: >>> http://github.com/datamapper/do >>> Extlib: >>> http://github.com/datamapper/extlib >>> >>> >>> On Mon, Oct 26, 2009 at 6:12 AM, Shay Friedman < >>> shay.friedman at gmail.com> wrote: >>> > I remembered something like that. Thanks for pointing it out Pascal. >>> > Is it going to be incorporated into V1 code? >>> > Thanks! >>> > Shay. >>> > >>> > On Mon, Oct 26, 2009 at 1:49 AM, Pascal Normandin >>> > < >>> pascal.normandin at convergentware.com> wrote: >>> >> >>> >> Hello, >>> >> >>> >> I have done a very basic implementation of a while back but I did not >>> >> finish >>> >> the modifications to the specs to test this. >>> >> >>> >> Here are the commits if you want to grab it >>> >> >>> >> >>> >> >>> >>> http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 >>> >> de7f305 >>> >> >>> >> >>> >>> http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b >>> >> 164f202 >>> >> >>> >> It was decided at some point that there would only be 5 valid values >>> >> >>> >> -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities >>> >> Lowest, BelowNormal, Normal, AboveNormal and Highest >>> >> >>> >> If anything lower than -2 is passed in the thread will be assigned >>> Lowest >>> >> and Highest if above 2. >>> >> >>> >> Pascal >>> >> >>> >> -----Original Message----- >>> >> From: >>> ironruby-core-bounces at rubyforge.org >>> >> [mailto: >>> ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >>> >> Sent: October-25-09 3:55 PM >>> >> To: >>> ironruby-core at rubyforge.org >>> >> Subject: Re: [Ironruby-core] Thread Priority >>> >> >>> >> Is it going to be implemented for V1? >>> >> If yes, is it going to work as MRI with numeric values? >>> >> >>> >> Thanks! >>> >> Shay. >>> >> >>> >> On 10/25/09, Tomas Matousek < >>> Tomas.Matousek at microsoft.com> wrote: >>> >> > Ruby Thread#priority is not implemented yet. We disabled name >>> mangling >>> >> > on >>> >> > built-ins recently so Thread.Priority property is not callable via >>> >> > lower-case name anymore. >>> >> > >>> >> > Tomas >>> >> > >>> >> > -----Original Message----- >>> >> > From: >>> ironruby-core-bounces at rubyforge.org >>> >> > [mailto: >>> ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >>> >> > Sent: Saturday, October 24, 2009 11:10 PM >>> >> > To: ironruby-core >>> >> > Subject: [Ironruby-core] Thread Priority >>> >> > >>> >> > Hi guys, >>> >> > >>> >> > I've just noticed that something happened to Thread.priority... It >>> >> > disappeared. >>> >> > I'm talking about Thread's instance attribute - priority. I'm using >>> the >>> >> > latest code from GitHub. >>> >> > >>> >> > The only available priority in the Thread instance now is a >>> CamelCase >>> >> > priority, which is .Net's Priority attribute... >>> >> > >>> >> > Take a look at the next REPL session: >>> >> > => # >>> >> >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } >>> >> > tart=> >>> >> > # >>> >> >>>> t.priority >>> >> > :0: undefined method `priority' for # >>> >> > (NoMethodError) >>> >> > >>> >> >>>> t.Priority >>> >> > => Normal >>> >> > >>> >> > I remember the priority attribute was problematic because it didn't >>> >> receive >>> >> > numeric values like MRI. Maybe this is related to that? >>> >> > >>> >> > Thanks, >>> >> > Shay. >>> >> > >>> >> > -- >>> >> > -------------------------------------------------- >>> >> > Shay Friedman >>> >> > Author of IronRuby Unleashed >>> >> > >>> http://www.IronShay.com >>> >> > Follow me: >>> http://twitter.com/ironshay >>> >> > ________________________________________ >>> _______________________________________________ >>> 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 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.radcliffe at gmail.com Fri Apr 23 01:46:34 2010 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Thu, 22 Apr 2010 23:46:34 -0600 Subject: [Ironruby-core] DataMapper (was Re: Thread Priority) In-Reply-To: <3037E530-D1D5-4F1F-8D56-6743A3845AF7@microsoft.com> References: <3037E530-D1D5-4F1F-8D56-6743A3845AF7@microsoft.com> Message-ID: I was also very interested in this. Jimmy, shouldn't plain old ADO support "just work" once this bug is fixed?: ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4085 Obviously, plain old ADO will not be the most optimal solution, but I think it may give us something for MSSQL servers right away. Thanks! Best Regards, Kevin Radcliffe On Thu, Apr 22, 2010 at 11:25 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > That's a very good question actually; I know at least one Rails + > DataMapper site that will switch to IronRuby if they can get it working (one > I used to work on), so I'm personally interested in this as well. :) > > Last I checked do_sqlserver wasn't too mature. They don't depend on dbi, so > there will need to be a separate abstraction for ADO and > ADO.NET. I have more faith in do_sqlite3 working, as there is a .NET API > for sqlite3 (http://sqlite.phxsoftware.com/), and it would be minimal work > to test do_sqlite3 with sqlite-ironruby. > > As far as DataMapper itself, it'd be interesting to run DataMapper with > it's in-memory database to see if IronRuby at-least run it. > > I'll want to look into running datamapper for unit testing sake, but it > would be great if someone signed up to work on the sqlserver and sqlite3 > support. Ryan, you want to head that up, or at least look for a team? > > ~Jimmy > > On Apr 22, 2010, at 9:54 PM, "Ryan Riley" < > ryan.riley at panesofglass.org> wrote: > > What's the status of the DataMapper port? I was just trying to use it but > couldn't get the gem installed. I'm interested in helping get this working. > What next steps are needed? > > Thanks, > > Ryan Riley > > Email: > ryan.riley at panesofglass.org > LinkedIn: > http://www.linkedin.com/in/ryanriley > Blog: > http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: > http://panesofglass.org/ > > > On Mon, Oct 26, 2009 at 7:02 AM, Alexander Coles < > alex at alexbcoles.com> wrote: > >> Quick +1 to vote this patch up. >> >> I've been working on the JRuby support for the DataMapper ORM and >> DataObjects(.rb) database connectivity layer. These projects rely in >> turn on another project called Extlib, which provides a bunch of >> useful extensions (lazy arrays, thread pools, string extensions) for >> the other two projects. >> >> I pulled down and built the latest IronRuby and running Extlib's >> specs, the lack of Thread#priority appears to be the first blocker in >> our support for IR. >> >> Alex Coles >> >> DataMapper: >> http://github.com/datamapper/dm-core >> DataObjects: >> http://github.com/datamapper/do >> Extlib: >> http://github.com/datamapper/extlib >> >> >> On Mon, Oct 26, 2009 at 6:12 AM, Shay Friedman < >> shay.friedman at gmail.com> wrote: >> > I remembered something like that. Thanks for pointing it out Pascal. >> > Is it going to be incorporated into V1 code? >> > Thanks! >> > Shay. >> > >> > On Mon, Oct 26, 2009 at 1:49 AM, Pascal Normandin >> > < >> pascal.normandin at convergentware.com> wrote: >> >> >> >> Hello, >> >> >> >> I have done a very basic implementation of a while back but I did not >> >> finish >> >> the modifications to the specs to test this. >> >> >> >> Here are the commits if you want to grab it >> >> >> >> >> >> >> >> http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 >> >> de7f305 >> >> >> >> >> >> http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b >> >> 164f202 >> >> >> >> It was decided at some point that there would only be 5 valid values >> >> >> >> -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities >> >> Lowest, BelowNormal, Normal, AboveNormal and Highest >> >> >> >> If anything lower than -2 is passed in the thread will be assigned >> Lowest >> >> and Highest if above 2. >> >> >> >> Pascal >> >> >> >> -----Original Message----- >> >> From: >> ironruby-core-bounces at rubyforge.org >> >> [mailto: >> ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> >> Sent: October-25-09 3:55 PM >> >> To: >> ironruby-core at rubyforge.org >> >> Subject: Re: [Ironruby-core] Thread Priority >> >> >> >> Is it going to be implemented for V1? >> >> If yes, is it going to work as MRI with numeric values? >> >> >> >> Thanks! >> >> Shay. >> >> >> >> On 10/25/09, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> > Ruby Thread#priority is not implemented yet. We disabled name >> mangling >> >> > on >> >> > built-ins recently so Thread.Priority property is not callable via >> >> > lower-case name anymore. >> >> > >> >> > Tomas >> >> > >> >> > -----Original Message----- >> >> > From: >> ironruby-core-bounces at rubyforge.org >> >> > [mailto: >> ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> >> > Sent: Saturday, October 24, 2009 11:10 PM >> >> > To: ironruby-core >> >> > Subject: [Ironruby-core] Thread Priority >> >> > >> >> > Hi guys, >> >> > >> >> > I've just noticed that something happened to Thread.priority... It >> >> > disappeared. >> >> > I'm talking about Thread's instance attribute - priority. I'm using >> the >> >> > latest code from GitHub. >> >> > >> >> > The only available priority in the Thread instance now is a CamelCase >> >> > priority, which is .Net's Priority attribute... >> >> > >> >> > Take a look at the next REPL session: >> >> > => # >> >> >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } >> >> > tart=> >> >> > # >> >> >>>> t.priority >> >> > :0: undefined method `priority' for # >> >> > (NoMethodError) >> >> > >> >> >>>> t.Priority >> >> > => Normal >> >> > >> >> > I remember the priority attribute was problematic because it didn't >> >> receive >> >> > numeric values like MRI. Maybe this is related to that? >> >> > >> >> > Thanks, >> >> > Shay. >> >> > >> >> > -- >> >> > -------------------------------------------------- >> >> > Shay Friedman >> >> > Author of IronRuby Unleashed >> >> > >> http://www.IronShay.com >> >> > Follow me: >> http://twitter.com/ironshay >> >> > ________________________________________ >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Apr 23 02:39:43 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 23 Apr 2010 06:39:43 +0000 Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C5C72A3FD@TK5EX14MBXC122.redmond.corp.microsoft.com> This is a bug in RubyGems. It seems that we can get around it by providing lib/rubygems/ironruby.rb file: http://rubyforge.org/tracker/index.php?func=detail&aid=27995&group_id=126&atid=575 Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Thursday, April 22, 2010 10:07 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. While trying to install DataMapper from source, I ran into a few additional issues. I can create cases if they are legit, but I suspect I'm just missing something. When I tried to install dm-more, I received an error stating I didn't have bundler installed. When I tried installing bundler, I couldn't because it requires RubyGems 1.3.6. When I tried executing `ir -S gem update --system`, I received the following: C:\Users\ryan>ir -S gem update --system Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.3.6 Updating RubyGems to 1.3.6 Installing RubyGems 1.3.6 ERROR: While executing gem ... (Gem::Exception) [BUG] invalid exec_format "ir", no %s Is IronRuby telling me it has a known bug, or is this something else? Can I upgrade to RubyGems 1.3.6? Can I install Bundler? Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From suppakilla at gmail.com Fri Apr 23 02:45:34 2010 From: suppakilla at gmail.com (Daniele Alessandri) Date: Fri, 23 Apr 2010 08:45:34 +0200 Subject: [Ironruby-core] DataMapper (was Re: Thread Priority) In-Reply-To: References: <3037E530-D1D5-4F1F-8D56-6743A3845AF7@microsoft.com> Message-ID: On Fri, Apr 23, 2010 at 07:52, Kevin Radcliffe wrote: > Too late for email I guess. My email was re: Sequel and not Datamapper. By the way, last month I've started playing with Sequel on IronRuby and, after having filed the bug about ADO+COM on codeplex, I created a quick and dirty adapter for MSSQL [1] that utilizes the System.Data.SqlClient namespace and reuses the shared adapter bits of Sequel to build SQL queries. While still suboptimal (I will put some work into it soon), it somewhat works and the fact that it enables connections to MSSQL from mono+linux makes the approach vastly superior compared to using ADO via COM ;-) Generic support for ADO.NET in Sequel and a subadapter for MSSQL should be the actual way to go. [1] http://github.com/nrk/sequel/commits/ironruby-mssqlclient -- Daniele Alessandri http://www.clorophilla.net/ http://twitter.com/JoL1hAHN From Jimmy.Schementi at microsoft.com Fri Apr 23 02:54:49 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 23 Apr 2010 06:54:49 +0000 Subject: [Ironruby-core] DataMapper (was Re: Thread Priority) In-Reply-To: References: <3037E530-D1D5-4F1F-8D56-6743A3845AF7@microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921733755E@TK5EX14MBXC136.redmond.corp.microsoft.com> Yes, though not idea, ADO should just work. But it probably doesn't because of that bug, so I've moved it up to our 1.0.1 release and I'll look into why the DLR COM Binder is not able to consume this interface. Thanks for reminding me of this issue Kevin! From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Kevin Radcliffe Sent: Thursday, April 22, 2010 10:47 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] DataMapper (was Re: Thread Priority) I was also very interested in this. Jimmy, shouldn't plain old ADO support "just work" once this bug is fixed?: ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4085 Obviously, plain old ADO will not be the most optimal solution, but I think it may give us something for MSSQL servers right away. Thanks! Best Regards, Kevin Radcliffe On Thu, Apr 22, 2010 at 11:25 PM, Jimmy Schementi > wrote: That's a very good question actually; I know at least one Rails + DataMapper site that will switch to IronRuby if they can get it working (one I used to work on), so I'm personally interested in this as well. :) Last I checked do_sqlserver wasn't too mature. They don't depend on dbi, so there will need to be a separate abstraction for ADO and ADO.NET. I have more faith in do_sqlite3 working, as there is a .NET API for sqlite3 (http://sqlite.phxsoftware.com/), and it would be minimal work to test do_sqlite3 with sqlite-ironruby. As far as DataMapper itself, it'd be interesting to run DataMapper with it's in-memory database to see if IronRuby at-least run it. I'll want to look into running datamapper for unit testing sake, but it would be great if someone signed up to work on the sqlserver and sqlite3 support. Ryan, you want to head that up, or at least look for a team? ~Jimmy On Apr 22, 2010, at 9:54 PM, "Ryan Riley" > wrote: What's the status of the DataMapper port? I was just trying to use it but couldn't get the gem installed. I'm interested in helping get this working. What next steps are needed? Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Mon, Oct 26, 2009 at 7:02 AM, Alexander Coles > wrote: Quick +1 to vote this patch up. I've been working on the JRuby support for the DataMapper ORM and DataObjects(.rb) database connectivity layer. These projects rely in turn on another project called Extlib, which provides a bunch of useful extensions (lazy arrays, thread pools, string extensions) for the other two projects. I pulled down and built the latest IronRuby and running Extlib's specs, the lack of Thread#priority appears to be the first blocker in our support for IR. Alex Coles DataMapper: http://github.com/datamapper/dm-core DataObjects: http://github.com/datamapper/do Extlib: http://github.com/datamapper/extlib On Mon, Oct 26, 2009 at 6:12 AM, Shay Friedman > wrote: > I remembered something like that. Thanks for pointing it out Pascal. > Is it going to be incorporated into V1 code? > Thanks! > Shay. > > On Mon, Oct 26, 2009 at 1:49 AM, Pascal Normandin > > wrote: >> >> Hello, >> >> I have done a very basic implementation of a while back but I did not >> finish >> the modifications to the specs to test this. >> >> Here are the commits if you want to grab it >> >> >> http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 >> de7f305 >> >> http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b >> 164f202 >> >> It was decided at some point that there would only be 5 valid values >> >> -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities >> Lowest, BelowNormal, Normal, AboveNormal and Highest >> >> If anything lower than -2 is passed in the thread will be assigned Lowest >> and Highest if above 2. >> >> Pascal >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> Sent: October-25-09 3:55 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Thread Priority >> >> Is it going to be implemented for V1? >> If yes, is it going to work as MRI with numeric values? >> >> Thanks! >> Shay. >> >> On 10/25/09, Tomas Matousek > wrote: >> > Ruby Thread#priority is not implemented yet. We disabled name mangling >> > on >> > built-ins recently so Thread.Priority property is not callable via >> > lower-case name anymore. >> > >> > Tomas >> > >> > -----Original Message----- >> > From: ironruby-core-bounces at rubyforge.org >> > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> > Sent: Saturday, October 24, 2009 11:10 PM >> > To: ironruby-core >> > Subject: [Ironruby-core] Thread Priority >> > >> > Hi guys, >> > >> > I've just noticed that something happened to Thread.priority... It >> > disappeared. >> > I'm talking about Thread's instance attribute - priority. I'm using the >> > latest code from GitHub. >> > >> > The only available priority in the Thread instance now is a CamelCase >> > priority, which is .Net's Priority attribute... >> > >> > Take a look at the next REPL session: >> > => # >> >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } >> > tart=> >> > # >> >>>> t.priority >> > :0: undefined method `priority' for # >> > (NoMethodError) >> > >> >>>> t.Priority >> > => Normal >> > >> > I remember the priority attribute was problematic because it didn't >> receive >> > numeric values like MRI. Maybe this is related to that? >> > >> > Thanks, >> > Shay. >> > >> > -- >> > -------------------------------------------------- >> > Shay Friedman >> > Author of IronRuby Unleashed >> > http://www.IronShay.com >> > Follow me: http://twitter.com/ironshay >> > ________________________________________ _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sat Apr 24 01:42:58 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 23 Apr 2010 22:42:58 -0700 Subject: [Ironruby-core] DataMapper (was Re: Thread Priority) In-Reply-To: <3037E530-D1D5-4F1F-8D56-6743A3845AF7@microsoft.com> References: <3037E530-D1D5-4F1F-8D56-6743A3845AF7@microsoft.com> Message-ID: I'm happy to help out. I'll start working on it this weekend. Regards, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Thu, Apr 22, 2010 at 10:25 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > That's a very good question actually; I know at least one Rails + > DataMapper site that will switch to IronRuby if they can get it working (one > I used to work on), so I'm personally interested in this as well. :) > > Last I checked do_sqlserver wasn't too mature. They don't depend on dbi, so > there will need to be a separate abstraction for ADO and > ADO.NET. I have more faith in do_sqlite3 working, as there is a .NET API > for sqlite3 (http://sqlite.phxsoftware.com/), and it would be minimal work > to test do_sqlite3 with sqlite-ironruby. > > As far as DataMapper itself, it'd be interesting to run DataMapper with > it's in-memory database to see if IronRuby at-least run it. > > I'll want to look into running datamapper for unit testing sake, but it > would be great if someone signed up to work on the sqlserver and sqlite3 > support. Ryan, you want to head that up, or at least look for a team? > > ~Jimmy > > On Apr 22, 2010, at 9:54 PM, "Ryan Riley" < > ryan.riley at panesofglass.org> wrote: > > What's the status of the DataMapper port? I was just trying to use it but > couldn't get the gem installed. I'm interested in helping get this working. > What next steps are needed? > > Thanks, > > Ryan Riley > > Email: > ryan.riley at panesofglass.org > LinkedIn: > http://www.linkedin.com/in/ryanriley > Blog: > http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: > http://panesofglass.org/ > > > On Mon, Oct 26, 2009 at 7:02 AM, Alexander Coles < > alex at alexbcoles.com> wrote: > >> Quick +1 to vote this patch up. >> >> I've been working on the JRuby support for the DataMapper ORM and >> DataObjects(.rb) database connectivity layer. These projects rely in >> turn on another project called Extlib, which provides a bunch of >> useful extensions (lazy arrays, thread pools, string extensions) for >> the other two projects. >> >> I pulled down and built the latest IronRuby and running Extlib's >> specs, the lack of Thread#priority appears to be the first blocker in >> our support for IR. >> >> Alex Coles >> >> DataMapper: >> http://github.com/datamapper/dm-core >> DataObjects: >> http://github.com/datamapper/do >> Extlib: >> http://github.com/datamapper/extlib >> >> >> On Mon, Oct 26, 2009 at 6:12 AM, Shay Friedman < >> shay.friedman at gmail.com> wrote: >> > I remembered something like that. Thanks for pointing it out Pascal. >> > Is it going to be incorporated into V1 code? >> > Thanks! >> > Shay. >> > >> > On Mon, Oct 26, 2009 at 1:49 AM, Pascal Normandin >> > < >> pascal.normandin at convergentware.com> wrote: >> >> >> >> Hello, >> >> >> >> I have done a very basic implementation of a while back but I did not >> >> finish >> >> the modifications to the specs to test this. >> >> >> >> Here are the commits if you want to grab it >> >> >> >> >> >> >> >> http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 >> >> de7f305 >> >> >> >> >> >> http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b >> >> 164f202 >> >> >> >> It was decided at some point that there would only be 5 valid values >> >> >> >> -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities >> >> Lowest, BelowNormal, Normal, AboveNormal and Highest >> >> >> >> If anything lower than -2 is passed in the thread will be assigned >> Lowest >> >> and Highest if above 2. >> >> >> >> Pascal >> >> >> >> -----Original Message----- >> >> From: >> ironruby-core-bounces at rubyforge.org >> >> [mailto: >> ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> >> Sent: October-25-09 3:55 PM >> >> To: >> ironruby-core at rubyforge.org >> >> Subject: Re: [Ironruby-core] Thread Priority >> >> >> >> Is it going to be implemented for V1? >> >> If yes, is it going to work as MRI with numeric values? >> >> >> >> Thanks! >> >> Shay. >> >> >> >> On 10/25/09, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> > Ruby Thread#priority is not implemented yet. We disabled name >> mangling >> >> > on >> >> > built-ins recently so Thread.Priority property is not callable via >> >> > lower-case name anymore. >> >> > >> >> > Tomas >> >> > >> >> > -----Original Message----- >> >> > From: >> ironruby-core-bounces at rubyforge.org >> >> > [mailto: >> ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> >> > Sent: Saturday, October 24, 2009 11:10 PM >> >> > To: ironruby-core >> >> > Subject: [Ironruby-core] Thread Priority >> >> > >> >> > Hi guys, >> >> > >> >> > I've just noticed that something happened to Thread.priority... It >> >> > disappeared. >> >> > I'm talking about Thread's instance attribute - priority. I'm using >> the >> >> > latest code from GitHub. >> >> > >> >> > The only available priority in the Thread instance now is a CamelCase >> >> > priority, which is .Net's Priority attribute... >> >> > >> >> > Take a look at the next REPL session: >> >> > => # >> >> >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } >> >> > tart=> >> >> > # >> >> >>>> t.priority >> >> > :0: undefined method `priority' for # >> >> > (NoMethodError) >> >> > >> >> >>>> t.Priority >> >> > => Normal >> >> > >> >> > I remember the priority attribute was problematic because it didn't >> >> receive >> >> > numeric values like MRI. Maybe this is related to that? >> >> > >> >> > Thanks, >> >> > Shay. >> >> > >> >> > -- >> >> > -------------------------------------------------- >> >> > Shay Friedman >> >> > Author of IronRuby Unleashed >> >> > >> http://www.IronShay.com >> >> > Follow me: >> http://twitter.com/ironshay >> >> > ________________________________________ >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.radcliffe at gmail.com Sat Apr 24 02:19:10 2010 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Sat, 24 Apr 2010 00:19:10 -0600 Subject: [Ironruby-core] Ocra In-Reply-To: References: Message-ID: iLias, have you checked out rifraf's IronRubyEmbeddedApps: http://github.com/rifraf/IronRubyEmbeddedApps This is a very interesting project, and might be exactly what you need. ^_^ Excerpted from the readme: "You can package up Ruby applications as ordinary .Net executables without having to ship a collection of plain-text Ruby source files. No-one need ever know...." Best Regards, Kevin Radcliffe On Thu, Apr 22, 2010 at 3:03 PM, Ilias bankai wrote: > Hi All, > > Is it possible to package the sourcecode in to an .exe file with > IronRuby? > If not, will there be a tool in the near future for IronRuby to support > this method? > > With the MRI version I can use OCRA or Rubyscript2exe (obsolete in 1.9) > It would be awesome if there where such a thing for IronRuby > > > Cheers, > > iLias. > -- > 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 zac at zacbrown.org Sat Apr 24 04:36:52 2010 From: zac at zacbrown.org (Zac Brown) Date: Sat, 24 Apr 2010 01:36:52 -0700 Subject: [Ironruby-core] RubyGems/RDoc 1.8.6 policy Message-ID: <4BD2ADA4.4020100@zacbrown.org> Saw this earlier today, might be something to think about in the near future for IronRuby and compatibility. http://blog.segment7.net/articles/2010/04/23/ruby-1-8-6-policy -Zac From lists at ruby-forum.com Sat Apr 24 09:46:08 2010 From: lists at ruby-forum.com (Ilias bankai) Date: Sat, 24 Apr 2010 15:46:08 +0200 Subject: [Ironruby-core] Ocra In-Reply-To: References: Message-ID: Hi Kevin, This is pretty much what i was looking for! :-) Thanks man!! Regards, iLias. Kevin Radcliffe wrote: > iLias, have you checked out rifraf's IronRubyEmbeddedApps: > http://github.com/rifraf/IronRubyEmbeddedApps > > > This is a very interesting project, and might be exactly what you need. > ^_^ > > Excerpted from the readme: "You can package up Ruby applications as > ordinary > .Net executables without having to ship a > collection of plain-text Ruby source files. No-one need ever know...." > > Best Regards, > Kevin Radcliffe -- Posted via http://www.ruby-forum.com/. From ryan.riley at panesofglass.org Sat Apr 24 14:32:48 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 24 Apr 2010 11:32:48 -0700 Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C5C72A3FD@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C5C72A3FD@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: Where exactly does the #{RUBY_ENGINE}.rb file go? I am having a hard time finding the location. I changed the impl. of default_exec_format and was able to update RubyGems. However, I think adding the ruby engine file is a better way to go. Ryan Riley On Thu, Apr 22, 2010 at 11:39 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > This is a bug in RubyGems. It seems that we can get around it by providing lib/rubygems/ironruby.rb file: > > > > > http://rubyforge.org/tracker/index.php?func=detail&aid=27995&group_id=126&atid=575 > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Thursday, April 22, 2010 10:07 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] RubyGems 1.3.6, Bundler, etc. > > > > While trying to install DataMapper from source, I ran into a few additional > issues. I can create cases if they are legit, but I suspect I'm just missing > something. When I tried to install dm-more, I received an error stating I > didn't have bundler installed. When I tried installing bundler, I couldn't > because it requires RubyGems 1.3.6. When I tried executing `ir -S gem update > --system`, I received the following: > > > > C:\Users\ryan>ir -S gem update --system > > Updating RubyGems > > Updating rubygems-update > > Successfully installed rubygems-update-1.3.6 > > Updating RubyGems to 1.3.6 > > Installing RubyGems 1.3.6 > > ERROR: While executing gem ... (Gem::Exception) > > [BUG] invalid exec_format "ir", no %s > > > > Is IronRuby telling me it has a known bug, or is this something else? Can I > upgrade to RubyGems 1.3.6? Can I install Bundler? > > > > Thanks, > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > _______________________________________________ > 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 ryan.riley at panesofglass.org Sat Apr 24 14:49:18 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 24 Apr 2010 11:49:18 -0700 Subject: [Ironruby-core] Installing Bundler on IronRuby Message-ID: When trying to install Bundler from source with IronRuby (since the RubyGems update seems to have lost the ability to do this), I received the following. I'll try looking into this, but I wanted to post it just in case someone else sees anything obvious: c:\Users\ryan\dev\bundler>ir -S rake install --trace (in c:/Users/ryan/dev/bundler) ** Invoke install (first_time) ** Invoke package (first_time) ** Invoke gem (first_time) ** Invoke pkg/bundler-0.9.25.pre.gem (first_time, not_needed) ** Invoke pkg (first_time, not_needed) ** Invoke bin/bundle (first_time, not_needed) ** Invoke lib/bundler (first_time, not_needed) ** Invoke lib/bundler.rb (first_time, not_needed) ** Invoke lib/bundler/templates (first_time, not_needed) ** Invoke lib/bundler/vendor (first_time, not_needed) ** Invoke lib/bundler/cli.rb (first_time, not_needed) ** Invoke lib/bundler/definition.rb (first_time, not_needed) ** Invoke lib/bundler/dependency.rb (first_time, not_needed) ** Invoke lib/bundler/dsl.rb (first_time, not_needed) ** Invoke lib/bundler/environment.rb (first_time, not_needed) ** Invoke lib/bundler/index.rb (first_time, not_needed) ** Invoke lib/bundler/installer.rb (first_time, not_needed) ** Invoke lib/bundler/remote_specification.rb (first_time, not_needed) ** Invoke lib/bundler/resolver.rb (first_time, not_needed) ** Invoke lib/bundler/rubygems_ext.rb (first_time, not_needed) ** Invoke lib/bundler/runtime.rb (first_time, not_needed) ** Invoke lib/bundler/settings.rb (first_time, not_needed) ** Invoke lib/bundler/setup.rb (first_time, not_needed) ** Invoke lib/bundler/shared_helpers.rb (first_time, not_needed) ** Invoke lib/bundler/source.rb (first_time, not_needed) ** Invoke lib/bundler/spec_set.rb (first_time, not_needed) ** Invoke lib/bundler/ui.rb (first_time, not_needed) ** Invoke lib/bundler/version.rb (first_time, not_needed) ** Invoke lib/bundler/templates/environment.erb (first_time, not_needed) ** Invoke lib/bundler/templates/Gemfile (first_time, not_needed) ** Invoke lib/bundler/vendor/thor (first_time, not_needed) ** Invoke lib/bundler/vendor/thor.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/core_ext (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/parser (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/shell (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/base.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/error.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/invocation.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/parser.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/shell.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/task.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/util.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/version.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/core_ext/file_binary_read.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/core_ext/hash_with_indifferent_access.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/core_ext/ordered_hash.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/parser/argument.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/parser/arguments.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/parser/option.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/parser/options.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/shell/basic.rb (first_time, not_needed) ** Invoke lib/bundler/vendor/thor/shell/color.rb (first_time, not_needed) ** Invoke LICENSE (first_time, not_needed) ** Invoke README.md (first_time, not_needed) ** Invoke ROADMAP.md (first_time, not_needed) ** Invoke CHANGELOG.md (first_time, not_needed) ** Invoke gemspec (first_time) ** Execute gemspec ** Execute gem ** Invoke gemspec ** Execute package ** Execute install gem install pkg/bundler-0.9.25.pre ERROR: While executing gem ... (ArgumentError) while scanning a block mapping: expected , but found: # (line 38, column 1) rake aborted! Command failed with status (1): [gem install pkg/bundler-0.9.25.pre...] C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `call' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:1091:in `sh' c:/Users/ryan/dev/bundler/rakefile:94 C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' C:/Program Files (x86)/IronRuby 1.0/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' C:/Users/ryan/.gem/ironruby/1.8/gems/rake-0.8.7/bin/rake:31 C:/Users/ryan/.gem/ironruby/1.8/bin/rake:19:in `load' C:/Users/ryan/.gem/ironruby/1.8/bin/rake:19 Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Sat Apr 24 15:57:46 2010 From: will at hotgazpacho.org (Will Green) Date: Sat, 24 Apr 2010 15:57:46 -0400 Subject: [Ironruby-core] RubyGems/RDoc 1.8.6 policy In-Reply-To: <4BD2ADA4.4020100@zacbrown.org> References: <4BD2ADA4.4020100@zacbrown.org> Message-ID: Looks like we'll need an IronRuby 1.0.1 that brings us up to 1.8.7. Unless we can get to 1.9 faster... -- Will Green http://hotgazpacho.org/ On Sat, Apr 24, 2010 at 4:36 AM, Zac Brown wrote: > Saw this earlier today, might be something to think about in the near > future for IronRuby and compatibility. > > http://blog.segment7.net/articles/2010/04/23/ruby-1-8-6-policy > > -Zac > _______________________________________________ > 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 zac at zacbrown.org Sat Apr 24 16:28:11 2010 From: zac at zacbrown.org (Zac Brown) Date: Sat, 24 Apr 2010 13:28:11 -0700 Subject: [Ironruby-core] RubyGems/RDoc 1.8.6 policy In-Reply-To: References: <4BD2ADA4.4020100@zacbrown.org> Message-ID: <4BD3545B.2070107@zacbrown.org> Yup, thats what it appears. I'm willing to work on either, just depends on what people's needs are. I personally would be prefer just pushing forward with 1.9 support but I don't know the state of 1.9 vs 1.8.7 support. -Zac On 4/24/2010 12:57 PM, Will Green wrote: > Looks like we'll need an IronRuby 1.0.1 that brings us up to 1.8.7. > Unless we can get to 1.9 faster... > > -- > Will Green > http://hotgazpacho.org/ > > > On Sat, Apr 24, 2010 at 4:36 AM, Zac Brown > wrote: > > Saw this earlier today, might be something to think about in the > near future for IronRuby and compatibility. > > http://blog.segment7.net/articles/2010/04/23/ruby-1-8-6-policy > > -Zac > _______________________________________________ > 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 Sat Apr 24 16:38:47 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 24 Apr 2010 20:38:47 +0000 Subject: [Ironruby-core] RubyGems/RDoc 1.8.6 policy In-Reply-To: <4BD3545B.2070107@zacbrown.org> References: <4BD2ADA4.4020100@zacbrown.org> <4BD3545B.2070107@zacbrown.org> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C5C72AE43@TK5EX14MBXC122.redmond.corp.microsoft.com> Are there any particular 1.8.7 features you know that don't work in IronRuby 1.0? Note that you can pass -1.8.7 command line argument to ir.exe, which enabels some 1.8.7 features. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Saturday, April 24, 2010 1:28 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RubyGems/RDoc 1.8.6 policy Yup, thats what it appears. I'm willing to work on either, just depends on what people's needs are. I personally would be prefer just pushing forward with 1.9 support but I don't know the state of 1.9 vs 1.8.7 support. -Zac On 4/24/2010 12:57 PM, Will Green wrote: > Looks like we'll need an IronRuby 1.0.1 that brings us up to 1.8.7. > Unless we can get to 1.9 faster... > > -- > Will Green > http://hotgazpacho.org/ > > > On Sat, Apr 24, 2010 at 4:36 AM, Zac Brown > wrote: > > Saw this earlier today, might be something to think about in the > near future for IronRuby and compatibility. > > http://blog.segment7.net/articles/2010/04/23/ruby-1-8-6-policy > > -Zac > _______________________________________________ > 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 zac at zacbrown.org Sat Apr 24 16:45:37 2010 From: zac at zacbrown.org (Zac Brown) Date: Sat, 24 Apr 2010 13:45:37 -0700 Subject: [Ironruby-core] RubyGems/RDoc 1.8.6 policy In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C5C72AE43@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <4BD2ADA4.4020100@zacbrown.org> <4BD3545B.2070107@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C5C72AE43@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <4BD35871.2040501@zacbrown.org> To be honest, no. I went straight from 1.8.6 to 1.9. I never actually tried to use 1.8.7 so I'm not aware of its differences from 1.8.6 and 1.9. -Zac On 4/24/2010 1:38 PM, Tomas Matousek wrote: > Are there any particular 1.8.7 features you know that don't work in IronRuby 1.0? Note that you can pass -1.8.7 command line argument to ir.exe, which enabels some 1.8.7 features. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown > Sent: Saturday, April 24, 2010 1:28 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] RubyGems/RDoc 1.8.6 policy > > Yup, thats what it appears. I'm willing to work on either, just depends on what people's needs are. I personally would be prefer just pushing forward with 1.9 support but I don't know the state of 1.9 vs 1.8.7 support. > > -Zac > > On 4/24/2010 12:57 PM, Will Green wrote: > >> Looks like we'll need an IronRuby 1.0.1 that brings us up to 1.8.7. >> Unless we can get to 1.9 faster... >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> On Sat, Apr 24, 2010 at 4:36 AM, Zac Brown> > wrote: >> >> Saw this earlier today, might be something to think about in the >> near future for IronRuby and compatibility. >> >> http://blog.segment7.net/articles/2010/04/23/ruby-1-8-6-policy >> >> -Zac >> _______________________________________________ >> 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 > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From jdeville at microsoft.com Mon Apr 26 11:55:47 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 26 Apr 2010 15:55:47 +0000 Subject: [Ironruby-core] RubyGems/RDoc 1.8.6 policy In-Reply-To: <4BD35871.2040501@zacbrown.org> References: <4BD2ADA4.4020100@zacbrown.org> <4BD3545B.2070107@zacbrown.org> <4B342496A3EFEB48839E10BB4BF5964C5C72AE43@TK5EX14MBXC122.redmond.corp.microsoft.com> <4BD35871.2040501@zacbrown.org> Message-ID: <3A95E0143832D94BA52A18A1406403E4049AEF@TK5EX14MBXC130.redmond.corp.microsoft.com> I don't know how complete we are in respect to 1.8.7, but I don't think we should focus on it unless there is considerable requests for it. Between this Rubygems announcement and Rails, I would expect we'll start seeing a stronger move to 1.9 in the next year. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown Sent: Saturday, April 24, 2010 1:46 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RubyGems/RDoc 1.8.6 policy To be honest, no. I went straight from 1.8.6 to 1.9. I never actually tried to use 1.8.7 so I'm not aware of its differences from 1.8.6 and 1.9. -Zac On 4/24/2010 1:38 PM, Tomas Matousek wrote: > Are there any particular 1.8.7 features you know that don't work in IronRuby 1.0? Note that you can pass -1.8.7 command line argument to ir.exe, which enabels some 1.8.7 features. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zac Brown > Sent: Saturday, April 24, 2010 1:28 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] RubyGems/RDoc 1.8.6 policy > > Yup, thats what it appears. I'm willing to work on either, just depends on what people's needs are. I personally would be prefer just pushing forward with 1.9 support but I don't know the state of 1.9 vs 1.8.7 support. > > -Zac > > On 4/24/2010 12:57 PM, Will Green wrote: > >> Looks like we'll need an IronRuby 1.0.1 that brings us up to 1.8.7. >> Unless we can get to 1.9 faster... >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> On Sat, Apr 24, 2010 at 4:36 AM, Zac Brown> > wrote: >> >> Saw this earlier today, might be something to think about in the >> near future for IronRuby and compatibility. >> >> http://blog.segment7.net/articles/2010/04/23/ruby-1-8-6-policy >> >> -Zac >> _______________________________________________ >> 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 > > _______________________________________________ > 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 jdeville at microsoft.com Mon Apr 26 13:41:15 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 26 Apr 2010 17:41:15 +0000 Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C5C72A3FD@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <3A95E0143832D94BA52A18A1406403E404A5F9@TK5EX14MBXC130.redmond.corp.microsoft.com> This is the comment we got from Eric (RubyGems maintainer). JD >Comment By: Eric Hodel (drbrain) Date: 2010-04-20 20:47 Message: rubygems/defaults/ironruby.rb would go in RbConfig::CONFIG['rubylibdir'] (not in RuybGems) so it should be picked up even by setup.rb From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 24, 2010 11:33 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. Where exactly does the #{RUBY_ENGINE}.rb file go? I am having a hard time finding the location. I changed the impl. of default_exec_format and was able to update RubyGems. However, I think adding the ruby engine file is a better way to go. Ryan Riley On Thu, Apr 22, 2010 at 11:39 PM, Tomas Matousek > wrote: This is a bug in RubyGems. It seems that we can get around it by providing lib/rubygems/ironruby.rb file: http://rubyforge.org/tracker/index.php?func=detail&aid=27995&group_id=126&atid=575 Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Thursday, April 22, 2010 10:07 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. While trying to install DataMapper from source, I ran into a few additional issues. I can create cases if they are legit, but I suspect I'm just missing something. When I tried to install dm-more, I received an error stating I didn't have bundler installed. When I tried installing bundler, I couldn't because it requires RubyGems 1.3.6. When I tried executing `ir -S gem update --system`, I received the following: C:\Users\ryan>ir -S gem update --system Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.3.6 Updating RubyGems to 1.3.6 Installing RubyGems 1.3.6 ERROR: While executing gem ... (Gem::Exception) [BUG] invalid exec_format "ir", no %s Is IronRuby telling me it has a known bug, or is this something else? Can I upgrade to RubyGems 1.3.6? Can I install Bundler? Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ _______________________________________________ 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 kevin.radcliffe at gmail.com Mon Apr 26 15:23:34 2010 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Mon, 26 Apr 2010 13:23:34 -0600 Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. In-Reply-To: <3A95E0143832D94BA52A18A1406403E404A5F9@TK5EX14MBXC130.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C5C72A3FD@TK5EX14MBXC122.redmond.corp.microsoft.com> <3A95E0143832D94BA52A18A1406403E404A5F9@TK5EX14MBXC130.redmond.corp.microsoft.com> Message-ID: Confirming, that it seems to work properly for me: C:\IronRuby1.0_V4>ir IronRuby 1.0.0.0 on .NET 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. >>> require 'rubygems' => true >>> RbConfig::CONFIG['rubylibdir'] => "C:/IronRuby1.0_V4/lib/ruby/1.8" # <-- Sounds like it should go here. I then created an ironruby.rb in: C:\IronRuby1.0_V4\Lib\ruby\1.8\rubygems\defaults my ironruby.rb just commented out the "unless" block. after that, "igem update --system" just worked., as did the install of the bundler gem. Was there a version of ironruby.rb attached somewhere earlier with all of the appropriate overrides? - I just guessed. Thanks Best Regards, Kevin Radcliffe On Mon, Apr 26, 2010 at 11:41 AM, Jim Deville wrote: > This is the comment we got from Eric (RubyGems maintainer). > > > > JD > > > > >Comment By: Eric Hodel (drbrain) > Date: 2010-04-20 20:47 > > Message: > rubygems/defaults/ironruby.rb would go in RbConfig::CONFIG['rubylibdir'] > (not in RuybGems) so it should be picked up even by setup.rb > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Saturday, April 24, 2010 11:33 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. > > > > Where exactly does the #{RUBY_ENGINE}.rb file go? I am having a hard time > finding the location. I changed the impl. of default_exec_format and was > able to update RubyGems. However, I think adding the ruby engine file is a > better way to go. > > > Ryan Riley > > > On Thu, Apr 22, 2010 at 11:39 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > > This is a bug in RubyGems. It seems that we can get around it by providing lib/rubygems/ironruby.rb file: > > > > > http://rubyforge.org/tracker/index.php?func=detail&aid=27995&group_id=126&atid=575 > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Thursday, April 22, 2010 10:07 PM > > > *To:* ironruby-core at rubyforge.org > > *Subject:* [Ironruby-core] RubyGems 1.3.6, Bundler, etc. > > > > While trying to install DataMapper from source, I ran into a few additional > issues. I can create cases if they are legit, but I suspect I'm just missing > something. When I tried to install dm-more, I received an error stating I > didn't have bundler installed. When I tried installing bundler, I couldn't > because it requires RubyGems 1.3.6. When I tried executing `ir -S gem update > --system`, I received the following: > > > > C:\Users\ryan>ir -S gem update --system > > Updating RubyGems > > Updating rubygems-update > > Successfully installed rubygems-update-1.3.6 > > Updating RubyGems to 1.3.6 > > Installing RubyGems 1.3.6 > > ERROR: While executing gem ... (Gem::Exception) > > [BUG] invalid exec_format "ir", no %s > > > > Is IronRuby telling me it has a known bug, or is this something else? Can I > upgrade to RubyGems 1.3.6? Can I install Bundler? > > > > Thanks, > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.radcliffe at gmail.com Mon Apr 26 15:26:00 2010 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Mon, 26 Apr 2010 13:26:00 -0600 Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C5C72A3FD@TK5EX14MBXC122.redmond.corp.microsoft.com> <3A95E0143832D94BA52A18A1406403E404A5F9@TK5EX14MBXC130.redmond.corp.microsoft.com> Message-ID: My own ironruby.rb: http://gist.github.com/379763 Thanks - Kevin On Mon, Apr 26, 2010 at 1:23 PM, Kevin Radcliffe wrote: > Confirming, that it seems to work properly for me: > > C:\IronRuby1.0_V4>ir > IronRuby 1.0.0.0 on .NET 4.0.30319.1 Copyright (c) Microsoft Corporation. > All rights reserved. > >>> require 'rubygems' > => true > >>> RbConfig::CONFIG['rubylibdir'] > => "C:/IronRuby1.0_V4/lib/ruby/1.8" # <-- Sounds like it should go here. > > I then created an ironruby.rb > in: C:\IronRuby1.0_V4\Lib\ruby\1.8\rubygems\defaults > my ironruby.rb just commented out the "unless" block. > after that, "igem update --system" just worked., as did the install of the > bundler gem. > > Was there a version of ironruby.rb attached somewhere earlier with all of > the appropriate overrides? - I just guessed. > Thanks > Best Regards, > Kevin Radcliffe > > On Mon, Apr 26, 2010 at 11:41 AM, Jim Deville wrote: > >> This is the comment we got from Eric (RubyGems maintainer). >> >> >> >> JD >> >> >> >> >Comment By: Eric Hodel (drbrain) >> Date: 2010-04-20 20:47 >> >> Message: >> rubygems/defaults/ironruby.rb would go in RbConfig::CONFIG['rubylibdir'] >> (not in RuybGems) so it should be picked up even by setup.rb >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Saturday, April 24, 2010 11:33 AM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. >> >> >> >> Where exactly does the #{RUBY_ENGINE}.rb file go? I am having a hard time >> finding the location. I changed the impl. of default_exec_format and was >> able to update RubyGems. However, I think adding the ruby engine file is a >> better way to go. >> >> >> Ryan Riley >> >> >> On Thu, Apr 22, 2010 at 11:39 PM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> This is a bug in RubyGems. It seems that we can get around it by providing lib/rubygems/ironruby.rb file: >> >> >> >> >> http://rubyforge.org/tracker/index.php?func=detail&aid=27995&group_id=126&atid=575 >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >> *Sent:* Thursday, April 22, 2010 10:07 PM >> >> >> *To:* ironruby-core at rubyforge.org >> >> *Subject:* [Ironruby-core] RubyGems 1.3.6, Bundler, etc. >> >> >> >> While trying to install DataMapper from source, I ran into a few >> additional issues. I can create cases if they are legit, but I suspect I'm >> just missing something. When I tried to install dm-more, I received an error >> stating I didn't have bundler installed. When I tried installing bundler, I >> couldn't because it requires RubyGems 1.3.6. When I tried executing `ir -S >> gem update --system`, I received the following: >> >> >> >> C:\Users\ryan>ir -S gem update --system >> >> Updating RubyGems >> >> Updating rubygems-update >> >> Successfully installed rubygems-update-1.3.6 >> >> Updating RubyGems to 1.3.6 >> >> Installing RubyGems 1.3.6 >> >> ERROR: While executing gem ... (Gem::Exception) >> >> [BUG] invalid exec_format "ir", no %s >> >> >> >> Is IronRuby telling me it has a known bug, or is this something else? Can >> I upgrade to RubyGems 1.3.6? Can I install Bundler? >> >> >> >> Thanks, >> >> >> Ryan Riley >> >> Email: ryan.riley at panesofglass.org >> LinkedIn: http://www.linkedin.com/in/ryanriley >> Blog: http://wizardsofsmart.net/ >> Twitter: @panesofglass >> Website: http://panesofglass.org/ >> >> >> _______________________________________________ >> 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 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Apr 26 16:54:02 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 26 Apr 2010 20:54:02 +0000 Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. Message-ID: <3A95E0143832D94BA52A18A1406403E404B860@TK5EX14MBXC130.redmond.corp.microsoft.com> Can we take this as a patch? Have you signed an agreement? ________________________________ From: Kevin Radcliffe Sent: Monday, April 26, 2010 12:26 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. My own ironruby.rb: http://gist.github.com/379763 Thanks - Kevin On Mon, Apr 26, 2010 at 1:23 PM, Kevin Radcliffe > wrote: Confirming, that it seems to work properly for me: C:\IronRuby1.0_V4>ir IronRuby 1.0.0.0 on .NET 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. >>> require 'rubygems' => true >>> RbConfig::CONFIG['rubylibdir'] => "C:/IronRuby1.0_V4/lib/ruby/1.8" # <-- Sounds like it should go here. I then created an ironruby.rb in: C:\IronRuby1.0_V4\Lib\ruby\1.8\rubygems\defaults my ironruby.rb just commented out the "unless" block. after that, "igem update --system" just worked., as did the install of the bundler gem. Was there a version of ironruby.rb attached somewhere earlier with all of the appropriate overrides? - I just guessed. Thanks Best Regards, Kevin Radcliffe On Mon, Apr 26, 2010 at 11:41 AM, Jim Deville > wrote: This is the comment we got from Eric (RubyGems maintainer). JD >Comment By: Eric Hodel (drbrain) Date: 2010-04-20 20:47 Message: rubygems/defaults/ironruby.rb would go in RbConfig::CONFIG['rubylibdir'] (not in RuybGems) so it should be picked up even by setup.rb From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 24, 2010 11:33 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. Where exactly does the #{RUBY_ENGINE}.rb file go? I am having a hard time finding the location. I changed the impl. of default_exec_format and was able to update RubyGems. However, I think adding the ruby engine file is a better way to go. Ryan Riley On Thu, Apr 22, 2010 at 11:39 PM, Tomas Matousek > wrote: This is a bug in RubyGems. It seems that we can get around it by providing lib/rubygems/ironruby.rb file: http://rubyforge.org/tracker/index.php?func=detail&aid=27995&group_id=126&atid=575 Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Thursday, April 22, 2010 10:07 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. While trying to install DataMapper from source, I ran into a few additional issues. I can create cases if they are legit, but I suspect I'm just missing something. When I tried to install dm-more, I received an error stating I didn't have bundler installed. When I tried installing bundler, I couldn't because it requires RubyGems 1.3.6. When I tried executing `ir -S gem update --system`, I received the following: C:\Users\ryan>ir -S gem update --system Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.3.6 Updating RubyGems to 1.3.6 Installing RubyGems 1.3.6 ERROR: While executing gem ... (Gem::Exception) [BUG] invalid exec_format "ir", no %s Is IronRuby telling me it has a known bug, or is this something else? Can I upgrade to RubyGems 1.3.6? Can I install Bundler? Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Apr 26 17:06:47 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 26 Apr 2010 21:06:47 +0000 Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. In-Reply-To: <3A95E0143832D94BA52A18A1406403E404B860@TK5EX14MBXC130.redmond.corp.microsoft.com> References: <3A95E0143832D94BA52A18A1406403E404B860@TK5EX14MBXC130.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C5C72DB7A@TK5EX14MBXC122.redmond.corp.microsoft.com> Why not just return "i%s" ? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Monday, April 26, 2010 1:54 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. Can we take this as a patch? Have you signed an agreement? ________________________________ From: Kevin Radcliffe Sent: Monday, April 26, 2010 12:26 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. My own ironruby.rb: http://gist.github.com/379763 Thanks - Kevin On Mon, Apr 26, 2010 at 1:23 PM, Kevin Radcliffe > wrote: Confirming, that it seems to work properly for me: C:\IronRuby1.0_V4>ir IronRuby 1.0.0.0 on .NET 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. >>> require 'rubygems' => true >>> RbConfig::CONFIG['rubylibdir'] => "C:/IronRuby1.0_V4/lib/ruby/1.8" # <-- Sounds like it should go here. I then created an ironruby.rb in: C:\IronRuby1.0_V4\Lib\ruby\1.8\rubygems\defaults my ironruby.rb just commented out the "unless" block. after that, "igem update --system" just worked., as did the install of the bundler gem. Was there a version of ironruby.rb attached somewhere earlier with all of the appropriate overrides? - I just guessed. Thanks Best Regards, Kevin Radcliffe On Mon, Apr 26, 2010 at 11:41 AM, Jim Deville > wrote: This is the comment we got from Eric (RubyGems maintainer). JD >Comment By: Eric Hodel (drbrain) Date: 2010-04-20 20:47 Message: rubygems/defaults/ironruby.rb would go in RbConfig::CONFIG['rubylibdir'] (not in RuybGems) so it should be picked up even by setup.rb From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, April 24, 2010 11:33 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. Where exactly does the #{RUBY_ENGINE}.rb file go? I am having a hard time finding the location. I changed the impl. of default_exec_format and was able to update RubyGems. However, I think adding the ruby engine file is a better way to go. Ryan Riley On Thu, Apr 22, 2010 at 11:39 PM, Tomas Matousek > wrote: This is a bug in RubyGems. It seems that we can get around it by providing lib/rubygems/ironruby.rb file: http://rubyforge.org/tracker/index.php?func=detail&aid=27995&group_id=126&atid=575 Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Thursday, April 22, 2010 10:07 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. While trying to install DataMapper from source, I ran into a few additional issues. I can create cases if they are legit, but I suspect I'm just missing something. When I tried to install dm-more, I received an error stating I didn't have bundler installed. When I tried installing bundler, I couldn't because it requires RubyGems 1.3.6. When I tried executing `ir -S gem update --system`, I received the following: C:\Users\ryan>ir -S gem update --system Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.3.6 Updating RubyGems to 1.3.6 Installing RubyGems 1.3.6 ERROR: While executing gem ... (Gem::Exception) [BUG] invalid exec_format "ir", no %s Is IronRuby telling me it has a known bug, or is this something else? Can I upgrade to RubyGems 1.3.6? Can I install Bundler? Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.radcliffe at gmail.com Mon Apr 26 18:18:46 2010 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Mon, 26 Apr 2010 16:18:46 -0600 Subject: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. In-Reply-To: <3A95E0143832D94BA52A18A1406403E404B860@TK5EX14MBXC130.redmond.corp.microsoft.com> References: <3A95E0143832D94BA52A18A1406403E404B860@TK5EX14MBXC130.redmond.corp.microsoft.com> Message-ID: You could, and yes I did sign an agreement, but Tomas' suggestion probably works better. I just threw it out there to show that it would work. Thanks! Best Regards, Kevin Radcliffe On Mon, Apr 26, 2010 at 2:54 PM, Jim Deville wrote: > Can we take this as a patch? Have you signed an agreement? > > > > ------------------------------ > From: Kevin Radcliffe > Sent: Monday, April 26, 2010 12:26 PM > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. > > My own ironruby.rb: http://gist.github.com/379763 > Thanks - Kevin > > On Mon, Apr 26, 2010 at 1:23 PM, Kevin Radcliffe < > kevin.radcliffe at gmail.com> wrote: > >> Confirming, that it seems to work properly for me: >> >> C:\IronRuby1.0_V4>ir >> IronRuby 1.0.0.0 on .NET 4.0.30319.1 Copyright (c) Microsoft Corporation. >> All rights reserved. >> >>> require 'rubygems' >> => true >> >>> RbConfig::CONFIG['rubylibdir'] >> => "C:/IronRuby1.0_V4/lib/ruby/1.8" # <-- Sounds like it should go here. >> >> I then created an ironruby.rb >> in: C:\IronRuby1.0_V4\Lib\ruby\1.8\rubygems\defaults >> my ironruby.rb just commented out the "unless" block. >> after that, "igem update --system" just worked., as did the install of the >> bundler gem. >> >> Was there a version of ironruby.rb attached somewhere earlier with all >> of the appropriate overrides? - I just guessed. >> Thanks >> Best Regards, >> Kevin Radcliffe >> >> On Mon, Apr 26, 2010 at 11:41 AM, Jim Deville wrote: >> >>> This is the comment we got from Eric (RubyGems maintainer). >>> >>> >>> >>> JD >>> >>> >>> >>> >Comment By: Eric Hodel (drbrain) >>> Date: 2010-04-20 20:47 >>> >>> Message: >>> rubygems/defaults/ironruby.rb would go in RbConfig::CONFIG['rubylibdir'] >>> (not in RuybGems) so it should be picked up even by setup.rb >>> >>> >>> >>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >>> *Sent:* Saturday, April 24, 2010 11:33 AM >>> >>> *To:* ironruby-core at rubyforge.org >>> *Subject:* Re: [Ironruby-core] RubyGems 1.3.6, Bundler, etc. >>> >>> >>> >>> Where exactly does the #{RUBY_ENGINE}.rb file go? I am having a hard time >>> finding the location. I changed the impl. of default_exec_format and was >>> able to update RubyGems. However, I think adding the ruby engine file is a >>> better way to go. >>> >>> >>> Ryan Riley >>> >>> >>> On Thu, Apr 22, 2010 at 11:39 PM, Tomas Matousek < >>> Tomas.Matousek at microsoft.com> wrote: >>> >>> This is a bug in RubyGems. It seems that we can get around it by providing lib/rubygems/ironruby.rb file: >>> >>> >>> >>> >>> http://rubyforge.org/tracker/index.php?func=detail&aid=27995&group_id=126&atid=575 >>> >>> >>> >>> Tomas >>> >>> >>> >>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley >>> *Sent:* Thursday, April 22, 2010 10:07 PM >>> >>> >>> *To:* ironruby-core at rubyforge.org >>> >>> *Subject:* [Ironruby-core] RubyGems 1.3.6, Bundler, etc. >>> >>> >>> >>> While trying to install DataMapper from source, I ran into a few >>> additional issues. I can create cases if they are legit, but I suspect I'm >>> just missing something. When I tried to install dm-more, I received an error >>> stating I didn't have bundler installed. When I tried installing bundler, I >>> couldn't because it requires RubyGems 1.3.6. When I tried executing `ir -S >>> gem update --system`, I received the following: >>> >>> >>> >>> C:\Users\ryan>ir -S gem update --system >>> >>> Updating RubyGems >>> >>> Updating rubygems-update >>> >>> Successfully installed rubygems-update-1.3.6 >>> >>> Updating RubyGems to 1.3.6 >>> >>> Installing RubyGems 1.3.6 >>> >>> ERROR: While executing gem ... (Gem::Exception) >>> >>> [BUG] invalid exec_format "ir", no %s >>> >>> >>> >>> Is IronRuby telling me it has a known bug, or is this something else? Can >>> I upgrade to RubyGems 1.3.6? Can I install Bundler? >>> >>> >>> >>> Thanks, >>> >>> >>> Ryan Riley >>> >>> Email: ryan.riley at panesofglass.org >>> LinkedIn: http://www.linkedin.com/in/ryanriley >>> Blog: http://wizardsofsmart.net/ >>> Twitter: @panesofglass >>> Website: http://panesofglass.org/ >>> >>> >>> _______________________________________________ >>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisortman at gmail.com Tue Apr 27 09:45:19 2010 From: chrisortman at gmail.com (Chris Ortman) Date: Tue, 27 Apr 2010 08:45:19 -0500 Subject: [Ironruby-core] app.config file in a rails app Message-ID: I am playing around with ir + rails and using it in front of a bunch of existing .NET code. The .NET code really really wants a couple of settings in When i run via script/server though the app.config file is ir.exe.config (AppDomain.Current.SetupInformation.ConfigurationFile)... is there a way to override what config file is loaded? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Apr 27 13:53:28 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 27 Apr 2010 17:53:28 +0000 Subject: [Ironruby-core] app.config file in a rails app In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C5C742A5B@TK5EX14MBXC129.redmond.corp.microsoft.com> A couple of options here. 1) Use/create a .NET executable with app.config file. One option is to copy ir.exe to the root directory of your app and add ir.exe.config with appSettings that you need. Don't forget to change Ruby library paths in that ir.exe.config file. You'll also need to copy the rest of the assemblies from IronRuby bin directory to the same directory as ir.exe (or some subdirectory that you specify in element of ir.exe.config, see http://msdn.microsoft.com/en-us/library/823z9h8w(VS.80).aspx) or to the GAC (using gacutil.exe: http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx). 2) Create an AppDomain that is set up to use the right config file: http://msdn.microsoft.com/en-us/library/system.appdomainsetup.configurationfile(v=VS.100).aspx. Then launch the entire rails application (script/server) in that AppDomain. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Chris Ortman Sent: Tuesday, April 27, 2010 6:45 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] app.config file in a rails app I am playing around with ir + rails and using it in front of a bunch of existing .NET code. The .NET code really really wants a couple of settings in When i run via script/server though the app.config file is ir.exe.config (AppDomain.Current.SetupInformation.ConfigurationFile)... is there a way to override what config file is loaded? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Apr 27 14:33:57 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 27 Apr 2010 18:33:57 +0000 Subject: [Ironruby-core] app.config file in a rails app In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C5C742A5B@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C5C742A5B@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921735A007@TK5EX14MBXC138.redmond.corp.microsoft.com> You could do that, but is your eventual goal to actually deploy the app? If so I'd suggest using IronRuby.Rack (http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack) which lets you run Rails on ASP.NET webservers (IIS, for example). It requires that you have a web.config in your application, so you could put settings in there. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Tuesday, April 27, 2010 10:53 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] app.config file in a rails app A couple of options here. 1) Use/create a .NET executable with app.config file. One option is to copy ir.exe to the root directory of your app and add ir.exe.config with appSettings that you need. Don't forget to change Ruby library paths in that ir.exe.config file. You'll also need to copy the rest of the assemblies from IronRuby bin directory to the same directory as ir.exe (or some subdirectory that you specify in element of ir.exe.config, see http://msdn.microsoft.com/en-us/library/823z9h8w(VS.80).aspx) or to the GAC (using gacutil.exe: http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx). 2) Create an AppDomain that is set up to use the right config file: http://msdn.microsoft.com/en-us/library/system.appdomainsetup.configurationfile(v=VS.100).aspx. Then launch the entire rails application (script/server) in that AppDomain. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Chris Ortman Sent: Tuesday, April 27, 2010 6:45 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] app.config file in a rails app I am playing around with ir + rails and using it in front of a bunch of existing .NET code. The .NET code really really wants a couple of settings in When i run via script/server though the app.config file is ir.exe.config (AppDomain.Current.SetupInformation.ConfigurationFile)... is there a way to override what config file is loaded? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Apr 27 14:36:02 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 27 Apr 2010 18:36:02 +0000 Subject: [Ironruby-core] app.config file in a rails app References: <4B342496A3EFEB48839E10BB4BF5964C5C742A5B@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921735A049@TK5EX14MBXC138.redmond.corp.microsoft.com> Here's a better link: http://ironruby.net/Documentation/Real_Ruby_Applications/Rails#webserver-production ... it'll be where other info about deploying Rails will be, and now has a screencast showing how to build IronRuby.Rack. ~js From: Jimmy Schementi Sent: Tuesday, April 27, 2010 11:34 AM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] app.config file in a rails app You could do that, but is your eventual goal to actually deploy the app? If so I'd suggest using IronRuby.Rack (http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack) which lets you run Rails on ASP.NET webservers (IIS, for example). It requires that you have a web.config in your application, so you could put settings in there. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Tuesday, April 27, 2010 10:53 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] app.config file in a rails app A couple of options here. 1) Use/create a .NET executable with app.config file. One option is to copy ir.exe to the root directory of your app and add ir.exe.config with appSettings that you need. Don't forget to change Ruby library paths in that ir.exe.config file. You'll also need to copy the rest of the assemblies from IronRuby bin directory to the same directory as ir.exe (or some subdirectory that you specify in element of ir.exe.config, see http://msdn.microsoft.com/en-us/library/823z9h8w(VS.80).aspx) or to the GAC (using gacutil.exe: http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx). 2) Create an AppDomain that is set up to use the right config file: http://msdn.microsoft.com/en-us/library/system.appdomainsetup.configurationfile(v=VS.100).aspx. Then launch the entire rails application (script/server) in that AppDomain. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Chris Ortman Sent: Tuesday, April 27, 2010 6:45 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] app.config file in a rails app I am playing around with ir + rails and using it in front of a bunch of existing .NET code. The .NET code really really wants a couple of settings in When i run via script/server though the app.config file is ir.exe.config (AppDomain.Current.SetupInformation.ConfigurationFile)... is there a way to override what config file is loaded? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisortman at gmail.com Thu Apr 29 11:59:15 2010 From: chrisortman at gmail.com (Chris Ortman) Date: Thu, 29 Apr 2010 10:59:15 -0500 Subject: [Ironruby-core] app.config file in a rails app In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC921735A007@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C5C742A5B@TK5EX14MBXC129.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921735A007@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: I went with the rack based approach. Took me a few tries to get right, but works slick once it is set up. Thanks a bunch On Tue, Apr 27, 2010 at 1:33 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > You could do that, but is your eventual goal to actually deploy the app? If > so I?d suggest using IronRuby.Rack ( > http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack) > which lets you run Rails on ASP.NET webservers (IIS, for example). It > requires that you have a web.config in your application, so you could put > settings in there. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Tomas Matousek > *Sent:* Tuesday, April 27, 2010 10:53 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] app.config file in a rails app > > > > A couple of options here. > > 1) Use/create a .NET executable with app.config file. One option is > to copy ir.exe to the root directory of your app and add ir.exe.config with > appSettings that you need. Don?t forget to change Ruby library paths in that > ir.exe.config file. You?ll also need to copy the rest of the assemblies from > IronRuby bin directory to the same directory as ir.exe (or some subdirectory > that you specify in element of ir.exe.config, see > http://msdn.microsoft.com/en-us/library/823z9h8w(VS.80).aspx) or to the > GAC (using gacutil.exe: > http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx). > > 2) Create an AppDomain that is set up to use the right config file: > http://msdn.microsoft.com/en-us/library/system.appdomainsetup.configurationfile(v=VS.100).aspx. > Then launch the entire rails application (script/server) in that AppDomain. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Chris Ortman > *Sent:* Tuesday, April 27, 2010 6:45 AM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] app.config file in a rails app > > > > I am playing around with ir + rails and using it in front of a bunch of > existing .NET code. > > The .NET code really really wants a couple of settings in > > When i run via script/server though the app.config file is ir.exe.config > (AppDomain.Current.SetupInformation.ConfigurationFile)... is there a way to > override what config file is loaded? > > > > Thanks > > _______________________________________________ > 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 lists at ruby-forum.com Thu Apr 29 18:32:37 2010 From: lists at ruby-forum.com (Santiago Molina) Date: Fri, 30 Apr 2010 00:32:37 +0200 Subject: [Ironruby-core] Debugging ironruby code hosted by a c# app Message-ID: I'm experimenting a little with ironruby and I just want to know if there's any way to debug ironruby code that is hosted by a c# windows app. Any ideas? thanks, Santiago -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Thu Apr 29 19:51:48 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 29 Apr 2010 23:51:48 +0000 Subject: [Ironruby-core] Debugging ironruby code hosted by a c# app In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921736539B@TK5EX14MBXC138.redmond.corp.microsoft.com> You can attach the VS debugger to your process, and as long as you've told the IronRuby engine to generate debug-able code, you can place breakpoints in Ruby code. The stack trace and watch windows are very verbose, as they show you the IronRuby internals, but with some extra digging around you can find the values of your variables and such. You can initialize the IronRuby engine to generate debug-able code like this: // Program.cs: using IronRuby; using Microsoft.Scripting.Hosting; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { // There might be a more concise way of doing it with Ruby.CreateEngine((ls) => {}), but I'm not sure var setup = new ScriptRuntimeSetup() { DebugMode = true }; setup.LanguageSetups.Add(Ruby.CreateRubySetup()); var engine = Ruby.CreateRuntime(setup).GetRubyEngine(); // place a breakpoint in foo.rb, and it'll break there engine.ExecuteFile("foo.rb"); } } } # Foo.rb: puts 'hi' Note: don't create foo.rb in VS, as it'll a Unicode file, and IronRuby will give you a wonky exception like " undefined method `???puts' for main:Object" > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Santiago Molina > Sent: Thursday, April 29, 2010 3:33 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Debugging ironruby code hosted by a c# app > > I'm experimenting a little with ironruby and I just want to know if there's any > way to debug ironruby code that is hosted by a c# windows app. Any ideas? > > thanks, > Santiago > -- > 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 Thu Apr 29 19:56:48 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 29 Apr 2010 23:56:48 +0000 Subject: [Ironruby-core] Debugging ironruby code hosted by a c# app In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C5C74EBAC@TK5EX14MBXC129.redmond.corp.microsoft.com> If your app is executing simple Ruby files it is possible to debug them in VS. You need to turn on debugging when you create a ScriptRuntime: var setup = new ScriptRuntimeSetup(); setup.DebugMode = true; setup.AddRubySetup(); var runtime = Ruby.ScriptRuntime(setup); runtime.ExecuteFile("foo.rb"); Run your app with attached VS debugger and place breakpoint to foo.rb. Note that DebugMode slows down execution significantly and is therefore not quite usable for larger app frameworks (gems, rails, etc.). We don't have any better debugging experience right now. We are working towards one but it will take some time. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Santiago Molina Sent: Thursday, April 29, 2010 3:33 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Debugging ironruby code hosted by a c# app I'm experimenting a little with ironruby and I just want to know if there's any way to debug ironruby code that is hosted by a c# windows app. Any ideas? thanks, Santiago -- 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 chrisortman at gmail.com Fri Apr 30 12:17:20 2010 From: chrisortman at gmail.com (Chris Ortman) Date: Fri, 30 Apr 2010 11:17:20 -0500 Subject: [Ironruby-core] can't run tests on new rails project Message-ID: Are you guys running unit tests in rails? I can't figure out what I am doing wrong... ir -S rails newapp ir -S script\generate controller customer ir -S script\generate model user email:string ir -S rake db:migrate ir -S rake test Fails with below output. I had some debug print statements that I left in there in case it was useful (Frameworks, Caller) (in c:/Code/newapp) Frameworks: [:active_record, :action_controller, :action_view, :action_mailer, :active_resource] Caller: C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `__send__'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'c:/Code/newapp/config/environment.rb:9C:/ironruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in `require'C:/ironruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in `require'C:/ironruby/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'C:/ironruby/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'C:/ironruby/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'C:/ironruby/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'C:/ironruby/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'C:/ironruby/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'C:/ironruby/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/tasks/testing.rake:45IronRuby.Libraries:0:in `b__3'IronRuby.Libraries:0:in `each'IronRuby.Libraries:0:in `Each'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/tasks/testing.rake:43:in `collect'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/tasks/testing.rake:43C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'C:/ironruby/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake:31C:/ironruby/bin/rake:19:in `load'C:/ironruby/bin/rake:19 Require active_record HI Require action_controller Require action_view Require action_mailer Require active_resource C:/ironruby/bin/ir.exe -I"lib;test" "C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/user_test.rb" "test/unit/helpers/customer_helper_test.rb" Frameworks: [:active_record, :action_controller, :action_view, :action_mailer, :active_resource] Caller: C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `__send__'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'c:/Code/newapp/config/environment.rb:9test/test_helper.rb:2:in `require'test/test_helper.rb:2./test/unit/user_test.rb:1:in `require'./test/unit/user_test.rb:1C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5 Require active_record C:/ironruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require': can't convert nil into String (TypeError) from C:/ironruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:272:in `require_frameworks' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:270:in `each' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:270:in `require_frameworks' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `__send__' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run' from c:/Code/newapp/config/environment.rb:9 from test/test_helper.rb:2:in `require' from test/test_helper.rb:2 from ./test/unit/user_test.rb:1:in `require' from ./test/unit/user_test.rb:1 from C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load' from C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5 from C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each' from C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5 C:/ironruby/bin/ir.exe -I"lib;test" "C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/customer_controller_test.rb" Frameworks: [:active_record, :action_controller, :action_view, :action_mailer, :active_resource] Caller: C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `__send__'C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'c:/Code/newapp/config/environment.rb:9test/test_helper.rb:2:in `require'test/test_helper.rb:2./test/functional/customer_controller_test.rb:1:in `require'./test/functional/customer_controller_test.rb:1C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each'C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5 Require active_record C:/ironruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require': can't convert nil into String (TypeError) from C:/ironruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:272:in `require_frameworks' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:270:in `each' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:270:in `require_frameworks' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `__send__' from C:/ironruby/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run' from c:/Code/newapp/config/environment.rb:9 from test/test_helper.rb:2:in `require' from test/test_helper.rb:2 from ./test/functional/customer_controller_test.rb:1:in `require' from ./test/functional/customer_controller_test.rb:1 from C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load' from C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5 from C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each' from C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5 C:/ironruby/bin/ir.exe -I"lib;test" "C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" Errors running test:units and test:functionals! -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisortman at gmail.com Fri Apr 30 18:14:02 2010 From: chrisortman at gmail.com (Chris Ortman) Date: Fri, 30 Apr 2010 17:14:02 -0500 Subject: [Ironruby-core] Running Webrick with RAILS_ENV=production In-Reply-To: <67DA98B0F14DAD4AAC6AB14DEB37A95D5B02D93F39@rrhoumx2.randgrp.com> References: <67DA98B0F14DAD4AAC6AB14DEB37A95D5B02D93F39@rrhoumx2.randgrp.com> Message-ID: It is the config.gem 'activerecord-adonet-sqlserver' line that causes the error.... I have gotten past it by adding require 'activerecord_adonet_sqlserver' after require File.join(File.dirname(__FILE__),'boot') in config/environment.rb However after doing that I'm still not able to get rake test to work.... it fails because it can't load driver 'ADO' On Thu, Apr 22, 2010 at 10:37 PM, Shane Holder wrote: > Apologies if this makes it to the list twice, I seem to be having issues > with mailman. > > > > I know this probably isn't an ideal situation, but I'm building a small app > for myself (1st rails app) and I want to be able to switch between > dev/test/production. So, I set RAILS_ENV=production and tried to run the > server as below but I get the following error. It's probably something on > my end but I'm not sure where to look, can someone shed some light? > > > > Thanks, > > Shane Holder > > > > SHolder at SHOLDER7 TaskStatus [master +0 ~5 -1 !]> ir -S .\script\server > > => Booting WEBrick > > => Rails 2.3.5 application starting on http://0.0.0.0:3000 > > ir.exe : C:/Program Files (x86)/IronRuby > 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require': > can't convert nil into String (TypeError) > > At line:1 char:3 > > + ir <<<< -S .\script\server > > + CategoryInfo : NotSpecified: (C:/Program File...ing > (TypeError):String) [], RemoteException > > + FullyQualifiedErrorId : NativeCommandError > > > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require > > ' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in > `require' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:490:in > `new_constants_in' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:154:in > `require' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:269:in > `require_frameworks' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:269:in > `each' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:269:in > `require_frameworks' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:135:in > `process' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:114:in > `__send__' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:114:in `run' > > from C:/d/TaskStatus/config/environment.rb:9 > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in > `require' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:490:in > `new_constants_in' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:154:in > `require' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:84 > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in `require' > > from C:/Program Files (x86)/IronRuby > 1.0v4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in `require' > > from ./script/server:3 > > > > Shane Holder > > The Rand Group, LLC > > sholder at randgrp.com > > 972.978.6559 Cell > > 713.341.9387 Direct > > 713.850.0747 Main Office > > www.randgrp.com > > [image: trg_email_logo (2)] > > > > ------------------------------ > This email message and any attachments are intended for use by the > addressee(s) named herein and may contain legally privileged and/or > confidential information. If you are not the intended recipient of this > email you are hereby notified that any dissemination, distribution or > copying of this email and any attachments thereto is strictly prohibited. If > you have received this email in error please notify the sender and > permanently delete the original and any copies of this email and any prints > thereof. > > _______________________________________________ > 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/jpeg Size: 3611 bytes Desc: not available URL: