From ben2004uk at googlemail.com Wed Jun 2 18:01:48 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Wed, 2 Jun 2010 23:01:48 +0100 Subject: [Ironruby-core] Bug in mscorlib, IronRuby, NewtonSoft.json..... or my code? Message-ID: Hi, I'm trying to use a third party library which has a dependency on NewtonSoft.json. I create a class within IronRuby and attempt to serialise the object to Json however it throws a null reference exception from within mscorlib. Any ideas?? Example is below: Thanks Ben class Company attr_accessor :Name, :Id end c = Company.new c.Name = 'test' require 'Newtonsoft.Json' include Newtonsoft::Json JsonConvert.serialize_object c mscorlib:0:in `Equals': Object reference not set to an instance of an object. (System::NullReferenceException) from mscorlib:0:in `IndexOf' from mscorlib:0:in `IndexOf' from mscorlib:0:in `IndexOf' from Newtonsoft.Json:0:in `CheckForCircularReference' from Newtonsoft.Json:0:in `SerializeList' from Newtonsoft.Json:0:in `SerializeValue' from Newtonsoft.Json:0:in `SerializeISerializable' from Newtonsoft.Json:0:in `SerializeValue' from Newtonsoft.Json:0:in `SerializeISerializable' from Newtonsoft.Json:0:in `SerializeValue' from Newtonsoft.Json:0:in `WriteMemberInfoProperty' from Newtonsoft.Json:0:in `SerializeObject' from Newtonsoft.Json:0:in `SerializeValue' from Newtonsoft.Json:0:in `WriteMemberInfoProperty' from Newtonsoft.Json:0:in `SerializeObject' from Newtonsoft.Json:0:in `SerializeValue' from Newtonsoft.Json:0:in `SerializeISerializable' from Newtonsoft.Json:0:in `SerializeValue' from Newtonsoft.Json:0:in `Serialize' from Newtonsoft.Json:0:in `SerializeInternal' from Newtonsoft.Json:0:in `SerializeObject' from Newtonsoft.Json:0:in `SerializeObject' from (ir):1 From ben2004uk at googlemail.com Wed Jun 2 20:26:49 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Thu, 3 Jun 2010 01:26:49 +0100 Subject: [Ironruby-core] RubyArray to List ? Message-ID: Hello, I have a block of code which returns me a RubyArray back into C# code. While I can get access to the strongly typed objects inside using reflection, I was wondering if there was any way to get the data back as a List ? Example of the code at the moment: RubyArray o = (RubyArray) filters[1].GetFilteredOutTweets(tweets); Console.WriteLine(o); Console.WriteLine((o[0] as Tweet).User); GetFilteredOutTweets returns an object as when it returned List it was causing it to fail. Make sense? Thanks Ben From Tomas.Matousek at microsoft.com Wed Jun 2 20:47:57 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 3 Jun 2010 00:47:57 +0000 Subject: [Ironruby-core] RubyArray to List ? In-Reply-To: References: Message-ID: RubyArray is IList, its items might be of arbitrary (different) types. You can certainly try to cast all of them to a single type: var list = new List(array.Count); foreach (Tweet item in array) { list.Add(item); } Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Wednesday, June 02, 2010 5:27 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] RubyArray to List ? Hello, I have a block of code which returns me a RubyArray back into C# code. While I can get access to the strongly typed objects inside using reflection, I was wondering if there was any way to get the data back as a List ? Example of the code at the moment: RubyArray o = (RubyArray) filters[1].GetFilteredOutTweets(tweets); Console.WriteLine(o); Console.WriteLine((o[0] as Tweet).User); GetFilteredOutTweets returns an object as when it returned List it was causing it to fail. Make sense? Thanks Ben _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at cloudslide.net Thu Jun 3 00:55:38 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Thu, 3 Jun 2010 06:55:38 +0200 Subject: [Ironruby-core] Bug in mscorlib, IronRuby, NewtonSoft.json..... or my code? In-Reply-To: References: Message-ID: make the class backed by a real .NET Type not a ruby type and the serializer will work again --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero On Thu, Jun 3, 2010 at 12:01 AM, Ben Hall wrote: > Hi, > > I'm trying to use a third party library which has a dependency on > NewtonSoft.json. I create a class within IronRuby and attempt to > serialise the object to Json however it throws a null reference > exception from within mscorlib. > > Any ideas?? Example is below: > > Thanks > > Ben > > class Company > attr_accessor :Name, :Id > end > > c = Company.new > c.Name = 'test' > > > require 'Newtonsoft.Json' > include Newtonsoft::Json > JsonConvert.serialize_object c > > > mscorlib:0:in `Equals': Object reference not set to an instance of an > object. (System::NullReferenceException) > from mscorlib:0:in `IndexOf' > from mscorlib:0:in `IndexOf' > from mscorlib:0:in `IndexOf' > from Newtonsoft.Json:0:in `CheckForCircularReference' > from Newtonsoft.Json:0:in `SerializeList' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `SerializeISerializable' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `SerializeISerializable' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `WriteMemberInfoProperty' > from Newtonsoft.Json:0:in `SerializeObject' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `WriteMemberInfoProperty' > from Newtonsoft.Json:0:in `SerializeObject' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `SerializeISerializable' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `Serialize' > from Newtonsoft.Json:0:in `SerializeInternal' > from Newtonsoft.Json:0:in `SerializeObject' > from Newtonsoft.Json:0:in `SerializeObject' > from (ir):1 > _______________________________________________ > 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 mark at markrendle.net Thu Jun 3 04:51:07 2010 From: mark at markrendle.net (Mark Rendle) Date: Thu, 3 Jun 2010 09:51:07 +0100 Subject: [Ironruby-core] Bug in mscorlib, IronRuby, NewtonSoft.json..... or my code? In-Reply-To: References: Message-ID: I'm halfway through a library which serializes dynamic types to JSON. I guess that should work in this case; I'll post when it's done. Cheers, Mark On Wed, Jun 2, 2010 at 11:01 PM, Ben Hall wrote: > Hi, > > I'm trying to use a third party library which has a dependency on > NewtonSoft.json. I create a class within IronRuby and attempt to > serialise the object to Json however it throws a null reference > exception from within mscorlib. > > Any ideas?? Example is below: > > Thanks > > Ben > > class Company > attr_accessor :Name, :Id > end > > c = Company.new > c.Name = 'test' > > > require 'Newtonsoft.Json' > include Newtonsoft::Json > JsonConvert.serialize_object c > > > mscorlib:0:in `Equals': Object reference not set to an instance of an > object. (System::NullReferenceException) > from mscorlib:0:in `IndexOf' > from mscorlib:0:in `IndexOf' > from mscorlib:0:in `IndexOf' > from Newtonsoft.Json:0:in `CheckForCircularReference' > from Newtonsoft.Json:0:in `SerializeList' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `SerializeISerializable' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `SerializeISerializable' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `WriteMemberInfoProperty' > from Newtonsoft.Json:0:in `SerializeObject' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `WriteMemberInfoProperty' > from Newtonsoft.Json:0:in `SerializeObject' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `SerializeISerializable' > from Newtonsoft.Json:0:in `SerializeValue' > from Newtonsoft.Json:0:in `Serialize' > from Newtonsoft.Json:0:in `SerializeInternal' > from Newtonsoft.Json:0:in `SerializeObject' > from Newtonsoft.Json:0:in `SerializeObject' > from (ir):1 > _______________________________________________ > 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 robert.brotherus at napa.fi Thu Jun 3 08:04:46 2010 From: robert.brotherus at napa.fi (Robert Brotherus) Date: Thu, 3 Jun 2010 15:04:46 +0300 Subject: [Ironruby-core] How to run a XAML file? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92039642@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <16591a1ad4bb2e5ac17793631c763015@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC92039642@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: <16A7DD08F0425648AB80B28A3453C40BC2788F@NW60R2.napa.fi> > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > Jimmy Schementi > Sent: Monday, November 16, 2009 5:32 AM > > # This loads "foo.xaml" into the "canvas" variable include > System include System::Windows include > System::Windows::Controls canvas = Canvas.new > Application.load_component canvas, Uri.new("foo.xaml", > UriKind.relative) I was looking for ways to load XAML to a custom class from a file at runtime in the way described above. I have load_component.rb: require 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' require 'PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' require 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' include System include System::Windows include System::Windows::Controls canvas = Canvas.new Application.load_component(canvas, Uri.new("foo.xaml", UriKind.relative) ) I have my foo.xaml file in the same location as the ruby script above. When I run the script with "ir load_component.rb" I get error: PresentationFramework:0:in `GetStreamCore': Cannot locate resource 'foo.xaml'. (IOError) from WindowsBase:0:in `GetStream' from WindowsBase:0:in `GetStream' from PresentationFramework:0:in `LoadComponent' from loadcomponent.rb:0 Where should I put the foo.xaml for the script above to find it? Only examples I found from Application.LoadComponent from MSDN were using relative URI:s referring to XAML-files embedded in some assembly. I want to load a XAML-file on a disk however. XamlReader.Load is not enough for me since I need to have custom classes created with the xaml:class="..." attribute. Robert Brotherus From bobby.johnson at gmail.com Thu Jun 3 15:59:11 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Thu, 3 Jun 2010 12:59:11 -0700 Subject: [Ironruby-core] RubyArray to List ? In-Reply-To: References: Message-ID: var list = array.Cast(); would be cleaner. On Wed, Jun 2, 2010 at 5:47 PM, Tomas Matousek wrote: > RubyArray is IList, its items might be of arbitrary (different) > types. > > You can certainly try to cast all of them to a single type: > var list = new List(array.Count); > foreach (Tweet item in array) { > list.Add(item); > } > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Wednesday, June 02, 2010 5:27 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] RubyArray to List ? > > Hello, > > I have a block of code which returns me a RubyArray back into C# code. > While I can get access to the strongly typed objects inside using > reflection, I was wondering if there was any way to get the data back as a > List ? > > Example of the code at the moment: > RubyArray o = (RubyArray) > filters[1].GetFilteredOutTweets(tweets); > Console.WriteLine(o); > Console.WriteLine((o[0] as Tweet).User); > > > GetFilteredOutTweets returns an object as when it returned List it > was causing it to fail. > > Make sense? > > Thanks > > Ben > _______________________________________________ > 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 martin.smith.jr at gmail.com Thu Jun 3 16:49:55 2010 From: martin.smith.jr at gmail.com (Martin Smith) Date: Thu, 3 Jun 2010 13:49:55 -0700 Subject: [Ironruby-core] What's next? In-Reply-To: <6ECEF121-377A-4408-9941-FA39C5CF2A24@stuartellis.eu> References: <3FAF57DE-2423-456D-A9B7-B598A1335670@microsoft.com> <6ECEF121-377A-4408-9941-FA39C5CF2A24@stuartellis.eu> Message-ID: Hey Stuart, Try out rubymine. We use that and it works pretty well even with IronRuby... Martin On Tue, May 25, 2010 at 12:18 PM, Stuart Ellis wrote: > >From the peanut gallery: the lack of VS integration has definitely held me back from trying to push IronRuby in any capacity at work - I've been happy using Ruby without an IDE, but I am fairly certain that my colleagues would politely and firmly decline any suggestion of switching to text editor and the CLI. You could take that as a complement to the work of the VS team :) > > On 25 May 2010, at 12:15, Mark Rendle wrote: > >> In terms of MRI compatibility, I'd suggest that 1.9.2 would be a good target. 1.9.1 has various issues and has been largely ignored in favour of 1.8.7, but I'm seeing a lot of people recommending 1.9.2 even in its current pre state. >> >> Beyond compatibility, I think VS integration would be sweet, and would help drive adoption among my vi-illiterate colleagues. >> >> If my sum workload ever drops below critical mass, I'll start to contribute: honest! >> >> Mark >> >> On Wed, May 12, 2010 at 4:24 AM, Jimmy Schementi wrote: >> Will, what you are describing is the preferred way of packaging Ruby code as an exe. Someone should write a sample that shows how to do this; I believe there already is one but I don't have the URL handy. >> >> David, the first part of your email sounded reasonable, but the 2nd part (about scope) came from left field. Please indicate why the recipe Tomas and Will explained make IronRuby any less than first-class (whatever that means =P). IronPython is also planning on doing this too, so we think it's the best "self-contained deployment" option, but I'd like to hear why it won't work for you. >> >> As far as the other discussed features go, let me draw a line in the sand for the next major release (let's call it vNext for argument's sake): >> >> 1.) It is a goal of IronRuby vNext to improve interop with .NETs type system, so we will most likely implement something like IronPython's "clrtype" feature, and provide a library which lets you emit real static types from Ruby code. You could even imagine taking the emitted IL and writing it to a DLL, which could be called directly from a static language, but that's lower priority. >> >> 2.) It is not a goal of IronRuby vNext to implement a static compiler for Ruby; as in we will not emit both similar types and method bodies as C#. IronRuby is a dynamic language, and any static compiler features should be part of a .NET backend for Duby (currently only a JVM backend exists). Pre-compilation is different; it involves emitting IL to a DLL that we would have emit at runtime, given every method were called. This would only help startup marginally, as we already have fast startup with the interpreter and NGEN-ing IronRuby's binaries, and most of the time spent is actually running code, not emitting it. Also, pre-compilation doesn't help us CLR type system interop, as it would not produce a CLI-compliant assembly; assemblies generated by pyc cannot be referenced by a C# app. >> >> As far as non-.NET related features, we'll be targeting Ruby 1.9 support, and running Rails 3 and other libs will focus us on what features to implement first (so 1.8.7 compat might happen despite us wanting to move directly to 1.9). FFI is another possible feature, but only if there are crucial libs that use it, or if someone contributes it. >> >> Any other features people are curious about? Now is definitely the time to voice your opinions :) >> >> ~Jimmy >> >> On May 11, 2010, at 7:15 PM, "Will Green" wrote: >> >>> Why not create an executable assembly that embeds all the Ruby files as resources in the assembly? Extract them at runtime (you could probably just keep them in a memory stream), fire up a Ruby runtime host & engine, feed it the Ruby file, and away you go. >>> >>> Or am I missing something that would make this infeasible? >>> >>> -- >>> Will Green >>> http://hotgazpacho.org/ >>> >>> >>> On Tue, May 11, 2010 at 9:20 PM, David Escobar wrote: >>> Ok, that's certainly an option to look into. I guess what people want is the ability to distribute applications and libraries in .exe and .dll form, the same way we do with C# or VB. But perhaps it's a question of scope - maybe IronRuby is not intended to be a 1st class .NET language in the same way that C# or VB are, or it's only intended to be a language for embedding in a static language or for unit testing purposes? >>> >>> The other reason is that it provides some (small) level of code obfuscation. I realize of course that the assemblies can be reverse engineered, but most users won't bother to do that - they'll just be interested in running the .exe. >>> >>> >>> >>> On Tue, May 11, 2010 at 6:04 PM, Tomas Matousek wrote: >>> Well, there is a pretty simple way how to package up .rb files into an .exe file w/o precompiling anything. One option is to build a self-extracting zip file or something like that. That would solve the deployment issue. Improving startup time via pre-compilation is much more work. >>> >>> >>> Tomas >>> >>> >>> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of David Escobar >>> Sent: Tuesday, May 11, 2010 5:48 PM >>> >>> >>> To: ironruby-core at rubyforge.org >>> Subject: Re: [Ironruby-core] What's next? >>> >>> >>> Pre-compiling code would allow us to distribute our programs in .exe and .dll form, rather than .rb files. IronPython allows this with its pyc.py script. And if that means faster startup times and using Ruby code statically from C#, then all the better. >>> >>> >>> On Tue, May 11, 2010 at 3:06 PM, Tomas Matousek wrote: >>> >>> What would you like to achieve by pre-compiling code? Faster startup time? Packaging your code in a dll instead of a bunch of .rb files? Using Ruby code statically from C#? >>> >>> Tomas >>> >>> >>> -----Original Message----- >>> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith >>> Sent: Tuesday, May 11, 2010 11:14 AM >>> To: ironruby-core at rubyforge.org >>> Subject: [Ironruby-core] What's next? >>> >>> Hey Guys, >>> >>> Now that IronRuby 1.0 has shipped (congrats!!), what's next on the docket? :) I'm not trying to pressure you guys! Just excited about the future. >>> The feature i'd love to see most would be pre-compilation... >>> >>> Thanks for such a great product, >>> Martin >>> _______________________________________________ >>> 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 > > --- > Stuart Ellis > stuart at stuartellis.eu > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From jdeville at microsoft.com Thu Jun 3 17:15:18 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 3 Jun 2010 21:15:18 +0000 Subject: [Ironruby-core] Code Review: gitsync Message-ID: <3A95E0143832D94BA52A18A1406403E41FCA0B@TK5EX14MBXC130.redmond.corp.microsoft.com> tfpt review "/shelveset:gitsync;REDMOND\jdeville" Comment : sync from git: commit 31501e7cac50ec624590d180b7da9fdec7d1a12f Author: Jim Deville Date: Wed Jun 2 14:57:55 2010 -0700 moved gem shim to proper location commit 4f252356198267c762f38f7d3cdef3944be7e564 Author: Ryan Riley Date: Fri Apr 16 23:03:38 2010 -0700 Updated rubyspecs for the Etc library. Author: Ryan Riley commit c7f8951d4cdb09a5a4e1190a00bebc4f2cfc4581 Author: Jim Deville Date: Wed Jun 2 13:40:50 2010 -0700 Added the real etc.rb (oops) and correct passwd and getpwent specs. Conflicts: Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/librar /etc/getpwent_spec.rb Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/librar /etc/passwd_spec.rb commit d9c5c2c13742bd4c5490da415ac5b000e2fa7be0 Author: Ryan Riley Date: Sat Apr 10 08:05:59 2010 -0700 Added in the dev.sh and ir.sh scripts for mono. For some reason these weren t getting included in prior commits. commit ceea1bb5db2f918d980e5b67a0a96cb185900883 Author: Ryan Riley Date: Sat Apr 10 07:47:48 2010 -0700 Added implementation of the Etc library, along with some updates to RubySpe . Also began work to fix file paths in testing facilities to allow tests to be un on Mono. Signed-off-by: unknown commit c38eef49ab93910c92d9aee94747e407ca5430f4 Author: Will Green Date: Tue May 25 03:23:34 2010 -0400 Gem::Platform objects, not strings, silly\! commit 1755e7e33600fd6800a8a18f8cd7e764b9b1472d Author: Will Green Date: Tue May 25 03:17:01 2010 -0400 Sigh. Need to explicitly add 'universal-unknown' as a platform, because rub gems.org has not updated to rubygems 1.3.7 yet. commit 7fa4051342b1c2574277ad52a8f929c9146840dd Author: Will Green Date: Tue May 25 00:56:53 2010 -0400 Remove unnecessary platforms defaults commit 0b3e45e7c6e18aec36dd01b4d378ac202823ccc6 Author: Will Green Date: Thu May 20 01:21:14 2010 -0400 report ruby, universal-dotnet, and universal-dotnet(FX-version) as supporte platforms commit 8c0e99e482ccd097fa11a588f0f7150a84ad9f4a Author: Will Green Date: Tue May 18 20:18:07 2010 -0400 Use gem defaults override to allow upgrading RubyGems commit eeacc5b2becdc6f565383ac2f2cf9a0dd305ebb1 Author: zacbrown Date: Sat Apr 10 20:47:51 2010 -0700 Add support for ?l (symlink) in Kernel.test and add mspec test. commit f06a16eeb835f1409937cffc5acf3c039a81f0e3 Author: zacbrown Date: Sat Apr 10 20:47:22 2010 -0700 Add support for ?k (sticky bit) in Kernel.test and add mspec test. Requires changes to the return value of RubyFileOps.RubyStatOps.IsSticky due to behavior by MRI. MRI returns nil instead of false when the sticky bit isn't supported on a platform. commit 37f8f4d9c78756da003ceca95f441d7286ae4aa4 Author: zacbrown Date: Sat Apr 10 20:46:19 2010 -0700 Add support for ?G (grpowned?) in Kernel.test and add mspec test. commit b78925082513a9d2f05a5f3b3010af09240e3e50 Author: zacbrown Date: Sat Apr 10 20:45:47 2010 -0700 Add support for ?g (setgid) in Kernel.test and add mspec test. commit 5915c6cbb3afd8ab4e05534756d179cdcda4f793 Author: zacbrown Date: Sat Apr 10 20:45:17 2010 -0700 Add support for ?c (character device) in Kernel.test and add appropriate ms ec tests. commit 501c33f9cc57d35e246235a2c8e9f6b3040960d7 Author: zacbrown Date: Sat Apr 10 20:44:54 2010 -0700 Add support for ?C (ctime) in Kernel.test and add mspec test. commit 0d38c595aa890c7f19e8d1df668cd9f85357a647 Author: zacbrown Date: Sat Apr 10 20:44:06 2010 -0700 Add support for ?b (block device) in Kernel.test and add partial mspec test commit a0f06ec26d3981c5599ddbac947fa908b96270d2 Author: zacbrown Date: Sat Apr 10 20:43:23 2010 -0700 Add support for ?A (atime) in Kernel.test and add appropriate mspec tests. commit a9c673facc5d666870df4643c42ebcaa30d5644f Author: hotgazpacho Date: Sat Mar 13 01:17:42 2010 -0500 Don't assume MRI Ruby 1.8 is in my path. Be explicit about the expectation -------------- next part -------------- A non-text attachment was scrubbed... Name: gitsync.diff Type: application/octet-stream Size: 16779 bytes Desc: gitsync.diff URL: From jdeville at microsoft.com Thu Jun 3 17:34:04 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 3 Jun 2010 21:34:04 +0000 Subject: [Ironruby-core] Code Review: gitsync In-Reply-To: <3A95E0143832D94BA52A18A1406403E41FCA0B@TK5EX14MBXC130.redmond.corp.microsoft.com> References: <3A95E0143832D94BA52A18A1406403E41FCA0B@TK5EX14MBXC130.redmond.corp.microsoft.com> Message-ID: <3A95E0143832D94BA52A18A1406403E41FCB61@TK5EX14MBXC130.redmond.corp.microsoft.com> F2f with Tomas JD -----Original Message----- From: Jim Deville Sent: Thursday, June 03, 2010 2:15 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: gitsync tfpt review "/shelveset:gitsync;REDMOND\jdeville" Comment : sync from git: commit 31501e7cac50ec624590d180b7da9fdec7d1a12f Author: Jim Deville Date: Wed Jun 2 14:57:55 2010 -0700 moved gem shim to proper location commit 4f252356198267c762f38f7d3cdef3944be7e564 Author: Ryan Riley Date: Fri Apr 16 23:03:38 2010 -0700 Updated rubyspecs for the Etc library. Author: Ryan Riley commit c7f8951d4cdb09a5a4e1190a00bebc4f2cfc4581 Author: Jim Deville Date: Wed Jun 2 13:40:50 2010 -0700 Added the real etc.rb (oops) and correct passwd and getpwent specs. Conflicts: Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/librar /etc/getpwent_spec.rb Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/librar /etc/passwd_spec.rb commit d9c5c2c13742bd4c5490da415ac5b000e2fa7be0 Author: Ryan Riley Date: Sat Apr 10 08:05:59 2010 -0700 Added in the dev.sh and ir.sh scripts for mono. For some reason these weren t getting included in prior commits. commit ceea1bb5db2f918d980e5b67a0a96cb185900883 Author: Ryan Riley Date: Sat Apr 10 07:47:48 2010 -0700 Added implementation of the Etc library, along with some updates to RubySpe . Also began work to fix file paths in testing facilities to allow tests to be un on Mono. Signed-off-by: unknown commit c38eef49ab93910c92d9aee94747e407ca5430f4 Author: Will Green Date: Tue May 25 03:23:34 2010 -0400 Gem::Platform objects, not strings, silly\! commit 1755e7e33600fd6800a8a18f8cd7e764b9b1472d Author: Will Green Date: Tue May 25 03:17:01 2010 -0400 Sigh. Need to explicitly add 'universal-unknown' as a platform, because rub gems.org has not updated to rubygems 1.3.7 yet. commit 7fa4051342b1c2574277ad52a8f929c9146840dd Author: Will Green Date: Tue May 25 00:56:53 2010 -0400 Remove unnecessary platforms defaults commit 0b3e45e7c6e18aec36dd01b4d378ac202823ccc6 Author: Will Green Date: Thu May 20 01:21:14 2010 -0400 report ruby, universal-dotnet, and universal-dotnet(FX-version) as supporte platforms commit 8c0e99e482ccd097fa11a588f0f7150a84ad9f4a Author: Will Green Date: Tue May 18 20:18:07 2010 -0400 Use gem defaults override to allow upgrading RubyGems commit eeacc5b2becdc6f565383ac2f2cf9a0dd305ebb1 Author: zacbrown Date: Sat Apr 10 20:47:51 2010 -0700 Add support for ?l (symlink) in Kernel.test and add mspec test. commit f06a16eeb835f1409937cffc5acf3c039a81f0e3 Author: zacbrown Date: Sat Apr 10 20:47:22 2010 -0700 Add support for ?k (sticky bit) in Kernel.test and add mspec test. Requires changes to the return value of RubyFileOps.RubyStatOps.IsSticky due to behavior by MRI. MRI returns nil instead of false when the sticky bit isn't supported on a platform. commit 37f8f4d9c78756da003ceca95f441d7286ae4aa4 Author: zacbrown Date: Sat Apr 10 20:46:19 2010 -0700 Add support for ?G (grpowned?) in Kernel.test and add mspec test. commit b78925082513a9d2f05a5f3b3010af09240e3e50 Author: zacbrown Date: Sat Apr 10 20:45:47 2010 -0700 Add support for ?g (setgid) in Kernel.test and add mspec test. commit 5915c6cbb3afd8ab4e05534756d179cdcda4f793 Author: zacbrown Date: Sat Apr 10 20:45:17 2010 -0700 Add support for ?c (character device) in Kernel.test and add appropriate ms ec tests. commit 501c33f9cc57d35e246235a2c8e9f6b3040960d7 Author: zacbrown Date: Sat Apr 10 20:44:54 2010 -0700 Add support for ?C (ctime) in Kernel.test and add mspec test. commit 0d38c595aa890c7f19e8d1df668cd9f85357a647 Author: zacbrown Date: Sat Apr 10 20:44:06 2010 -0700 Add support for ?b (block device) in Kernel.test and add partial mspec test commit a0f06ec26d3981c5599ddbac947fa908b96270d2 Author: zacbrown Date: Sat Apr 10 20:43:23 2010 -0700 Add support for ?A (atime) in Kernel.test and add appropriate mspec tests. commit a9c673facc5d666870df4643c42ebcaa30d5644f Author: hotgazpacho Date: Sat Mar 13 01:17:42 2010 -0500 Don't assume MRI Ruby 1.8 is in my path. Be explicit about the expectation From stuart at stuartellis.eu Fri Jun 4 02:51:38 2010 From: stuart at stuartellis.eu (Stuart Ellis) Date: Fri, 4 Jun 2010 07:51:38 +0100 Subject: [Ironruby-core] What's next? In-Reply-To: References: <3FAF57DE-2423-456D-A9B7-B598A1335670@microsoft.com> <6ECEF121-377A-4408-9941-FA39C5CF2A24@stuartellis.eu> Message-ID: <18839804-3D7A-4B42-84F4-467D59BA5CBF@stuartellis.eu> Interesting - I tried SharpDevelop and Netbeans, and wasn't happy with them for different reasons, but not RubyMine. Thanks On 3 Jun 2010, at 21:49, Martin Smith wrote: > Hey Stuart, > > Try out rubymine. We use that and it works pretty well even with IronRuby... > > Martin > > On Tue, May 25, 2010 at 12:18 PM, Stuart Ellis wrote: >>> From the peanut gallery: the lack of VS integration has definitely held me back from trying to push IronRuby in any capacity at work - I've been happy using Ruby without an IDE, but I am fairly certain that my colleagues would politely and firmly decline any suggestion of switching to text editor and the CLI. You could take that as a complement to the work of the VS team :) >> >> On 25 May 2010, at 12:15, Mark Rendle wrote: >> >>> In terms of MRI compatibility, I'd suggest that 1.9.2 would be a good target. 1.9.1 has various issues and has been largely ignored in favour of 1.8.7, but I'm seeing a lot of people recommending 1.9.2 even in its current pre state. >>> >>> Beyond compatibility, I think VS integration would be sweet, and would help drive adoption among my vi-illiterate colleagues. >>> >>> If my sum workload ever drops below critical mass, I'll start to contribute: honest! >>> >>> Mark >>> >>> On Wed, May 12, 2010 at 4:24 AM, Jimmy Schementi wrote: >>> Will, what you are describing is the preferred way of packaging Ruby code as an exe. Someone should write a sample that shows how to do this; I believe there already is one but I don't have the URL handy. >>> >>> David, the first part of your email sounded reasonable, but the 2nd part (about scope) came from left field. Please indicate why the recipe Tomas and Will explained make IronRuby any less than first-class (whatever that means =P). IronPython is also planning on doing this too, so we think it's the best "self-contained deployment" option, but I'd like to hear why it won't work for you. >>> >>> As far as the other discussed features go, let me draw a line in the sand for the next major release (let's call it vNext for argument's sake): >>> >>> 1.) It is a goal of IronRuby vNext to improve interop with .NETs type system, so we will most likely implement something like IronPython's "clrtype" feature, and provide a library which lets you emit real static types from Ruby code. You could even imagine taking the emitted IL and writing it to a DLL, which could be called directly from a static language, but that's lower priority. >>> >>> 2.) It is not a goal of IronRuby vNext to implement a static compiler for Ruby; as in we will not emit both similar types and method bodies as C#. IronRuby is a dynamic language, and any static compiler features should be part of a .NET backend for Duby (currently only a JVM backend exists). Pre-compilation is different; it involves emitting IL to a DLL that we would have emit at runtime, given every method were called. This would only help startup marginally, as we already have fast startup with the interpreter and NGEN-ing IronRuby's binaries, and most of the time spent is actually running code, not emitting it. Also, pre-compilation doesn't help us CLR type system interop, as it would not produce a CLI-compliant assembly; assemblies generated by pyc cannot be referenced by a C# app. >>> >>> As far as non-.NET related features, we'll be targeting Ruby 1.9 support, and running Rails 3 and other libs will focus us on what features to implement first (so 1.8.7 compat might happen despite us wanting to move directly to 1.9). FFI is another possible feature, but only if there are crucial libs that use it, or if someone contributes it. >>> >>> Any other features people are curious about? Now is definitely the time to voice your opinions :) >>> >>> ~Jimmy >>> >>> On May 11, 2010, at 7:15 PM, "Will Green" wrote: >>> >>>> Why not create an executable assembly that embeds all the Ruby files as resources in the assembly? Extract them at runtime (you could probably just keep them in a memory stream), fire up a Ruby runtime host & engine, feed it the Ruby file, and away you go. >>>> >>>> Or am I missing something that would make this infeasible? >>>> >>>> -- >>>> Will Green >>>> http://hotgazpacho.org/ >>>> >>>> >>>> On Tue, May 11, 2010 at 9:20 PM, David Escobar wrote: >>>> Ok, that's certainly an option to look into. I guess what people want is the ability to distribute applications and libraries in .exe and .dll form, the same way we do with C# or VB. But perhaps it's a question of scope - maybe IronRuby is not intended to be a 1st class .NET language in the same way that C# or VB are, or it's only intended to be a language for embedding in a static language or for unit testing purposes? >>>> >>>> The other reason is that it provides some (small) level of code obfuscation. I realize of course that the assemblies can be reverse engineered, but most users won't bother to do that - they'll just be interested in running the .exe. >>>> >>>> >>>> >>>> On Tue, May 11, 2010 at 6:04 PM, Tomas Matousek wrote: >>>> Well, there is a pretty simple way how to package up .rb files into an .exe file w/o precompiling anything. One option is to build a self-extracting zip file or something like that. That would solve the deployment issue. Improving startup time via pre-compilation is much more work. >>>> >>>> >>>> Tomas >>>> >>>> >>>> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of David Escobar >>>> Sent: Tuesday, May 11, 2010 5:48 PM >>>> >>>> >>>> To: ironruby-core at rubyforge.org >>>> Subject: Re: [Ironruby-core] What's next? >>>> >>>> >>>> Pre-compiling code would allow us to distribute our programs in .exe and .dll form, rather than .rb files. IronPython allows this with its pyc.py script. And if that means faster startup times and using Ruby code statically from C#, then all the better. >>>> >>>> >>>> On Tue, May 11, 2010 at 3:06 PM, Tomas Matousek wrote: >>>> >>>> What would you like to achieve by pre-compiling code? Faster startup time? Packaging your code in a dll instead of a bunch of .rb files? Using Ruby code statically from C#? >>>> >>>> Tomas >>>> >>>> >>>> -----Original Message----- >>>> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith >>>> Sent: Tuesday, May 11, 2010 11:14 AM >>>> To: ironruby-core at rubyforge.org >>>> Subject: [Ironruby-core] What's next? >>>> >>>> Hey Guys, >>>> >>>> Now that IronRuby 1.0 has shipped (congrats!!), what's next on the docket? :) I'm not trying to pressure you guys! Just excited about the future. >>>> The feature i'd love to see most would be pre-compilation... >>>> >>>> Thanks for such a great product, >>>> Martin >>>> _______________________________________________ >>>> 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 >> >> --- >> Stuart Ellis >> stuart at stuartellis.eu >> >> >> >> >> _______________________________________________ >> 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 --- Stuart Ellis stuart at stuartellis.eu From shay.friedman at gmail.com Fri Jun 4 03:08:13 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Fri, 4 Jun 2010 09:08:13 +0200 Subject: [Ironruby-core] What's next? In-Reply-To: <18839804-3D7A-4B42-84F4-467D59BA5CBF@stuartellis.eu> References: <3FAF57DE-2423-456D-A9B7-B598A1335670@microsoft.com> <6ECEF121-377A-4408-9941-FA39C5CF2A24@stuartellis.eu> <18839804-3D7A-4B42-84F4-467D59BA5CBF@stuartellis.eu> Message-ID: I'm using RubyMine for rails and projects with more than 2-3 files. Otherwise I'm using SciTE. By the way, RubyMine is not free. 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 Fri, Jun 4, 2010 at 8:51 AM, Stuart Ellis wrote: > Interesting - I tried SharpDevelop and Netbeans, and wasn't happy with them > for different reasons, but not RubyMine. > > Thanks > > On 3 Jun 2010, at 21:49, Martin Smith wrote: > > > Hey Stuart, > > > > Try out rubymine. We use that and it works pretty well even with > IronRuby... > > > > Martin > > > > On Tue, May 25, 2010 at 12:18 PM, Stuart Ellis > wrote: > >>> From the peanut gallery: the lack of VS integration has definitely held > me back from trying to push IronRuby in any capacity at work - I've been > happy using Ruby without an IDE, but I am fairly certain that my colleagues > would politely and firmly decline any suggestion of switching to text editor > and the CLI. You could take that as a complement to the work of the VS team > :) > >> > >> On 25 May 2010, at 12:15, Mark Rendle wrote: > >> > >>> In terms of MRI compatibility, I'd suggest that 1.9.2 would be a good > target. 1.9.1 has various issues and has been largely ignored in favour of > 1.8.7, but I'm seeing a lot of people recommending 1.9.2 even in its current > pre state. > >>> > >>> Beyond compatibility, I think VS integration would be sweet, and would > help drive adoption among my vi-illiterate colleagues. > >>> > >>> If my sum workload ever drops below critical mass, I'll start to > contribute: honest! > >>> > >>> Mark > >>> > >>> On Wed, May 12, 2010 at 4:24 AM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >>> Will, what you are describing is the preferred way of packaging Ruby > code as an exe. Someone should write a sample that shows how to do this; I > believe there already is one but I don't have the URL handy. > >>> > >>> David, the first part of your email sounded reasonable, but the 2nd > part (about scope) came from left field. Please indicate why the recipe > Tomas and Will explained make IronRuby any less than first-class (whatever > that means =P). IronPython is also planning on doing this too, so we think > it's the best "self-contained deployment" option, but I'd like to hear why > it won't work for you. > >>> > >>> As far as the other discussed features go, let me draw a line in the > sand for the next major release (let's call it vNext for argument's sake): > >>> > >>> 1.) It is a goal of IronRuby vNext to improve interop with .NETs type > system, so we will most likely implement something like IronPython's > "clrtype" feature, and provide a library which lets you emit real static > types from Ruby code. You could even imagine taking the emitted IL and > writing it to a DLL, which could be called directly from a static language, > but that's lower priority. > >>> > >>> 2.) It is not a goal of IronRuby vNext to implement a static compiler > for Ruby; as in we will not emit both similar types and method bodies as C#. > IronRuby is a dynamic language, and any static compiler features should be > part of a .NET backend for Duby (currently only a JVM backend exists). > Pre-compilation is different; it involves emitting IL to a DLL that we would > have emit at runtime, given every method were called. This would only help > startup marginally, as we already have fast startup with the interpreter and > NGEN-ing IronRuby's binaries, and most of the time spent is actually running > code, not emitting it. Also, pre-compilation doesn't help us CLR type system > interop, as it would not produce a CLI-compliant assembly; assemblies > generated by pyc cannot be referenced by a C# app. > >>> > >>> As far as non-.NET related features, we'll be targeting Ruby 1.9 > support, and running Rails 3 and other libs will focus us on what features > to implement first (so 1.8.7 compat might happen despite us wanting to move > directly to 1.9). FFI is another possible feature, but only if there are > crucial libs that use it, or if someone contributes it. > >>> > >>> Any other features people are curious about? Now is definitely the time > to voice your opinions :) > >>> > >>> ~Jimmy > >>> > >>> On May 11, 2010, at 7:15 PM, "Will Green" > wrote: > >>> > >>>> Why not create an executable assembly that embeds all the Ruby files > as resources in the assembly? Extract them at runtime (you could probably > just keep them in a memory stream), fire up a Ruby runtime host & engine, > feed it the Ruby file, and away you go. > >>>> > >>>> Or am I missing something that would make this infeasible? > >>>> > >>>> -- > >>>> Will Green > >>>> http://hotgazpacho.org/ > >>>> > >>>> > >>>> On Tue, May 11, 2010 at 9:20 PM, David Escobar > wrote: > >>>> Ok, that's certainly an option to look into. I guess what people want > is the ability to distribute applications and libraries in .exe and .dll > form, the same way we do with C# or VB. But perhaps it's a question of scope > - maybe IronRuby is not intended to be a 1st class .NET language in the same > way that C# or VB are, or it's only intended to be a language for embedding > in a static language or for unit testing purposes? > >>>> > >>>> The other reason is that it provides some (small) level of code > obfuscation. I realize of course that the assemblies can be reverse > engineered, but most users won't bother to do that - they'll just be > interested in running the .exe. > >>>> > >>>> > >>>> > >>>> On Tue, May 11, 2010 at 6:04 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > >>>> Well, there is a pretty simple way how to package up .rb files into an > .exe file w/o precompiling anything. One option is to build a > self-extracting zip file or something like that. That would solve the > deployment issue. Improving startup time via pre-compilation is much more > work. > >>>> > >>>> > >>>> Tomas > >>>> > >>>> > >>>> From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of David Escobar > >>>> Sent: Tuesday, May 11, 2010 5:48 PM > >>>> > >>>> > >>>> To: ironruby-core at rubyforge.org > >>>> Subject: Re: [Ironruby-core] What's next? > >>>> > >>>> > >>>> Pre-compiling code would allow us to distribute our programs in .exe > and .dll form, rather than .rb files. IronPython allows this with its pyc.py > script. And if that means faster startup times and using Ruby code > statically from C#, then all the better. > >>>> > >>>> > >>>> On Tue, May 11, 2010 at 3:06 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > >>>> > >>>> What would you like to achieve by pre-compiling code? Faster startup > time? Packaging your code in a dll instead of a bunch of .rb files? Using > Ruby code statically from C#? > >>>> > >>>> Tomas > >>>> > >>>> > >>>> -----Original Message----- > >>>> From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith > >>>> Sent: Tuesday, May 11, 2010 11:14 AM > >>>> To: ironruby-core at rubyforge.org > >>>> Subject: [Ironruby-core] What's next? > >>>> > >>>> Hey Guys, > >>>> > >>>> Now that IronRuby 1.0 has shipped (congrats!!), what's next on the > docket? :) I'm not trying to pressure you guys! Just excited about the > future. > >>>> The feature i'd love to see most would be pre-compilation... > >>>> > >>>> Thanks for such a great product, > >>>> Martin > >>>> _______________________________________________ > >>>> 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 > >> > >> --- > >> Stuart Ellis > >> stuart at stuartellis.eu > >> > >> > >> > >> > >> _______________________________________________ > >> 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 > > --- > Stuart Ellis > stuart at stuartellis.eu > > > > > _______________________________________________ > 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 Fri Jun 4 03:33:34 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 4 Jun 2010 07:33:34 +0000 Subject: [Ironruby-core] License change? Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92173C4181@TK5EX14MBXC138.redmond.corp.microsoft.com> As you probably know, IronRuby is currently licensed under the Microsoft Public License (http://opensource.org/licenses/ms-pl.html). Occasionally we hear feedback, questions, and a general lack of familiarity about the license that IronRuby uses. In several instances, users ask why IronRuby doesn't use a more popular license. We are therefore considering switching our license to a well-known open-source license; specifically the Apache License, Version 2.0 (http://opensource.org/licenses/apache2.0.php). However, the pieces of IronRuby which are licensed under CPL and the Ruby license will not change (pieces from MRI which IronRuby redistributes, and YAML). We'd like to hear your feedback before we make any decisions. Do you think adopting a more popular license, such as the Apache License, would be a good change for IronRuby? ~Jimmy From mark at markrendle.net Fri Jun 4 07:13:21 2010 From: mark at markrendle.net (Mark Rendle) Date: Fri, 4 Jun 2010 12:13:21 +0100 Subject: [Ironruby-core] License change? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92173C4181@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC92173C4181@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Any specific reasons for choosing Apache, as opposed to BSD (or even MIT)? On Fri, Jun 4, 2010 at 8:33 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > As you probably know, IronRuby is currently licensed under the Microsoft > Public License (http://opensource.org/licenses/ms-pl.html). Occasionally > we hear feedback, questions, and a general lack of familiarity about the > license that IronRuby uses. In several instances, users ask why IronRuby > doesn't use a more popular license. We are therefore considering switching > our license to a well-known open-source license; specifically the Apache > License, Version 2.0 (http://opensource.org/licenses/apache2.0.php). > However, the pieces of IronRuby which are licensed under CPL and the Ruby > license will not change (pieces from MRI which IronRuby redistributes, and > YAML). > > We'd like to hear your feedback before we make any decisions. Do you think > adopting a more popular license, such as the Apache License, would be a good > change for IronRuby? > > ~Jimmy > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdlewis at xactware.com Fri Jun 4 09:51:29 2010 From: jdlewis at xactware.com (Jeff Lewis) Date: Fri, 4 Jun 2010 07:51:29 -0600 Subject: [Ironruby-core] License change? In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC92173C4181@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Apache would be wonderful! BSD or MIT would be even better. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mark Rendle Sent: Friday, June 04, 2010 5:13 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] License change? Any specific reasons for choosing Apache, as opposed to BSD (or even MIT)? On Fri, Jun 4, 2010 at 8:33 AM, Jimmy Schementi > wrote: As you probably know, IronRuby is currently licensed under the Microsoft Public License (http://opensource.org/licenses/ms-pl.html). Occasionally we hear feedback, questions, and a general lack of familiarity about the license that IronRuby uses. In several instances, users ask why IronRuby doesn't use a more popular license. We are therefore considering switching our license to a well-known open-source license; specifically the Apache License, Version 2.0 (http://opensource.org/licenses/apache2.0.php). However, the pieces of IronRuby which are licensed under CPL and the Ruby license will not change (pieces from MRI which IronRuby redistributes, and YAML). We'd like to hear your feedback before we make any decisions. Do you think adopting a more popular license, such as the Apache License, would be a good change for IronRuby? ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core Join our mailing list and stay current on our products and services designed to build your business - visit http://www.xactware.com/mailinglist ________________________________ This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error. -------------- next part -------------- An HTML attachment was scrubbed... URL: From douglas at theros.info Fri Jun 4 10:15:23 2010 From: douglas at theros.info (Douglas Campos) Date: Fri, 4 Jun 2010 11:15:23 -0300 Subject: [Ironruby-core] License change? In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC92173C4181@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: +0,5 for Apache +1 for MIT or BSD On Fri, Jun 4, 2010 at 10:51 AM, Jeff Lewis wrote: > Apache would be wonderful!? BSD or MIT would be even better. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mark Rendle > Sent: Friday, June 04, 2010 5:13 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] License change? > > > > Any specific reasons for choosing Apache, as opposed to BSD (or even MIT)? > > On Fri, Jun 4, 2010 at 8:33 AM, Jimmy Schementi > wrote: > > As you probably know, IronRuby is currently licensed under the Microsoft > Public License (http://opensource.org/licenses/ms-pl.html). Occasionally we > hear feedback, questions, and a general lack of familiarity about the > license that IronRuby uses. ?In several instances, users ask why IronRuby > doesn't use a more popular license. ?We are therefore considering switching > our license to a well-known open-source license; specifically the Apache > License, Version 2.0 (http://opensource.org/licenses/apache2.0.php). > However, the pieces of IronRuby which are licensed under CPL and the Ruby > license will not change (pieces from MRI which IronRuby redistributes, and > YAML). > > We'd like to hear your feedback before we make any decisions. ?Do you think > adopting a more popular license, such as the Apache License, would be a good > change for IronRuby? > > ~Jimmy > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > Join our mailing list and stay current on our products and services designed > to build your business ? visit http://www.xactware.com/mailinglist > > ________________________________ > This email is intended solely for the recipient. It may contain privileged, > proprietary or confidential information or material. If you are not the > intended recipient, please delete this email and any attachments and notify > the sender of the error. > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Douglas Campos (qmx) +55 11 6762 5959 From bobby.johnson at gmail.com Fri Jun 4 11:53:53 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Fri, 4 Jun 2010 08:53:53 -0700 Subject: [Ironruby-core] What's next? In-Reply-To: References: <3FAF57DE-2423-456D-A9B7-B598A1335670@microsoft.com> <6ECEF121-377A-4408-9941-FA39C5CF2A24@stuartellis.eu> <18839804-3D7A-4B42-84F4-467D59BA5CBF@stuartellis.eu> Message-ID: +1 for rubymine. On Fri, Jun 4, 2010 at 12:08 AM, Shay Friedman wrote: > I'm using RubyMine for rails and projects with more than 2-3 files. > Otherwise I'm using SciTE. > > By the way, RubyMine is not free. > > 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 Fri, Jun 4, 2010 at 8:51 AM, Stuart Ellis wrote: > >> Interesting - I tried SharpDevelop and Netbeans, and wasn't happy with >> them for different reasons, but not RubyMine. >> >> Thanks >> >> On 3 Jun 2010, at 21:49, Martin Smith wrote: >> >> > Hey Stuart, >> > >> > Try out rubymine. We use that and it works pretty well even with >> IronRuby... >> > >> > Martin >> > >> > On Tue, May 25, 2010 at 12:18 PM, Stuart Ellis >> wrote: >> >>> From the peanut gallery: the lack of VS integration has definitely >> held me back from trying to push IronRuby in any capacity at work - I've >> been happy using Ruby without an IDE, but I am fairly certain that my >> colleagues would politely and firmly decline any suggestion of switching to >> text editor and the CLI. You could take that as a complement to the work of >> the VS team :) >> >> >> >> On 25 May 2010, at 12:15, Mark Rendle wrote: >> >> >> >>> In terms of MRI compatibility, I'd suggest that 1.9.2 would be a good >> target. 1.9.1 has various issues and has been largely ignored in favour of >> 1.8.7, but I'm seeing a lot of people recommending 1.9.2 even in its current >> pre state. >> >>> >> >>> Beyond compatibility, I think VS integration would be sweet, and would >> help drive adoption among my vi-illiterate colleagues. >> >>> >> >>> If my sum workload ever drops below critical mass, I'll start to >> contribute: honest! >> >>> >> >>> Mark >> >>> >> >>> On Wed, May 12, 2010 at 4:24 AM, Jimmy Schementi < >> Jimmy.Schementi at microsoft.com> wrote: >> >>> Will, what you are describing is the preferred way of packaging Ruby >> code as an exe. Someone should write a sample that shows how to do this; I >> believe there already is one but I don't have the URL handy. >> >>> >> >>> David, the first part of your email sounded reasonable, but the 2nd >> part (about scope) came from left field. Please indicate why the recipe >> Tomas and Will explained make IronRuby any less than first-class (whatever >> that means =P). IronPython is also planning on doing this too, so we think >> it's the best "self-contained deployment" option, but I'd like to hear why >> it won't work for you. >> >>> >> >>> As far as the other discussed features go, let me draw a line in the >> sand for the next major release (let's call it vNext for argument's sake): >> >>> >> >>> 1.) It is a goal of IronRuby vNext to improve interop with .NETs type >> system, so we will most likely implement something like IronPython's >> "clrtype" feature, and provide a library which lets you emit real static >> types from Ruby code. You could even imagine taking the emitted IL and >> writing it to a DLL, which could be called directly from a static language, >> but that's lower priority. >> >>> >> >>> 2.) It is not a goal of IronRuby vNext to implement a static compiler >> for Ruby; as in we will not emit both similar types and method bodies as C#. >> IronRuby is a dynamic language, and any static compiler features should be >> part of a .NET backend for Duby (currently only a JVM backend exists). >> Pre-compilation is different; it involves emitting IL to a DLL that we would >> have emit at runtime, given every method were called. This would only help >> startup marginally, as we already have fast startup with the interpreter and >> NGEN-ing IronRuby's binaries, and most of the time spent is actually running >> code, not emitting it. Also, pre-compilation doesn't help us CLR type system >> interop, as it would not produce a CLI-compliant assembly; assemblies >> generated by pyc cannot be referenced by a C# app. >> >>> >> >>> As far as non-.NET related features, we'll be targeting Ruby 1.9 >> support, and running Rails 3 and other libs will focus us on what features >> to implement first (so 1.8.7 compat might happen despite us wanting to move >> directly to 1.9). FFI is another possible feature, but only if there are >> crucial libs that use it, or if someone contributes it. >> >>> >> >>> Any other features people are curious about? Now is definitely the >> time to voice your opinions :) >> >>> >> >>> ~Jimmy >> >>> >> >>> On May 11, 2010, at 7:15 PM, "Will Green" >> wrote: >> >>> >> >>>> Why not create an executable assembly that embeds all the Ruby files >> as resources in the assembly? Extract them at runtime (you could probably >> just keep them in a memory stream), fire up a Ruby runtime host & engine, >> feed it the Ruby file, and away you go. >> >>>> >> >>>> Or am I missing something that would make this infeasible? >> >>>> >> >>>> -- >> >>>> Will Green >> >>>> http://hotgazpacho.org/ >> >>>> >> >>>> >> >>>> On Tue, May 11, 2010 at 9:20 PM, David Escobar < >> davidescobar at ieee.org> wrote: >> >>>> Ok, that's certainly an option to look into. I guess what people want >> is the ability to distribute applications and libraries in .exe and .dll >> form, the same way we do with C# or VB. But perhaps it's a question of scope >> - maybe IronRuby is not intended to be a 1st class .NET language in the same >> way that C# or VB are, or it's only intended to be a language for embedding >> in a static language or for unit testing purposes? >> >>>> >> >>>> The other reason is that it provides some (small) level of code >> obfuscation. I realize of course that the assemblies can be reverse >> engineered, but most users won't bother to do that - they'll just be >> interested in running the .exe. >> >>>> >> >>>> >> >>>> >> >>>> On Tue, May 11, 2010 at 6:04 PM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >>>> Well, there is a pretty simple way how to package up .rb files into >> an .exe file w/o precompiling anything. One option is to build a >> self-extracting zip file or something like that. That would solve the >> deployment issue. Improving startup time via pre-compilation is much more >> work. >> >>>> >> >>>> >> >>>> Tomas >> >>>> >> >>>> >> >>>> From: ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] On Behalf Of David Escobar >> >>>> Sent: Tuesday, May 11, 2010 5:48 PM >> >>>> >> >>>> >> >>>> To: ironruby-core at rubyforge.org >> >>>> Subject: Re: [Ironruby-core] What's next? >> >>>> >> >>>> >> >>>> Pre-compiling code would allow us to distribute our programs in .exe >> and .dll form, rather than .rb files. IronPython allows this with its pyc.py >> script. And if that means faster startup times and using Ruby code >> statically from C#, then all the better. >> >>>> >> >>>> >> >>>> On Tue, May 11, 2010 at 3:06 PM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >>>> >> >>>> What would you like to achieve by pre-compiling code? Faster startup >> time? Packaging your code in a dll instead of a bunch of .rb files? Using >> Ruby code statically from C#? >> >>>> >> >>>> Tomas >> >>>> >> >>>> >> >>>> -----Original Message----- >> >>>> From: ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith >> >>>> Sent: Tuesday, May 11, 2010 11:14 AM >> >>>> To: ironruby-core at rubyforge.org >> >>>> Subject: [Ironruby-core] What's next? >> >>>> >> >>>> Hey Guys, >> >>>> >> >>>> Now that IronRuby 1.0 has shipped (congrats!!), what's next on the >> docket? :) I'm not trying to pressure you guys! Just excited about the >> future. >> >>>> The feature i'd love to see most would be pre-compilation... >> >>>> >> >>>> Thanks for such a great product, >> >>>> Martin >> >>>> _______________________________________________ >> >>>> 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 >> >> >> >> --- >> >> Stuart Ellis >> >> stuart at stuartellis.eu >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> 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 >> >> --- >> Stuart Ellis >> stuart at stuartellis.eu >> >> >> >> >> _______________________________________________ >> 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 lists at ruby-forum.com Fri Jun 4 19:28:19 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Sat, 5 Jun 2010 01:28:19 +0200 Subject: [Ironruby-core] Installing rspec with IronRuby V 1 Message-ID: I downloaded and installed IronRuby V 1 awesome work guys!! I went to command line and typed: igem install rspec and got the following message: C:\Users\azamsharp>igem install rspec WARNING: Installing to ~/.gem since C:/Program Files/IronRuby 1.0v4/lib/ironrub y/gems/1.8 and C:/Program Files/IronRuby 1.0v4/bin aren't both writable. WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in your PATH, gem executables will not run. ************************************************** Thank you for installing rspec-1.3.0 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************** Successfully installed rspec-1.3.0 1 gem installed Installing ri documentation for rspec-1.3.0... Installing RDoc documentation for rspec-1.3.0... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc It says that: WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in your PATH, gem executables will not run. So, I went to the environment variable and set the above path in my PATH variable. But I still get the above error. -- Posted via http://www.ruby-forum.com/. From ryan.riley at panesofglass.org Sun Jun 6 21:07:20 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sun, 6 Jun 2010 18:07:20 -0700 Subject: [Ironruby-core] Installing rspec with IronRuby V 1 In-Reply-To: References: Message-ID: I haven't tried that, but I was able to get gem -S install rspec to work. It's been awhile, but if you check through the mailing list history, you should find instructions on getting it set up correctly. Try the gem -S thing first. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Twitter: @panesofglass Blog: http://wizardsofsmart.net/ Website: http://panesofglass.org/ On Fri, Jun 4, 2010 at 4:28 PM, Mohammad Azam wrote: > I downloaded and installed IronRuby V 1 awesome work guys!! > > I went to command line and typed: > > igem install rspec > > and got the following message: > > > C:\Users\azamsharp>igem install rspec > WARNING: Installing to ~/.gem since C:/Program Files/IronRuby > 1.0v4/lib/ironrub > y/gems/1.8 and > C:/Program Files/IronRuby 1.0v4/bin aren't both writable. > WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in > your PATH, > gem executables will not run. > ************************************************** > > Thank you for installing rspec-1.3.0 > > Please be sure to read History.rdoc and Upgrade.rdoc > for useful information about this release. > > ************************************************** > Successfully installed rspec-1.3.0 > 1 gem installed > Installing ri documentation for rspec-1.3.0... > Installing RDoc documentation for rspec-1.3.0... > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > > It says that: > WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in > your PATH, > gem executables will not run. > > So, I went to the environment variable and set the above path in my PATH > variable. But I still get the above error. > -- > 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 bishop.julian at gmail.com Mon Jun 7 01:33:00 2010 From: bishop.julian at gmail.com (Julian Bishop) Date: Mon, 7 Jun 2010 00:33:00 -0500 Subject: [Ironruby-core] VB.Net - Ruby interop Message-ID: Hi, A couple of technical questions regarding how to leverage Ruby from VB.Net and vice versa: 1) Is the ScriptScope the only option for passing object refs into Ruby? I mean can they also be passed as parameters to the Ruby methods called by InvokeMember? 2) Ruby has no need for passing parameters "ByRef" like you can in VB because Ruby's return statement so naturally returns an arbitrary list of objects as an array, and Ruby supports multiple assignment on a single line. But I have legacy VB methods with ByRef parameters that really do change which objects the parameters reference in the caller. I would like to be able to call these VB methods from Ruby code, but since Ruby has no such thing as ByRef, I don't know what kind of behavior I should expect. Can the Ruby variables passed as parameters get reassigned by VB code to point to VB objects without any additional shenanigans? If not, then is there an established workaround for ByRef parameters? Has this odd situation been addressed yet? (I don't want to rewrite/retest legacy code that already works just fine). Thanks, Julian. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at markrendle.net Mon Jun 7 06:35:12 2010 From: mark at markrendle.net (Mark Rendle) Date: Mon, 7 Jun 2010 11:35:12 +0100 Subject: [Ironruby-core] Installing rspec with IronRuby V 1 In-Reply-To: References: Message-ID: I strongly recommend uninstalling and re-installing IronRuby to C:\ironruby. It will make your life much easier. Mark On Sat, Jun 5, 2010 at 12:28 AM, Mohammad Azam wrote: > I downloaded and installed IronRuby V 1 awesome work guys!! > > I went to command line and typed: > > igem install rspec > > and got the following message: > > > C:\Users\azamsharp>igem install rspec > WARNING: Installing to ~/.gem since C:/Program Files/IronRuby > 1.0v4/lib/ironrub > y/gems/1.8 and > C:/Program Files/IronRuby 1.0v4/bin aren't both writable. > WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in > your PATH, > gem executables will not run. > ************************************************** > > Thank you for installing rspec-1.3.0 > > Please be sure to read History.rdoc and Upgrade.rdoc > for useful information about this release. > > ************************************************** > Successfully installed rspec-1.3.0 > 1 gem installed > Installing ri documentation for rspec-1.3.0... > Installing RDoc documentation for rspec-1.3.0... > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > > It says that: > WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in > your PATH, > gem executables will not run. > > So, I went to the environment variable and set the above path in my PATH > variable. But I still get the above error. > -- > 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 lists at ruby-forum.com Mon Jun 7 11:57:50 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 7 Jun 2010 17:57:50 +0200 Subject: [Ironruby-core] Installing rspec with IronRuby V 1 In-Reply-To: References: Message-ID: <08d613e031bc110e2eceb354d01a8c67@ruby-forum.com> Hi, I will install in c:\ironruby. Thanks, Azam -- Posted via http://www.ruby-forum.com/. From joshuaflanagan at gmail.com Mon Jun 7 12:24:23 2010 From: joshuaflanagan at gmail.com (Josh Flanagan) Date: Mon, 7 Jun 2010 11:24:23 -0500 Subject: [Ironruby-core] include FileTest not working how I expect Message-ID: Can someone explain the different 'include' behavior outlined in this code snippet: http://gist.github.com/396623 Is this a known difference between MRI/IronRuby in how include works? Or is it a matter of different namespace clashes happening in IronRuby? Can I make the code that works under MRI (calling unqualified exists?) work in IronRuby? From Tomas.Matousek at microsoft.com Mon Jun 7 13:11:34 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 7 Jun 2010 17:11:34 +0000 Subject: [Ironruby-core] include FileTest not working how I expect In-Reply-To: References: Message-ID: The difference is that in Ruby the FileTest methods are both singleton methods and private instance methods while in IronRuby they are just singleton methods. So this is a bug in FileTest. I'll submit a fix. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Josh Flanagan Sent: Monday, June 07, 2010 9:24 AM To: Ironruby-core at rubyforge.org Subject: [Ironruby-core] include FileTest not working how I expect Can someone explain the different 'include' behavior outlined in this code snippet: http://gist.github.com/396623 Is this a known difference between MRI/IronRuby in how include works? Or is it a matter of different namespace clashes happening in IronRuby? Can I make the code that works under MRI (calling unqualified exists?) work in IronRuby? _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Mon Jun 7 16:46:13 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 7 Jun 2010 20:46:13 +0000 Subject: [Ironruby-core] VB.Net - Ruby interop In-Reply-To: References: Message-ID: 1) Yes, you can pass parameters via InvokeMember. 2) You can call methods with ByRefs from Ruby. An example could be Dictionary.TryGetValue: >>> dict = System::Collections::Generic::Dictionary[Fixnum, Fixnum].new => System.Collections.Generic.Dictionary`2[System.Int32,System.Int32] >>> dict.add 1,2 => nil >>> dict.try_get_value 1 => [true, 2] The second parameter to TryGetvalue is an ByRef. You can either omit an argument for such parameter or pass an instance of System.Runtime.CompilerServices.StrongBox. If you omit the argument the result is returned in the return value (as shown above). If you pass an instance of StrongBox the value is updated in situ. Similarly for in-out ByRef parameters. You pass in the input value and either get the output value in the resulting array or the StrongBox value if you use a StrongBox instance. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Julian Bishop Sent: Sunday, June 06, 2010 10:33 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] VB.Net - Ruby interop Hi, A couple of technical questions regarding how to leverage Ruby from VB.Net and vice versa: 1) Is the ScriptScope the only option for passing object refs into Ruby? I mean can they also be passed as parameters to the Ruby methods called by InvokeMember? 2) Ruby has no need for passing parameters "ByRef" like you can in VB because Ruby's return statement so naturally returns an arbitrary list of objects as an array, and Ruby supports multiple assignment on a single line. But I have legacy VB methods with ByRef parameters that really do change which objects the parameters reference in the caller. I would like to be able to call these VB methods from Ruby code, but since Ruby has no such thing as ByRef, I don't know what kind of behavior I should expect. Can the Ruby variables passed as parameters get reassigned by VB code to point to VB objects without any additional shenanigans? If not, then is there an established workaround for ByRef parameters? Has this odd situation been addressed yet? (I don't want to rewrite/retest legacy code that already works just fine). Thanks, Julian. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Jun 11 12:18:52 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 11 Jun 2010 16:18:52 +0000 Subject: [Ironruby-core] License change? In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC92173C4181@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92173D7410@TK5EX14MBXC138.redmond.corp.microsoft.com> I know that MIT or BSD are by far the most-used licenses for Ruby libs, but Apache 2 has had the most success in greasing the open-source wheels at Microsoft, and it's a license both teams can agree on. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mark Rendle Sent: Friday, June 04, 2010 4:13 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] License change? Any specific reasons for choosing Apache, as opposed to BSD (or even MIT)? On Fri, Jun 4, 2010 at 8:33 AM, Jimmy Schementi > wrote: As you probably know, IronRuby is currently licensed under the Microsoft Public License (http://opensource.org/licenses/ms-pl.html). Occasionally we hear feedback, questions, and a general lack of familiarity about the license that IronRuby uses. In several instances, users ask why IronRuby doesn't use a more popular license. We are therefore considering switching our license to a well-known open-source license; specifically the Apache License, Version 2.0 (http://opensource.org/licenses/apache2.0.php). However, the pieces of IronRuby which are licensed under CPL and the Ruby license will not change (pieces from MRI which IronRuby redistributes, and YAML). We'd like to hear your feedback before we make any decisions. Do you think adopting a more popular license, such as the Apache License, would be a good change for IronRuby? ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Jun 11 12:20:55 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 11 Jun 2010 16:20:55 +0000 Subject: [Ironruby-core] License change? In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC92173C4181@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92173D742F@TK5EX14MBXC138.redmond.corp.microsoft.com> Anyone else have any thoughts on switching to Apache 2? I'd hope that a license change will help with the "what is the Microsoft Public License" confusion in the vast majority of the open-source world ... what are your thoughts? > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Douglas Campos > Sent: Friday, June 04, 2010 7:15 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] License change? > > +0,5 for Apache > +1 for MIT or BSD > > On Fri, Jun 4, 2010 at 10:51 AM, Jeff Lewis wrote: > > Apache would be wonderful!? BSD or MIT would be even better. > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mark Rendle > > Sent: Friday, June 04, 2010 5:13 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] License change? > > > > > > > > Any specific reasons for choosing Apache, as opposed to BSD (or even > MIT)? > > > > On Fri, Jun 4, 2010 at 8:33 AM, Jimmy Schementi > > wrote: > > > > As you probably know, IronRuby is currently licensed under the Microsoft > > Public License (http://opensource.org/licenses/ms-pl.html). Occasionally > we > > hear feedback, questions, and a general lack of familiarity about the > > license that IronRuby uses. ?In several instances, users ask why IronRuby > > doesn't use a more popular license. ?We are therefore considering > switching > > our license to a well-known open-source license; specifically the Apache > > License, Version 2.0 (http://opensource.org/licenses/apache2.0.php). > > However, the pieces of IronRuby which are licensed under CPL and the > Ruby > > license will not change (pieces from MRI which IronRuby redistributes, and > > YAML). > > > > We'd like to hear your feedback before we make any decisions. ?Do you > think > > adopting a more popular license, such as the Apache License, would be a > good > > change for IronRuby? > > > > ~Jimmy > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > > > Join our mailing list and stay current on our products and services designed > > to build your business ? visit http://www.xactware.com/mailinglist > > > > ________________________________ > > This email is intended solely for the recipient. It may contain privileged, > > proprietary or confidential information or material. If you are not the > > intended recipient, please delete this email and any attachments and > notify > > the sender of the error. > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > > > -- > Douglas Campos (qmx) > +55 11 6762 5959 > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From mark at markrendle.net Mon Jun 14 05:09:00 2010 From: mark at markrendle.net (Mark Rendle) Date: Mon, 14 Jun 2010 10:09:00 +0100 Subject: [Ironruby-core] License change? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92173D7410@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC92173C4181@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92173D7410@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Thought it might be something like that. Fair enough then. Apache 2.0 is a step in the right direction. On Fri, Jun 11, 2010 at 5:18 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > I know that MIT or BSD are by far the most-used licenses for Ruby libs, > but Apache 2 has had the most success in greasing the open-source wheels at > Microsoft, and it?s a license both teams can agree on. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mark Rendle > *Sent:* Friday, June 04, 2010 4:13 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] License change? > > > > Any specific reasons for choosing Apache, as opposed to BSD (or even MIT)? > > On Fri, Jun 4, 2010 at 8:33 AM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > > As you probably know, IronRuby is currently licensed under the Microsoft > Public License (http://opensource.org/licenses/ms-pl.html). Occasionally > we hear feedback, questions, and a general lack of familiarity about the > license that IronRuby uses. In several instances, users ask why IronRuby > doesn't use a more popular license. We are therefore considering switching > our license to a well-known open-source license; specifically the Apache > License, Version 2.0 (http://opensource.org/licenses/apache2.0.php). > However, the pieces of IronRuby which are licensed under CPL and the Ruby > license will not change (pieces from MRI which IronRuby redistributes, and > YAML). > > We'd like to hear your feedback before we make any decisions. Do you think > adopting a more popular license, such as the Apache License, would be a good > change for IronRuby? > > ~Jimmy > _______________________________________________ > 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 lists at ruby-forum.com Wed Jun 16 17:51:26 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Wed, 16 Jun 2010 23:51:26 +0200 Subject: [Ironruby-core] Spec Help! Message-ID: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> Hi, Do I have to install IronRuby in C:\IronRuby? I have it installed somewhere else inside the C:\DevTools\IronRuby and having trouble running spec. When I do this: igem install rspec I get the following: WARNING: Installing to ~/.gem since C:/Program Files/IronRuby 1.0v4/lib/ironrub y/gems/1.8 and C:/Program Files/IronRuby 1.0v4/bin aren't both writable. WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in your PATH, gem executables will not run. ************************************************** Here is my code: require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' include BusinessObjects describe Account do before do @account = Account.new end end When I run the above code I get the following: C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>spec testaccountsp ec.rb --format nested ./bin/Debug/BusinessObjects.dll: 127: The specified procedure could not be found . - Init_BusinessObjects (LoadError) ./bin/Debug/BusinessObjects.dll from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cus tom_require.rb:31:in `require' from ./testaccountspec.rb:5 from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_ group_runner.rb:15:in `load' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_ group_runner.rb:15:in `load_files' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_ group_runner.rb:14:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_ group_runner.rb:14:in `load_files' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options. rb:133:in `run_examples' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/command_ line.rb:9:in `run' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec:5 from c:/ruby/bin/spec:19:in `load' from c:/ruby/bin/spec:19 The error is weird since the "/bin/Debug/" directory does contain the BusinessObjects.dll. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Jun 16 18:02:10 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Thu, 17 Jun 2010 00:02:10 +0200 Subject: [Ironruby-core] Spec Help! In-Reply-To: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> References: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> Message-ID: I uninstalled IronRuby and then reinstall it in C:\IronRuby. The first warning now went away but the error is still thrown when running spec filename.rb. What am I missing? -- Posted via http://www.ruby-forum.com/. From bobby.johnson at gmail.com Wed Jun 16 18:12:04 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Wed, 16 Jun 2010 15:12:04 -0700 Subject: [Ironruby-core] Spec Help! In-Reply-To: References: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> Message-ID: A complete problem statement? On Wed, Jun 16, 2010 at 3:02 PM, Mohammad Azam wrote: > I uninstalled IronRuby and then reinstall it in C:\IronRuby. The first > warning now went away but the error is still thrown when running spec > filename.rb. > > What am I missing? > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > 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 Wed Jun 16 18:45:49 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Wed, 16 Jun 2010 15:45:49 -0700 Subject: [Ironruby-core] Spec Help! In-Reply-To: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> References: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> Message-ID: Interesting. I didn't have rspec installed on my work machine so I ran through this drill locally on XP: G:\> set-ironruby G:\> d: D:\> igem list *** LOCAL GEMS *** actionmailer (2.3.8, 2.3.5) actionpack (2.3.8, 2.3.5) activerecord (2.3.8, 2.3.5) activerecord-adonet-sqlserver (0.3.4) activerecord-sqlserver-adapter (2.3.5, 2.3.1) activeresource (2.3.8, 2.3.5) activesupport (2.3.8, 2.3.7, 2.3.5) bind (0.2.8) bson (1.0.1, 1.0, 0.20.1) commander (4.0.3) dbd-adonet (0.3.2) dbd-adonet-sqlserver (0.3.2) dbi (0.4.5, 0.4.3) deprecated (3.0.0, 2.0.1) highline (1.5.2) jnunemaker-validatable (1.8.4) json_pure (1.4.3) jspec (4.3.1) mongo (1.0.1, 1.0, 0.20.1) mongo_mapper (0.7.4) nifty-generators (0.4.0) panztel-actionwebservice (2.3.5) rack (1.1.0, 1.0.1) rails (2.3.8, 2.3.5) rake (0.8.7) sinatra (1.0) sqlite3-ironruby (0.1.1) D:\> igem install rspec ************************************************** Thank you for installing rspec-1.3.0 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************** Successfully installed rspec-1.3.0 1 gem installed Installing ri documentation for rspec-1.3.0... Installing RDoc documentation for rspec-1.3.0... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc D:\> So as you can see, I didn't get the same warning you did when installing. You mentioned that you had reinstalled ironruby to C:\ironruby, do you still have something in the C:\Prog Files\Iron Ruby\ folder? What is in your path? Check out $env:path in powershell, do you have both paths there? Also, what OS are you running on? In some OSes you need to be running with elevated privileges to write to the prog files directory. This is most likely what is nuking your igem install. On Wed, Jun 16, 2010 at 2:51 PM, Mohammad Azam wrote: > Hi, > > Do I have to install IronRuby in C:\IronRuby? > > I have it installed somewhere else inside the C:\DevTools\IronRuby and > having trouble running spec. > > When I do this: > > igem install rspec > > I get the following: > > WARNING: Installing to ~/.gem since C:/Program Files/IronRuby > 1.0v4/lib/ironrub > y/gems/1.8 and > C:/Program Files/IronRuby 1.0v4/bin aren't both writable. > WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in > your PATH, > gem executables will not run. > ************************************************** > > Here is my code: > > > require 'rubygems' > require 'spec' > > require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' > > include BusinessObjects > > describe Account do > > before do > > @account = Account.new > > end > > end > > When I run the above code I get the following: > > > C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>spec > testaccountsp > ec.rb --format nested > ./bin/Debug/BusinessObjects.dll: 127: The specified procedure could not > be found > . - Init_BusinessObjects (LoadError) > ./bin/Debug/BusinessObjects.dll from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cus > tom_require.rb:31:in `require' > from ./testaccountspec.rb:5 > from > c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_ > group_runner.rb:15:in `load' > from > c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_ > group_runner.rb:15:in `load_files' > from > c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_ > group_runner.rb:14:in `each' > from > c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_ > group_runner.rb:14:in `load_files' > from > c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options. > rb:133:in `run_examples' > from > c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/command_ > line.rb:9:in `run' > from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec:5 > from c:/ruby/bin/spec:19:in `load' > from c:/ruby/bin/spec:19 > > The error is weird since the "/bin/Debug/" directory does contain the > BusinessObjects.dll. > -- > 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 lists at ruby-forum.com Wed Jun 16 18:51:20 2010 From: lists at ruby-forum.com (Billy Stack) Date: Thu, 17 Jun 2010 00:51:20 +0200 Subject: [Ironruby-core] Calling WCF Service Message-ID: Hi All, Im a .NET developer trying to introduce Ruby for testing a WCF web service. Can I test this via IronRuby?, if so is there any example of WCF client code that you could point me to? Cheers, Billy Stack -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Wed Jun 16 18:52:20 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 16 Jun 2010 22:52:20 +0000 Subject: [Ironruby-core] Spec Help! In-Reply-To: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> References: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92173F0DA9@TK5EX14MBXC141.redmond.corp.microsoft.com> Sounds like you have two disconnected things going on ... > Do I have to install IronRuby in C:\IronRuby? No, in fact the installer puts it in C:\Program Files\IronRuby ... > I have it installed somewhere else inside the C:\DevTools\IronRuby and > having trouble running spec. > > When I do this: > > igem install rspec > > I get the following: > > WARNING: Installing to ~/.gem since C:/Program Files/IronRuby > 1.0v4/lib/ironrub > y/gems/1.8 and > C:/Program Files/IronRuby 1.0v4/bin aren't both writable. > WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in > your PATH, > gem executables will not run. > ************************************************** Looks like you're running ir.exe from C:/Program Files/IronRuby 1.0v4/bin. Check your OS PATH environment variable and move whichever path to the desired ir.exe first. By the way, the first warning is because you're not running cmd.exe as Administrator (if IronRuby is installed in a location you're user doesn't have write access to). The second warning is a result of the first, and what it says exactly; the gem bin path is on your OS PATH, so add it. Now on to your second issue, I guess ... > Here is my code: > > > require 'rubygems' > require 'spec' > > require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' > > include BusinessObjects > > describe Account do > > before do > > @account = Account.new > > end > > end > > When I run the above code I get the following: > > > C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>spec > testaccountsp > ec.rb --format nested > ./bin/Debug/BusinessObjects.dll: 127: The specified procedure could not be > found > . - Init_BusinessObjects (LoadError) > ./bin/Debug/BusinessObjects.dll from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cus > tom_require.rb:31:in `require' > from ./testaccountspec.rb:5 > from [snip] > > The error is weird since the "/bin/Debug/" directory does contain the > BusinessObjects.dll. Can you please provide a smaller repro; Preferably 1-2 lines of Ruby code, and the source to an example DLL you're trying to load (please don't send the source to BusinessObjects.dll ... it won't be helpful). It's almost 100% certain we'll help get this fixed, but only if we can reproduce it. ~Jimmy From jdeville at microsoft.com Wed Jun 16 19:33:46 2010 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 16 Jun 2010 23:33:46 +0000 Subject: [Ironruby-core] Spec Help! In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92173F0DA9@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC92173F0DA9@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <3A95E0143832D94BA52A18A1406403E4072E3D17@TK5EX14MBXC121.redmond.corp.microsoft.com> > ./bin/Debug/BusinessObjects.dll: 127: The specified procedure could > not be found > . - Init_BusinessObjects (LoadError) > ./bin/Debug/BusinessObjects.dll from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cus > tom_require.rb:31:in `require' > from ./testaccountspec.rb:5 > from [snip] > > The error is weird since the "/bin/Debug/" directory does contain the > BusinessObjects.dll. The spec command is running MRI. As can be seen by a) "The specified procedure could not be found - Init_BusinessObjects" (MRI's error when you try to load a non-ruby extension) b) the path to require " c:/ruby/lib/ruby/site_ruby/1.8/rubygems" You must use ir -S spec, as pointed out numerous times before by people on this list. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, June 16, 2010 3:52 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Spec Help! Sounds like you have two disconnected things going on ... > Do I have to install IronRuby in C:\IronRuby? No, in fact the installer puts it in C:\Program Files\IronRuby ... > I have it installed somewhere else inside the C:\DevTools\IronRuby and > having trouble running spec. > > When I do this: > > igem install rspec > > I get the following: > > WARNING: Installing to ~/.gem since C:/Program Files/IronRuby > 1.0v4/lib/ironrub > y/gems/1.8 and > C:/Program Files/IronRuby 1.0v4/bin aren't both writable. > WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in > your PATH, > gem executables will not run. > ************************************************** Looks like you're running ir.exe from C:/Program Files/IronRuby 1.0v4/bin. Check your OS PATH environment variable and move whichever path to the desired ir.exe first. By the way, the first warning is because you're not running cmd.exe as Administrator (if IronRuby is installed in a location you're user doesn't have write access to). The second warning is a result of the first, and what it says exactly; the gem bin path is on your OS PATH, so add it. Now on to your second issue, I guess ... > Here is my code: > > > require 'rubygems' > require 'spec' > > require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' > > include BusinessObjects > > describe Account do > > before do > > @account = Account.new > > end > > end > > When I run the above code I get the following: > > > C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>spec > testaccountsp > ec.rb --format nested > ./bin/Debug/BusinessObjects.dll: 127: The specified procedure could > not be found > . - Init_BusinessObjects (LoadError) > ./bin/Debug/BusinessObjects.dll from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cus > tom_require.rb:31:in `require' > from ./testaccountspec.rb:5 > from [snip] > > The error is weird since the "/bin/Debug/" directory does contain the > BusinessObjects.dll. Can you please provide a smaller repro; Preferably 1-2 lines of Ruby code, and the source to an example DLL you're trying to load (please don't send the source to BusinessObjects.dll ... it won't be helpful). It's almost 100% certain we'll help get this fixed, but only if we can reproduce it. ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From azamsharp at gmail.com Thu Jun 17 09:17:44 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Thu, 17 Jun 2010 08:17:44 -0500 Subject: [Ironruby-core] Spec Help! In-Reply-To: <3A95E0143832D94BA52A18A1406403E4072E3D17@TK5EX14MBXC121.redmond.corp.microsoft.com> References: <7146a8bebdd9d59efaec7cd412cec30e@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC92173F0DA9@TK5EX14MBXC141.redmond.corp.microsoft.com> <3A95E0143832D94BA52A18A1406403E4072E3D17@TK5EX14MBXC121.redmond.corp.microsoft.com> Message-ID: Hi Jim, Your tip of using ir -S spec worked. And also I find that spec is running much faster than the previous versions. Thanks, Azam On Wed, Jun 16, 2010 at 6:33 PM, Jim Deville wrote: > > ./bin/Debug/BusinessObjects.dll: 127: The specified procedure could > > not be found > > . - Init_BusinessObjects (LoadError) > > ./bin/Debug/BusinessObjects.dll from > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cus > > tom_require.rb:31:in `require' > > from ./testaccountspec.rb:5 > > from > [snip] > > > > The error is weird since the "/bin/Debug/" directory does contain the > > BusinessObjects.dll. > > The spec command is running MRI. > > As can be seen by a) "The specified procedure could not be found - > Init_BusinessObjects" (MRI's error when you try to load a non-ruby > extension) b) the path to require " c:/ruby/lib/ruby/site_ruby/1.8/rubygems" > > You must use ir -S spec, as pointed out numerous times before by people on > this list. > > JD > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi > Sent: Wednesday, June 16, 2010 3:52 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Spec Help! > > Sounds like you have two disconnected things going on ... > > > Do I have to install IronRuby in C:\IronRuby? > > No, in fact the installer puts it in C:\Program Files\IronRuby ... > > > I have it installed somewhere else inside the C:\DevTools\IronRuby and > > having trouble running spec. > > > > When I do this: > > > > igem install rspec > > > > I get the following: > > > > WARNING: Installing to ~/.gem since C:/Program Files/IronRuby > > 1.0v4/lib/ironrub > > y/gems/1.8 and > > C:/Program Files/IronRuby 1.0v4/bin aren't both writable. > > WARNING: You don't have C:/Users/azamsharp/.gem/ironruby/1.8/bin in > > your PATH, > > gem executables will not run. > > ************************************************** > > Looks like you're running ir.exe from C:/Program Files/IronRuby 1.0v4/bin. > Check your OS PATH environment variable and move whichever path to the > desired ir.exe first. By the way, the first warning is because you're not > running cmd.exe as Administrator (if IronRuby is installed in a location > you're user doesn't have write access to). The second warning is a result of > the first, and what it says exactly; the gem bin path is on your OS PATH, so > add it. > > Now on to your second issue, I guess ... > > > Here is my code: > > > > > > require 'rubygems' > > require 'spec' > > > > require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' > > > > include BusinessObjects > > > > describe Account do > > > > before do > > > > @account = Account.new > > > > end > > > > end > > > > When I run the above code I get the following: > > > > > > C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>spec > > testaccountsp > > ec.rb --format nested > > ./bin/Debug/BusinessObjects.dll: 127: The specified procedure could > > not be found > > . - Init_BusinessObjects (LoadError) > > ./bin/Debug/BusinessObjects.dll from > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cus > > tom_require.rb:31:in `require' > > from ./testaccountspec.rb:5 > > from > [snip] > > > > The error is weird since the "/bin/Debug/" directory does contain the > > BusinessObjects.dll. > > Can you please provide a smaller repro; Preferably 1-2 lines of Ruby code, > and the source to an example DLL you're trying to load (please don't send > the source to BusinessObjects.dll ... it won't be helpful). It's almost 100% > certain we'll help get this fixed, but only if we can reproduce it. > > ~Jimmy > _______________________________________________ > 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 > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Thu Jun 17 11:21:59 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 17 Jun 2010 15:21:59 +0000 Subject: [Ironruby-core] FYI Code Review: rackrelease-20100616 Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92173F1D2A@TK5EX14MBXC141.redmond.corp.microsoft.com> Note: attached diff is scrubbed of most external code (rack, test-spec, Cassini, etc) and sources which have just been renamed, like IronRuby.Rack, as the changes have minimal. Comment : Prepare for IronRuby.Rack "release". Changes Ruby and internal infrastructure. Ruby changes ------------ - 1.0.0.1 integration from servicing - Fixes http://ironruby.codeplex.com/workitem/4412 o Do not filter "uncallable" Ruby methods in Kernel#methods and Module#*instance_methods, as this breaks test-spec. o Adds test to rubyspec/core/kernel/methods_spec.rb to make sure a Ruby method name which is not a valid method or operator token is still descoverable. o Uncallable interop methods (CLR, DLR) are still filtered; see ClrMethodEnumeration_InvalidNames1 in IronRuby.Tests. - Tweak rbconfig in dev environment to report the correct bindir - Add Libs/test/ispec to patch test-spec for IronRuby. Either make a gem or contribute directly to test-spec in the future. - Add test-spec support to utr, add --list and --spec options, and tweak how tests are omitted between mri and ir. - Fix active_record tests in utr to run against latest sqlserver adapter - Run rack and test-spec tests through utr.rb - Adds/updates gems: rack-1.1.0, test-spec-0.10.0, activerecord-sqlserver-adapter-2.3.5, sinatra-1.0. IronRuby.Rack changes --------------------- - Move IronRuby.Rack into the IronRubyRack namespace (Adding to the IronRuby module causes problems with constant lookup), and various Rack bug fixing (like fixing binary files) and directory shuffling. o due to the tree reorganization, most "renames" turned into "adds/deletes" - http://ironruby.codeplex.com/workitem/4435 o Add ironruby-rack gem project: release vehicle for IronRuby.Rack.dll, and rack2aspnet and deploy2iis scripts - IronRuby.Rack.dll: run Ruby web apps on ASP.NET-enabled webservers (IIS, Cassini). - rack2aspnet takes any rack-enabled app and makes it a valid ASP.NET site. - deploy2iis takes any IIS site and deploys it to the local IIS server. - Simple testing (see ironruby-rack/TODO) - Add cassini (Ms-Pl) as a dev webserver for Rack apps -------------- next part -------------- A non-text attachment was scrubbed... Name: rackrelease-20100616.diff Type: application/octet-stream Size: 95179 bytes Desc: rackrelease-20100616.diff URL: From ryan.riley at panesofglass.org Thu Jun 17 13:21:37 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Thu, 17 Jun 2010 10:21:37 -0700 Subject: [Ironruby-core] License change? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92173D7410@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC92173C4181@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92173D7410@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: The only problem I see is that others may question why MSPL isn't good enough. I don't know if that's a bad thing; I was always somewhat confused by the existence of a new license that didn't seem altogether different from others. Apache 2 works for me. Ryan Riley On Fri, Jun 11, 2010 at 9:18 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > I know that MIT or BSD are by far the most-used licenses for Ruby libs, > but Apache 2 has had the most success in greasing the open-source wheels at > Microsoft, and it?s a license both teams can agree on. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mark Rendle > *Sent:* Friday, June 04, 2010 4:13 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] License change? > > > > Any specific reasons for choosing Apache, as opposed to BSD (or even MIT)? > > On Fri, Jun 4, 2010 at 8:33 AM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > > As you probably know, IronRuby is currently licensed under the Microsoft > Public License (http://opensource.org/licenses/ms-pl.html). Occasionally > we hear feedback, questions, and a general lack of familiarity about the > license that IronRuby uses. In several instances, users ask why IronRuby > doesn't use a more popular license. We are therefore considering switching > our license to a well-known open-source license; specifically the Apache > License, Version 2.0 (http://opensource.org/licenses/apache2.0.php). > However, the pieces of IronRuby which are licensed under CPL and the Ruby > license will not change (pieces from MRI which IronRuby redistributes, and > YAML). > > We'd like to hear your feedback before we make any decisions. Do you think > adopting a more popular license, such as the Apache License, would be a good > change for IronRuby? > > ~Jimmy > _______________________________________________ > 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 lists at ruby-forum.com Fri Jun 18 07:21:06 2010 From: lists at ruby-forum.com (Derek Ekins) Date: Fri, 18 Jun 2010 13:21:06 +0200 Subject: [Ironruby-core] Bundler Message-ID: I have IronRuby 1.0 with RubyGems 1.3.6 and Bundler 0.9.25. When I run Bundler.setup I get this error: NameError: undefined method `gem' for module `Bundler::SharedHelpers' from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:90:in `reverse_rubygems_kernel_mixin' from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:84:in `module_eval' from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:84:in `reverse_rubygems_kernel_mixin' from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:95:in `cripple_rubygems' from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/runtime.rb:18:in `setup' from C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler.rb:76:in `gem_setup' from (irb):3 from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:150:in `eval_input' from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:263:in `signal_status' from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:147:in `eval_input' from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:146:in `eval_input' from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:70:in `start' from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:69:in `catch' from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:69:in `start' from C:/IronRuby-1.0/bin/irb:13 reverse_rubygems_kernel_mixin looks like this: def reverse_rubygems_kernel_mixin # Disable rubygems' gem activation system ::Kernel.class_eval do if private_method_defined?(:gem_original_require) alias rubygems_require require alias require gem_original_require end undef gem end end If I run this in irb I get this error: NameError: undefined method `gem' for class `Object' ::Kernel.class_eval do undef gem end Any ideas? -- Posted via http://www.ruby-forum.com/. From ivan at cloudslide.net Fri Jun 18 07:59:25 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Fri, 18 Jun 2010 13:59:25 +0200 Subject: [Ironruby-core] Bundler In-Reply-To: References: Message-ID: try doing a require 'rubygems' as first line in your file. That should make the gem method available --- 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, Jun 18, 2010 at 1:21 PM, Derek Ekins wrote: > I have IronRuby 1.0 with RubyGems 1.3.6 and Bundler 0.9.25. > > When I run Bundler.setup I get this error: > > NameError: undefined method `gem' for module `Bundler::SharedHelpers' > from > > C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:90:in > `reverse_rubygems_kernel_mixin' > from > > C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:84:in > `module_eval' > from > > C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:84:in > `reverse_rubygems_kernel_mixin' > from > > C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/shared_helpers.rb:95:in > `cripple_rubygems' > from > > C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler/runtime.rb:18:in > `setup' > from > > C:/IronRuby-1.0/lib/ironruby/gems/1.8/gems/bundler-0.9.25/lib/bundler.rb:76:in > `gem_setup' > from (irb):3 > from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:150:in `eval_input' > from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:263:in `signal_status' > from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:147:in `eval_input' > from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:146:in `eval_input' > from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:70:in `start' > from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:69:in `catch' > from C:/IronRuby-1.0/lib/ruby/1.8/irb.rb:69:in `start' > from C:/IronRuby-1.0/bin/irb:13 > > > reverse_rubygems_kernel_mixin looks like this: > def reverse_rubygems_kernel_mixin > # Disable rubygems' gem activation system > ::Kernel.class_eval do > if private_method_defined?(:gem_original_require) > alias rubygems_require require > alias require gem_original_require > end > > undef gem > end > end > > If I run this in irb I get this error: > NameError: undefined method `gem' for class `Object' > > ::Kernel.class_eval do > undef gem > end > > Any ideas? > -- > 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 lists at ruby-forum.com Fri Jun 18 08:40:15 2010 From: lists at ruby-forum.com (Derek Ekins) Date: Fri, 18 Jun 2010 14:40:15 +0200 Subject: [Ironruby-core] Bundler In-Reply-To: References: Message-ID: <62f1bf5256e1be7e6eb19587657dc6b2@ruby-forum.com> I already am: require 'rubygems' require 'bundler' Bundler.setup I have also applied this fix (if it makes a difference) http://marcinobel.com/index.php/bug-invalid-exec_format-ir/ Other than that it is a fresh IronRuby 1.0 install -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jun 18 08:40:57 2010 From: lists at ruby-forum.com (Eduardo Blumenfeld) Date: Fri, 18 Jun 2010 14:40:57 +0200 Subject: [Ironruby-core] ironruby activerecord sqlserver Message-ID: <50e2bcef18c03197963ccfba01a3aa5a@ruby-forum.com> Hi all When running this ruby program: ---------------------------------------------------- require 'rubygems' require 'active_record' require 'yaml' ActiveRecord::Base.establish_connection( :adapter => 'sqlserver', :database => 'xxxxx', :username => 'sa', :password => 'pass', :mode => 'ODBC', :host => "MYLAPTOP\\SQLSERVER") class User < ActiveRecord::Base end puts User.count ---------------------------------------------------- These are the local gems installed: ---------------------------------------------------- actionmailer (2.3.8) actionpack (2.3.8) activerecord (2.3.8) activerecord-sqlserver-adapter (2.3.8) activeresource (2.3.8) activesupport (2.3.8) dbd-adonet (0.3.2) dbd-adonet-sqlserver (0.3.2) dbi (0.4.3) deprecated (3.0.0) rack (1.1.0) rails (2.3.8) rake (0.8.7) ------------------------------------------------- I'm receiving the following error: ------------------------------------------------- WARNING: YAML.add_builtin_type is not implemented C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require': no such file to load -- odbc (MissingSourceFile) from C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependenc ies.rb:490:in `new_constants_in' from C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependenc ies.rb:154:in `require' ------------------------------ What am I missing? -- Posted via http://www.ruby-forum.com/. From ivan at cloudslide.net Fri Jun 18 09:07:41 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Fri, 18 Jun 2010 15:07:41 +0200 Subject: [Ironruby-core] ironruby activerecord sqlserver In-Reply-To: <50e2bcef18c03197963ccfba01a3aa5a@ruby-forum.com> References: <50e2bcef18c03197963ccfba01a3aa5a@ruby-forum.com> Message-ID: the config is wrong http://github.com/casualjim/irontwitter/blob/master/config/database.yml http://github.com/casualjim/irontwitter/blob/master/config/environment.rb But I believe the official sqlserver-adapter that comes with rails has ironruby support now. Anyway ODBC is most likely the wrong choice. Unless you're using MRI on a non-windows system you want to use ADONET for .NET and ADO for MRI. The config for the rails sqlserver gem is the same as the one I'm showing. but the gems most likely aren't --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Fri, Jun 18, 2010 at 2:40 PM, Eduardo Blumenfeld wrote: > Hi all > > When running this ruby program: > ---------------------------------------------------- > require 'rubygems' > require 'active_record' > require 'yaml' > ActiveRecord::Base.establish_connection( > :adapter => 'sqlserver', > :database => 'xxxxx', > :username => 'sa', > :password => 'pass', > :mode => 'ODBC', > :host => "MYLAPTOP\\SQLSERVER") > > class User < ActiveRecord::Base > end > puts User.count > > > ---------------------------------------------------- > > These are the local gems installed: > ---------------------------------------------------- > actionmailer (2.3.8) > actionpack (2.3.8) > activerecord (2.3.8) > activerecord-sqlserver-adapter (2.3.8) > activeresource (2.3.8) > activesupport (2.3.8) > dbd-adonet (0.3.2) > dbd-adonet-sqlserver (0.3.2) > dbi (0.4.3) > deprecated (3.0.0) > rack (1.1.0) > rails (2.3.8) > rake (0.8.7) > ------------------------------------------------- > > I'm receiving the following error: > ------------------------------------------------- > WARNING: YAML.add_builtin_type is not implemented > > C:/Program Files/IronRuby > > 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in > `require': no such file to load -- odbc (MissingSourceFile) > from C:/Program Files/IronRuby > > 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependenc > ies.rb:490:in `new_constants_in' > from C:/Program Files/IronRuby > > 1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependenc > ies.rb:154:in `require' > > ------------------------------ > > What am I missing? > -- > 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 lists at ruby-forum.com Fri Jun 18 09:49:14 2010 From: lists at ruby-forum.com (Eduardo Blumenfeld) Date: Fri, 18 Jun 2010 15:49:14 +0200 Subject: [Ironruby-core] ironruby activerecord sqlserver In-Reply-To: References: <50e2bcef18c03197963ccfba01a3aa5a@ruby-forum.com> Message-ID: <81cb3d7a20646f1a53a808982eedcf06@ruby-forum.com> Thank you, Thank you, Thank you It works now!!! Eduardo PS: by the way when is the ETA of your book IronRuby in action? Ivan Porto Carrero wrote: > the config is wrong > > http://github.com/casualjim/irontwitter/blob/master/config/database.yml > > http://github.com/casualjim/irontwitter/blob/master/config/environment.rb > > But > I believe the official sqlserver-adapter that comes with rails has > ironruby > support now. > Anyway ODBC is most likely the wrong choice. Unless you're using MRI on > a > non-windows system you want to use ADONET for .NET and ADO for MRI. > > The config for the rails sqlserver gem is the same as the one I'm > showing. > but the gems most likely aren't > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > Microsoft IronRuby/C# MVP -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Fri Jun 18 12:32:06 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 18 Jun 2010 16:32:06 +0000 Subject: [Ironruby-core] Bundler In-Reply-To: <62f1bf5256e1be7e6eb19587657dc6b2@ruby-forum.com> References: <62f1bf5256e1be7e6eb19587657dc6b2@ruby-forum.com> Message-ID: Looks like IronRuby bug. This works in MRI but doesn't in IronRuby: module Kernel def gem end end module M Kernel.class_eval do p method(:gem) undef gem end end Will look at it. Thanks for reporting the issue. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Derek Ekins Sent: Friday, June 18, 2010 5:40 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Bundler I already am: require 'rubygems' require 'bundler' Bundler.setup I have also applied this fix (if it makes a difference) http://marcinobel.com/index.php/bug-invalid-exec_format-ir/ Other than that it is a fresh IronRuby 1.0 install -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Fri Jun 18 13:55:32 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 18 Jun 2010 17:55:32 +0000 Subject: [Ironruby-core] Code Review: WP7Fix Message-ID: tfpt review "/shelveset:WP7Fix;REDMOND\tomat" Comment : Avoid referring to DynamicMethod type on Compact Framework. Migrates WinPhone7 app to the LKG4 (.70) build. Tomas From will at hotgazpacho.org Sat Jun 19 00:11:54 2010 From: will at hotgazpacho.org (Will Green) Date: Sat, 19 Jun 2010 00:11:54 -0400 Subject: [Ironruby-core] RubySpec and Version Targeting Message-ID: So, I've finally started doing some work on code for the 30-something failing OpenSSL specs. The first one I've come across is openssl\cipher_spec. There are two different descriptions of the spec here: one for version up to 1.8.7, and one for 1.8.7 (I guess they changed the namespace of CipherError in 1.8.7). What I'm looking for is some guidance. Should I implement the 1.8.6 version, or the 1.8.7 version? If the latter, how do I tell mspec that it should be running as 1.8.7? Thanks! -- Will Green http://hotgazpacho.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Jun 19 03:12:42 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sat, 19 Jun 2010 07:12:42 +0000 Subject: [Ironruby-core] RubySpec and Version Targeting In-Reply-To: References: Message-ID: <3A95E0143832D94BA52A18A1406403E40F102152@TK5EX14MBXC123.redmond.corp.microsoft.com> If it's just a namespace change, I would target both using the RubyCompatibility flags that get set in the option parser. If you look around, you should be able to find examples related to encodings, enumerable or method names. Search for the file RubyCompatibility.cs, then search for uses of the enum. RubySpec gets its guard information from the version that the implementation reports, so in our case, passing the flag -187 to ir.exe puts us in 1.8.7 mode. Passing -T"-187" to mspec will cause mspec to pass that flag to ir. JD ________________________________ From: Will Green Sent: Friday, June 18, 2010 9:16 PM To: ironruby-core Subject: [Ironruby-core] RubySpec and Version Targeting So, I've finally started doing some work on code for the 30-something failing OpenSSL specs. The first one I've come across is openssl\cipher_spec. There are two different descriptions of the spec here: one for version up to 1.8.7, and one for 1.8.7 (I guess they changed the namespace of CipherError in 1.8.7). What I'm looking for is some guidance. Should I implement the 1.8.6 version, or the 1.8.7 version? If the latter, how do I tell mspec that it should be running as 1.8.7? Thanks! -- Will Green http://hotgazpacho.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sat Jun 19 12:43:30 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 19 Jun 2010 16:43:30 +0000 Subject: [Ironruby-core] RubySpec and Version Targeting In-Reply-To: <3A95E0143832D94BA52A18A1406403E40F102152@TK5EX14MBXC123.redmond.corp.microsoft.com> References: <3A95E0143832D94BA52A18A1406403E40F102152@TK5EX14MBXC123.redmond.corp.microsoft.com> Message-ID: I don't think it's worth the effort. We're targeting 1.9 for the next major release and I assume 1.9 is the same as 1.8.7 regarding CipherError so let's do whatever 1.9 does. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Saturday, June 19, 2010 12:13 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RubySpec and Version Targeting If it's just a namespace change, I would target both using the RubyCompatibility flags that get set in the option parser. If you look around, you should be able to find examples related to encodings, enumerable or method names. Search for the file RubyCompatibility.cs, then search for uses of the enum. RubySpec gets its guard information from the version that the implementation reports, so in our case, passing the flag -187 to ir.exe puts us in 1.8.7 mode. Passing -T"-187" to mspec will cause mspec to pass that flag to ir. JD ________________________________ From: Will Green Sent: Friday, June 18, 2010 9:16 PM To: ironruby-core Subject: [Ironruby-core] RubySpec and Version Targeting So, I've finally started doing some work on code for the 30-something failing OpenSSL specs. The first one I've come across is openssl\cipher_spec. There are two different descriptions of the spec here: one for version up to 1.8.7, and one for 1.8.7 (I guess they changed the namespace of CipherError in 1.8.7). What I'm looking for is some guidance. Should I implement the 1.8.6 version, or the 1.8.7 version? If the latter, how do I tell mspec that it should be running as 1.8.7? Thanks! -- Will Green http://hotgazpacho.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sat Jun 19 21:51:54 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 20 Jun 2010 01:51:54 +0000 Subject: [Ironruby-core] Code Review: UndefFix Message-ID: tfpt review "/shelveset:UndefFix;REDMOND\tomat" Comment : Fixes undef method lookup. Tomas From Tomas.Matousek at microsoft.com Sat Jun 19 22:43:40 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 20 Jun 2010 02:43:40 +0000 Subject: [Ironruby-core] Bundler In-Reply-To: References: <62f1bf5256e1be7e6eb19587657dc6b2@ruby-forum.com> Message-ID: Should be fixed now in our internal repo. You can apply the attached patch if you want to try it before we push the sources out. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Friday, June 18, 2010 9:32 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Bundler Looks like IronRuby bug. This works in MRI but doesn't in IronRuby: module Kernel def gem end end module M Kernel.class_eval do p method(:gem) undef gem end end Will look at it. Thanks for reporting the issue. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Derek Ekins Sent: Friday, June 18, 2010 5:40 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Bundler I already am: require 'rubygems' require 'bundler' Bundler.setup I have also applied this fix (if it makes a difference) http://marcinobel.com/index.php/bug-invalid-exec_format-ir/ Other than that it is a fresh IronRuby 1.0 install -- 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 From lists at ruby-forum.com Mon Jun 21 03:36:46 2010 From: lists at ruby-forum.com (Derek Ekins) Date: Mon, 21 Jun 2010 09:36:46 +0200 Subject: [Ironruby-core] Bundler In-Reply-To: References: <62f1bf5256e1be7e6eb19587657dc6b2@ruby-forum.com> Message-ID: <5f59dd3a6871400c48155bd141fbbd1e@ruby-forum.com> Tomas where do I find your internal repo? I had a look on github but there do not seem to be any recent commits. Tomas Matousek wrote: > Should be fixed now in our internal repo. You can apply the attached > patch if you want to try it before we push the sources out. > > Tomas -- Posted via http://www.ruby-forum.com/. From azamsharp at gmail.com Mon Jun 21 11:39:12 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Mon, 21 Jun 2010 10:39:12 -0500 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config Message-ID: I am using .NET 4.0 with IronRuby to invoke some methods on WatiN framework 2.0.10.928. I keep getting the following error when loading the WatiN assemblies: C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S spec testacc ountbalanceUI.rb C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in `require': A n attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so thi s load may be dangerous. If this load is not intended to sandbox the assembly, p lease enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlin k/?LinkId=155569 for more information. (LoadError) from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in `require' So, I went to the App.config file of my project and added the following lines: I tried running it again and encountered the same problem. Any ideas! -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Mon Jun 21 11:46:37 2010 From: will at hotgazpacho.org (Will Green) Date: Mon, 21 Jun 2010 11:46:37 -0400 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: References: Message-ID: Your app is not the thing trying to load that assembly, IronRuby is. So, you'll need to add that to IronRuby's app.config. That said, why are you trying to load an assembly from a network location in your tests? That is, IMO bad testing practice. -- Will Green http://hotgazpacho.org/ On Mon, Jun 21, 2010 at 11:39 AM, Mohammad Azam wrote: > I am using .NET 4.0 with IronRuby to invoke some methods on WatiN framework > 2.0.10.928. > > I keep getting the following error when loading the WatiN assemblies: > > > C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S spec > testacc > ountbalanceUI.rb > C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in > `require': A > n attempt was made to load an assembly from a network location which would > have > caused the assembly to be sandboxed in previous versions of the .NET > Framework. > This release of the .NET Framework does not enable CAS policy by default, > so thi > s load may be dangerous. If this load is not intended to sandbox the > assembly, p > lease enable the loadFromRemoteSources switch. See > http://go.microsoft.com/fwlin > k/?LinkId=155569 for more information. (LoadError) > from > C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in > `require' > > > So, I went to the App.config file of my project and added the following > lines: > > > > > > > > > > > I tried running it again and encountered the same problem. Any ideas! > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jun 21 11:49:20 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 21 Jun 2010 17:49:20 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: References: Message-ID: Will Green wrote: > Your app is not the thing trying to load that assembly, IronRuby is. So, > you'll need to add that to IronRuby's app.config. > > That said, why are you trying to load an assembly from a network > location in > your tests? That is, IMO bad testing practice. > > -- > Will Green > http://hotgazpacho.org/ I am not sure what you mean by IronRuby app.config. Where is IronRuby app.config located? I guess it should be in the installed folder of IronRuby. Also, I am just loading an assembly from my local machine. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Jun 21 11:51:45 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 21 Jun 2010 17:51:45 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: References: Message-ID: <13276cb0ab2df9bdb52cd7cb9be37b37@ruby-forum.com> Thanks for the help! I edited the IronRuby configuration file and now the error has disappeared. -- Posted via http://www.ruby-forum.com/. From ivan at cloudslide.net Mon Jun 21 11:56:10 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Mon, 21 Jun 2010 17:56:10 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: References: Message-ID: wherever you installed ironruby. it's called ir.exe.config for me in C:\ironruby\bin --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero On Mon, Jun 21, 2010 at 5:49 PM, Mohammad Azam wrote: > Will Green wrote: > > Your app is not the thing trying to load that assembly, IronRuby is. So, > > you'll need to add that to IronRuby's app.config. > > > > That said, why are you trying to load an assembly from a network > > location in > > your tests? That is, IMO bad testing practice. > > > > -- > > Will Green > > http://hotgazpacho.org/ > > I am not sure what you mean by IronRuby app.config. Where is IronRuby > app.config located? I guess it should be in the installed folder of > IronRuby. > > Also, I am just loading an assembly from my local machine. > > > -- > 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 lists at ruby-forum.com Mon Jun 21 12:06:14 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 21 Jun 2010 18:06:14 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: References: Message-ID: <95ef698b1e23409aa3c54421fae1d51b@ruby-forum.com> Got the first problem solved by editing the configuration file. Now, facing problem loading the Interop.SHDocVw assembly. Here is the complete code: require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' require File.dirname(__FILE__) + '/bin/Debug/WatiN.Core.dll' require File.dirname(__FILE__) + '/bin/Debug/Microsoft.mshtml.dll' require File.dirname(__FILE__) + '/bin/Debug/Interop.SHDocVw.dll' include BusinessObjects include WatiN describe Account, "when something happens" do before do IE = WatiN::Core::IE @ie = IE.new end it "should do something" do end end And here is the error: C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S spec testacc ountbalanceUI.rb F 1) Errno::ENOENT in 'BusinessObjects::Account when something happens should do some thing' Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutr al, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The system cann ot find the file specified. ./testaccountbalanceUI.rb:18: Finished in 0.148009 seconds 1 example, 1 failure -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Jun 21 12:13:41 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 21 Jun 2010 18:13:41 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: <95ef698b1e23409aa3c54421fae1d51b@ruby-forum.com> References: <95ef698b1e23409aa3c54421fae1d51b@ruby-forum.com> Message-ID: <146b7599efd51129218649e041ec1c47@ruby-forum.com> I created a new project in Visual Studio 2008 and tried running the same code and it worked without any problems. It did not gave me load error for the Interop.SHDocVw.dll. Looks like there are some issues with WatiN when using it on .NET 4.0 framework. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Jun 21 12:20:31 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 21 Jun 2010 18:20:31 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: <146b7599efd51129218649e041ec1c47@ruby-forum.com> References: <95ef698b1e23409aa3c54421fae1d51b@ruby-forum.com> <146b7599efd51129218649e041ec1c47@ruby-forum.com> Message-ID: <30dd6c1a2666f22e136a90264684ed31@ruby-forum.com> Actually facing the same problem on VS 2008. -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Mon Jun 21 12:21:45 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 21 Jun 2010 16:21:45 +0000 Subject: [Ironruby-core] Bundler In-Reply-To: <5f59dd3a6871400c48155bd141fbbd1e@ruby-forum.com> References: <62f1bf5256e1be7e6eb19587657dc6b2@ruby-forum.com> , <5f59dd3a6871400c48155bd141fbbd1e@ruby-forum.com> Message-ID: <3A95E0143832D94BA52A18A1406403E40F156585@TK5EX14MBXC130.redmond.corp.microsoft.com> This will be pushed out by end of the day. JD ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Derek Ekins [lists at ruby-forum.com] Sent: Monday, June 21, 2010 12:36 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Bundler Tomas where do I find your internal repo? I had a look on github but there do not seem to be any recent commits. Tomas Matousek wrote: > Should be fixed now in our internal repo. You can apply the attached > patch if you want to try it before we push the sources out. > > Tomas -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at cloudslide.net Mon Jun 21 12:32:09 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Mon, 21 Jun 2010 18:32:09 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: <30dd6c1a2666f22e136a90264684ed31@ruby-forum.com> References: <95ef698b1e23409aa3c54421fae1d51b@ruby-forum.com> <146b7599efd51129218649e041ec1c47@ruby-forum.com> <30dd6c1a2666f22e136a90264684ed31@ruby-forum.com> Message-ID: instead of requiring the files with path. maybe try to set the load path $:.unshift( File.dirname(__FILE__) + "/bin/Debug") require 'BusinessObjects.dll' require 'WatiN.Core.dll' require 'Microsoft.mshtml.dll' require 'Interop.SHDocVw.dll' I also think that the last 2 are redundant.. they should get picked up automatically by Watin.Core isn't it --- 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 Mon, Jun 21, 2010 at 6:20 PM, Mohammad Azam wrote: > Actually facing the same problem on VS 2008. > -- > 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 lists at ruby-forum.com Mon Jun 21 12:54:56 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 21 Jun 2010 18:54:56 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: References: <95ef698b1e23409aa3c54421fae1d51b@ruby-forum.com> <146b7599efd51129218649e041ec1c47@ruby-forum.com> <30dd6c1a2666f22e136a90264684ed31@ruby-forum.com> Message-ID: Ivan Porto Carrero wrote: > instead of requiring the files with path. maybe try to set the load path > > $:.unshift( File.dirname(__FILE__) + "/bin/Debug") > require 'BusinessObjects.dll' > require 'WatiN.Core.dll' > require 'Microsoft.mshtml.dll' > require 'Interop.SHDocVw.dll' > > I also think that the last 2 are redundant.. they should get picked up > automatically by Watin.Core isn't it > --- > 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 You are right! It should be loaded automatically but for some reason it is not. Here is my IronRuby code: require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' require File.dirname(__FILE__) + '/bin/Debug/WatiN.Core.dll' include BusinessObjects include WatiN describe Account, "when something happens" do before do IE = WatiN::Core::IE i = IE.new() end it "should do something" do end end And here is the error I get: C:\Projects\TestingIronRuby\BusinessObjects\BusinessObjects>ir -S spec testaccou ntbalanceUI.rb F 1) Errno::ENOENT in 'BusinessObjects::Account when something happens should do some thing' Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutr al, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The system cann ot find the file specified. ./testaccountbalanceUI.rb:19: Finished in 0.150009 seconds 1 example, 1 failure -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Jun 21 13:04:31 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 21 Jun 2010 19:04:31 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: References: <95ef698b1e23409aa3c54421fae1d51b@ruby-forum.com> <146b7599efd51129218649e041ec1c47@ruby-forum.com> <30dd6c1a2666f22e136a90264684ed31@ruby-forum.com> Message-ID: <514f869acb0902288c552d0e94dfe58b@ruby-forum.com> Ivan Porto Carrero wrote: > instead of requiring the files with path. maybe try to set the load path > > $:.unshift( File.dirname(__FILE__) + "/bin/Debug") > require 'BusinessObjects.dll' > require 'WatiN.Core.dll' > require 'Microsoft.mshtml.dll' > require 'Interop.SHDocVw.dll' > > I also think that the last 2 are redundant.. they should get picked up > automatically by Watin.Core isn't it > --- > 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 Hi Ivan, I tried it without the path and it worked instantly. Why is it different? I mean why does it not work when I include the path and why does it work when I set the load path? -- Posted via http://www.ruby-forum.com/. From ivan at cloudslide.net Mon Jun 21 13:45:24 2010 From: ivan at cloudslide.net (Ivan Porto Carrero) Date: Mon, 21 Jun 2010 19:45:24 +0200 Subject: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config In-Reply-To: References: <95ef698b1e23409aa3c54421fae1d51b@ruby-forum.com> <146b7599efd51129218649e041ec1c47@ruby-forum.com> <30dd6c1a2666f22e136a90264684ed31@ruby-forum.com> Message-ID: The load path basically determines where ir.exe looks for assemblies and files to load. if you do $LOAD_PATH.unshift(File.dirname(__FILE__) +"/bin/Debug") and then require Watin.Core.dll the CLR knows where to look for your DLL's including the referenced assemblies You might have gotten a correct result by including your assemblies in the inverted order too So either you do : $LOAD_PATH.unshift(File.dirname(__FILE__) +"/bin/Debug") require 'BusinessObjects.dll' require 'WatiN.Core.dll' or this might work too: require File.dirname(__FILE__) +"/bin/Debug/Interop.SHDocVw.dll" require File.dirname(__FILE__) +"/bin/Debug/Microsoft.mshtml.dll" require File.dirname(__FILE__) +"/bin/Debug/BusinessObjects.dll" require File.dirname(__FILE__) +"/bin/Debug/WatiN.Core.dll" --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero On Mon, Jun 21, 2010 at 6:54 PM, Mohammad Azam wrote: > Ivan Porto Carrero wrote: > > instead of requiring the files with path. maybe try to set the load path > > > > $:.unshift( File.dirname(__FILE__) + "/bin/Debug") > > require 'BusinessObjects.dll' > > require 'WatiN.Core.dll' > > require 'Microsoft.mshtml.dll' > > require 'Interop.SHDocVw.dll' > > > > I also think that the last 2 are redundant.. they should get picked up > > automatically by Watin.Core isn't it > > --- > > 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 > > > You are right! It should be loaded automatically but for some reason it > is not. Here is my IronRuby code: > > > require 'rubygems' > require 'spec' > > require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' > require File.dirname(__FILE__) + '/bin/Debug/WatiN.Core.dll' > > include BusinessObjects > include WatiN > > describe Account, "when something happens" do > > before do > > IE = WatiN::Core::IE > > i = IE.new() > > end > > it "should do something" do > > > > end > > end > > > > And here is the error I get: > > C:\Projects\TestingIronRuby\BusinessObjects\BusinessObjects>ir -S spec > testaccou > ntbalanceUI.rb > F > > 1) > Errno::ENOENT in 'BusinessObjects::Account when something happens should > do some > thing' > Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, > Culture=neutr > al, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The > system cann > ot find the file specified. > ./testaccountbalanceUI.rb:19: > > Finished in 0.150009 seconds > > 1 example, 1 failure > > > > > -- > 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 will at hotgazpacho.org Mon Jun 21 20:16:31 2010 From: will at hotgazpacho.org (Will Green) Date: Mon, 21 Jun 2010 20:16:31 -0400 Subject: [Ironruby-core] OpenSSL Message-ID: Hello, everyone! After flailing about a bit this weekend with my utter lack of understanding of cryptography in general, I've started work on fleshing out OpenSSL support. I'll be working on it here: http://github.com/hotgazpacho/ironruby/tree/openssl I've written some code, more than I probably should have without specs first :-P As this is my first stab at writing extensions for IronRuby, I would appreciate it someone from the core team could take a quick look at it and make sure I'm headed down the right path. Now that I have a better handle as to what is going on, I'm going to proceed with some spec writing, based off of the MRI C code, found here: http://github.com/ruby/ruby/tree/ruby_1_8_7/ext/openssl Before I get too far, should I be targeting 1.8.7, or something in the 1.9 series? I haven't checked to see how/if they differ, but I'd like to target one for now to get a base down, and perform an necessary porting later. One more question: When defining Ruby properties, do I need to define a static C# method for each of the get and set methods, like so: http://gist.github.com/447738 or is there a way to define a property on an underlying C# object, and mark it with a single attribute for get and set, like so: http://gist.github.com/447733 Thanks! -- Will Green http://hotgazpacho.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jun 21 21:23:07 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 22 Jun 2010 01:23:07 +0000 Subject: [Ironruby-core] OpenSSL In-Reply-To: References: Message-ID: You?re heading the right direction and thanks for taking care of this module! A few comments: - RSA constructors: does Ruby convert any parameters via to_s, to_str, etc.? If so you?ll need to use [DefaultProtocol] attribute or other appropriate conversions. The easiest way how to find out what conversions are used in MRI is like so: class C def respond_to? name puts name false end end RSA.new (C.new, C.new, C.new) - These are not very efficient: private static byte[] PemToDer(string pem_encoded_key) { private static string DerToPem(byte[] der_data, bool isPrivate) { You can use RubyEncoder class to encode/decode base64 (ReadBase64, WriteBase64). It might need some tweaks but that?s all right, feel free to change it. - The methods ?n?, ?e?, etc. should return MutableString instead of byte[]. Byte[] is not a native Ruby type. - You shouldn?t catch all exceptions in DecodeRSAPrivateKey, especially when you?re throwing them in the same method: catch (Exception) { return new RSAParameters(); } Does Ruby throw any exceptions there? Which? - This could be done better using shift operator: byte[] modint = { lowbyte, highbyte, 0x00, 0x00 }; count = BitConverter.ToInt32(modint, 0); count = (lowbyte << 24) | (highbyte << 16) - Our coding convention is to use braces consistently and ?else?, ?finally?, ?catch? etc. right next to closing brace: if (bt == 0x81) { count = binr.ReadByte(); // data size in next byte } else { As for compat, I?d target 1.9 first. Write specs and run them against both MRIs. Then we can decide based upon how much they differ. Accessors ? this is the pattern we currently use: http://gist.github.com/447738 Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Monday, June 21, 2010 5:17 PM To: ironruby-core Subject: [Ironruby-core] OpenSSL Hello, everyone! After flailing about a bit this weekend with my utter lack of understanding of cryptography in general, I've started work on fleshing out OpenSSL support. I'll be working on it here: http://github.com/hotgazpacho/ironruby/tree/openssl I've written some code, more than I probably should have without specs first :-P As this is my first stab at writing extensions for IronRuby, I would appreciate it someone from the core team could take a quick look at it and make sure I'm headed down the right path. Now that I have a better handle as to what is going on, I'm going to proceed with some spec writing, based off of the MRI C code, found here: http://github.com/ruby/ruby/tree/ruby_1_8_7/ext/openssl Before I get too far, should I be targeting 1.8.7, or something in the 1.9 series? I haven't checked to see how/if they differ, but I'd like to target one for now to get a base down, and perform an necessary porting later. One more question: When defining Ruby properties, do I need to define a static C# method for each of the get and set methods, like so: http://gist.github.com/447738 or is there a way to define a property on an underlying C# object, and mark it with a single attribute for get and set, like so: http://gist.github.com/447733 Thanks! -- Will Green http://hotgazpacho.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Mon Jun 21 22:34:04 2010 From: will at hotgazpacho.org (Will Green) Date: Mon, 21 Jun 2010 22:34:04 -0400 Subject: [Ironruby-core] OpenSSL In-Reply-To: References: Message-ID: Thanks for the feedback, Tomas! Please pardon the poor coding; I was more concerned with wrapping my head around cryptography than producing good code (it should probably be considered more of a spike than anything). I will definitely correct those, as well as take a look at the areas you mentioned. Looking forward to fleshing this out; OpenSSL is a necessary library for a number of cool Ruby libs (Capistrano) and platforms (Heroku). -- Will Green http://hotgazpacho.org/ On Mon, Jun 21, 2010 at 9:23 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > You?re heading the right direction and thanks for taking care of this > module! > > > > A few comments: > > - RSA constructors: does Ruby convert any parameters via to_s, > to_str, etc.? If so you?ll need to use [DefaultProtocol] attribute or other > appropriate conversions. The easiest way how to find out what conversions > are used in MRI is like so: > > > > class C > > def respond_to? name > > puts name > > false > > end > > end > > > > RSA.new (C.new, C.new, C.new) > > > > - These are not very efficient: > > > > private static byte[] PemToDer(string pem_encoded_key) { > > private static string DerToPem(byte[] der_data, bool > isPrivate) { > > > > You can use RubyEncoder class to encode/decode base64 (ReadBase64, > WriteBase64). It might need some tweaks but that?s all right, feel free to > change it. > > > > - The methods ?n?, ?e?, etc. should return MutableString instead > of byte[]. Byte[] is not a native Ruby type. > > - You shouldn?t catch all exceptions in DecodeRSAPrivateKey, > especially when you?re throwing them in the same method: > > catch (Exception) { > > return new RSAParameters(); > > } > > Does Ruby throw any exceptions there? Which? > > - This could be done better using shift operator: > > byte[] modint = { lowbyte, highbyte, 0x00, 0x00 }; > > count = BitConverter.ToInt32(modint, 0); > > > > count = (lowbyte << 24) | (highbyte << 16) > > - Our coding convention is to use braces consistently and ?else?, > ?finally?, ?catch? etc. right next to closing brace: > > if (bt == 0x81) *{* > > count = binr.ReadByte(); // data size in next > byte > > *}* else { > > > > As for compat, I?d target 1.9 first. Write specs and run them against both > MRIs. Then we can decide based upon how much they differ. > > > > Accessors ? this is the pattern we currently use: > > http://gist.github.com/447738 > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Will Green > *Sent:* Monday, June 21, 2010 5:17 PM > *To:* ironruby-core > *Subject:* [Ironruby-core] OpenSSL > > > > Hello, everyone! > > > > After flailing about a bit this weekend with my utter lack of understanding > of cryptography in general, I've started work on fleshing out OpenSSL > support. I'll be working on it here: > http://github.com/hotgazpacho/ironruby/tree/openssl > > > > I've written some code, more than I probably should have without specs > first :-P As this is my first stab at writing extensions for IronRuby, I > would appreciate it someone from the core team could take a quick look at it > and make sure I'm headed down the right path. > > > > Now that I have a better handle as to what is going on, I'm going to > proceed with some spec writing, based off of the MRI C code, found here: > http://github.com/ruby/ruby/tree/ruby_1_8_7/ext/openssl > > > > Before I get too far, should I be targeting 1.8.7, or something in the 1.9 > series? I haven't checked to see how/if they differ, but I'd like to target > one for now to get a base down, and perform an necessary porting later. > > > > One more question: When defining Ruby properties, do I need to define a > static C# method for each of the get and set methods, like so: > > http://gist.github.com/447738 > > or is there a way to define a property on an underlying C# object, and mark > it with a single attribute for get and set, like so: > > http://gist.github.com/447733 > > > > Thanks! > > > > -- > Will Green > http://hotgazpacho.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 jdeville at microsoft.com Mon Jun 21 23:04:08 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 22 Jun 2010 03:04:08 +0000 Subject: [Ironruby-core] OpenSSL Message-ID: <3A95E0143832D94BA52A18A1406403E40F160F31@TK5EX14MBXC130.redmond.corp.microsoft.com> I'll see if I can include our vssettings file in tomorrows (and future) pushes ________________________________ From: Will Green Sent: Monday, June 21, 2010 7:43 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] OpenSSL -------------- next part -------------- An HTML attachment was scrubbed... URL: From azamsharp at gmail.com Wed Jun 23 14:04:35 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Wed, 23 Jun 2010 13:04:35 -0500 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 Message-ID: What are the steps of running Cucumber with IronRuby? Do I need to make a separate batch file called ICucumber.bat and then invoke it. Here is my ICucumber.bat file: @ECHO OFF REM This is to tell IronRuby where to find gems. SET MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* Any ideas? -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Wed Jun 23 15:05:16 2010 From: will at hotgazpacho.org (Will Green) Date: Wed, 23 Jun 2010 15:05:16 -0400 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: References: Message-ID: There is an issue with the Gherkin parser used by Cucumber. Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native code) parser. It is slower, but it works. http://github.com/aslakhellesoy/gherkin/issues/issue/63 -- Will Green http://hotgazpacho.org/ On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam wrote: > What are the steps of running Cucumber with IronRuby? Do I need to make a > separate batch file called ICucumber.bat and then invoke it. Here is my > ICucumber.bat file: > > @ECHO OFF > REM This is to tell IronRuby where to find gems. > SET > MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib > SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 > @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* > > Any ideas? > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From azamsharp at gmail.com Wed Jun 23 15:27:59 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Wed, 23 Jun 2010 14:27:59 -0500 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: References: Message-ID: I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 folder but now when I run the following command. c: cucumber I get the following error: no such file to load -- c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber On Wed, Jun 23, 2010 at 2:05 PM, Will Green wrote: > There is an issue with the Gherkin parser used by Cucumber. > > Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native > code) parser. It is slower, but it works. > > http://github.com/aslakhellesoy/gherkin/issues/issue/63 > > -- > Will Green > http://hotgazpacho.org/ > > > On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam wrote: > >> What are the steps of running Cucumber with IronRuby? Do I need to make a >> separate batch file called ICucumber.bat and then invoke it. Here is my >> ICucumber.bat file: >> >> @ECHO OFF >> REM This is to tell IronRuby where to find gems. >> SET >> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >> >> Any ideas? >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> _______________________________________________ >> Ironruby-core 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 > > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From defeated2k4 at gmail.com Wed Jun 23 15:39:07 2010 From: defeated2k4 at gmail.com (Eddie Cianci) Date: Wed, 23 Jun 2010 15:39:07 -0400 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: References: Message-ID: Hi Mohammad -- That looks like your Ruby not IronRuby ... Try running: ir -S cucumber On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam wrote: > I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now when I run the following command. > > c: cucumber > > I get the following error: > > no such file to load -- > c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber > > > > On Wed, Jun 23, 2010 at 2:05 PM, Will Green wrote: > >> There is an issue with the Gherkin parser used by Cucumber. >> >> Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated >> (native code) parser. It is slower, but it works. >> >> http://github.com/aslakhellesoy/gherkin/issues/issue/63 >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam wrote: >> >>> What are the steps of running Cucumber with IronRuby? Do I need to make a >>> separate batch file called ICucumber.bat and then invoke it. Here is my >>> ICucumber.bat file: >>> >>> @ECHO OFF >>> REM This is to tell IronRuby where to find gems. >>> SET >>> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >>> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >>> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >>> >>> Any ideas? >>> >>> >>> >>> -- >>> Mohammad Azam >>> MVP (Microsoft Valuable Professional) >>> www.highoncoding.com >>> www.azamsharp.com >>> >>> _______________________________________________ >>> Ironruby-core 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 >> >> > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From azamsharp at gmail.com Wed Jun 23 15:56:03 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Wed, 23 Jun 2010 14:56:03 -0500 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: References: Message-ID: That might be the thing!! What does that -S stands for and where is it documented? Do I still need to make the icucumber.bat I guess not? On Wed, Jun 23, 2010 at 2:39 PM, Eddie Cianci wrote: > Hi Mohammad -- > > That looks like your Ruby not IronRuby ... Try running: > > ir -S cucumber > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam wrote: > >> I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 >> folder but now when I run the following command. >> >> c: cucumber >> >> I get the following error: >> >> no such file to load -- >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber >> >> >> >> On Wed, Jun 23, 2010 at 2:05 PM, Will Green wrote: >> >>> There is an issue with the Gherkin parser used by Cucumber. >>> >>> Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated >>> (native code) parser. It is slower, but it works. >>> >>> http://github.com/aslakhellesoy/gherkin/issues/issue/63 >>> >>> -- >>> Will Green >>> http://hotgazpacho.org/ >>> >>> >>> On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam wrote: >>> >>>> What are the steps of running Cucumber with IronRuby? Do I need to make >>>> a separate batch file called ICucumber.bat and then invoke it. Here is my >>>> ICucumber.bat file: >>>> >>>> @ECHO OFF >>>> REM This is to tell IronRuby where to find gems. >>>> SET >>>> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >>>> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >>>> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >>>> >>>> Any ideas? >>>> >>>> >>>> >>>> -- >>>> Mohammad Azam >>>> MVP (Microsoft Valuable Professional) >>>> www.highoncoding.com >>>> www.azamsharp.com >>>> >>>> _______________________________________________ >>>> Ironruby-core 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 >>> >>> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Jun 23 16:28:28 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 23 Jun 2010 20:28:28 +0000 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby implementation, which is those stack traces come from c:\ruby. Azam, first off, I?d recommend using the IronRuby 1.0 installer and not changing any other settings, like GEM_PATH; you?ll just run into these simple configuration issues, and we all know how you don?t like configuration. =) Also, we?d prefer not to answer these configuration issues, so please used the installer. So, no need for a icucumber.bat file ? just do ?igem install cucumber -v0.6.4? (from an elevated command prompt). Then just running ?cucumber? will run against IronRuby. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eddie Cianci Sent: Wednesday, June 23, 2010 12:39 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Cucumber with IronRuby V 1.0 Hi Mohammad -- That looks like your Ruby not IronRuby ... Try running: ir -S cucumber On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam > wrote: I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 folder but now when I run the following command. c: cucumber I get the following error: no such file to load -- c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber On Wed, Jun 23, 2010 at 2:05 PM, Will Green > wrote: There is an issue with the Gherkin parser used by Cucumber. Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native code) parser. It is slower, but it works. http://github.com/aslakhellesoy/gherkin/issues/issue/63 -- Will Green http://hotgazpacho.org/ On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam > wrote: What are the steps of running Cucumber with IronRuby? Do I need to make a separate batch file called ICucumber.bat and then invoke it. Here is my ICucumber.bat file: @ECHO OFF REM This is to tell IronRuby where to find gems. SET MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* Any ideas? -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core 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 -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Jun 23 16:30:57 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 23 Jun 2010 20:30:57 +0000 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921740A176@TK5EX14MBXC138.redmond.corp.microsoft.com> Note: if you have Ruby installed, it will still be ahead of IronRuby in the OS Path, so you?ll have to do ?ir -S cucumber?. To answer your question on the previous thread, it?s documented on the ir.exe directly (ir.exe /?). From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, June 23, 2010 1:28 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Cucumber with IronRuby V 1.0 No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby implementation, which is those stack traces come from c:\ruby. Azam, first off, I?d recommend using the IronRuby 1.0 installer and not changing any other settings, like GEM_PATH; you?ll just run into these simple configuration issues, and we all know how you don?t like configuration. =) Also, we?d prefer not to answer these configuration issues, so please used the installer. So, no need for a icucumber.bat file ? just do ?igem install cucumber -v0.6.4? (from an elevated command prompt). Then just running ?cucumber? will run against IronRuby. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eddie Cianci Sent: Wednesday, June 23, 2010 12:39 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Cucumber with IronRuby V 1.0 Hi Mohammad -- That looks like your Ruby not IronRuby ... Try running: ir -S cucumber On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam > wrote: I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 folder but now when I run the following command. c: cucumber I get the following error: no such file to load -- c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber On Wed, Jun 23, 2010 at 2:05 PM, Will Green > wrote: There is an issue with the Gherkin parser used by Cucumber. Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native code) parser. It is slower, but it works. http://github.com/aslakhellesoy/gherkin/issues/issue/63 -- Will Green http://hotgazpacho.org/ On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam > wrote: What are the steps of running Cucumber with IronRuby? Do I need to make a separate batch file called ICucumber.bat and then invoke it. Here is my ICucumber.bat file: @ECHO OFF REM This is to tell IronRuby where to find gems. SET MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* Any ideas? -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core 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 -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From azamsharp at gmail.com Wed Jun 23 21:53:35 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Wed, 23 Jun 2010 19:53:35 -0600 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC921740A176@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740A176@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: I swear I got it running at work but I got home booted my computer and ran the following: ir -S cucumber and I got the following: C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S cucumber C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:827:in `report_activate_error': C ould not find RubyGem treetop (>= 1.4.2)\n (Gem::LoadError) from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:261:in `activate' from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:296:in `activate' from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `each' from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `activate' from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:68:in `gem' from c:/ruby/bin/cucumber:18 On Wed, Jun 23, 2010 at 2:30 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Note: if you have Ruby installed, it will still be ahead of IronRuby in > the OS Path, so you?ll have to do ?ir -S cucumber?. To answer your question > on the previous thread, it?s documented on the ir.exe directly (ir.exe /?). > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jimmy Schementi > *Sent:* Wednesday, June 23, 2010 1:28 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby > implementation, which is those stack traces come from c:\ruby. > > > > Azam, first off, I?d recommend using the IronRuby 1.0 installer and not > changing any other settings, like GEM_PATH; you?ll just run into these > simple configuration issues, and we all know how you don?t like > configuration. =) Also, we?d prefer not to answer these configuration > issues, so please used the installer. > > > > So, no need for a icucumber.bat file ? just do ?igem install cucumber > -v0.6.4? (from an *elevated* command prompt). Then just running ?cucumber? > will run against IronRuby. > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci > *Sent:* Wednesday, June 23, 2010 12:39 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > Hi Mohammad -- > > > > That looks like your Ruby not IronRuby ... Try running: > > > > ir -S cucumber > > > > > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam > wrote: > > I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now when I run the following command. > > > > c: cucumber > > > > I get the following error: > > > > no such file to load -- > c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber > > > > > > On Wed, Jun 23, 2010 at 2:05 PM, Will Green wrote: > > There is an issue with the Gherkin parser used by Cucumber. > > > > Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native > code) parser. It is slower, but it works. > > > > http://github.com/aslakhellesoy/gherkin/issues/issue/63 > > > -- > Will Green > http://hotgazpacho.org/ > > On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam > wrote: > > What are the steps of running Cucumber with IronRuby? Do I need to make a > separate batch file called ICucumber.bat and then invoke it. Here is my > ICucumber.bat file: > > > > @ECHO OFF > > REM This is to tell IronRuby where to find gems. > > SET > MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib > > SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 > > @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* > > > > Any ideas? > > > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > _______________________________________________ > Ironruby-core 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 > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From azamsharp at gmail.com Wed Jun 23 22:06:08 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Wed, 23 Jun 2010 20:06:08 -0600 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740A176@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Weird! I download the treetop gem and it started working again. Maybe it has something to do with my BLUE screen of death on Windows 7. On Wed, Jun 23, 2010 at 7:53 PM, Mohammad Azam wrote: > I swear I got it running at work but I got home booted my computer and ran > the following: > > ir -S cucumber > > and I got the following: > > > C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S > cucumber > C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:827:in > `report_activate_error': C > ould not find RubyGem treetop (>= 1.4.2)\n (Gem::LoadError) > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:261:in > `activate' > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:296:in > `activate' > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `each' > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in > `activate' > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:68:in `gem' > from c:/ruby/bin/cucumber:18 > > On Wed, Jun 23, 2010 at 2:30 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> Note: if you have Ruby installed, it will still be ahead of IronRuby in >> the OS Path, so you?ll have to do ?ir -S cucumber?. To answer your question >> on the previous thread, it?s documented on the ir.exe directly (ir.exe /?). >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jimmy Schementi >> *Sent:* Wednesday, June 23, 2010 1:28 PM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 >> >> >> >> No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby >> implementation, which is those stack traces come from c:\ruby. >> >> >> >> Azam, first off, I?d recommend using the IronRuby 1.0 installer and not >> changing any other settings, like GEM_PATH; you?ll just run into these >> simple configuration issues, and we all know how you don?t like >> configuration. =) Also, we?d prefer not to answer these configuration >> issues, so please used the installer. >> >> >> >> So, no need for a icucumber.bat file ? just do ?igem install cucumber >> -v0.6.4? (from an *elevated* command prompt). Then just running >> ?cucumber? will run against IronRuby. >> >> >> >> ~Jimmy >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci >> *Sent:* Wednesday, June 23, 2010 12:39 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 >> >> >> >> Hi Mohammad -- >> >> >> >> That looks like your Ruby not IronRuby ... Try running: >> >> >> >> ir -S cucumber >> >> >> >> >> >> >> >> On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam >> wrote: >> >> I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 >> folder but now when I run the following command. >> >> >> >> c: cucumber >> >> >> >> I get the following error: >> >> >> >> no such file to load -- >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber >> >> >> >> >> >> On Wed, Jun 23, 2010 at 2:05 PM, Will Green wrote: >> >> There is an issue with the Gherkin parser used by Cucumber. >> >> >> >> Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated >> (native code) parser. It is slower, but it works. >> >> >> >> http://github.com/aslakhellesoy/gherkin/issues/issue/63 >> >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam >> wrote: >> >> What are the steps of running Cucumber with IronRuby? Do I need to make >> a separate batch file called ICucumber.bat and then invoke it. Here is my >> ICucumber.bat file: >> >> >> >> @ECHO OFF >> >> REM This is to tell IronRuby where to find gems. >> >> SET >> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >> >> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >> >> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >> >> >> >> Any ideas? >> >> >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> >> _______________________________________________ >> Ironruby-core 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 >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Wed Jun 23 22:15:36 2010 From: will at hotgazpacho.org (Will Green) Date: Wed, 23 Jun 2010 22:15:36 -0400 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: I've noticed that my recent addition of the ironruby.rb file in %IronRuby%\lib\ruby\site_ruby\1.8\rubygems\defaults for Gem.default_exec_format allows RubyGems to set the correct variables in the scripts that a gem installs, such that you no longer need to do ir -S scriptname and you can instead do scriptname and it will be properly executed by IronRuby. Note that this only applies to gems installed after you add the ironruby.rb file. -- Will Green http://hotgazpacho.org/ On Wed, Jun 23, 2010 at 4:28 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby > implementation, which is those stack traces come from c:\ruby. > > > > Azam, first off, I?d recommend using the IronRuby 1.0 installer and not > changing any other settings, like GEM_PATH; you?ll just run into these > simple configuration issues, and we all know how you don?t like > configuration. =) Also, we?d prefer not to answer these configuration > issues, so please used the installer. > > > > So, no need for a icucumber.bat file ? just do ?igem install cucumber > -v0.6.4? (from an *elevated* command prompt). Then just running ?cucumber? > will run against IronRuby. > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci > *Sent:* Wednesday, June 23, 2010 12:39 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > Hi Mohammad -- > > > > That looks like your Ruby not IronRuby ... Try running: > > > > ir -S cucumber > > > > > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam > wrote: > > I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now when I run the following command. > > > > c: cucumber > > > > I get the following error: > > > > no such file to load -- > c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber > > > > > > On Wed, Jun 23, 2010 at 2:05 PM, Will Green wrote: > > There is an issue with the Gherkin parser used by Cucumber. > > > > Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native > code) parser. It is slower, but it works. > > > > http://github.com/aslakhellesoy/gherkin/issues/issue/63 > > > -- > Will Green > http://hotgazpacho.org/ > > On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam > wrote: > > What are the steps of running Cucumber with IronRuby? Do I need to make a > separate batch file called ICucumber.bat and then invoke it. Here is my > ICucumber.bat file: > > > > @ECHO OFF > > REM This is to tell IronRuby where to find gems. > > SET > MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib > > SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 > > @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* > > > > Any ideas? > > > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > _______________________________________________ > Ironruby-core 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 > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > 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 azamsharp at gmail.com Wed Jun 23 23:16:39 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Wed, 23 Jun 2010 21:16:39 -0600 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: BTW I did use the installer. On Wed, Jun 23, 2010 at 2:28 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby > implementation, which is those stack traces come from c:\ruby. > > > > Azam, first off, I?d recommend using the IronRuby 1.0 installer and not > changing any other settings, like GEM_PATH; you?ll just run into these > simple configuration issues, and we all know how you don?t like > configuration. =) Also, we?d prefer not to answer these configuration > issues, so please used the installer. > > > > So, no need for a icucumber.bat file ? just do ?igem install cucumber > -v0.6.4? (from an *elevated* command prompt). Then just running ?cucumber? > will run against IronRuby. > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci > *Sent:* Wednesday, June 23, 2010 12:39 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > Hi Mohammad -- > > > > That looks like your Ruby not IronRuby ... Try running: > > > > ir -S cucumber > > > > > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam > wrote: > > I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now when I run the following command. > > > > c: cucumber > > > > I get the following error: > > > > no such file to load -- > c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber > > > > > > On Wed, Jun 23, 2010 at 2:05 PM, Will Green wrote: > > There is an issue with the Gherkin parser used by Cucumber. > > > > Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native > code) parser. It is slower, but it works. > > > > http://github.com/aslakhellesoy/gherkin/issues/issue/63 > > > -- > Will Green > http://hotgazpacho.org/ > > On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam > wrote: > > What are the steps of running Cucumber with IronRuby? Do I need to make a > separate batch file called ICucumber.bat and then invoke it. Here is my > ICucumber.bat file: > > > > @ECHO OFF > > REM This is to tell IronRuby where to find gems. > > SET > MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib > > SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 > > @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* > > > > Any ideas? > > > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > _______________________________________________ > Ironruby-core 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 > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From azamsharp at gmail.com Wed Jun 23 23:17:18 2010 From: azamsharp at gmail.com (Mohammad Azam) Date: Wed, 23 Jun 2010 21:17:18 -0600 Subject: [Ironruby-core] Cucumber with IronRuby V 1.0 In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC921740A118@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Thanks Will! I think I will go with ir -S rubygem. Thanks, Azam On Wed, Jun 23, 2010 at 8:15 PM, Will Green wrote: > I've noticed that my recent addition of the ironruby.rb file in > %IronRuby%\lib\ruby\site_ruby\1.8\rubygems\defaults for > Gem.default_exec_format allows RubyGems to set the correct variables in the > scripts that a gem installs, such that you no longer need to do > > ir -S scriptname > > and you can instead do > > scriptname > > and it will be properly executed by IronRuby. > > Note that this only applies to gems installed after you add the ironruby.rb > file. > > -- > Will Green > http://hotgazpacho.org/ > > > On Wed, Jun 23, 2010 at 4:28 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby >> implementation, which is those stack traces come from c:\ruby. >> >> >> >> Azam, first off, I?d recommend using the IronRuby 1.0 installer and not >> changing any other settings, like GEM_PATH; you?ll just run into these >> simple configuration issues, and we all know how you don?t like >> configuration. =) Also, we?d prefer not to answer these configuration >> issues, so please used the installer. >> >> >> >> So, no need for a icucumber.bat file ? just do ?igem install cucumber >> -v0.6.4? (from an *elevated* command prompt). Then just running >> ?cucumber? will run against IronRuby. >> >> >> >> ~Jimmy >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci >> *Sent:* Wednesday, June 23, 2010 12:39 PM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 >> >> >> >> Hi Mohammad -- >> >> >> >> That looks like your Ruby not IronRuby ... Try running: >> >> >> >> ir -S cucumber >> >> >> >> >> >> >> >> On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam >> wrote: >> >> I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 >> folder but now when I run the following command. >> >> >> >> c: cucumber >> >> >> >> I get the following error: >> >> >> >> no such file to load -- >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber >> >> >> >> >> >> On Wed, Jun 23, 2010 at 2:05 PM, Will Green wrote: >> >> There is an issue with the Gherkin parser used by Cucumber. >> >> >> >> Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated >> (native code) parser. It is slower, but it works. >> >> >> >> http://github.com/aslakhellesoy/gherkin/issues/issue/63 >> >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam >> wrote: >> >> What are the steps of running Cucumber with IronRuby? Do I need to make >> a separate batch file called ICucumber.bat and then invoke it. Here is my >> ICucumber.bat file: >> >> >> >> @ECHO OFF >> >> REM This is to tell IronRuby where to find gems. >> >> SET >> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >> >> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >> >> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >> >> >> >> Any ideas? >> >> >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> >> _______________________________________________ >> Ironruby-core 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 >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> _______________________________________________ >> 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 > > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Jun 24 17:15:56 2010 From: lists at ruby-forum.com (Roger Sperberg) Date: Thu, 24 Jun 2010 23:15:56 +0200 Subject: [Ironruby-core] =?utf-8?q?Visual_Ruby_/_Ruby_in_Steel_=E2=80=94_w?= =?utf-8?b?aGF0J3MgdXA/?= Message-ID: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> I'd like to use Visual Studio to work with IronRuby projects. (As a developer and in Ruby, I'm a relative beginner; the group I'm working with is committed to using VS.) Am I correct in understanding that, up until recently, the way to get IR integrated most thoroughly into VS was through Ruby in Steel? I've read the back-and-forth about Microsoft's non-commitment to a making a Ruby equivalent of Visual Python. As a practical matter, if I get the Text edition of Ruby in Steel will that provide the essential features I would want to integrate XAML work with Ruby coding? Has anything changed on the Microsoft end that would settle whether a Visual Ruby will appear? Thanks, Roger Sperberg -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Jun 24 19:50:21 2010 From: lists at ruby-forum.com (Eduardo Blumenfeld) Date: Fri, 25 Jun 2010 01:50:21 +0200 Subject: [Ironruby-core] =?utf-8?q?Visual_Ruby_/_Ruby_in_Steel_=E2=80=94_w?= =?utf-8?b?aGF0J3MgdXA/?= In-Reply-To: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> Message-ID: <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> Roger Sperberg wrote: > I'd like to use Visual Studio to work with IronRuby projects. (As a > developer and in Ruby, I'm a relative beginner; the group I'm working > with is committed to using VS.) > > Am I correct in understanding that, up until recently, the way to get IR > integrated most thoroughly into VS was through Ruby in Steel? > > I've read the back-and-forth about Microsoft's non-commitment to a > making a Ruby equivalent of Visual Python. > > As a practical matter, if I get the Text edition of Ruby in Steel will > that provide the essential features I would want to integrate XAML work > with Ruby coding? > > Has anything changed on the Microsoft end that would settle whether a > Visual Ruby will appear? > > Thanks, > > Roger Sperberg Unfortunately several months ago ruby in steel decided to stop giving support to IronRuby, I hope they change their mind in the near future. I would like to add to the list of questions whether Ruby in Steel does have support to Visual Studio 2010 (regardless of the fact that for now they don't support ironruby). Thank you, (and sorry Roger for adding to your question another one and not being helpful for you) Eduardo Blumenfeld -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Jun 24 22:04:41 2010 From: lists at ruby-forum.com (Roger Pack) Date: Fri, 25 Jun 2010 04:04:41 +0200 Subject: [Ironruby-core] bug? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Jimmy Schementi wrote: >> Ok sounds good. >> A couple of feedback items for the installer, then: >> 1) default to a path without spaces, perhaps > > Does installing to "Program Files" actually cause issues? Other than > needing to quote the path to ir.exe? C:\dev\digitalarchive_trunk>ir -S gem install faster_rubygems Building native extensions. This could take a while... ERROR: Error installing faster_rubygems: ERROR: Failed to build gem native extension. "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" mkrf_conf.rb Installed--thank you for trying out faster_rubygems recreating all faster_rubygems caches faster_rubygems: creating caches . . "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" -rubygems C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake RUBYARCHDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.2/lib" RUBYLIBDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.2/lib" unknown: Could not find file 'C:\Program'. (Errno::ENOENT) Gem files will remain installed in C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.2 for inspection. Results logged to C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.2/ext/gem_make.out -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Fri Jun 25 03:06:36 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 25 Jun 2010 07:06:36 +0000 Subject: [Ironruby-core] bug? In-Reply-To: References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> IronRuby doesn't support faster_rubygems as it contains a c-based extension compiled against MRI. > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Roger Pack > Sent: Thursday, June 24, 2010 7:05 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] bug? > > Jimmy Schementi wrote: > >> Ok sounds good. > >> A couple of feedback items for the installer, then: > >> 1) default to a path without spaces, perhaps > > > > Does installing to "Program Files" actually cause issues? Other than > > needing to quote the path to ir.exe? > > C:\dev\digitalarchive_trunk>ir -S gem install faster_rubygems Building native > extensions. This could take a while... > ERROR: Error installing faster_rubygems: > ERROR: Failed to build gem native extension. > > "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" mkrf_conf.rb Installed--thank > you for trying out faster_rubygems recreating all faster_rubygems caches > faster_rubygems: creating caches > . > . > > "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" -rubygems C:/Program > Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake > RUBYARCHDIR="C:/Program Files/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.2/lib" > RUBYLIBDIR="C:/Program Files/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.2/lib" > unknown: Could not find file 'C:\Program'. (Errno::ENOENT) > > > > Gem files will remain installed in C:/Program Files/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.2 for inspection. > Results logged to C:/Program Files/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems- > 0.9.2/ext/gem_make.out > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From me at miguelmadero.com Fri Jun 25 03:55:25 2010 From: me at miguelmadero.com (Miguel Madero) Date: Fri, 25 Jun 2010 17:55:25 +1000 Subject: [Ironruby-core] =?windows-1252?q?Visual_Ruby_/_Ruby_in_Steel_=97_?= =?windows-1252?q?what=27s_up=3F?= In-Reply-To: <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> Message-ID: Hi Rober, A great option might be RubyMine. There was some discussion in their forum last year about making it work for IR. Not sure how far this got, but AFAIR they were going to look into it. Here's an old post from Ivanabout how to make it work (on a prev version of RubyMine). A quick google didn't show any updates, so I'm not sure what's the status of this. One question, what sort of Xaml/IR integration are you looking at? Miguel. On Fri, Jun 25, 2010 at 9:50 AM, Eduardo Blumenfeld wrote: > Roger Sperberg wrote: > > I'd like to use Visual Studio to work with IronRuby projects. (As a > > developer and in Ruby, I'm a relative beginner; the group I'm working > > with is committed to using VS.) > > > > Am I correct in understanding that, up until recently, the way to get IR > > integrated most thoroughly into VS was through Ruby in Steel? > > > > I've read the back-and-forth about Microsoft's non-commitment to a > > making a Ruby equivalent of Visual Python. > > > > As a practical matter, if I get the Text edition of Ruby in Steel will > > that provide the essential features I would want to integrate XAML work > > with Ruby coding? > > > > Has anything changed on the Microsoft end that would settle whether a > > Visual Ruby will appear? > > > > Thanks, > > > > Roger Sperberg > > Unfortunately several months ago ruby in steel decided to stop giving > support to IronRuby, I hope they change their mind in the near future. > > I would like to add to the list of questions whether Ruby in Steel does > have support to Visual Studio 2010 (regardless of the fact that for now > they don't support ironruby). > > Thank you, (and sorry Roger for adding to your question another one and > not being helpful for you) > > Eduardo Blumenfeld > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Miguel A. Madero Reyes www.miguelmadero.com (blog) me at miguelmadero.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Fri Jun 25 04:32:27 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Fri, 25 Jun 2010 10:32:27 +0200 Subject: [Ironruby-core] =?windows-1252?q?Visual_Ruby_/_Ruby_in_Steel_=97_?= =?windows-1252?q?what=27s_up=3F?= In-Reply-To: References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> Message-ID: I'm using RubyMine and it works perfectly and you can also configure it to use the IronRuby interpreter. I have instructions how to do that in my book and I've found out that you can get it for free on Amazon (should I even say that? eh whatever) - go to the book's page, click on the cover image and the "Look Inside" dialog will open. Navigate to page 36 and you'll find the instructions there. One thing to notice - RubyMine is not free, but I think it worth the money. 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 Fri, Jun 25, 2010 at 9:55 AM, Miguel Madero wrote: > Hi Rober, > > A great option might be RubyMine. There was some discussion in their forum > last year about making it work for IR. Not sure how far this got, but AFAIR > they were going to look into it. Here's an old post from Ivanabout how to make it work (on a prev version of RubyMine). A quick google > didn't show any updates, so I'm not sure what's the status of this. > > One question, what sort of Xaml/IR integration are you looking at? > > Miguel. > > > On Fri, Jun 25, 2010 at 9:50 AM, Eduardo Blumenfeld wrote: > >> Roger Sperberg wrote: >> > I'd like to use Visual Studio to work with IronRuby projects. (As a >> > developer and in Ruby, I'm a relative beginner; the group I'm working >> > with is committed to using VS.) >> > >> > Am I correct in understanding that, up until recently, the way to get IR >> > integrated most thoroughly into VS was through Ruby in Steel? >> > >> > I've read the back-and-forth about Microsoft's non-commitment to a >> > making a Ruby equivalent of Visual Python. >> > >> > As a practical matter, if I get the Text edition of Ruby in Steel will >> > that provide the essential features I would want to integrate XAML work >> > with Ruby coding? >> > >> > Has anything changed on the Microsoft end that would settle whether a >> > Visual Ruby will appear? >> > >> > Thanks, >> > >> > Roger Sperberg >> >> Unfortunately several months ago ruby in steel decided to stop giving >> support to IronRuby, I hope they change their mind in the near future. >> >> I would like to add to the list of questions whether Ruby in Steel does >> have support to Visual Studio 2010 (regardless of the fact that for now >> they don't support ironruby). >> >> Thank you, (and sorry Roger for adding to your question another one and >> not being helpful for you) >> >> Eduardo Blumenfeld >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > > -- > Miguel A. Madero Reyes > www.miguelmadero.com (blog) > me at miguelmadero.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 bobby.johnson at gmail.com Fri Jun 25 09:30:09 2010 From: bobby.johnson at gmail.com (Bobby Johnson) Date: Fri, 25 Jun 2010 06:30:09 -0700 Subject: [Ironruby-core] =?windows-1252?q?Visual_Ruby_/_Ruby_in_Steel_=97_?= =?windows-1252?q?what=27s_up=3F?= In-Reply-To: References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> Message-ID: +1 for RubyMine. I am a total JetBrains fanboy. One nice benefit of RubyMine for me is that your license works for both windows and OSX so one nice ide for ruby on multiple platforms. On Fri, Jun 25, 2010 at 1:32 AM, Shay Friedman wrote: > I'm using RubyMine and it works perfectly and you can also configure it to > use the IronRuby interpreter. > I have instructions how to do that in my book and I've found out that you > can get it for free on Amazon (should I even say that? eh whatever) - go to > the book's page, > click on the cover image and the "Look Inside" dialog will open. Navigate to > page 36 and you'll find the instructions there. > > One thing to notice - RubyMine is not free, but I think it worth the money. > > 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 Fri, Jun 25, 2010 at 9:55 AM, Miguel Madero wrote: > >> Hi Rober, >> >> A great option might be RubyMine. There was some discussion in their forum >> last year about making it work for IR. Not sure how far this got, but AFAIR >> they were going to look into it. Here's an old post from Ivanabout how to make it work (on a prev version of RubyMine). A quick google >> didn't show any updates, so I'm not sure what's the status of this. >> >> One question, what sort of Xaml/IR integration are you looking at? >> >> Miguel. >> >> >> On Fri, Jun 25, 2010 at 9:50 AM, Eduardo Blumenfeld > > wrote: >> >>> Roger Sperberg wrote: >>> > I'd like to use Visual Studio to work with IronRuby projects. (As a >>> > developer and in Ruby, I'm a relative beginner; the group I'm working >>> > with is committed to using VS.) >>> > >>> > Am I correct in understanding that, up until recently, the way to get >>> IR >>> > integrated most thoroughly into VS was through Ruby in Steel? >>> > >>> > I've read the back-and-forth about Microsoft's non-commitment to a >>> > making a Ruby equivalent of Visual Python. >>> > >>> > As a practical matter, if I get the Text edition of Ruby in Steel will >>> > that provide the essential features I would want to integrate XAML work >>> > with Ruby coding? >>> > >>> > Has anything changed on the Microsoft end that would settle whether a >>> > Visual Ruby will appear? >>> > >>> > Thanks, >>> > >>> > Roger Sperberg >>> >>> Unfortunately several months ago ruby in steel decided to stop giving >>> support to IronRuby, I hope they change their mind in the near future. >>> >>> I would like to add to the list of questions whether Ruby in Steel does >>> have support to Visual Studio 2010 (regardless of the fact that for now >>> they don't support ironruby). >>> >>> Thank you, (and sorry Roger for adding to your question another one and >>> not being helpful for you) >>> >>> Eduardo Blumenfeld >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >> >> >> >> -- >> Miguel A. Madero Reyes >> www.miguelmadero.com (blog) >> me at miguelmadero.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 > > -- "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 lists at ruby-forum.com Fri Jun 25 09:53:29 2010 From: lists at ruby-forum.com (Eduardo Blumenfeld) Date: Fri, 25 Jun 2010 15:53:29 +0200 Subject: [Ironruby-core] =?utf-8?q?Visual_Ruby_/_Ruby_in_Steel_=E2=80=94__?= =?utf-8?q?what=27s_up=3F?= In-Reply-To: References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> Message-ID: <68694e7b7e518d87f7b8ac0926cfbc5e@ruby-forum.com> I would prefer a visual studio 2010 compatible solution. The rationale about that is the integration with SQL Server and the .net windows world. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jun 25 10:11:00 2010 From: lists at ruby-forum.com (Roger Sperberg) Date: Fri, 25 Jun 2010 16:11:00 +0200 Subject: [Ironruby-core] =?utf-8?q?Visual_Ruby_/_Ruby_in_Steel_=E2=80=94__?= =?utf-8?q?what=27s_up=3F?= In-Reply-To: References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> Message-ID: Miguel Madero wrote: > One question, what sort of Xaml/IR integration are you looking at? First, what Shay Friedman says in talking about IDE's in "IronRuby Unleashed" on page 37: "the ability to run IronRuby directly" from its interface. And secondly, what my colleague(s) show me with VS and C# ? automatic creation of code-behind files and placeholder code when creating a project and when adding objects (like buttons) to XAML. Eduardo Blumenfeld wrote: > I would like to add to the list of questions whether Ruby in Steel does > have support to Visual Studio 2010 (regardless of the fact that for now > they don't support ironruby). This is also a question I have, and I'm glad you brought it up, Eduardo. If I were to purchase Ruby in Steel text edition (I won't be doing any Rails work), I'd be working with one of the no-charge Express editions of VS and other considerations make the 2010 version preferable for our project. Shay Friedman wrote: >I have instructions how to do that in my book and I've found out that >you can get it for free on Amazon (should I even say that? eh whatever) - > ... > >One thing to notice - RubyMine is not free, but I think it worth the >money. Your book is worth the money too. I purchased it a week ago and am glad I did. I wonder ? are there updates online to account for differences in the release version from the pre-release version the book was written from? I'm thinking particularly of chapter 16 on Silverlight. I'm defintely tilted toward VS right now as an IDE, because I can get things explained by people I work with who use it. But I wonder: Does RubyMine work well with XAML? And I followed the link to ironshay.com in your signature, which led me to the post from Dec 2008 on using VS to debug and run IronRuby code[1]. Does that still work? I'll be trying it out after I get off work. Thanks, Roger [1] http://www.ironshay.com/post/how-to-debug-and-run-ironruby-code-from-visual-studio.aspx -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jun 25 10:13:51 2010 From: lists at ruby-forum.com (Roger Pack) Date: Fri, 25 Jun 2010 16:13:51 +0200 Subject: [Ironruby-core] bug? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Jimmy Schementi wrote: > IronRuby doesn't support faster_rubygems as it contains a c-based > extension compiled against MRI. faster_rubygems doesn't contain a c-based extension, it contains a mkrf_conf.rb file, which ends up being pure ruby, and works fine with jruby (which also doesn't support C extensions), hence my expecting it to work with IR [1]. Perhaps I am mistaken? -r [1] http://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_use_a_Rakefile_instead_of_a_Makefile -- Posted via http://www.ruby-forum.com/. From ivo.balbaert at advalvas.be Fri Jun 25 10:47:00 2010 From: ivo.balbaert at advalvas.be (Ivo Balbaert) Date: Fri, 25 Jun 2010 16:47:00 +0200 Subject: [Ironruby-core] Visual Ruby / Ruby in Steel - what's up? In-Reply-To: <68694e7b7e518d87f7b8ac0926cfbc5e@ruby-forum.com> References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> <68694e7b7e518d87f7b8ac0926cfbc5e@ruby-forum.com> Message-ID: <000001cb1475$45fa45b0$d1eed110$@balbaert@advalvas.be> I agree totally. It is a shame the guys from SapphireSteel don't continue their integration work in Visual Studio for IronRuby. They did a terrific job for integrating Ruby in Visual Studio. Microsoft should be very grateful to them, buying the code they already wrote for the integration of IronRuby in VS (for example they build a forms designer), and working further upon that to make a good integration of IronRuby in Visual Studio, somewhat also along the lines what they did for F#. Ivo Balbaert -----Oorspronkelijk bericht----- Van: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] Namens Eduardo Blumenfeld Verzonden: vrijdag 25 juni 2010 15:53 Aan: ironruby-core at rubyforge.org Onderwerp: Re: [Ironruby-core] Visual Ruby / Ruby in Steel - what's up? I would prefer a visual studio 2010 compatible solution. The rationale about that is the integration with SQL Server and the .net windows world. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Fri Jun 25 11:00:25 2010 From: lists at ruby-forum.com (Eduardo Blumenfeld) Date: Fri, 25 Jun 2010 17:00:25 +0200 Subject: [Ironruby-core] =?utf-8?q?Visual_Ruby_/_Ruby_in_Steel_=E2=80=94__?= =?utf-8?q?what=27s_up=3F?= In-Reply-To: References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> Message-ID: <47fa8201769c29ea83b45509df6433c6@ruby-forum.com> I just received a reply from Huw Collingbourne from ShappireSteel (the makes of Ruby in Steel) about the support for VS 2010: ---------------------- Ruby In Steel 1.5 supports VS2008 and 2005 only. We will have more to say about VS2010 later this summer and will post information on our Blog. best wishes Huw ---------------------- Shay: I got your book four weeks ago. It is great!!! Thanks, Eduardo Blumenfeld -- Posted via http://www.ruby-forum.com/. From will at hotgazpacho.org Fri Jun 25 11:01:36 2010 From: will at hotgazpacho.org (Will Green) Date: Fri, 25 Jun 2010 11:01:36 -0400 Subject: [Ironruby-core] bug? In-Reply-To: References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: That depends on how the platform is determined by mkrf. Can you verify what mkrf is using to determine the platform? Here's a printout of IronRuby's RbConfig: >>> pp RbConfig::CONFIG {"MAJOR"=>"1", "MINOR"=>"8", "TEENY"=>"6", "PATCHLEVEL"=>"0", "EXEEXT"=>".exe", "ruby_install_name"=>"ir", "RUBY_INSTALL_NAME"=>"ir", "RUBY_SO_NAME"=>"msvcrt-ruby18", "SHELL"=>"$(COMSPEC)", "BUILD_FILE_SEPARATOR"=>"\\", "PATH_SEPARATOR"=>";", "CFLAGS"=>"-MD -Zi -O2b2xg- -G6", "CPPFLAGS"=>"", "CXXFLAGS"=>"", "FFLAGS"=>"", "LDFLAGS"=>"", "LIBS"=>"oldnames.lib user32.lib advapi32.lib ws2_32.lib ", "bindir"=>"C:/IronRuby/bin", "libdir"=>"C:/IronRuby/lib", "DESTDIR"=>"C:", "prefix"=>"C:/IronRuby", "exec_prefix"=>"C:/IronRuby", "sbindir"=>"C:/IronRuby/sbin", "libexecdir"=>"C:/IronRuby/libexec", "datadir"=>"C:/IronRuby/share", "sysconfdir"=>"C:/IronRuby/etc", "sharedstatedir"=>"C:/etc", "localstatedir"=>"C:/var", "includedir"=>"C:/IronRuby/include", "infodir"=>"C:/IronRuby/info", "mandir"=>"C:/IronRuby/man", "rubylibdir"=>"C:/IronRuby/lib/ruby/1.8", "sitedir"=>"C:/IronRuby/lib/ruby/site_ruby", "oldincludedir"=>"/usr/include", "host_cpu"=>"i686", "host_os"=>"mswin32", "target"=>"dotnet2.0", "arch"=>"universal-dotnet2.0", "build"=>"universal-dotnet2.0", "target_alias"=>"dotnet2.0", "target_cpu"=>"i386", "target_vendor"=>"pc", "target_os"=>"mswin32", "CC"=>"cl -nologo", "CPP"=>"cl -nologo -E", "YACC"=>"byacc", "RANLIB"=>"", "AR"=>"lib -nologo", "ARFLAGS"=>"-machine:x86 -out:", "LN_S"=>"", "SET_MAKE"=>"", "CP"=>"copy > nul", "ALLOCA"=>"", "DEFAULT_KCODE"=>"", "OBJEXT"=>"obj", "XCFLAGS"=> "-DRUBY_EXPORT -I. -IC:/develop/win/ruby/ruby-1.8.6 -IC:/develop/win/ruby/ruby-1.8.6/missing", "XLDFLAGS"=>"-stack:0x2000000", "DLDFLAGS"=> "-link -incremental:no -debug -opt:ref -opt:icf -dll $(LIBPATH) -def:$(DEFFILE) -implib:$(*F:.so=)-universal-dotnet2.0.lib -pdb:$(*F:.so=)-universal-dotnet2.0.pdb", "ARCH_FLAG"=>"", "STATIC"=>"", "CCDLFLAGS"=>"", "LDSHARED"=>"cl -nologo -LD", "DLEXT"=>"so", "DLEXT2"=>"dll", "LIBEXT"=>"lib", "STRIP"=>"", "EXTSTATIC"=>"", "setup"=>"Setup", "MINIRUBY"=>".\\miniruby.exe ", "PREP"=>"miniruby.exe", "RUNRUBY"=> ".\\ruby.exe \"C:/develop/win/ruby/ruby-1.8.6/runruby.rb\" --extout=\".ext\" --", "EXTOUT"=>".ext", "ARCHFILE"=>"", "RDOCTARGET"=>"install-nodoc", "LIBRUBY_LDSHARED"=>"cl -nologo -LD", "LIBRUBY_DLDFLAGS"=>" -def:msvcrt-ruby18.def", "rubyw_install_name"=>"rubyw", "RUBYW_INSTALL_NAME"=>"rubyw", "LIBRUBY_A"=>"msvcrt-ruby18-static.lib", "LIBRUBY_SO"=>"msvcrt-ruby18.dll", "LIBRUBY_ALIASES"=>"", "LIBRUBY"=>"msvcrt-ruby18.lib", "LIBRUBYARG"=>"msvcrt-ruby18.lib", "LIBRUBYARG_STATIC"=>"msvcrt-ruby18-static.lib", "LIBRUBYARG_SHARED"=>"msvcrt-ruby18.lib", "SOLIBS"=>"", "DLDLIBS"=>"", "ENABLE_SHARED"=>"yes", "OUTFLAG"=>"-Fe", "CPPOUTFILE"=>"-P", "LIBPATHFLAG"=>" -libpath:\"%s\"", "RPATHFLAG"=>"", "LIBARG"=>"%s.lib", "LINK_SO"=> "cl -nologo -LD -Fe$(@) $(OBJS) oldnames.lib user32.lib advapi32.lib ws2_32.lib $(LOCAL_LIBS) -link -incremental:no -debug -opt:ref -opt:icf -dll $(LIBPATH) -def:$(DEFFILE) -implib:$(*F:.so=)-universal-dotnet2.0.lib -pdb:$(*F:.so=)-universal-dotnet2.0.pdb", "COMPILE_C"=>"cl -nologo $(INCFLAGS) -MD -Zi -O2b2xg- -G6 -c -Tc$(<:\\=/)", "COMPILE_CXX"=>"$(CXX) $(INCFLAGS) -c -Tp$(<:\\=/)", "COMPILE_RULES"=> "{$(srcdir)}.%s{}.%s: {C:/IronRuby/lib/IronRuby}.%s{}.%s: {$(hdrdir)}.%s{}.%s: .%s.%s:", "RULE_SUBST"=>"{.;$(srcdir);C:/IronRuby/lib/IronRuby;$(hdrdir)}%s", "TRY_LINK"=> "cl -nologo -Feconftest $(INCFLAGS) -I$(hdrdir) -MD -Zi -O2b2xg- -G6 $(src) $(LOCAL_LIBS) oldnames.lib user32.lib advapi32.lib ws2_32.lib -link $(LIBPATH) -stack:0x2000000", "COMMON_LIBS"=>"m", "COMMON_MACROS"=>"WIN32_LEAN_AND_MEAN", "COMMON_HEADERS"=>"winsock2.h windows.h", "DISTCLEANFILES"=>"vc*.pdb", "EXPORT_PREFIX"=>" ", "configure_args"=>"--with-make-prog=nmake --enable-shared --with-winsock2", "ruby_version"=>"1.8", "archdir"=>"C:/IronRuby/lib/ruby/1.8/universal-dotnet2.0", "sitelibdir"=>"C:/IronRuby/lib/ruby/site_ruby/1.8", "sitearchdir"=>"C:/IronRuby/lib/ruby/site_ruby/1.8/$(sitearch)", "topdir"=>"C:/IronRuby/lib/IronRuby"} -- Will Green http://hotgazpacho.org/ On Fri, Jun 25, 2010 at 10:13 AM, Roger Pack wrote: > Jimmy Schementi wrote: > > IronRuby doesn't support faster_rubygems as it contains a c-based > > extension compiled against MRI. > > faster_rubygems doesn't contain a c-based extension, it contains a > mkrf_conf.rb file, which ends up being pure ruby, and works fine with > jruby (which also doesn't support C extensions), hence my expecting it > to work with IR [1]. > > Perhaps I am mistaken? > > -r > [1] > > http://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_use_a_Rakefile_instead_of_a_Makefile > -- > 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 lists at ruby-forum.com Fri Jun 25 12:48:03 2010 From: lists at ruby-forum.com (Roger Pack) Date: Fri, 25 Jun 2010 18:48:03 +0200 Subject: [Ironruby-core] bug? In-Reply-To: References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Will Green wrote: > That depends on how the platform is determined by mkrf. Can you verify > what > mkrf is using to determine the platform? Here's a printout of IronRuby's > RbConfig: mkrf is used by "all platforms" (in this case, it's pure ruby and platform independent, so doesn't actually *use* rbconfig). -rp -- Posted via http://www.ruby-forum.com/. From will at hotgazpacho.org Fri Jun 25 13:12:28 2010 From: will at hotgazpacho.org (Will Green) Date: Fri, 25 Jun 2010 13:12:28 -0400 Subject: [Ironruby-core] bug? In-Reply-To: References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Ah, I see that there is no C code in the ext directory of the faster_rubygems code: http://github.com/rdp/faster_rubygems It looks like a problem with spaces in the path to your IronRuby install. "C:\Program FIles" is not being properly escaped, and the script chokes. -- Will Green http://hotgazpacho.org/ On Fri, Jun 25, 2010 at 12:48 PM, Roger Pack wrote: > Will Green wrote: > > That depends on how the platform is determined by mkrf. Can you verify > > what > > mkrf is using to determine the platform? Here's a printout of IronRuby's > > RbConfig: > > mkrf is used by "all platforms" (in this case, it's pure ruby and > platform independent, so doesn't actually *use* rbconfig). > -rp > -- > 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 lists at ruby-forum.com Fri Jun 25 13:35:01 2010 From: lists at ruby-forum.com (Andrew Badera) Date: Fri, 25 Jun 2010 19:35:01 +0200 Subject: [Ironruby-core] igems update --system, [BUG] invalid exec_format "ir", no %s Message-ID: Hi all, Ruby n00b here. Longtime Windows/.NET guy primarily. Trying to get IronRuby and RoR up and running on Windows 7 x64 with IIS7.5, with .NET 4.0 installed along with the IronRuby 1.0v4 release. Running into the RubyGems igem update --system issue with the response of: [BUG] invalid exec_format "ir", no %s I've seen Marcin Obel's/Kevin Radcliffe's fix: http://gist.github.com/379763 I've tried it, but I still get the error. I've put that snippet in an ironruby.rb under ruby\1.8\, ruby\1.8\gems\rubygems\default, site_ruby\1.8\gems\rubygems and site_ruby\1.8\rubygems\defaults, all to no avail. Am I missing something? Doing something obviously wrong? Thanks in advance- --Andy Badera -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Fri Jun 25 13:43:39 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 25 Jun 2010 17:43:39 +0000 Subject: [Ironruby-core] bug? In-Reply-To: References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921740F643@TK5EX14MBXC138.redmond.corp.microsoft.com> Actually, faster_rubygems installed fine on IronRuby 1.0 for me, and I have it installed in a location with spaces, so what is the actual problem? C:\windows\system32>ir -S gem install faster_rubygems Building native extensions. This could take a while... faster_rubygems installed! see the readme for post-install instructions: http://github.com/rdp/faster_rubygems Successfully installed faster_rubygems-0.9.2 1 gem installed Installing ri documentation for faster_rubygems-0.9.2... Installing RDoc documentation for faster_rubygems-0.9.2... C:\windows\system32>where ir C:\Program Files (x86)\IronRuby 1.0v4\bin\ir.exe C:\Program Files (x86)\IronRuby 1.0\bin\ir.exe C:\windows\system32>ir -v IronRuby 1.0.0.0 on .NET 4.0.30319.1 ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Friday, June 25, 2010 10:12 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] bug? Ah, I see that there is no C code in the ext directory of the faster_rubygems code: http://github.com/rdp/faster_rubygems It looks like a problem with spaces in the path to your IronRuby install. "C:\Program FIles" is not being properly escaped, and the script chokes. -- Will Green http://hotgazpacho.org/ On Fri, Jun 25, 2010 at 12:48 PM, Roger Pack > wrote: Will Green wrote: > That depends on how the platform is determined by mkrf. Can you verify > what > mkrf is using to determine the platform? Here's a printout of IronRuby's > RbConfig: mkrf is used by "all platforms" (in this case, it's pure ruby and platform independent, so doesn't actually *use* rbconfig). -rp -- 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 will at hotgazpacho.org Fri Jun 25 14:17:50 2010 From: will at hotgazpacho.org (Will Green) Date: Fri, 25 Jun 2010 14:17:50 -0400 Subject: [Ironruby-core] igems update --system, [BUG] invalid exec_format "ir", no %s In-Reply-To: References: Message-ID: http://hotgazpacho.org/2010/05/ironruby-gem-update-system/ -- Will Green http://hotgazpacho.org/ On Fri, Jun 25, 2010 at 1:35 PM, Andrew Badera wrote: > Hi all, Ruby n00b here. Longtime Windows/.NET guy primarily. > > Trying to get IronRuby and RoR up and running on Windows 7 x64 with > IIS7.5, with .NET 4.0 installed along with the IronRuby 1.0v4 release. > > Running into the RubyGems igem update --system issue with the response > of: > > [BUG] invalid exec_format "ir", no %s > > I've seen Marcin Obel's/Kevin Radcliffe's fix: > > http://gist.github.com/379763 > > I've tried it, but I still get the error. I've put that snippet in an > ironruby.rb under ruby\1.8\, ruby\1.8\gems\rubygems\default, > site_ruby\1.8\gems\rubygems and site_ruby\1.8\rubygems\defaults, all to > no avail. > > Am I missing something? Doing something obviously wrong? > > Thanks in advance- > --Andy Badera > -- > 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 lists at ruby-forum.com Fri Jun 25 14:28:23 2010 From: lists at ruby-forum.com (Andrew Badera) Date: Fri, 25 Jun 2010 20:28:23 +0200 Subject: [Ironruby-core] =?utf-8?q?igems_update_--system=2C_=5BBUG=5D_inva?= =?utf-8?q?lid_exec=5Fformat_=09=22ir=22=2C_no_=25s?= In-Reply-To: References: Message-ID: Will Green wrote: > http://hotgazpacho.org/2010/05/ironruby-gem-update-system/ > > -- > Will Green > http://hotgazpacho.org/ Hi Will, I'd tried your version as well, same result. I'll doublecheck now though ... --ab -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jun 25 14:33:20 2010 From: lists at ruby-forum.com (Andrew Badera) Date: Fri, 25 Jun 2010 20:33:20 +0200 Subject: [Ironruby-core] =?utf-8?q?igems_update_--system=2C_=5BBUG=5D_inva?= =?utf-8?q?lid_exec=5Fformat_=09=22ir=22=2C_no_=25s?= In-Reply-To: References: Message-ID: Andrew Badera wrote: > Will Green wrote: >> http://hotgazpacho.org/2010/05/ironruby-gem-update-system/ >> >> -- >> Will Green >> http://hotgazpacho.org/ > > > Hi Will, > > I'd tried your version as well, same result. I'll doublecheck now though > ... > > --ab Yeah, I put it there, with your code Will, and still had the same result unfortunately. I'm a little curious, IronRuby now ships with .NET 4.0 I believe, which I have installed. Any chance I'm kicking off my explicitly-installed igem but getting the wrong ir down the line? "where ir" seems to point to the right ir.exe ... -- Posted via http://www.ruby-forum.com/. From will at hotgazpacho.org Fri Jun 25 14:52:02 2010 From: will at hotgazpacho.org (Will Green) Date: Fri, 25 Jun 2010 14:52:02 -0400 Subject: [Ironruby-core] igems update --system, [BUG] invalid exec_format "ir", no %s In-Reply-To: References: Message-ID: I don't use the i-whatever batch files. Untill this fix, I just did ir -S whatever -- Will Green http://hotgazpacho.org/ On Fri, Jun 25, 2010 at 2:33 PM, Andrew Badera wrote: > Andrew Badera wrote: > > Will Green wrote: > >> http://hotgazpacho.org/2010/05/ironruby-gem-update-system/ > >> > >> -- > >> Will Green > >> http://hotgazpacho.org/ > > > > > > Hi Will, > > > > I'd tried your version as well, same result. I'll doublecheck now though > > ... > > > > --ab > > Yeah, I put it there, with your code Will, and still had the same result > unfortunately. > > I'm a little curious, IronRuby now ships with .NET 4.0 I believe, which > I have installed. Any chance I'm kicking off my explicitly-installed > igem but getting the wrong ir down the line? "where ir" seems to point > to the right ir.exe ... > -- > 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 lists at ruby-forum.com Fri Jun 25 15:07:02 2010 From: lists at ruby-forum.com (Andrew Badera) Date: Fri, 25 Jun 2010 21:07:02 +0200 Subject: [Ironruby-core] =?utf-8?q?igems_update_--system=2C_=5BBUG=5D_inva?= =?utf-8?q?lid_exec=5Fformat_=09=22ir=22=2C_no_=25s?= In-Reply-To: References: Message-ID: Will Green wrote: > I don't use the i-whatever batch files. Untill this fix, I just did > > ir -S whatever > > -- > Will Green > http://hotgazpacho.org/ Forgive me for not being super knowledgeable about syntax, but what do I need to pass it as a param for the rubygems package? I've downloaded 1.3.7 explicitly, but not sure what context to use ir -S in ... -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jun 25 15:21:53 2010 From: lists at ruby-forum.com (Roger Pack) Date: Fri, 25 Jun 2010 21:21:53 +0200 Subject: [Ironruby-core] bug? In-Reply-To: References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <3502bed1d384e891ecb151fcacd257f8@ruby-forum.com> Will Green wrote: > Ah, I see that there is no C code in the ext directory of the > faster_rubygems code: http://github.com/rdp/faster_rubygems > > It looks like a problem with spaces in the path to your IronRuby > install. > "C:\Program FIles" is not being properly escaped, and the script chokes. > The offending line is auto generated by rubygems for me (1.3.7). I am unsure how the other poster found success for his, though. That is odd. -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Fri Jun 25 15:27:06 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 25 Jun 2010 19:27:06 +0000 Subject: [Ironruby-core] bug? In-Reply-To: <3502bed1d384e891ecb151fcacd257f8@ruby-forum.com> References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> <3502bed1d384e891ecb151fcacd257f8@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217410F8A@TK5EX14MBXC138.redmond.corp.microsoft.com> > The offending line is auto generated by rubygems for me (1.3.7). > I am unsure how the other poster found success for his, though. That is odd. IronRuby ships with RubyGems 1.3.5, so try using that first. You can verify your version of RubyGems by running: D:\> ir -e "require 'rubygems'; puts Gem::VERSION" 1.3.5 From will at hotgazpacho.org Fri Jun 25 15:35:26 2010 From: will at hotgazpacho.org (Will Green) Date: Fri, 25 Jun 2010 15:35:26 -0400 Subject: [Ironruby-core] igems update --system, [BUG] invalid exec_format "ir", no %s In-Reply-To: References: Message-ID: If you put the file I referenced in the correct location, you can then just: ir -S gem update --system After that, the gem and gem.bat files in %IronRubyRoot%\bin get re-written with the correct path to the correct interpreter (as will any scripts installed by ruby gems AFTER this), so from then on, you can just: gem dosomething assuming %IronRubyRoot%\bin is in you path ahead of other Ruby binary directories. I use pik to manage this http://github.com/vertiginous/pik (pik is like rvm for Windows). -- Will Green http://hotgazpacho.org/ On Fri, Jun 25, 2010 at 3:07 PM, Andrew Badera wrote: > Will Green wrote: > > I don't use the i-whatever batch files. Untill this fix, I just did > > > > ir -S whatever > > > > -- > > Will Green > > http://hotgazpacho.org/ > > Forgive me for not being super knowledgeable about syntax, but what do I > need to pass it as a param for the rubygems package? I've downloaded > 1.3.7 explicitly, but not sure what context to use ir -S in ... > -- > 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 Sat Jun 26 01:44:04 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Sat, 26 Jun 2010 07:44:04 +0200 Subject: [Ironruby-core] =?windows-1252?q?Visual_Ruby_/_Ruby_in_Steel_=97_?= =?windows-1252?q?what=27s_up=3F?= In-Reply-To: <47fa8201769c29ea83b45509df6433c6@ruby-forum.com> References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> <47fa8201769c29ea83b45509df6433c6@ruby-forum.com> Message-ID: Thanks guys. I'm really glad you're enjoying the book! Regarding a place with all the release differences - currently there isn't such a place. I will talk to my editor and maybe we will generate one soon. However, I don't think that the Silverlight chapter has a lot of differences. Regarding the debugging in VS - should still be working. 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 Fri, Jun 25, 2010 at 5:00 PM, Eduardo Blumenfeld wrote: > I just received a reply from Huw Collingbourne > from ShappireSteel (the makes of Ruby in Steel) > about the support for VS 2010: > > ---------------------- > Ruby In Steel 1.5 supports VS2008 and 2005 only. We will have more to > say about VS2010 later this summer and will post information on our > Blog. > > best wishes > > Huw > ---------------------- > > Shay: > I got your book four weeks ago. > It is great!!! > > Thanks, > > Eduardo Blumenfeld > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Sat Jun 26 12:17:26 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sat, 26 Jun 2010 16:17:26 +0000 Subject: [Ironruby-core] =?windows-1252?q?Visual_Ruby_/_Ruby_in_Steel_=97_?= =?windows-1252?q?what=27s_up=3F?= In-Reply-To: References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> <47fa8201769c29ea83b45509df6433c6@ruby-forum.com>, Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217415383@TK5EX14MBXC138.redmond.corp.microsoft.com> >>> Regarding the debugging in VS - should still be working. Yep, it does. Make sure to run IronRuby with the -D flag though; that will cause IronRuby to emit IL which is debuggable by managed debuggers like VS or mdbg. ~js ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Shay Friedman [shay.friedman at gmail.com] Sent: Friday, June 25, 2010 10:44 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Visual Ruby / Ruby in Steel ? what's up? Thanks guys. I'm really glad you're enjoying the book! Regarding a place with all the release differences - currently there isn't such a place. I will talk to my editor and maybe we will generate one soon. However, I don't think that the Silverlight chapter has a lot of differences. Regarding the debugging in VS - should still be working. 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 Fri, Jun 25, 2010 at 5:00 PM, Eduardo Blumenfeld > wrote: I just received a reply from Huw Collingbourne from ShappireSteel (the makes of Ruby in Steel) about the support for VS 2010: ---------------------- Ruby In Steel 1.5 supports VS2008 and 2005 only. We will have more to say about VS2010 later this summer and will post information on our Blog. best wishes Huw ---------------------- Shay: I got your book four weeks ago. It is great!!! Thanks, Eduardo Blumenfeld -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at miguelmadero.com Sun Jun 27 07:21:00 2010 From: me at miguelmadero.com (Miguel Madero) Date: Sun, 27 Jun 2010 21:21:00 +1000 Subject: [Ironruby-core] =?windows-1252?q?Visual_Ruby_/_Ruby_in_Steel_=97_?= =?windows-1252?q?what=27s_up=3F?= In-Reply-To: References: <5fec400917ec4936521662b7a171b9f3@ruby-forum.com> <6d7bc7d7fe5a568e6ad52e1cf90fb3df@ruby-forum.com> Message-ID: When I work with XAML I use Blend instead of VS, so I'm already used to switch tools and use the best one for each thing. I would suggest that if that's feasable (e.g. you already have a Blend license or are willing to spend money in one). I think some support for basic stuff would come handy (like the one from VS), but I think that would be a low priority for RubyMine. On Sat, Jun 26, 2010 at 12:11 AM, Roger Sperberg wrote: > Miguel Madero wrote: > > One question, what sort of Xaml/IR integration are you looking at? > > First, what Shay Friedman says in talking about IDE's in "IronRuby > Unleashed" on page 37: "the ability to run IronRuby directly" from its > interface. > > And secondly, what my colleague(s) show me with VS and C# ? automatic > creation of code-behind files and placeholder code when creating a > project and when adding objects (like buttons) to XAML. > > > Eduardo Blumenfeld wrote: > > I would like to add to the list of questions whether Ruby in Steel does > > have support to Visual Studio 2010 (regardless of the fact that for now > > they don't support ironruby). > > This is also a question I have, and I'm glad you brought it up, Eduardo. > > If I were to purchase Ruby in Steel text edition (I won't be doing any > Rails work), I'd be working with one of the no-charge Express editions > of VS and other considerations make the 2010 version preferable for our > project. > > > Shay Friedman wrote: > >I have instructions how to do that in my book and I've found out that > >you can get it for free on Amazon (should I even say that? eh whatever) - > > ... > > > >One thing to notice - RubyMine is not free, but I think it worth the > >money. > > Your book is worth the money too. I purchased it a week ago and am glad > I did. > > I wonder ? are there updates online to account for differences in the > release version from the pre-release version the book was written from? > I'm thinking particularly of chapter 16 on Silverlight. > > I'm defintely tilted toward VS right now as an IDE, because I can get > things explained by people I work with who use it. But I wonder: Does > RubyMine work well with XAML? > > And I followed the link to ironshay.com in your signature, which led me > to the post from Dec 2008 on using VS to debug and run IronRuby code[1]. > Does that still work? I'll be trying it out after I get off work. > > Thanks, > > Roger > > > [1] > > http://www.ironshay.com/post/how-to-debug-and-run-ironruby-code-from-visual-studio.aspx > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Miguel A. Madero Reyes www.miguelmadero.com (blog) me at miguelmadero.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jun 28 14:02:51 2010 From: lists at ruby-forum.com (Ian Gardner) Date: Mon, 28 Jun 2010 20:02:51 +0200 Subject: [Ironruby-core] Static method on a C# class extending a generic class Message-ID: <107fd7fb015ab45cf61677b1d784cf9a@ruby-forum.com> Sorry, confusing subject, but just a quick question. I wanted to make one of my C# classes generic, but I didn't want to have to worry about rewriting code everywhere that class was used, so I created a default derived class that shared the same name that had my default generic type. So something like this: public class MyClass : MyClass { public static string TestStringDerived = "World"; public static string TestFuncDerived() { return "World"; } } public class MyClass { public static string TestString = "Hello"; public static string TestFunc() { return "Hello"; } } Then I found in IronRuby that everywhere I had used MyClass.TestFunc or MyClass.TestString no longer worked. In fact in the above example MyClass.TestFuncDerived and MyClass.TestStringDerived don't work either. I have already found my solution. Simply by adding an empty generic parameter it will work. So, MyClass[].TestFunc or MyClass[].TestFuncDerived works. So, my question (just because I am curious) is whether there is some deeper reason as to why IronRuby does not assume I want an empty generic parameter (MyClass[]) when I just give it MyClass. Thanks! -- Posted via http://www.ruby-forum.com/. From nrhird at gmail.com Mon Jun 28 15:22:19 2010 From: nrhird at gmail.com (Nick Hird) Date: Mon, 28 Jun 2010 15:22:19 -0400 Subject: [Ironruby-core] IronPython VS2010 Tools for IronRuby? Message-ID: I have been following IronRuby for a while now as i have with IronPython and it seems like IronPython gets a lot more attention then IronRuby. While this may or may not be true from a development standpoint, from a visual standpoint its looks to be true. So i was wondering if the DLR team or whoever is in charge of the Visual Studio 2010 tools for IronPython would also be releasing a toolset for IronRuby? I am guessing the two teams are different but it would be a shame to leave IronRuby out in the cold while IronPython gets the royal treatment. --Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Jun 28 15:36:22 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 28 Jun 2010 19:36:22 +0000 Subject: [Ironruby-core] IronPython VS2010 Tools for IronRuby? In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921741D66D@TK5EX14MBXC138.redmond.corp.microsoft.com> Turns out IronRuby, IronPython, and the DLR are basically the same 6-7 people at Microsoft; for example, while I primarily work on IronRuby, I made the IronPython website and work on the Silverlight integration. Dino Viehland is the lead dev of IronPython, and the only dev on the tools, so naturally Python was first. Given our team size, we haven't gotten to releasing tooling for Ruby yet. Though, when I spoke at RubyConf 2009, I said after IronRuby 1.0 we would be definitely working on VS integration: http://blog.jimmy.schementi.com/2009/12/ironruby-rubyconf-2009-part-4-project.html. Again, given our team site, unfortunately you'll have to be patient for the first version, or try to beat us to the punch. =) ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nick Hird Sent: Monday, June 28, 2010 12:22 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] IronPython VS2010 Tools for IronRuby? I have been following IronRuby for a while now as i have with IronPython and it seems like IronPython gets a lot more attention then IronRuby. While this may or may not be true from a development standpoint, from a visual standpoint its looks to be true. So i was wondering if the DLR team or whoever is in charge of the Visual Studio 2010 tools for IronPython would also be releasing a toolset for IronRuby? I am guessing the two teams are different but it would be a shame to leave IronRuby out in the cold while IronPython gets the royal treatment. --Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Tue Jun 29 00:16:44 2010 From: will at hotgazpacho.org (Will Green) Date: Tue, 29 Jun 2010 00:16:44 -0400 Subject: [Ironruby-core] Syncing RubySpec and mspec Message-ID: Hey all! I've been talking with Jim via email about helping with syncing IronRuby's copy of RubySpec and mspec with the official repos. I'v started work on pulling in the latest RubySpec changes. These also require the latest mspec. Well, it looks like the default.mspec file is no longer compatible with the latest version of mspec. My integration branch is here: http://github.com/hotgazpacho/ironruby/tree/from-rubyspec And the errors I'm getting when running mspec are here: http://gist.github.com/456772 I have very little knowledge of mspec, and googling for the error brings up older posts from this list saying not to use that version of mspec. So, maybe someone who knows more about it could take a look? Thanks! -- Will Green http://hotgazpacho.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From douglas at theros.info Tue Jun 29 00:22:31 2010 From: douglas at theros.info (Douglas Campos) Date: Tue, 29 Jun 2010 01:22:31 -0300 Subject: [Ironruby-core] MutableString issues on IronRuby Message-ID: Hi! I'm struggling with a weird error - I have a string filled up with binary data, and when I ask .length to it, CLR raises an exception telling it could not convert from specified charset to unicode. Is there any place to inform ironruby to use the "none" encoding for such strings? (as like MRI 1.8 works) - It's a bug, a feature? IronRuby 1.0 (.net 2.0) Thanks! Douglas Campos (qmx) douglas at theros.info +55 11 6762 5959 From Tomas.Matousek at microsoft.com Tue Jun 29 00:27:03 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 29 Jun 2010 04:27:03 +0000 Subject: [Ironruby-core] MutableString issues on IronRuby In-Reply-To: References: Message-ID: Could you please send a snippet of code or a file that demonstrates the problem? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Douglas Campos Sent: Monday, June 28, 2010 9:23 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] MutableString issues on IronRuby Hi! I'm struggling with a weird error - I have a string filled up with binary data, and when I ask .length to it, CLR raises an exception telling it could not convert from specified charset to unicode. Is there any place to inform ironruby to use the "none" encoding for such strings? (as like MRI 1.8 works) - It's a bug, a feature? IronRuby 1.0 (.net 2.0) Thanks! Douglas Campos (qmx) douglas at theros.info +55 11 6762 5959 _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From douglas at theros.info Tue Jun 29 00:37:38 2010 From: douglas at theros.info (Douglas Campos) Date: Tue, 29 Jun 2010 01:37:38 -0300 Subject: [Ironruby-core] MutableString issues on IronRuby In-Reply-To: References: Message-ID: <7AE49019-7C2D-45F1-A96C-9D5195D3B40E@theros.info> Thanks for the fast response https://gist.github.com/cb0450e5b2cb714a0ce8 HTH On Jun 29, 2010, at 1:27 AM, Tomas Matousek wrote: > Could you please send a snippet of code or a file that demonstrates the problem? > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Douglas Campos > Sent: Monday, June 28, 2010 9:23 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] MutableString issues on IronRuby > > Hi! > > I'm struggling with a weird error - I have a string filled up with binary data, and when I ask .length to it, CLR raises an exception telling it could not convert from specified charset to unicode. Is there any place to inform ironruby to use the "none" encoding for such strings? (as like MRI 1.8 works) - It's a bug, a feature? > > IronRuby 1.0 (.net 2.0) > > Thanks! > > > Douglas Campos (qmx) > douglas at theros.info > +55 11 6762 5959 > > _______________________________________________ > 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 Douglas Campos (qmx) douglas at theros.info +55 11 6762 5959 From Tomas.Matousek at microsoft.com Tue Jun 29 11:22:01 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 29 Jun 2010 15:22:01 +0000 Subject: [Ironruby-core] Code Review: EMS10 Message-ID: tfpt review "/shelveset:EMS10;REDMOND\tomat" Comment : Implements support for extension methods in IronRuby. DLR: - Factors out reusable parts of type inferer to ReflectionUtils and simplifies the inferer a bit. We need to bind generic parameters when dealing with extension methods whose first parameter is an open constructed type. - Moves around a few methods in ReflectionUtils so they are better organized to regions. - Implements extension method reflection services in ReflectionUtils. The implementation will improve when we'll get our new metadata reader checked-in. We'll also need a slightly different extension method enumeration scheme for Python. I'll also rename ReflectionUtils to ReflectionServices when they use the new metadata reader and move it out of Utils directory. They are becoming more than just simple utils. - Updates OverloadResolver to prefer non-extension methods over extension methods if it can't decide which overload is better based on other criteria. - Implements a workaround for a bug in MethodInfo.GetBaseMethod in CompilerHelpers.TryGetCallableMethod. The API might return a generic method definition even if called on a method instantiation. - Small improvements to a couple of ArrayUtils. Ruby: - Adds method Kernel#using_clr_extensions that takes a namespace and activates all extension methods defined on classes defined in that namespace (doesn't include sub-namespaces) regardless of the assembly they are defined in. All assemblies already loaded to the current ScriptRuntime are reflected for extension methods and any assembly that is loaded in the future gets reflected as well. This means that additional extension methods might appear when a new assembly is loaded. For each affected type the loaded extension methods are added to the overload sets of existing methods (if there are any). Thus if class C defines an instance method foo() and an extension method foo(this C, int) is loaded the next call of foo on an instance of C will trigger overload resolution algorithm to choose among overloads { foo() and foo(int) }. If the resolver can't chose based upon the call-site arguments the non-extension methods are preferred. - Generic extension methods might be defined, for example like so: public static void Foo(this Dictionary x, T y) where S : T { } This defined Foo on all Dictionaries whose key type is the same or derives from the type of the values stored in the dictionary. This is supported to the extent that all involved constraints can be instantiated using the type of the first argument to the call-site. We do ignore constraints that can't. For example: public static void Foo(this S x, T y) where S : T { } In this case the methods will be available on all types in the system. However if the method is invoked with an argument that is not compatible with the constraint the overload can't be selected and the method call might fail. If the first parameter of an extension method is not a constructed type (i.e. it is a plain generic parameter like in the example above) the method is supposed to be defined on every type in the system that satisfies the constrains of the generic parameter. In the current implementation IronRuby considers such method (say Foo) defined on Object and available to all applicable types via inheritance. Thus a Ruby method Foo or foo defined on some class A <: Object hides the extension method Foo. This means that the extension method won't be available from any subclass of A until the Ruby method on A gets removed. Ideally the extension method should appear to be defined directly on every type instead of just Object. However this brings additional complexity to the current IronRuby type system. Since defining an extension method on every single type is rather a corner case I've decided for the simple approach. - We intentionally don't enable extension methods on built-in types (such as Array or Hash) for two reasons: o There is high potential for name conflicts. For example, IEnumerable LINQ extensions include methods like First, Zip, Count, Max, Min, Sum, etc. some of these are already methods on Ruby's Enumerable and other might easily be in future. We could use the policy of non-mangling names so that they could be called only using their CLR name and not the Ruby equivalent (Zip vs zip). However, then writing LINQ queries that work for all data sources would require to always use CLR names otherwise it wouldn't work for builtins. o Built-ins hide CLR interface they implement to be fully compatible with Ruby built-ins. For example, although Array implements IList Array.included_mixins == [Enumerable]. Thus it would need a bit of magical behavior to make the extension methods appear on Array. It would actually be much cleaner if a separate non-built-in class was defined that wraps Ruby array and implements IEnumerable. Then any time you want to use an array as LINQ data source you just wrap it into this enumerable implementation. - An example of using LINQ extension methods: load_assembly "System.Core" using_clr_extensions System::Linq p System::String.to_clr_type.get_methods. where(System::Func[Object, System::Boolean].new { |m| m.name[0, 2] == 'To' }). select(System::Func[Object, Object].new { |m| m.name }). to_a # => ['ToCharArray', 'ToCharArray', 'ToLower', 'ToLower', 'ToLowerInvariant', 'ToUpper', 'ToUpper', 'ToUpperInvariant', 'ToString', 'ToString'] Currently IronRuby's type inference doesn't infer the generic parameters of Where and Select methods so we need to help it by specifying the types explicitly. - Fixes name mangling of "or" word. - Fixes cross-runtime class hierarchy locking bug in constant resolution. It is no longer allowed to open a foreign module or class via module/class keyword. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: EMS10.diff Type: application/octet-stream Size: 111916 bytes Desc: EMS10.diff URL: From headius at headius.com Tue Jun 29 11:57:42 2010 From: headius at headius.com (Charles Oliver Nutter) Date: Tue, 29 Jun 2010 10:57:42 -0500 Subject: [Ironruby-core] bug? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: On Tue, May 18, 2010 at 4:52 PM, Jimmy Schementi wrote: >> 2) have a checkbox for if we want to install with the i prefix or not on pre- >> installed gems (I know I for one wouldn't). > > We don't preinstall any gems with IronRuby. So what you're asking is an option so we remove the "i" from "iri.bat", "irdoc.bat", and "igem.bat" ? Keep in mind the actual ruby files are still "ri", "rdoc", and "gem". For the problem with "ir script/console", rails should fix this (as in, JRuby has the same problem as they ship with jirb). Other than for the "ruby" command (i.e. "jruby"), JRuby does not prefix bin scripts or set up RubyGems to prefix anything, so we still have the same-named rdoc, ri, irb commands provided in JRuby releases, and gem binaries install with their non-prefixed name. This was a pragmatic decision; too many Ruby scripts/libs/apps launch those scripts by their non-prefixed name and all the tutorials and books in the world use the non-prefixed names. Plus we wanted JRuby to be a drop-in replacement as much as possible; all those "j"s would make that much harder. We've recently debated turning the RubyGems prefixing on, to aid folks using JRuby plus some other impl...but it would cause a lot of support stress at this point. Also FYI: https://rails.lighthouseapp.com/projects/8994/tickets/2104-scriptconsole-execs-irb-causes-double-process-launch-and-limits-other-impls I filed that last year in February, and after bouncing around a bit it was bumped off Rails 2.x series. Now it's apparently back in for 3.0. Vote with comments :) JRuby has gotten around this since 2006 by doing two things: * We ship "irb" executables * Our exec logic scans the command being run for "*ruby" or "*irb" and intercepts that by simply spinning up another JRuby instance in the same JVM. This was partially to allow rails/console and similar re-launchers to work, but also to reduce (somewhat) the double-launching startup hit. - Charlie From philippe at activa.be Tue Jun 29 12:56:47 2010 From: philippe at activa.be (Philippe Leybaert) Date: Tue, 29 Jun 2010 18:56:47 +0200 Subject: [Ironruby-core] Calling constructor when static .New() method is defined Message-ID: <68686D700849E647AD0D325340B179F5031E19637A06@acserv3.activa.be> Shay Friedman suggested I'd post this to the mailing list, as it may be a bug in IronRuby: It seems impossible to call a constructor when there is a static .New() method defined on a class. This is a minimal test case demonstrating the problem: .NET (C#) class: public class Tester { public static void New() { Console.WriteLine("In Tester.New()"); } public Tester() { Console.WriteLine("In constructor"); } } IronRuby code: Tester.new Tester.New The ruby code above calls Tester.New() in both cases. There seems to be no way to call the regular constructor of this class. From Tomas.Matousek at microsoft.com Tue Jun 29 13:24:12 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 29 Jun 2010 17:24:12 +0000 Subject: [Ironruby-core] Calling constructor when static .New() method is defined In-Reply-To: <68686D700849E647AD0D325340B179F5031E19637A06@acserv3.activa.be> References: <68686D700849E647AD0D325340B179F5031E19637A06@acserv3.activa.be> Message-ID: You can call CLR constructor using "clr_new" method: Tester.clr_new Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Philippe Leybaert Sent: Tuesday, June 29, 2010 9:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Calling constructor when static .New() method is defined Shay Friedman suggested I'd post this to the mailing list, as it may be a bug in IronRuby: It seems impossible to call a constructor when there is a static .New() method defined on a class. This is a minimal test case demonstrating the problem: .NET (C#) class: public class Tester { public static void New() { Console.WriteLine("In Tester.New()"); } public Tester() { Console.WriteLine("In constructor"); } } IronRuby code: Tester.new Tester.New The ruby code above calls Tester.New() in both cases. There seems to be no way to call the regular constructor of this class. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Tue Jun 29 14:01:28 2010 From: lists at ruby-forum.com (Roger Pack) Date: Tue, 29 Jun 2010 20:01:28 +0200 Subject: [Ironruby-core] bug? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9217410F8A@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> <3502bed1d384e891ecb151fcacd257f8@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC9217410F8A@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: > D:\> ir -e "require 'rubygems'; puts Gem::VERSION" > 1.3.5 Ok, tried it with "default" rubygems... Seems to still have said problem... C:\dev\ruby\faster_rubygems>ir -e "require 'rubygems'; puts Gem::VERSION" 1.3.5 C:\dev\ruby\faster_rubygems>ir -S gem install faster_rubygems-0.9.3.gem Building native extensions. This could take a while... ERROR: Error installing faster_rubygems-0.9.3.gem: ERROR: Failed to build gem native extension. "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" mkrf_conf.rb Installed--thank you for trying out faster_rubygems recreating all faster_rubygems caches faster_rubygems: creating all caches .. "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" -rubygems C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake RUBYARCHDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib" RUBYLIBDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib" unknown: Could not find file 'C:\Program'. (Errno::ENOENT) Gem files will remain installed in C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3 for inspection. Results logged to C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/ext/gem_make.out -- Posted via http://www.ruby-forum.com/. From philippe at activa.be Tue Jun 29 14:30:47 2010 From: philippe at activa.be (Philippe Leybaert) Date: Tue, 29 Jun 2010 20:30:47 +0200 Subject: [Ironruby-core] Calling constructor when static .New() method is defined In-Reply-To: References: <68686D700849E647AD0D325340B179F5031E19637A06@acserv3.activa.be> Message-ID: <68686D700849E647AD0D325340B179F5031E19637A07@acserv3.activa.be> Thanks, that does seem to work. But I personally think this behavior is completely wrong. Calling .new from IronRuby should always call the constructor, not a static method named .New() that happens to exist somewhere in the class hierarchy. (if the .New() method is defined in a base class, you get the same problem). Philippe -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: dinsdag 29 juni 2010 19:24 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Calling constructor when static .New() method is defined You can call CLR constructor using "clr_new" method: Tester.clr_new Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Philippe Leybaert Sent: Tuesday, June 29, 2010 9:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Calling constructor when static .New() method is defined Shay Friedman suggested I'd post this to the mailing list, as it may be a bug in IronRuby: It seems impossible to call a constructor when there is a static .New() method defined on a class. This is a minimal test case demonstrating the problem: .NET (C#) class: public class Tester { public static void New() { Console.WriteLine("In Tester.New()"); } public Tester() { Console.WriteLine("In constructor"); } } IronRuby code: Tester.new Tester.New The ruby code above calls Tester.New() in both cases. There seems to be no way to call the regular constructor of this class. _______________________________________________ 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 will at hotgazpacho.org Tue Jun 29 14:42:19 2010 From: will at hotgazpacho.org (Will Green) Date: Tue, 29 Jun 2010 14:42:19 -0400 Subject: [Ironruby-core] bug? In-Reply-To: References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> <3502bed1d384e891ecb151fcacd257f8@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC9217410F8A@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: > > "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" -rubygems C:/Program > Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake > RUBYARCHDIR="C:/Program Files/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib" > RUBYLIBDIR="C:/Program Files/IronRuby > 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib" > unknown: Could not find file 'C:\Program'. (Errno::ENOENT) > > Seems pretty clear to me that it is a path interpolation problem. "Could not find file 'C:\Program'". Doesn't seem to like the space in the directory name. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jun 29 14:51:42 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 29 Jun 2010 18:51:42 +0000 Subject: [Ironruby-core] bug? In-Reply-To: References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> <3502bed1d384e891ecb151fcacd257f8@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC9217410F8A@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92174222C8@TK5EX14MBXC138.redmond.corp.microsoft.com> True, but I?m not seeing this reproduce (granted I?m trying on a 64-bit machine, but that shouldn?t make a difference). Can you list what envvars you have set? C:\Program Files (x86)\IronRuby 1.0v4\bin>igem install faster_rubygems Building native extensions. This could take a while... faster_rubygems installed! see the readme for post-install instructions: http://github.com/rdp/faster_rubygems recreating all faster_rubygems caches faster_rubygems: creating caches . . Successfully installed faster_rubygems-0.9.2 1 gem installed Installing ri documentation for faster_rubygems-0.9.2... Installing RDoc documentation for faster_rubygems-0.9.2... C:\Program Files (x86)\IronRuby 1.0v4\bin> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, June 29, 2010 11:42 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] bug? "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" -rubygems C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake RUBYARCHDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib" RUBYLIBDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib" unknown: Could not find file 'C:\Program'. (Errno::ENOENT) Seems pretty clear to me that it is a path interpolation problem. "Could not find file 'C:\Program'". Doesn't seem to like the space in the directory name. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jun 29 14:58:31 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 29 Jun 2010 18:58:31 +0000 Subject: [Ironruby-core] Calling constructor when static .New() method is defined In-Reply-To: <68686D700849E647AD0D325340B179F5031E19637A07@acserv3.activa.be> References: <68686D700849E647AD0D325340B179F5031E19637A06@acserv3.activa.be> <68686D700849E647AD0D325340B179F5031E19637A07@acserv3.activa.be> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217422353@TK5EX14MBXC138.redmond.corp.microsoft.com> Philippe Leybaert wrote: > But I personally think this behavior is completely wrong. Calling .new from > IronRuby should always call the constructor, not a static method named > .New() that happens to exist somewhere in the class hierarchy. (if the > .New() method is defined in a base class, you get the same problem). "new" is just a Ruby method on the Class object, which Ruby happens to call to construct an object. Because it's just a method, it can be overridden. For example, a Ruby class's #new can be overridden to return ANY object. >>> class Foo ... def self.new ... 42 ... end ... end => nil >>> Foo.new => 42 >>> Foo.new.class => Fixnum >>> So, anywhere in the class hierarchy, #new can be overridden. For example, if a base class overrides new, it does so for all its subclasses also, just as normal inheritance tells it do: >>> class Bar < Foo ... end => nil >>> Bar.new => 42 At a high-level, the way IronRuby's .NET interop works is by treating any .NET-based code as if it were Ruby code, so a CLR Type will be shown as a Ruby Class. Therefore, defining a "New" method in C# is the moral equivalent of defining "new" on any Ruby class, which will override Class#new, which in turn overrides the CLR .ctor. Which is why "clr_new" is provided. ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Tomas Matousek > Sent: dinsdag 29 juni 2010 19:24 > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Calling constructor when static .New() method is > defined > > You can call CLR constructor using "clr_new" method: > > Tester.clr_new > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Philippe Leybaert > Sent: Tuesday, June 29, 2010 9:57 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Calling constructor when static .New() method is > defined > > Shay Friedman suggested I'd post this to the mailing list, as it may be a bug in > IronRuby: > > It seems impossible to call a constructor when there is a static .New() > method defined on a class. > > This is a minimal test case demonstrating the problem: > > .NET (C#) class: > > public class Tester > { > public static void New() > { > Console.WriteLine("In Tester.New()"); > } > > public Tester() > { > Console.WriteLine("In constructor"); > } > } > > IronRuby code: > > Tester.new > Tester.New > > The ruby code above calls Tester.New() in both cases. There seems to be no > way to call the regular constructor of this class. > > _______________________________________________ > 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 Jimmy.Schementi at microsoft.com Tue Jun 29 15:42:47 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 29 Jun 2010 19:42:47 +0000 Subject: [Ironruby-core] Calling constructor when static .New() method is defined In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9217422353@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <68686D700849E647AD0D325340B179F5031E19637A06@acserv3.activa.be> <68686D700849E647AD0D325340B179F5031E19637A07@acserv3.activa.be> <1B42307CD4AADD438CDDA2FE1121CC9217422353@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921742256E@TK5EX14MBXC138.redmond.corp.microsoft.com> I said "#new" in some places where I shouldn't have ... so corrected below in case there was some confusion ... > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Jimmy Schementi > Sent: Tuesday, June 29, 2010 11:59 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Calling constructor when static .New() method is > defined > > Philippe Leybaert wrote: > > But I personally think this behavior is completely wrong. Calling .new from > > IronRuby should always call the constructor, not a static method named > > .New() that happens to exist somewhere in the class hierarchy. (if the > > .New() method is defined in a base class, you get the same problem). > > "new" is just a Ruby method on the Class object, which Ruby happens to call > to construct an object. Because it's just a method, it can be overridden. For > example, a Ruby class's .new can be overridden to return ANY object. > > >>> class Foo > ... def self.new > ... 42 > ... end > ... end > => nil > >>> Foo.new > => 42 > >>> Foo.new.class > => Fixnum > >>> > > So, anywhere in the class hierarchy, .new can be overridden. For example, if > a base class overrides new, it does so for all its subclasses also, just as normal > inheritance tells it to: > > >>> class Bar < Foo > ... end > => nil > >>> Bar.new > => 42 > > At a high-level, the way IronRuby's .NET interop works is by treating any > .NET-based code as if it were Ruby code, so a CLR Type will be shown as a > Ruby Class. Therefore, defining a "New" method in C# is the moral > equivalent of defining "new" on any Ruby class, which will override > Class#new, which in turn overrides the CLR .ctor. Which is why "clr_new" is > provided. > > ~js > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > > bounces at rubyforge.org] On Behalf Of Tomas Matousek > > Sent: dinsdag 29 juni 2010 19:24 > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Calling constructor when static .New() method > is > > defined > > > > You can call CLR constructor using "clr_new" method: > > > > Tester.clr_new > > > > Tomas > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > > bounces at rubyforge.org] On Behalf Of Philippe Leybaert > > Sent: Tuesday, June 29, 2010 9:57 AM > > To: ironruby-core at rubyforge.org > > Subject: [Ironruby-core] Calling constructor when static .New() method is > > defined > > > > Shay Friedman suggested I'd post this to the mailing list, as it may be a bug > in > > IronRuby: > > > > It seems impossible to call a constructor when there is a static .New() > > method defined on a class. > > > > This is a minimal test case demonstrating the problem: > > > > .NET (C#) class: > > > > public class Tester > > { > > public static void New() > > { > > Console.WriteLine("In Tester.New()"); > > } > > > > public Tester() > > { > > Console.WriteLine("In constructor"); > > } > > } > > > > IronRuby code: > > > > Tester.new > > Tester.New > > > > The ruby code above calls Tester.New() in both cases. There seems to be > no > > way to call the regular constructor of this class. > > > > _______________________________________________ > > 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 Jimmy.Schementi at microsoft.com Tue Jun 29 15:51:30 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 29 Jun 2010 19:51:30 +0000 Subject: [Ironruby-core] bug? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92174222C8@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> <3502bed1d384e891ecb151fcacd257f8@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC9217410F8A@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92174222C8@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217422619@TK5EX14MBXC138.redmond.corp.microsoft.com> The public version of faster_rubygems on RubyGems.org is 0.9.2, which installs fine with IronRuby. It looks like you?re trying to install 0.9.3 from a .gem file, so there is most likely an issue with the new gem? Try installing 0.9.2 by just doing ?igem install faster_rubygems? and see if that works for you. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Tuesday, June 29, 2010 11:52 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] bug? True, but I?m not seeing this reproduce (granted I?m trying on a 64-bit machine, but that shouldn?t make a difference). Can you list what envvars you have set? C:\Program Files (x86)\IronRuby 1.0v4\bin>igem install faster_rubygems Building native extensions. This could take a while... faster_rubygems installed! see the readme for post-install instructions: http://github.com/rdp/faster_rubygems recreating all faster_rubygems caches faster_rubygems: creating caches . . Successfully installed faster_rubygems-0.9.2 1 gem installed Installing ri documentation for faster_rubygems-0.9.2... Installing RDoc documentation for faster_rubygems-0.9.2... C:\Program Files (x86)\IronRuby 1.0v4\bin> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, June 29, 2010 11:42 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] bug? "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" -rubygems C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake RUBYARCHDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib" RUBYLIBDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib" unknown: Could not find file 'C:\Program'. (Errno::ENOENT) Seems pretty clear to me that it is a path interpolation problem. "Could not find file 'C:\Program'". Doesn't seem to like the space in the directory name. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jun 29 17:18:12 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 29 Jun 2010 21:18:12 +0000 Subject: [Ironruby-core] Bindings for Silveright In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92174230EC@TK5EX14MBXC138.redmond.corp.microsoft.com> Databinding to Dynamic Objects in Silverlight 4 is not supported. However, IronPython supports a feature that does enable databinding in Silverlight, but it requires that you adorn your code with static-type information: http://gui-at.blogspot.com/2009/11/inotifypropertychanged-and-databinding.html. However, this is not supported in IronRuby today, as there is no way to provide that static type information, though it's on the roadmap. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Miguel Madero Sent: Monday, May 24, 2010 1:40 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Bindings for Silveright Jimmy, I heard on the Sparkling Clieent Podcast that you wrote in silverlight.net about Silverlight and Dynamic Languages, they mentioned that bindings to dynamic objects work now. I can't find any info about this. Do you have the link to this? Is this actually supported (I'm thinking it was probably a mistake from the person who mentioned it). By the way, there's a bug in connect about this that is still active. (I write it here, since I think this might be of interest to everyone) -- Miguel A. Madero Reyes www.miguelmadero.com (blog) me at miguelmadero.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Jun 29 19:31:27 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 29 Jun 2010 23:31:27 +0000 Subject: [Ironruby-core] Syncing RubySpec and mspec In-Reply-To: References: Message-ID: <3A95E0143832D94BA52A18A1406403E40F1763BE@TK5EX14MBXC130.redmond.corp.microsoft.com> Inside of the MSpec in our tree, I have added a filtered method to External.LCA_RESTRICTED/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb (I believe). You?ll need to get that method merged into your branch to user our config. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Monday, June 28, 2010 9:17 PM To: ironruby-core Subject: [Ironruby-core] Syncing RubySpec and mspec Hey all! I've been talking with Jim via email about helping with syncing IronRuby's copy of RubySpec and mspec with the official repos. I'v started work on pulling in the latest RubySpec changes. These also require the latest mspec. Well, it looks like the default.mspec file is no longer compatible with the latest version of mspec. My integration branch is here: http://github.com/hotgazpacho/ironruby/tree/from-rubyspec And the errors I'm getting when running mspec are here: http://gist.github.com/456772 I have very little knowledge of mspec, and googling for the error brings up older posts from this list saying not to use that version of mspec. So, maybe someone who knows more about it could take a look? Thanks! -- Will Green http://hotgazpacho.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jun 29 21:19:47 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 30 Jun 2010 01:19:47 +0000 Subject: [Ironruby-core] IronRuby.Rack In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9217336DCF@TK5EX14MBXC136.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC9217336CD3@TK5EX14MBXC136.redmond.corp.microsoft.com> , <1B42307CD4AADD438CDDA2FE1121CC9217336DCF@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217424406@TK5EX14MBXC138.redmond.corp.microsoft.com> FYI, there ended up being no changes that were specific for Rack 1.1.0 -- just bug-fixes to IronRuby.Rack in general. ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Jimmy Schementi [Jimmy.Schementi at microsoft.com] Sent: Thursday, April 22, 2010 5:58 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby.Rack 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 will at hotgazpacho.org Tue Jun 29 22:19:19 2010 From: will at hotgazpacho.org (Will Green) Date: Tue, 29 Jun 2010 22:19:19 -0400 Subject: [Ironruby-core] Syncing RubySpec and mspec In-Reply-To: <3A95E0143832D94BA52A18A1406403E40F1763BE@TK5EX14MBXC130.redmond.corp.microsoft.com> References: <3A95E0143832D94BA52A18A1406403E40F1763BE@TK5EX14MBXC130.redmond.corp.microsoft.com> Message-ID: That did it. I'll have to be more careful with merging that particular file in the future. Now, how do I go about updating the tags? Is it the following, or do I need to go through some specs manually? C:\Users\Will\dev\ironruby\External.LCA_RESTRICTED\Languages\IronRuby\mspec>mspec tag rubyspec BTW, I get a StackOverflowException on of of the specs, which kills the spec run before they all finish. :-/ -- Will Green http://hotgazpacho.org/ On Tue, Jun 29, 2010 at 7:31 PM, Jim Deville wrote: > Inside of the MSpec in our tree, I have added a filtered method to > External.LCA_RESTRICTED/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb > (I believe). You?ll need to get that method merged into your branch to user > our config. > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Will Green > *Sent:* Monday, June 28, 2010 9:17 PM > *To:* ironruby-core > *Subject:* [Ironruby-core] Syncing RubySpec and mspec > > > > Hey all! > > > > I've been talking with Jim via email about helping with syncing IronRuby's > copy of RubySpec and mspec with the official repos. I'v started work on > pulling in the latest RubySpec changes. These also require the latest mspec. > Well, it looks like the default.mspec file is no longer compatible with the > latest version of mspec. > > > > My integration branch is here: > http://github.com/hotgazpacho/ironruby/tree/from-rubyspec > > And the errors I'm getting when running mspec are here: > http://gist.github.com/456772 > > > > I have very little knowledge of mspec, and googling for the error brings up > older posts from this list saying not to use that version of mspec. So, > maybe someone who knows more about it could take a look? > > > > Thanks! > > > -- > Will Green > http://hotgazpacho.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 jdeville at microsoft.com Wed Jun 30 02:23:02 2010 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 30 Jun 2010 06:23:02 +0000 Subject: [Ironruby-core] Syncing RubySpec and mspec In-Reply-To: References: <3A95E0143832D94BA52A18A1406403E40F1763BE@TK5EX14MBXC130.redmond.corp.microsoft.com> Message-ID: <3A95E0143832D94BA52A18A1406403E40F176C84@TK5EX14MBXC130.redmond.corp.microsoft.com> So, the tags are of 3 classes: ? Fails: delete and regenerate (below) ? Unstable and thread: leave these alone. They indicate ones that are non-deterministic ? Critical: these indicate specs that cause hangs, process teardown, or corrupt future tests (I don?t think we have any of this last one anymore). These must be looked at one by one to see if they still cause a hang, etc. If they do, leave them. If the test successfully fails or passes, you can delete the critical tag and allow it to run as part of the normal regeneration For the rest, you are pretty much right. After doing the above (note, probably use grep to find what files to keep (last 2 points) and delete all other files) run the command: mspec tag -Gcritical -Gunstable -Gthread for whatever break up of Areas you want. In the past I?ve broken down to folder level (core/array, core/dir, etc.), but you should be good just breaking it down to :core, :lib, :lang, :thread and :cli. This command regenerates the new fails tags and creates the necessary folder structure. Finally, run mspec ci which should give a clean pass. If you want to parallelize it, you can kick off mspec ci :core, mspec ci :lib, etc and let each section run on its own. These should have clean runs. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, June 29, 2010 7:19 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Syncing RubySpec and mspec That did it. I'll have to be more careful with merging that particular file in the future. Now, how do I go about updating the tags? Is it the following, or do I need to go through some specs manually? C:\Users\Will\dev\ironruby\External.LCA_RESTRICTED\Languages\IronRuby\mspec>mspec tag rubyspec BTW, I get a StackOverflowException on of of the specs, which kills the spec run before they all finish. :-/ -- Will Green http://hotgazpacho.org/ On Tue, Jun 29, 2010 at 7:31 PM, Jim Deville > wrote: Inside of the MSpec in our tree, I have added a filtered method to External.LCA_RESTRICTED/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb (I believe). You?ll need to get that method merged into your branch to user our config. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Monday, June 28, 2010 9:17 PM To: ironruby-core Subject: [Ironruby-core] Syncing RubySpec and mspec Hey all! I've been talking with Jim via email about helping with syncing IronRuby's copy of RubySpec and mspec with the official repos. I'v started work on pulling in the latest RubySpec changes. These also require the latest mspec. Well, it looks like the default.mspec file is no longer compatible with the latest version of mspec. My integration branch is here: http://github.com/hotgazpacho/ironruby/tree/from-rubyspec And the errors I'm getting when running mspec are here: http://gist.github.com/456772 I have very little knowledge of mspec, and googling for the error brings up older posts from this list saying not to use that version of mspec. So, maybe someone who knows more about it could take a look? Thanks! -- Will Green http://hotgazpacho.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 me at miguelmadero.com Wed Jun 30 04:51:34 2010 From: me at miguelmadero.com (Miguel Madero) Date: Wed, 30 Jun 2010 18:51:34 +1000 Subject: [Ironruby-core] Bindings for Silveright In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92174230EC@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC92174230EC@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: That's great. As a sort of related topic, I'm wondering if this could actually help us consume 'Dynamic' components from tools like Blend. I know that this doesn't mean we'll have an assembly that we can reference, but I'm thinking of something like having a small dll that could be pointed to a dynamic object that could provide a list of types (for components) which in turn could provide information about their properties and methods. On Wed, Jun 30, 2010 at 7:18 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Databinding to Dynamic Objects in Silverlight 4 is not supported. > However, IronPython supports a feature that does enable databinding in > Silverlight, but it requires that you adorn your code with static-type > information: > http://gui-at.blogspot.com/2009/11/inotifypropertychanged-and-databinding.html. > However, this is not supported in IronRuby today, as there is no way to > provide that static type information, though it?s on the roadmap. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Miguel Madero > *Sent:* Monday, May 24, 2010 1:40 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] Bindings for Silveright > > > > Jimmy, > > > > I heard on the Sparkling Clieent Podcast that you wrote in silverlight.netabout Silverlight and Dynamic Languages, they mentioned that bindings to > dynamic objects work now. I can't find any info about this. Do you have the > link to this? Is this actually supported (I'm thinking it was probably a > mistake from the person who mentioned it). > > By the way, there's a bug in connectabout this that is still active. > > > > (I write it here, since I think this might be of interest to everyone) > > > > > > > -- > Miguel A. Madero Reyes > www.miguelmadero.com (blog) > me at miguelmadero.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Miguel A. Madero Reyes www.miguelmadero.com (blog) me at miguelmadero.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Jun 30 09:58:44 2010 From: lists at ruby-forum.com (Roger Pack) Date: Wed, 30 Jun 2010 15:58:44 +0200 Subject: [Ironruby-core] bug? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9217422619@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <49AF5950-6C62-4058-A35F-8D9DBC5A8DD9@microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217396918@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC921740E2C2@TK5EX14MBXC138.redmond.corp.microsoft.com> <3502bed1d384e891ecb151fcacd257f8@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC9217410F8A@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92174222C8@TK5EX14MBXC138.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9217422619@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: Jimmy Schementi wrote: > The public version of faster_rubygems on RubyGems.org is 0.9.2, which > installs fine with IronRuby. It looks like you?re trying to install > 0.9.3 from a .gem file, so there is most likely an issue with the new > gem? Try installing 0.9.2 by just doing ?igem install faster_rubygems? > and see if that works for you. C:\dev\digitalarchive_trunk>igem install faster_rubygems Building native extensions. This could take a while... ERROR: Error installing faster_rubygems: ERROR: Failed to build gem native extension. "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" mkrf_conf.rb Installed--thank you for trying out faster_rubygems recreating all faster_rubygems caches faster_rubygems: creating all caches ..warning, unable to write cache to:C:/Program Files/IronRuby 1.0v4/lib/ruby/gems/1.8/.faster_rubygems_cache "C:/Program Files/IronRuby 1.0v4/bin/ir.exe" -rubygems C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake RUBYARCHDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.11.1/lib" RUBYLIBDIR="C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.11.1/lib" unknown: Could not find file 'C:\Program'. (Errno::ENOENT) Gem files will remain installed in C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.11.1 for inspection. Results logged to C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.11.1/ext/gem_make.out Unable to install gems 1.3.7 to try that, for some reason... I'm really not sure why it would succeed on others' computers. Note that it's a quite experimental gem so you may want to use it on a throw-away computer. Note also that if you do install it, try running "rake" or whatever you want before and after--it "should" give a substantial speed increase over the normal rubygems startup time, but I'm unable to test that on IR without being able to install... -r -- Posted via http://www.ruby-forum.com/.