From lists at ruby-forum.com Fri Jan 1 16:52:05 2010 From: lists at ruby-forum.com (James Leskovar) Date: Fri, 1 Jan 2010 22:52:05 +0100 Subject: [Ironruby-core] Handling runtime errors in embedded applications In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92064A68@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <2bf821a55ad665ba38567e9edf385cf4@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC92063EF0@TK5EX14MBXC141.redmond.corp.microsoft.com> <150744b1d22a8e137dac869aa5174d9c@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC92064A68@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Hmm, UnhandledExceptionEventArgs seems to only have two properties, ExceptionObject and IsTerminating, both of which are read-only. After a bit of investigation, there is another type of unhandled-exception handler, set with Application.ThreadException, which can prevent application termination. However, it only catches exceptions in Windows Forms threads, so it's not applicable for DLR exceptions (indeed, the event is not fired when an IR exception occurs.) James Jimmy Schementi wrote: > UnhandledException *does* have the feature to not terminate the process; > you need to do "e.Handled = true;" in your exception handler to tell the > CLR that the exception has been properly handled. If you don't set it, > the CLR doesn't see the exception as handled and continues propagating > the exception, which will eventually terminate the process. > > I was pretty sure it worked for Threads as well, since all threads are > still bound to the current AppDomain, but let me know if your fixed > exception handler still doesn't solve this. However, your work-around > will work in the meantime. > > ~js -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jan 1 21:52:10 2010 From: lists at ruby-forum.com (Ameer Deen) Date: Sat, 2 Jan 2010 03:52:10 +0100 Subject: [Ironruby-core] Using IronRuby from Ruby (newbie) In-Reply-To: References: Message-ID: Hi there Shay, Using IronRuby to run the ruby code turned out to be easier than I thought. I'm able to run the code on IronRuby and access the System.Diagnostics namespace. Thanks very much for your help. Ameer. Shay Friedman wrote: > You can access System.Diagnostics via IronRuby. However, you will have > to > use the IronRuby interpreter to run your native ruby code, which is > something I guess you are not willing to do (yet). > > Maybe you'd better look for a gem or a Ruby library that simplifies > performance counter access... > > Thanks, > Shay. > > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Sat Jan 2 01:02:03 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sat, 2 Jan 2010 06:02:03 +0000 Subject: [Ironruby-core] Handling runtime errors in embedded applications In-Reply-To: References: <2bf821a55ad665ba38567e9edf385cf4@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC92063EF0@TK5EX14MBXC141.redmond.corp.microsoft.com> <150744b1d22a8e137dac869aa5174d9c@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC92064A68@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Odd.... I've used the e.Handled argument before too... JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of James Leskovar Sent: Friday, January 01, 2010 1:52 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Handling runtime errors in embedded applications Hmm, UnhandledExceptionEventArgs seems to only have two properties, ExceptionObject and IsTerminating, both of which are read-only. After a bit of investigation, there is another type of unhandled-exception handler, set with Application.ThreadException, which can prevent application termination. However, it only catches exceptions in Windows Forms threads, so it's not applicable for DLR exceptions (indeed, the event is not fired when an IR exception occurs.) James Jimmy Schementi wrote: > UnhandledException *does* have the feature to not terminate the process; > you need to do "e.Handled = true;" in your exception handler to tell the > CLR that the exception has been properly handled. If you don't set it, > the CLR doesn't see the exception as handled and continues propagating > the exception, which will eventually terminate the process. > > I was pretty sure it worked for Threads as well, since all threads are > still bound to the current AppDomain, but let me know if your fixed > exception handler still doesn't solve this. However, your work-around > will work in the meantime. > > ~js -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ben2004uk at googlemail.com Sat Jan 2 11:32:21 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Sat, 2 Jan 2010 16:32:21 +0000 Subject: [Ironruby-core] IronRuby + Scaffold - Fails because of Action Mailer? Message-ID: Aim: Use IronRubyOnRails with SQL Server to generate a table for me. After running scaffold, I received the following error message: What am I missing? Thanks Ben Error: pretty:IronRubyOnRails Ben$ ir script/generate scaffold post title:string body:text published:boolean /Users/Ben/Library/ironruby-0.9.3/lib/ironruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/quoting.rb:22: parsing "[\000-\011\013\014\016-\037\177-\377]" - [55-51] range in reverse order. Parameter name: [\000-\011\013\014\016-\037\177-\377] (SyntaxError) from /Users/Ben/Library/ironruby-0.9.3/lib/ironruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:248 from /Users/Ben/Library/ironruby-0.9.3/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:510:in `initialize_framework_logging' from :0:in `const_get' from /Users/Ben/Library/ironruby-0.9.3/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:509:in `initialize_framework_logging' from /Users/Ben/Library/ironruby-0.9.3/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:147:in `process' from /Users/Ben/Library/ironruby-0.9.3/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run' from :0:in `each' from mscorlib:0:in `CallSite.Target' from /Users/Ben/SourceControl/IronRubyOnRails/config/environment.rb:9 from /Users/Ben/Library/ironruby-0.9.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from :0:in `__send__' from /Users/Ben/Library/ironruby-0.9.3/lib/ironruby/gems/1.8/gems/rails-2.3.5/lib/commands/generate.rb:1 from /Users/Ben/Library/ironruby-0.9.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from script/generate:3 from :0:in `require' from :0:in `require' From ben2004uk at googlemail.com Sat Jan 2 12:05:34 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Sat, 2 Jan 2010 17:05:34 +0000 Subject: [Ironruby-core] activerecord mssql adapter - Auto ID support Message-ID: Hello, Just playing around with ActiveRecord, IR and Sql Server and it seems that it executes scope_identity() as a separate statement, instead of being part of the batch file. As such, the object is never being updated correctly. SQL Profiler shows this: SQL:BatchStarting INSERT INTO [users] ([name], [email]) VALUES('JimBob', 'Test at Test.com') Mono local 57 2010-01-02 17:01:32.640 SQL:BatchStarting exec sp_executesql N'SELECT scope_identity()' Mono local 57 2010-01-02 17:01:32.657 Any ideas? Anyone got this working? Thanks Ben From ivan at flanders.co.nz Sun Jan 3 10:08:31 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 3 Jan 2010 16:08:31 +0100 Subject: [Ironruby-core] overriding indexers Message-ID: Hi A while ago there were the methods __getitem__ and __setitem__ which allowed to override an indexer. I can't find these methods anymore and I also can't find a way to override an indexer. namespace ClrModels { public class IndexerContained{ private Dictionary _inner = new Dictionary{ { "key1", "value1" }, { "key2", "value2" }, { "key3", "value3" }, { "key4", "value4" } }; public virtual string this[string name]{ get { return _inner[name]; } set { _inner[name] = value; } } } public class IndexerCaller{ public string CallIndexOnClass(IndexerContained klass, string name){ return klass[name]; } public string CallIndexOnInterface(IHaveAnIndexer klass, string name){ return klass[name]; } } } class MySubIndexer < ClrModels::IndexerContained; def [](name); 6; end; def Item(name); 7; end; def item(name); 8; end; def get_Item(name); 9; end; end >> cons = ClrModels::IndexerCaller.new => ClrModels.IndexerCaller >> cons.call_index_on_class(MySubIndexer.new, "key") unknown:0: warning: do not use Fixnums as Symbols => 'Fail' And a spec to go with it: require File.dirname(__FILE__) + "/../spec_helper" describe "CLR to CLR interactions" do describe "when isolating CLR classes" do describe "that have an indexer" do before do @cons = ClrModels::IndexerCaller.new @ind = Caricature::Isolation.for(ClrModels::IndexerContained) end it "should work without expectations" do @cons.call_index_on_class(@ind, "key1").should.be.nil end it "should work with an expectation" do @ind.when_receiving(:__getitem__).return("5") @cons.call_index_on_class(@ind, "key1").should.equal "5" end end end end --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Google Wave: portocarrero.ivan at googlewave.com Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun Jan 3 12:17:05 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Sun, 3 Jan 2010 18:17:05 +0100 Subject: [Ironruby-core] Newwer to Ironruby/ruby Message-ID: <35b9e09ac509d72f78577f1a5ae4432c@ruby-forum.com> Hey, I have a couple questions dealing with a couple modifications I did to eliminate errors I was receiving while using rails on IronRuby. First, mssql_adapter.rb: In the execute method I commented out set_identity_insert_on and set_identity_insert_off. Why is the adapter turning on set_identitty_insert for columns that end in _id? Isn't it standard in rails for foreign keys to end in _id? Next, in rack-1.0.1\lib\rack\response.rb: On line 63 in the set_cookie method, the clone method doesn't exist. Has anyone else experienced similar problems? I just commented out the set_identity sections in execute. In set_cookie, I removed clone and it seemed to work. Does anyone have better patches or work-arounds than what I have done? Thanks, Sam -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Mon Jan 4 02:03:45 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 4 Jan 2010 07:03:45 +0000 Subject: [Ironruby-core] Newwer to Ironruby/ruby In-Reply-To: <35b9e09ac509d72f78577f1a5ae4432c@ruby-forum.com> References: <35b9e09ac509d72f78577f1a5ae4432c@ruby-forum.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C853E2B@TK5EX14MBXC132.redmond.corp.microsoft.com> For SQL Server, you are better off using ironruby-dbi + sqlserver_adapter as mentioned in the attached email. Ivan has already fixed a number of SQL issues in ironruby-dbi. Usage is not streamlined yet though. See http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Languages/Ruby/Tests/Scripts/ActiveRecordTests.rb for hints on how to set things up. I have added a rough note about this to http://ironruby.net/Documentation/Real_Ruby_Applications/Rails, but the instructions need to be flushed out more. Will be great if you can help flush this out... -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Sam Clopton Sent: Sunday, January 03, 2010 9:17 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Newwer to Ironruby/ruby Hey, I have a couple questions dealing with a couple modifications I did to eliminate errors I was receiving while using rails on IronRuby. First, mssql_adapter.rb: In the execute method I commented out set_identity_insert_on and set_identity_insert_off. Why is the adapter turning on set_identitty_insert for columns that end in _id? Isn't it standard in rails for foreign keys to end in _id? Next, in rack-1.0.1\lib\rack\response.rb: On line 63 in the set_cookie method, the clone method doesn't exist. Has anyone else experienced similar problems? I just commented out the set_identity sections in execute. In set_cookie, I removed clone and it seemed to work. Does anyone have better patches or work-arounds than what I have done? Thanks, Sam -- 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 embedded message was scrubbed... From: Shri Borde Subject: Re: [Ironruby-core] ActiveRecord update Date: Tue, 11 Aug 2009 19:30:58 +0000 Size: 20868 URL: From Jimmy.Schementi at microsoft.com Mon Jan 4 02:20:09 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 4 Jan 2010 07:20:09 +0000 Subject: [Ironruby-core] Newwer to Ironruby/ruby In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C853E2B@TK5EX14MBXC132.redmond.corp.microsoft.com> References: <35b9e09ac509d72f78577f1a5ae4432c@ruby-forum.com>, <8E45365BECA665489F3CB8878A6C1B7D0C853E2B@TK5EX14MBXC132.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9206E997@TK5EX14MBXC141.redmond.corp.microsoft.com> Actually, I have already spent some time figuring out the correct instructions, but have not posted yet. I'd like as much help, so Sam, I'd like as much feedback as you can provide. For SQLServer, the mssql adapter is no longer being maintained, and the pointers Shri gave are the preferred way of doing things. However, like I said, the instructions aren't quite tested yet, so either you can figure it out yourself, or wait for me to update it (which will be soon, but again it will be good for help). I'm not aware of your rack issue, so I'll look into it. Is this error occur when running against WEBrick? ~js ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Shri Borde [Shri.Borde at microsoft.com] Sent: Sunday, January 03, 2010 11:03 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newwer to Ironruby/ruby For SQL Server, you are better off using ironruby-dbi + sqlserver_adapter as mentioned in the attached email. Ivan has already fixed a number of SQL issues in ironruby-dbi. Usage is not streamlined yet though. See http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Languages/Ruby/Tests/Scripts/ActiveRecordTests.rb for hints on how to set things up. I have added a rough note about this to http://ironruby.net/Documentation/Real_Ruby_Applications/Rails, but the instructions need to be flushed out more. Will be great if you can help flush this out... -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Sam Clopton Sent: Sunday, January 03, 2010 9:17 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Newwer to Ironruby/ruby Hey, I have a couple questions dealing with a couple modifications I did to eliminate errors I was receiving while using rails on IronRuby. First, mssql_adapter.rb: In the execute method I commented out set_identity_insert_on and set_identity_insert_off. Why is the adapter turning on set_identitty_insert for columns that end in _id? Isn't it standard in rails for foreign keys to end in _id? Next, in rack-1.0.1\lib\rack\response.rb: On line 63 in the set_cookie method, the clone method doesn't exist. Has anyone else experienced similar problems? I just commented out the set_identity sections in execute. In set_cookie, I removed clone and it seemed to work. Does anyone have better patches or work-arounds than what I have done? Thanks, Sam -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Mon Jan 4 12:17:31 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 4 Jan 2010 17:17:31 +0000 Subject: [Ironruby-core] FYI Code Review: datefix Message-ID: tfpt review "/shelveset:datefix;REDMOND\jdeville" Comment : fixes some specs that were relying on intricacies of commercial weeks in 2009 !!!!!Note, this fixes the snap failures.!!!! JD -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: datefix.diff Type: application/octet-stream Size: 2267 bytes Desc: datefix.diff URL: From lists at ruby-forum.com Mon Jan 4 13:41:44 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Mon, 4 Jan 2010 19:41:44 +0100 Subject: [Ironruby-core] Newwer to Ironruby/ruby In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9206E997@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <35b9e09ac509d72f78577f1a5ae4432c@ruby-forum.com> <8E45365BECA665489F3CB8878A6C1B7D0C853E2B@TK5EX14MBXC132.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9206E997@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <9f49fff86319ecca14802b4bf7207558@ruby-forum.com> Jimmy Schementi wrote: > Actually, I have already spent some time figuring out the correct > instructions, but have not posted yet. I'd like as much help, so Sam, > I'd like as much feedback as you can provide. > > For SQLServer, the mssql adapter is no longer being maintained, and the > pointers Shri gave are the preferred way of doing things. However, like > I said, the instructions aren't quite tested yet, so either you can > figure it out yourself, or wait for me to update it (which will be soon, > but again it will be good for help). > > I'm not aware of your rack issue, so I'll look into it. Is this error > occur when running against WEBrick? > > ~js > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Shri Borde > [Shri.Borde at microsoft.com] > Sent: Sunday, January 03, 2010 11:03 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Newwer to Ironruby/ruby > > For SQL Server, you are better off using ironruby-dbi + > sqlserver_adapter as mentioned in the attached email. Ivan has already > fixed a number of SQL issues in ironruby-dbi. Usage is not streamlined > yet though. See > http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Languages/Ruby/Tests/Scripts/ActiveRecordTests.rb > for hints on how to set things up. > > I have added a rough note about this to > http://ironruby.net/Documentation/Real_Ruby_Applications/Rails, but the > instructions need to be flushed out more. Will be great if you can help > flush this out... Yes, I am currently running WEBrick in a development environment, but soon I want to deploy it in a closed network on IIS. The rack issue was showing up when the authlogic gem that I am using for authenication was trying to destroy the session. I will try to set up a environment at home using IronRuby, Rails, and ironruby-dbi + sqlserver. Especially since I have a web application I would like to develop at home. I would be more than happy to provide feedback of my results and any problems and solutions that I find. I am very excited about the progress that you guys have made on getting Ruby running on .Net. Thanks for the feedback, -Sam -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Jan 4 16:38:43 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 4 Jan 2010 22:38:43 +0100 Subject: [Ironruby-core] Newwer to Ironruby/ruby In-Reply-To: <9f49fff86319ecca14802b4bf7207558@ruby-forum.com> References: <35b9e09ac509d72f78577f1a5ae4432c@ruby-forum.com> <8E45365BECA665489F3CB8878A6C1B7D0C853E2B@TK5EX14MBXC132.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9206E997@TK5EX14MBXC141.redmond.corp.microsoft.com> <9f49fff86319ecca14802b4bf7207558@ruby-forum.com> Message-ID: If you need any help getting the ironruby-dbi stuff going ping this list again. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Google Wave: portocarrero.ivan at googlewave.com Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 4, 2010 at 7:41 PM, Sam Clopton wrote: > Jimmy Schementi wrote: > > Actually, I have already spent some time figuring out the correct > > instructions, but have not posted yet. I'd like as much help, so Sam, > > I'd like as much feedback as you can provide. > > > > For SQLServer, the mssql adapter is no longer being maintained, and the > > pointers Shri gave are the preferred way of doing things. However, like > > I said, the instructions aren't quite tested yet, so either you can > > figure it out yourself, or wait for me to update it (which will be soon, > > but again it will be good for help). > > > > I'm not aware of your rack issue, so I'll look into it. Is this error > > occur when running against WEBrick? > > > > ~js > > ________________________________________ > > From: ironruby-core-bounces at rubyforge.org > > [ironruby-core-bounces at rubyforge.org] on behalf of Shri Borde > > [Shri.Borde at microsoft.com] > > Sent: Sunday, January 03, 2010 11:03 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Newwer to Ironruby/ruby > > > > For SQL Server, you are better off using ironruby-dbi + > > sqlserver_adapter as mentioned in the attached email. Ivan has already > > fixed a number of SQL issues in ironruby-dbi. Usage is not streamlined > > yet though. See > > > http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Languages/Ruby/Tests/Scripts/ActiveRecordTests.rb > > for hints on how to set things up. > > > > I have added a rough note about this to > > http://ironruby.net/Documentation/Real_Ruby_Applications/Rails, but the > > instructions need to be flushed out more. Will be great if you can help > > flush this out... > > Yes, I am currently running WEBrick in a development environment, but > soon I want to deploy it in a closed network on IIS. The rack issue was > showing up when the authlogic gem that I am using for authenication was > trying to destroy the session. I will try to set up a environment at > home using IronRuby, Rails, and ironruby-dbi + sqlserver. Especially > since I have a web application I would like to develop at home. I would > be more than happy to provide feedback of my results and any problems > and solutions that I find. > > I am very excited about the progress that you guys have made on getting > Ruby running on .Net. > > Thanks for the feedback, > -Sam > -- > 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 Mon Jan 4 19:51:58 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 5 Jan 2010 00:51:58 +0000 Subject: [Ironruby-core] Change to how igem, irdoc, and iri work (stuff in Merlin/Main/Languages/Ruby/Scripts/bin) In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC18AFB5E3@tk5ex14mbxc106.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC18AFB5E3@tk5ex14mbxc106.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9206F74C@TK5EX14MBXC141.redmond.corp.microsoft.com> This old proposal is no happening, as ir.exe will soon support "-S", which finds the file on your OS PATH, The bat files that are usually provided with MRI will be present for IronRuby in the bin directory (iirb, irdoc, iri, and igem), but any other gem that installs a command-line launcher (rake, rails, spec, ...), will be run without a batch file like so: "ir -S rake"; "rake" will be looked up on the OS PATH. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Tuesday, June 30, 2009 11:19 PM To: 'ironruby-core at rubyforge.org' Subject: [Ironruby-core] Change to how igem, irdoc, and iri work (stuff in Merlin/Main/Languages/Ruby/Scripts/bin) Currently the IronRuby git repo has copied versions of irb.bat, rdoc.bat, etc checked in as iirb, irdoc, etc to give shortcuts to running these popular Ruby utility scripts from IronRuby just as you do from Ruby. http://github.com/ironruby/ironruby/tree/8d70f2bf7a2bae37ae7cb3ba5d3eca5fe54d46e1/Merlin/Main/Languages/Ruby/Scripts/bin. They currently aren't copied to the build location, so you'll have to add this path to your PATH to call them. Is anyone opposed to having dev.bat add Merlin/Main/Bin/Debug and Merlin/Main/Bin/Release to the path, and have a post-build step copy the necessary bat files (irdoc, iri, iirb, igem) to the build directory? This means no adding anything to the PATH; just run dev.bat and "brbr", and then "ir.exe" will resolve to Merlin/Main/Bin/Release/ir.exe. There might be a good reason for it, but having things on the PATH is pretty standard. =P FYI, these executable scripts don't just originate from Ruby itself ... libraries and gems can install them as well, as rubygems, rails, rake, rack, and a ton other libraries do. IronRuby provides some of these files as well (irails, igem) since they hardcode "ruby.exe" in the bat files (actually, that's how it used to be, might have changed now that jruby is around), but it can never provide all of them. Ideally all gems that drop an executable next to "ir.exe" will check the ruby executable name (found in rbconfig.rb) and generate the bat file correctly. The reason I'd like to only look for ir.exe in the build directories is that each bat files has some special logic to check to see if it's running in the development environment, and if so run Merlin/Main/Bin/Debug/ir.exe. While this is limiting since you can't easily use a release build, it also will be busted for any library that installs itself correctly. ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Jan 4 20:33:09 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 5 Jan 2010 01:33:09 +0000 Subject: [Ironruby-core] when do we get this? In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9206F842@TK5EX14MBXC141.redmond.corp.microsoft.com> Controlling the ?static? view of IronRuby is an inevitable feature, though I?m not sure when we?ll get around to implementing it ? definitely after 1.0 though. This type of feature opens a whole can of worms, and for me even prompts the question, ?should IronRuby have optional static typing?? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, November 17, 2009 9:22 AM To: ironruby-core Subject: [Ironruby-core] when do we get this? http://devhawk.net/CommentView,guid,cef44285-b9e7-47c3-84b6-d79833c76875.aspx the question with regards to ironruby is when/if ? :) That sounds like it could be useful. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Google Wave: portocarrero.ivan at googlewave.com Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Tue Jan 5 00:14:38 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 4 Jan 2010 23:14:38 -0600 Subject: [Ironruby-core] when do we get this? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9206F842@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC9206F842@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Interesting. I thought that technique was only providing an underlying "anonymous .NET base class" for binding purposes, much as IronRubyInline could offer but without having to write any C#. I guess I was mistaken. Also, IronRuby does have types and WPF/Silverlight binding uses reflection to late-bind to properties, right? I might be wrong on that, but I know you can bind to an interface and get to all the properties of the implementation, even those not defined on the interface. Couldn't that be leveraged for IronRuby objects? Actually, I've been confused on this point awhile: aren't all IronRuby objects implementations of RubyObject? If so, what is it that prevents the type from being bound? I'm sure that's already documented elsewhere, but I can never find the link when I go looking for it. Cheers! Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Mon, Jan 4, 2010 at 7:33 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Controlling the ?static? view of IronRuby is an inevitable feature, though > I?m not sure when we?ll get around to implementing it ? definitely after 1.0 > though. This type of feature opens a whole can of worms, and for me even > prompts the question, ?should IronRuby have optional static typing?? > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Tuesday, November 17, 2009 9:22 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] when do we get this? > > > > > http://devhawk.net/CommentView,guid,cef44285-b9e7-47c3-84b6-d79833c76875.aspx > > > > the question with regards to ironruby is when/if ? :) > > > > That sounds like it could be useful. > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Google Wave: portocarrero.ivan at googlewave.com > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 5 03:28:18 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 5 Jan 2010 08:28:18 +0000 Subject: [Ironruby-core] when do we get this? In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC9206F842@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9206FEB8@TK5EX14MBXC141.redmond.corp.microsoft.com> > Interesting. I thought that technique was only providing an underlying > "anonymous .NET base class" for binding purposes, much as IronRubyInline > could offer but without having to write any C#. I guess I was mistaken. You're actually correct. The IronPython clrtype feature simply allows you set the underlying CLR type that a Python class maps to. The examples that Harry built and Shri is currently maintaining build on top of that feature to provide helpers for customizing that underlying type, mainly taking the dynamic view of the world and make it static. This feature needs to exist because a CLR type is immutable, so the language needs to give user-code a chance to create the CLR type first. > Also, IronRuby does have types and WPF/Silverlight binding uses reflection > to late-bind to properties, right? I might be wrong on that, but I know you > can bind to an interface and get to all the properties of the implementation, > even those not defined on the interface. Couldn't that be leveraged for > IronRuby objects? A Ruby class does not map to a CLR type, so reflection does not work against the Ruby "view" of the world, and therefore WPF/Silverlight reflection-based binding doesn't work. Again, the methods and classes defined in Ruby are not mirrored as CLR objects, they only exist in IronRuby's data-structures. So reflection-based data-binding is out of the question for pure Ruby code. However, IronRuby.Builtins.RubyObject implements ICustomTypeDescriptor on the desktop CLR, which allows IronRuby to expose Ruby methods to data binding; I showed at RailsConf databinding a WinForms GridView to an ActiveRecord model. However, SL3 does not have this interface, so data binding in SL3 is only reflection-based. SL4 has IDynamicObject data-binding, so this won't be an issue at that time. > Actually, I've been confused on this point awhile: aren't all IronRuby > objects implementations of RubyObject? Sometimes =P a Ruby class that only has other Ruby class in its inheritance hierarchy will have a underlying CLR type of IronRuby.Builtins.RubyObject: >>> Object.new.GetType => IronRuby.Builtins.RubyObject However, if there is a CLR type in the inheritance hierarchy, the underlying CLR type will be generated in the IronRuby.Classes namespace: >>> class MyDict < System::Collections::Generic::Dictionary[String, String] ... end => nil >>> MyDict.new.GetType => IronRuby.Classes.Dictionary`2$1 Note how long that MyDict.new take to be created, which is entirely attributed to the cost of generating a new CLR type. ~Jimmy From ryan.riley at panesofglass.org Tue Jan 5 10:31:15 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Tue, 5 Jan 2010 09:31:15 -0600 Subject: [Ironruby-core] when do we get this? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9206FEB8@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC9206F842@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9206FEB8@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Thanks for the response, Jimmy. That really clears things up. So IDynamicObject binding is in SL4 now or planned for release? Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Jan 5, 2010 at 2:28 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > > Interesting. I thought that technique was only providing an underlying > > "anonymous .NET base class" for binding purposes, much as IronRubyInline > > could offer but without having to write any C#. I guess I was mistaken. > > You're actually correct. The IronPython clrtype feature simply allows you > set > the underlying CLR type that a Python class maps to. The examples that > Harry built and Shri is currently maintaining build on top of that feature > to provide helpers for customizing that underlying type, mainly taking the > dynamic view of the world and make it static. This feature needs to exist > because a CLR type is immutable, so the language needs to give user-code > a chance to create the CLR type first. > > > Also, IronRuby does have types and WPF/Silverlight binding uses > reflection > > to late-bind to properties, right? I might be wrong on that, but I know > you > > can bind to an interface and get to all the properties of the > implementation, > > even those not defined on the interface. Couldn't that be leveraged for > > IronRuby objects? > > A Ruby class does not map to a CLR type, so reflection does not work > against > the Ruby "view" of the world, and therefore WPF/Silverlight > reflection-based > binding doesn't work. Again, the methods and classes defined in Ruby are > not > mirrored as CLR objects, they only exist in IronRuby's data-structures. So > reflection-based data-binding is out of the question for pure Ruby code. > > However, IronRuby.Builtins.RubyObject implements ICustomTypeDescriptor on > the desktop CLR, which allows IronRuby to expose Ruby methods to data > binding; > I showed at RailsConf databinding a WinForms GridView to an ActiveRecord > model. > However, SL3 does not have this interface, so data binding in SL3 is only > reflection-based. SL4 has IDynamicObject data-binding, so this won't be an > issue at that time. > > > Actually, I've been confused on this point awhile: aren't all IronRuby > > objects implementations of RubyObject? > > Sometimes =P a Ruby class that only has other Ruby class in its inheritance > hierarchy > will have a underlying CLR type of IronRuby.Builtins.RubyObject: > > >>> Object.new.GetType > => IronRuby.Builtins.RubyObject > > However, if there is a CLR type in the inheritance hierarchy, the > underlying > CLR type will be generated in the IronRuby.Classes namespace: > > >>> class MyDict < System::Collections::Generic::Dictionary[String, String] > ... end > => nil > >>> MyDict.new.GetType > => IronRuby.Classes.Dictionary`2$1 > > Note how long that MyDict.new take to be created, which is entirely > attributed to > the cost of generating a new CLR type. > > ~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 robert.e.rouse at gmail.com Tue Jan 5 11:00:42 2010 From: robert.e.rouse at gmail.com (Robert Rouse) Date: Tue, 05 Jan 2010 10:00:42 -0600 Subject: [Ironruby-core] Problem with FolderBrowserDialog Message-ID: Hello, I have an interesting problem that I can?t work out. I have a GUI app that uses FolderBrowserDialog. It works fine when I run it from the command line with ir. When I embed IronRuby in an app, the browse window comes up, the ok, cancel, and make new folder buttons are there, but the actual browse functionality is missing. It?s just blank where the browse bit should be. This is how I?ve called IronRuby from the app: ScriptRuntime irruntime = IronRuby.Ruby.CreateRuntime(); ScriptEngine ir = IronRuby.Ruby.GetEngine(irruntime); ScriptScope scope = ir.CreateScope(); ScriptSource script = ir.CreateScriptSourceFromFile(script); script.Execute(scope); -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Tue Jan 5 11:21:02 2010 From: curth at microsoft.com (Curt Hagenlocher) Date: Tue, 5 Jan 2010 16:21:02 +0000 Subject: [Ironruby-core] Problem with FolderBrowserDialog In-Reply-To: References: Message-ID: <9DBDB52016D6F34AABBACF6C2876EA2814DE86DC@TK5EX14MBXC137.redmond.corp.microsoft.com> I seem to recall that the actual folder brower is implemented via COM, and that you probably need an [STAThread] attribute on your Main method. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Robert Rouse Sent: Tuesday, January 05, 2010 8:01 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Problem with FolderBrowserDialog Hello, I have an interesting problem that I can't work out. I have a GUI app that uses FolderBrowserDialog. It works fine when I run it from the command line with ir. When I embed IronRuby in an app, the browse window comes up, the ok, cancel, and make new folder buttons are there, but the actual browse functionality is missing. It's just blank where the browse bit should be. This is how I've called IronRuby from the app: ScriptRuntime irruntime = IronRuby.Ruby.CreateRuntime(); ScriptEngine ir = IronRuby.Ruby.GetEngine(irruntime); ScriptScope scope = ir.CreateScope(); ScriptSource script = ir.CreateScriptSourceFromFile(script); script.Execute(scope); -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.e.rouse at gmail.com Tue Jan 5 11:50:45 2010 From: robert.e.rouse at gmail.com (Robert Rouse) Date: Tue, 05 Jan 2010 10:50:45 -0600 Subject: [Ironruby-core] Problem with FolderBrowserDialog In-Reply-To: <9DBDB52016D6F34AABBACF6C2876EA2814DE86DC@TK5EX14MBXC137.redmond.corp.microsoft.com> Message-ID: That was it. It works now. On 1/5/10 10:21 AM, "Curt Hagenlocher" wrote: > I seem to recall that the actual folder brower is implemented via COM, and > that you probably need an [STAThread] attribute on your Main method. > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Robert Rouse > Sent: Tuesday, January 05, 2010 8:01 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Problem with FolderBrowserDialog > > Hello, > > I have an interesting problem that I can?t work out. > > I have a GUI app that uses FolderBrowserDialog. It works fine when I run it > from the command line with ir. > > When I embed IronRuby in an app, the browse window comes up, the ok, cancel, > and make new folder buttons are there, but the actual browse functionality is > missing. It?s just blank where the browse bit should be. This is how I?ve > called IronRuby from the app: > > ScriptRuntime irruntime = IronRuby.Ruby.CreateRuntime(); > > ScriptEngine ir = IronRuby.Ruby.GetEngine(irruntime); > > ScriptScope scope = ir.CreateScope(); > > ScriptSource script = ir.CreateScriptSourceFromFile(script); > > script.Execute(scope); > > > > _______________________________________________ > 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 ben2004uk at googlemail.com Tue Jan 5 18:38:04 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Tue, 5 Jan 2010 23:38:04 +0000 Subject: [Ironruby-core] One gem to rule them all? Message-ID: Hi guys, On my MacBook I'm noticing I'm having to install a gem three times (MRI, IronRuby, JRuby) - which is getting really annoying :) Am I doing something wrong??? Is there a way around this?? Thanks Ben From jdeville at microsoft.com Tue Jan 5 18:42:51 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 5 Jan 2010 23:42:51 +0000 Subject: [Ironruby-core] One gem to rule them all? In-Reply-To: References: Message-ID: What gem? -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Tuesday, January 05, 2010 3:38 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] One gem to rule them all? Hi guys, On my MacBook I'm noticing I'm having to install a gem three times (MRI, IronRuby, JRuby) - which is getting really annoying :) Am I doing something wrong??? Is there a way around this?? Thanks Ben _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Tue Jan 5 18:47:21 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 5 Jan 2010 23:47:21 +0000 Subject: [Ironruby-core] One gem to rule them all? In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92070853@TK5EX14MBXC141.redmond.corp.microsoft.com> Ben, do you mean each implementation is using a different RubyGems repository, so running "gem list" on each implementation gives you a different list? To work-around this, set both the "GEM_PATH" and "GEM_HOME" environment variables to be the RubyGem repo you want to use, and all the implementations will pull gems from only that one. For example, dev.bat in IronRuby's source sets GEM_PATH to be a location we have checked in, so Ruby and IronRuby share the same gems. If GEM_HOME was also set, then installing would default to that location. ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 05, 2010 3:43 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] One gem to rule them all? > > What gem? > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Tuesday, January 05, 2010 3:38 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] One gem to rule them all? > > Hi guys, > > On my MacBook I'm noticing I'm having to install a gem three times (MRI, > IronRuby, JRuby) - which is getting really annoying :) > > Am I doing something wrong??? Is there a way around this?? > > 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 From ivan at flanders.co.nz Tue Jan 5 18:51:40 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 6 Jan 2010 00:51:40 +0100 Subject: [Ironruby-core] One gem to rule them all? In-Reply-To: References: Message-ID: you can share gems by setting a location in .gemrc But there be dragons. because gem install will only generate the proper executable links for the version that is installing the gem. if you don't want to download the gems all the time then you can just reuse the .gem file from Assuming you have ruby installed in /usr /usr/lib/ruby/gems/1.9.1/cache if you share a location you can use gem pristine gem_name to (re)install the gem in the other ruby version. for libraries that don't have any executables or native extensions that should work just fine. the core of the gems functionality is to add the paths /usr/lib/ruby/gems/1.9.1/gems/*/lib to the load path. The install process also copies the files from the gem/bin folder to /usr/lib/ruby/gems/1.9.1/bin and then to /usr/bin If you use homebrew then this stuff is hidden a little bit deeper because homebrew symlinks the lib,bin,var,.. folers from within a Cellar repository. So in short you should be able to do so but sometimes it might require a little bit of work to make it dance. http://blogs.sun.com/mandy/entry/rubygems_etc_gemrc --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Google Wave: portocarrero.ivan at googlewave.com Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Jan 6, 2010 at 12:38 AM, Ben Hall wrote: > Hi guys, > > On my MacBook I'm noticing I'm having to install a gem three times > (MRI, IronRuby, JRuby) - which is getting really annoying :) > > Am I doing something wrong??? Is there a way around this?? > > Thanks > > Ben > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Jan 5 19:58:33 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 6 Jan 2010 00:58:33 +0000 Subject: [Ironruby-core] Code Review: AstImprovements2 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2A999776@TK5EX14MBXC131.redmond.corp.microsoft.com> tfpt review "/shelveset:AstImprovements2;REDMOND\tomat" DLR: Adds ExpressionCollectionBuilder (moves the implementation from IronRuby). This allows to construct optimized expressions via C# initializer syntax. Adds a subclass BlockBuilder that can be used to build blocks like so: Expression result = new BlockBuilder { expression1, ... (condition) ? foo : null, anotherExpression }; If the expression used in the initializer is null it is skipped. If the expression is a sequence of expressions (IEnumerable) its content is included in the block. BlockBuilder defines an implicit conversion to Expression. Ruby: Tree transformation refactorings: - Replaces some AstFactory utility methods with AstUtils equivalents. - Creates Lambda explicitly to avoid calls to MakeGenericType. - Uses BlockBuilder for building complex blocks. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: AstImprovements2.diff Type: application/octet-stream Size: 136018 bytes Desc: AstImprovements2.diff URL: From ckponnappa at gmail.com Wed Jan 6 10:17:24 2010 From: ckponnappa at gmail.com (C. K. Ponnappa) Date: Wed, 06 Jan 2010 20:47:24 +0530 Subject: [Ironruby-core] One gem to rule them all? In-Reply-To: References: Message-ID: <4B44A984.6030103@gmail.com> Hey Ben, This is a problem, but one that you're better of living with. I've tried sharing gem homes in the past and it can get real messy right after you install your first native gem, of if you have bin scripts like Ivan pointed out. Perhaps you could create a wrapper shell script that invokes a gem install for each flavour of Ruby you have? Cheers, Sidu. http://blog.sidu.in http://twitter.com/ponnappa Ben Hall wrote: > Hi guys, > > On my MacBook I'm noticing I'm having to install a gem three times > (MRI, IronRuby, JRuby) - which is getting really annoying :) > > Am I doing something wrong??? Is there a way around this?? > > Thanks > > Ben > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From Tomas.Matousek at microsoft.com Wed Jan 6 13:45:58 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 6 Jan 2010 18:45:58 +0000 Subject: [Ironruby-core] Code Review: Dir4 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2A999B6D@TK5EX14MBXC131.redmond.corp.microsoft.com> tfpt review "/shelveset:Dir4;REDMOND\tomat" Comment : DLR, Python: - Adds more file system APIs to PAL. Obsoletes virtual methods GetFiles and GetDirectories in favor of GetFileSystemEntries. Ruby: - Fixes some Dir specs, adds support for Unicode file/directory names. - Changes Dir and File methods to use PAL for file system operations. Adds Dir tests exercising a custom virtual file system. - Fixes encoding of file paths. This might fix some of the reported System::Text::DecoderFallbackException issues (http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2931) - Fixes issues with -v command line option. - Fixes bugs in methods using MutableString.GetByteArray. - Fixes MutableString#inspect and dump to handle strings with incomplete UTF16 characters. - Fixes bugs in glob. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Dir4.diff Type: application/octet-stream Size: 133345 bytes Desc: Dir4.diff URL: From Tomas.Matousek at microsoft.com Wed Jan 6 17:23:30 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 6 Jan 2010 22:23:30 +0000 Subject: [Ironruby-core] Code Review: Mono5 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2A999DBE@TK5EX14MBXC131.redmond.corp.microsoft.com> tfpt review "/shelveset:Mono5;REDMOND\tomat" Adds support for Mono to Dev.bat. Dev.bat takes an optional "mono" parameter and a path to the Mono bin directory. If supplied, it sets ROWAN_RUNTIME environment variable to "mono" and Mono bin directory is added to PATH. ROWAN_RUNTIME variable is used by ir.cmd, irtest, and irtests.rb. Adds aliases ipym, ipyrm, ipydm, rbxm, rbrm, rbdm that launch IronPython and IronRuby on Mono. Fixes issues reported by mcs. Mono's msbuild implementation, xbuild, almost works for Ruby.sln and IronPython.sln. The only problem is with warnings-as-errors flag, which is handled incorrectly by xbuild (see http://bugzilla.novell.com/show_bug.cgi?id=566087). The bug has been fixed already but binaries that would include the fix are not available yet. I've discovered and filed 10 bugs by running Ruby tests: Open: http://bugzilla.novell.com/show_bug.cgi?id=566241 http://bugzilla.novell.com/show_bug.cgi?id=566152 http://bugzilla.novell.com/show_bug.cgi?id=566117 http://bugzilla.novell.com/show_bug.cgi?id=565129 http://bugzilla.novell.com/show_bug.cgi?id=565152 Fixed in source, not shipped yet: http://bugzilla.novell.com/show_bug.cgi?id=566106 http://bugzilla.novell.com/show_bug.cgi?id=565120 http://bugzilla.novell.com/show_bug.cgi?id=565143 Fixed and shipped in 2.6.1: http://bugzilla.novell.com/show_bug.cgi?id=565117 http://bugzilla.novell.com/show_bug.cgi?id=565127 Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Mono5.diff Type: application/octet-stream Size: 30793 bytes Desc: Mono5.diff URL: From Jimmy.Schementi at microsoft.com Wed Jan 6 22:38:47 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 7 Jan 2010 03:38:47 +0000 Subject: [Ironruby-core] when do we get this? In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC9206F842@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9206FEB8@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92071892@TK5EX14MBXC141.redmond.corp.microsoft.com> I believe it?s in there not, but I don?t have any samples of it handy. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Tuesday, January 05, 2010 7:31 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] when do we get this? Thanks for the response, Jimmy. That really clears things up. So IDynamicObject binding is in SL4 now or planned for release? Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Jan 5, 2010 at 2:28 AM, Jimmy Schementi > wrote: > Interesting. I thought that technique was only providing an underlying > "anonymous .NET base class" for binding purposes, much as IronRubyInline > could offer but without having to write any C#. I guess I was mistaken. You're actually correct. The IronPython clrtype feature simply allows you set the underlying CLR type that a Python class maps to. The examples that Harry built and Shri is currently maintaining build on top of that feature to provide helpers for customizing that underlying type, mainly taking the dynamic view of the world and make it static. This feature needs to exist because a CLR type is immutable, so the language needs to give user-code a chance to create the CLR type first. > Also, IronRuby does have types and WPF/Silverlight binding uses reflection > to late-bind to properties, right? I might be wrong on that, but I know you > can bind to an interface and get to all the properties of the implementation, > even those not defined on the interface. Couldn't that be leveraged for > IronRuby objects? A Ruby class does not map to a CLR type, so reflection does not work against the Ruby "view" of the world, and therefore WPF/Silverlight reflection-based binding doesn't work. Again, the methods and classes defined in Ruby are not mirrored as CLR objects, they only exist in IronRuby's data-structures. So reflection-based data-binding is out of the question for pure Ruby code. However, IronRuby.Builtins.RubyObject implements ICustomTypeDescriptor on the desktop CLR, which allows IronRuby to expose Ruby methods to data binding; I showed at RailsConf databinding a WinForms GridView to an ActiveRecord model. However, SL3 does not have this interface, so data binding in SL3 is only reflection-based. SL4 has IDynamicObject data-binding, so this won't be an issue at that time. > Actually, I've been confused on this point awhile: aren't all IronRuby > objects implementations of RubyObject? Sometimes =P a Ruby class that only has other Ruby class in its inheritance hierarchy will have a underlying CLR type of IronRuby.Builtins.RubyObject: >>> Object.new.GetType => IronRuby.Builtins.RubyObject However, if there is a CLR type in the inheritance hierarchy, the underlying CLR type will be generated in the IronRuby.Classes namespace: >>> class MyDict < System::Collections::Generic::Dictionary[String, String] ... end => nil >>> MyDict.new.GetType => IronRuby.Classes.Dictionary`2$1 Note how long that MyDict.new take to be created, which is entirely attributed to the cost of generating a new CLR type. ~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 ivan at flanders.co.nz Fri Jan 8 09:23:36 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 8 Jan 2010 15:23:36 +0100 Subject: [Ironruby-core] Adding a finalizer to a ruby object Message-ID: Hi How do I add a finalizer to a ruby object? I've tried using ObjectSpace and define_finalizer. But the proc never got executed when I called ObjectSpace.garbage_collect Calling System::GC.collect had the same outcome and implementing a Finalize method doesn't seem to have any effect either class MyClass def Finalize puts "in Finalize" end def finalize puts "in lower finalize" end end MyClass.new System::GC.collect System::GC.max_generation, System::GCCollectionMode.forced #ObjectSpace.garbage_collect Thanks --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Google Wave: portocarrero.ivan at googlewave.com Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Jan 8 19:58:30 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sat, 9 Jan 2010 00:58:30 +0000 Subject: [Ironruby-core] Questions for IronRuby's RubyInside Article Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9207309B@TK5EX14MBXC141.redmond.corp.microsoft.com> All, RubyInside.com will be running a series of articles about all the various Ruby implementations, written by the implementers, and each article is accompanied with a Q&A-style section. IronRuby hasn't really received any IronRuby-specific questions, so I'd like to ask all of you to propose questions (as a reply to this mail), which I will then answer in the article =P. These can be questions you know the answer to, but think would provide valuable information to the rest of the Ruby community, or questions you don't know the answer too, which would provide valuable information to everyone =) For some context and/or inspiration, here's the current IronRuby Q&A: http://docs.google.com/View?id=dcvr9mmg_108c67mcf2b. Feedback or questions on the answers are welcome. ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Sat Jan 9 02:39:34 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Sat, 9 Jan 2010 09:39:34 +0200 Subject: [Ironruby-core] Questions for IronRuby's RubyInside Article In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9207309B@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC9207309B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Hi Jimmy, Here are some questions from the top of my head: 1. I'm a Ruby guy who loves Windows (the horror!!!), does IronRuby have advantage over other implementations when it comes to developing on Windows? 2. Will Ruby libraries and gems be available in IronRuby? 3. Silverlight is rapidly growing and improving. Since it is a .NET technology, can you write Silverlight applications with IronRuby? 4. Is Microsoft serious about it or will V1.0 be the first and the last version of IronRuby? Hope it helps, Shay. -------------------------------------------------------- Shay Friedman | Author of IronRuby Unleashed | .NET Technologies Consultant and Instructor | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Sat, Jan 9, 2010 at 2:58 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > All, > > > > RubyInside.com will be running a series of > articles about all the various Ruby implementations, written by the > implementers, and each article is accompanied with a Q&A-style section. > > > > IronRuby hasn?t really received any IronRuby-specific questions, so I?d > like to ask all of you to propose questions (as a reply to this mail), which > I will then answer in the article =P. These can be questions you know the > answer to, but think would provide valuable information to the rest of the > Ruby community, or questions you don?t know the answer too, which would > provide valuable information to everyone =) > > > > For some context and/or inspiration, here?s the current IronRuby Q&A: > http://docs.google.com/View?id=dcvr9mmg_108c67mcf2b. Feedback or questions > on the answers are welcome. > > > > ~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 Idgy at yandex.ru Sat Jan 9 13:23:04 2010 From: Idgy at yandex.ru (Ilya) Date: Sat, 09 Jan 2010 21:23:04 +0300 Subject: [Ironruby-core] Adding a finalizer to a ruby object In-Reply-To: References: Message-ID: <2751263061384@webmail112.yandex.ru> Garbage collection in Ruby is kind of tricky. From a.wilson82 at gmail.com Sat Jan 9 18:24:43 2010 From: a.wilson82 at gmail.com (andrew Wilson) Date: Sat, 9 Jan 2010 16:24:43 -0700 Subject: [Ironruby-core] Reflection bug? Message-ID: <9dbb46901001091524k551f9c9el8301565a06834475@mail.gmail.com> I am building a console application that uses a MSH style CmdParser ( http://channel9.msdn.com/playground/Sandbox/52952/) to read input parameters and reflect match them up against a data class defining their meaning. In the attempt to use RSpec & IronRuby to test my .net application, the code blows up on a call to the below method: private static Parameter[] GetPublicReadWriteCmdMembers(object instance) { if ( instance == null ) throw new ArgumentNullException("instance"); ArrayList al = new ArrayList(); Type type = instance.GetType(); ArrayList members = new ArrayList(); members.AddRange(type.GetProperties()); members.AddRange(type.GetFields()); if ( members.Count == 0 ) throw new ArgumentException("No public members in type."); foreach(MemberInfo mi in members) { // Only add members that have ParameterBaseAttribute(s). if ( ! mi.IsDefined(typeof(ParameterBaseAttribute), true) ) continue; switch(mi.MemberType) { case MemberTypes.Property: PropertyInfo pi = (PropertyInfo)mi; if ( ! (pi.PropertyType.IsPublic && pi.CanRead && pi.CanWrite) ) throw new ArgumentException("All CMD members must be public readable and writeable."); // Loop here on members if parameterAttributes. object[] pArray = pi.GetCustomAttributes(typeof(ParameterAttribute), true); if ( pArray != null && pArray.Length > 0 ) { foreach(ParameterAttribute pa in pArray) { Parameter p = Parameter.CreateParameter(instance, mi, pa); al.Add(p); } } else { // Use default ParameterAttribute. ParameterAttribute pa = new ParameterAttribute(); Parameter p = Parameter.CreateParameter(instance, mi, pa); al.Add(p); } break; case MemberTypes.Field: FieldInfo fi = (FieldInfo)mi; if ( ! fi.FieldType.IsPublic ) throw new ArgumentException("All Cmd members must be public"); object[] pArray2 = fi.GetCustomAttributes(typeof(ParameterAttribute), true); if ( pArray2 != null && pArray2.Length > 0 ) { foreach(ParameterAttribute pa in pArray2) { Parameter p = Parameter.CreateParameter(instance, mi, pa); al.Add(p); } } else { // Use default ParameterAttribute. ParameterAttribute pa = new ParameterAttribute(); Parameter p = Parameter.CreateParameter(instance, mi, pa); al.Add(p); } break; default: break; } } return (Parameter[])al.ToArray(typeof(Parameter)); } Specifically, the exception thrown is on the call: if ( ! mi.IsDefined(typeof(ParameterBaseAttribute), true) ) which is using reflection to figure out if the input parameter is defined in my data class (as best I can tell). The exception is: Could not load file or assembly 'CmdParser, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. So. I am stuck at a bit of an impasse. I tried requiring the CmdParser assembly in the way it claims above and it indeed blows up. However, if I call require.the dll itself and do some testing in IR I can repeat the exception during the reflection call. Any ideas for how I might get through this? -Andrew -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From ckponnappa at gmail.com Sun Jan 10 00:10:43 2010 From: ckponnappa at gmail.com (C. K. Ponnappa) Date: Sun, 10 Jan 2010 10:40:43 +0530 Subject: [Ironruby-core] App Servers Message-ID: <4B496153.7030209@gmail.com> Folks, a quick question - is there an equivalent app server to Thin (C-Ruby) and Glassfish (JRuby) for IronRuby? Something small, with no external deps that I can gem install? Thanks, Sidu. http://blog.sidu.in http://twitter.com/ponnappa From Jimmy.Schementi at microsoft.com Sun Jan 10 00:32:37 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sun, 10 Jan 2010 05:32:37 +0000 Subject: [Ironruby-core] App Servers In-Reply-To: <4B496153.7030209@gmail.com> References: <4B496153.7030209@gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920736BC@TK5EX14MBXC141.redmond.corp.microsoft.com> > Folks, a quick question - is there an equivalent app server to Thin > (C-Ruby) and Glassfish (JRuby) for IronRuby? Something small, with no > external deps that I can gem install? There is cassini, a small ASP.NET webserver, which is what Visual Studio uses as it's default debug webserver. However, there is no gem which installs just that for you, yet. Currently your choices are webrick, cassini, or IIS; cassini and IIS require the IronRuby.Rack adapter to run any rack-based applications. I'm currently updating the Rails instructions, so I'll include using cassini as well. From lists at ruby-forum.com Mon Jan 11 00:12:25 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Mon, 11 Jan 2010 06:12:25 +0100 Subject: [Ironruby-core] Adding a finalizer to a ruby object In-Reply-To: References: Message-ID: Ivan Porto carrero wrote: > Hi > > How do I add a finalizer to a ruby object? > > I've tried using ObjectSpace and define_finalizer. > But the proc never got executed when I called > ObjectSpace.garbage_collect > Calling System::GC.collect had the same outcome > > and implementing a Finalize method doesn't seem to have any effect > either > > class MyClass > > def Finalize > puts "in Finalize" > end > > def finalize > puts "in lower finalize" > end > > end What about using a proc, or block and running finalize after yield or proc.call? -Sam -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Jan 11 02:59:25 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 11 Jan 2010 08:59:25 +0100 Subject: [Ironruby-core] Adding a finalizer to a ruby object In-Reply-To: References: Message-ID: I specifically wanted to find a counterpart for this C# public class SomeClass { private object _unmanagedResource; public SomeClass(object unmanagedResource){ _unmanagedResource = unmanagedResource; } ~SomeClass(){ _unmanagedResource.Cleanup(); _unmanagedResource = null; } } I was writing about the dispose pattern and wanted to include a full counterpart implementation with a finalizer for unmanaged resources. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 11, 2010 at 6:12 AM, Sam Clopton wrote: > Ivan Porto carrero wrote: > > Hi > > > > How do I add a finalizer to a ruby object? > > > > I've tried using ObjectSpace and define_finalizer. > > But the proc never got executed when I called > > ObjectSpace.garbage_collect > > Calling System::GC.collect had the same outcome > > > > and implementing a Finalize method doesn't seem to have any effect > > either > > > > class MyClass > > > > def Finalize > > puts "in Finalize" > > end > > > > def finalize > > puts "in lower finalize" > > end > > > > end > > > What about using a proc, or block and running finalize after yield or > proc.call? > > -Sam > -- > 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 Mon Jan 11 03:44:36 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 11 Jan 2010 08:44:36 +0000 Subject: [Ironruby-core] Adding a finalizer to a ruby object In-Reply-To: References: Message-ID: <42331F7B-B99C-4748-9A87-80293D0F5A20@microsoft.com> Ivan, I'm not sure but I've asked the rest of the team and someone will get back to you shortly. ~Jimmy On Jan 11, 2010, at 12:00 AM, "Ivan Porto Carrero" > wrote: I specifically wanted to find a counterpart for this C# public class SomeClass { private object _unmanagedResource; public SomeClass(object unmanagedResource){ _unmanagedResource = unmanagedResource; } ~SomeClass(){ _unmanagedResource.Cleanup(); _unmanagedResource = null; } } I was writing about the dispose pattern and wanted to include a full counterpart implementation with a finalizer for unmanaged resources. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 11, 2010 at 6:12 AM, Sam Clopton <lists at ruby-forum.com> wrote: Ivan Porto carrero wrote: > Hi > > How do I add a finalizer to a ruby object? > > I've tried using ObjectSpace and define_finalizer. > But the proc never got executed when I called > ObjectSpace.garbage_collect > Calling System::GC.collect had the same outcome > > and implementing a Finalize method doesn't seem to have any effect > either > > class MyClass > > def Finalize > puts "in Finalize" > end > > def finalize > puts "in lower finalize" > end > > end What about using a proc, or block and running finalize after yield or proc.call? -Sam -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Jan 11 04:13:29 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 11 Jan 2010 10:13:29 +0100 Subject: [Ironruby-core] Adding a finalizer to a ruby object In-Reply-To: <42331F7B-B99C-4748-9A87-80293D0F5A20@microsoft.com> References: <42331F7B-B99C-4748-9A87-80293D0F5A20@microsoft.com> Message-ID: oh if that is the case can they also get back to me with overriding an indexer (http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3392)? I think that would result in a complete chapter with regards to CLR interop. Thanks a lot :D --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 11, 2010 at 9:44 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Ivan, I'm not sure but I've asked the rest of the team and someone will get > back to you shortly. > > ~Jimmy > > On Jan 11, 2010, at 12:00 AM, "Ivan Porto Carrero" > wrote: > > I specifically wanted to find a counterpart for this C# > > public class SomeClass { > > private object _unmanagedResource; > > public SomeClass(object unmanagedResource){ > _unmanagedResource = unmanagedResource; > } > > ~SomeClass(){ > _unmanagedResource.Cleanup(); > _unmanagedResource = null; > } > } > > I was writing about the dispose pattern and wanted to include a full > counterpart implementation with a finalizer for unmanaged resources. > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action ( > http://manning.com/carrero) > > > > On Mon, Jan 11, 2010 at 6:12 AM, Sam Clopton < > lists at ruby-forum.com> wrote: > >> Ivan Porto carrero wrote: >> > Hi >> > >> > How do I add a finalizer to a ruby object? >> > >> > I've tried using ObjectSpace and define_finalizer. >> > But the proc never got executed when I called >> > ObjectSpace.garbage_collect >> > Calling System::GC.collect had the same outcome >> > >> > and implementing a Finalize method doesn't seem to have any effect >> > either >> > >> > class MyClass >> > >> > def Finalize >> > puts "in Finalize" >> > end >> > >> > def finalize >> > puts "in lower finalize" >> > end >> > >> > end >> >> >> What about using a proc, or block and running finalize after yield or >> proc.call? >> >> -Sam >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Jan 11 04:42:51 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 11 Jan 2010 10:42:51 +0100 Subject: [Ironruby-core] Reflection bug? In-Reply-To: <9dbb46901001091524k551f9c9el8301565a06834475@mail.gmail.com> References: <9dbb46901001091524k551f9c9el8301565a06834475@mail.gmail.com> Message-ID: you can try copying your cmdparser.dll to the bin folder where ir.exe lives. That might work because I assume you've got it in the bin of your application already. Don't shoot me if it doesn't. I had to do this when I wanted to use particular control sets in WPF but that was a long time ago (>1yr) so things might be different now. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Jan 10, 2010 at 12:24 AM, andrew Wilson wrote: > I am building a console application that uses a MSH style CmdParser ( > http://channel9.msdn.com/playground/Sandbox/52952/) to read input > parameters and reflect match them up against a data class defining their > meaning. > > In the attempt to use RSpec & IronRuby to test my .net application, the > code blows up on a call to the below method: > > private static Parameter[] GetPublicReadWriteCmdMembers(object instance) > { > if ( instance == null ) > throw new ArgumentNullException("instance"); > > ArrayList al = new ArrayList(); > Type type = instance.GetType(); > ArrayList members = new ArrayList(); > members.AddRange(type.GetProperties()); > members.AddRange(type.GetFields()); > > if ( members.Count == 0 ) > throw new ArgumentException("No public members in type."); > > foreach(MemberInfo mi in members) > { > // Only add members that have ParameterBaseAttribute(s). > if ( ! mi.IsDefined(typeof(ParameterBaseAttribute), true) ) > continue; > > switch(mi.MemberType) > { > case MemberTypes.Property: > PropertyInfo pi = (PropertyInfo)mi; > if ( ! (pi.PropertyType.IsPublic && pi.CanRead && > pi.CanWrite) ) > throw new ArgumentException("All CMD members > must be public readable and writeable."); > > // Loop here on members if parameterAttributes. > object[] pArray = > pi.GetCustomAttributes(typeof(ParameterAttribute), true); > if ( pArray != null && pArray.Length > 0 ) > { > foreach(ParameterAttribute pa in pArray) > { > Parameter p = > Parameter.CreateParameter(instance, mi, pa); > al.Add(p); > } > } > else > { > // Use default ParameterAttribute. > ParameterAttribute pa = new > ParameterAttribute(); > Parameter p = > Parameter.CreateParameter(instance, mi, pa); > al.Add(p); > } > break; > case MemberTypes.Field: > FieldInfo fi = (FieldInfo)mi; > if ( ! fi.FieldType.IsPublic ) > throw new ArgumentException("All Cmd members > must be public"); > > object[] pArray2 = > fi.GetCustomAttributes(typeof(ParameterAttribute), true); > if ( pArray2 != null && pArray2.Length > 0 ) > { > foreach(ParameterAttribute pa in pArray2) > { > Parameter p = > Parameter.CreateParameter(instance, mi, pa); > al.Add(p); > } > } > else > { > // Use default ParameterAttribute. > ParameterAttribute pa = new > ParameterAttribute(); > Parameter p = > Parameter.CreateParameter(instance, mi, pa); > al.Add(p); > } > > break; > default: > break; > } > } > return (Parameter[])al.ToArray(typeof(Parameter)); > } > > Specifically, the exception thrown is on the call: if ( ! > mi.IsDefined(typeof(ParameterBaseAttribute), true) ) which is using > reflection to figure out if the input parameter is defined in my data class > (as best I can tell). > > The exception is: > > Could not load file or assembly 'CmdParser, Version=1.5.0.0, > Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system > cannot find the file specified. > > So. I am stuck at a bit of an impasse. I tried requiring the CmdParser > assembly in the way it claims above and it indeed blows up. However, if I > call require.the dll itself and do some testing in IR I can repeat the > exception during the reflection call. > > Any ideas for how I might get through this? > > -Andrew > > -- > When I wrote this, only God and I understood what I was doing. Now, God > only knows - Karl Weierstrass > > _______________________________________________ > 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 Jan 11 08:01:17 2010 From: lists at ruby-forum.com (Cristiano Ceglia) Date: Mon, 11 Jan 2010 14:01:17 +0100 Subject: [Ironruby-core] Is ROR on IronRuby production ready? Message-ID: <052086c48f676524efeaaf012a1c4568@ruby-forum.com> Hi all, I was wondering if ROR on IronRuby is ready for production use? I googled it, but I couldn't find something on it. Thank you -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Jan 11 08:42:56 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 11 Jan 2010 14:42:56 +0100 Subject: [Ironruby-core] Is ROR on IronRuby production ready? In-Reply-To: <052086c48f676524efeaaf012a1c4568@ruby-forum.com> References: <052086c48f676524efeaaf012a1c4568@ruby-forum.com> Message-ID: If by production ready you mean will it run rails without blowing up. Then the answer is yes But the only way to know for sure is to run your test suite against IronRuby. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 11, 2010 at 2:01 PM, Cristiano Ceglia wrote: > Hi all, > > I was wondering if ROR on IronRuby is ready for production use? > > I googled it, but I couldn't find something on it. > > Thank you > -- > 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 a.wilson82 at gmail.com Mon Jan 11 09:31:08 2010 From: a.wilson82 at gmail.com (andrew Wilson) Date: Mon, 11 Jan 2010 07:31:08 -0700 Subject: [Ironruby-core] Reflection bug? Message-ID: <9dbb46901001110631k7fe9969chdf47959fb3ef0a39@mail.gmail.com> That worked! That would be a fun bug to track down. :) I was worried that it was reflection against an attribute, because the documentation on the IR site seems to suggest that attributes still aren't supported in .net API interop. ( http://ironruby.net/Documentation/.NET/API_Guidelines) Thanks again! -A -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_tayseer82 at yahoo.com Mon Jan 11 10:21:04 2010 From: m_tayseer82 at yahoo.com (Mohammad Tayseer) Date: Mon, 11 Jan 2010 07:21:04 -0800 (PST) Subject: [Ironruby-core] Using IronPython and IronRuby from C# 4.0 Message-ID: <353328.51407.qm@web113804.mail.gq1.yahoo.com> Hello I'm going to give a session about new features in C# 4.0 in Cairo Code Camp (), and I was thinking of illustrating using Python and Ruby libraries from C# 4, instead of the repeated COM interoperability. I was thinking of presenting BeautifulSoup, SqlAlchemy and/or Rails ActiveRecord, as examples of common libraries in dynamic languages. I'm still working on them and discovering if they are supported on IronPython and IronRuby, but what would you like to see if you were able to attend Your feedback is highly appreciated. Mohammad Tayseer http://spellcoder.com/blogs/tayseer -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Jan 11 10:45:09 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 11 Jan 2010 16:45:09 +0100 Subject: [Ironruby-core] Reflection bug? In-Reply-To: <9dbb46901001110631k7fe9969chdf47959fb3ef0a39@mail.gmail.com> References: <9dbb46901001110631k7fe9969chdf47959fb3ef0a39@mail.gmail.com> Message-ID: That's a bit ambiguous. If your C# library uses attributes I don't see why you wouldn't be able to reflect over those types with IronRuby and execute the attribute. But using attributes in Ruby that is a totally different story. Luckily ruby has a different idea about classes and you can use class methods to reach a similar effect. For example ASP.NET MVC uses attributes to do its job, but IronRubyMvc has no need for them because it uses those class methods. http://github.com/casualjim/ironrubymvc/blob/master/IronRubyMvc/Controllers/controller.rb#L173 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 11, 2010 at 3:31 PM, andrew Wilson wrote: > That worked! That would be a fun bug to track down. :) > > I was worried that it was reflection against an attribute, because the > documentation on the IR site seems to suggest that attributes still aren't > supported in .net API interop. ( > http://ironruby.net/Documentation/.NET/API_Guidelines) > > Thanks again! > -A > > > -- > When I wrote this, only God and I understood what I was doing. Now, God > only knows - Karl Weierstrass > > _______________________________________________ > 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 Jan 11 12:48:10 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 11 Jan 2010 17:48:10 +0000 Subject: [Ironruby-core] Code Review: Dir4 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34B81843@TK5EX14MBXC116.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C2A999B6D@TK5EX14MBXC131.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD34B81843@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: I know I'm late on this, but test looks good too. JD -----Original Message----- From: Dino Viehland Sent: Wednesday, January 06, 2010 10:56 AM To: Tomas Matousek; IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: Dir4 Python/DLR/Silverlight looks good > -----Original Message----- > From: Tomas Matousek > Sent: Wednesday, January 06, 2010 10:46 AM > To: IronRuby External Code Reviewers; Rowan Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: Code Review: Dir4 > > tfpt review "/shelveset:Dir4;REDMOND\tomat" > Comment : > DLR, Python: > - Adds more file system APIs to PAL. Obsoletes virtual methods GetFiles > and GetDirectories in favor of GetFileSystemEntries. > > Ruby: > - Fixes some Dir specs, adds support for Unicode file/directory names. > - Changes Dir and File methods to use PAL for file system operations. Adds > Dir tests exercising a custom virtual file system. > - Fixes encoding of file paths. This might fix some of the reported > System::Text::DecoderFallbackException issues > (http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2931) > - Fixes issues with -v command line option. > - Fixes bugs in methods using MutableString.GetByteArray. > - Fixes MutableString#inspect and dump to handle strings with incomplete > UTF16 characters. > - Fixes bugs in glob. > > Tomas From randallsutton at gmail.com Mon Jan 11 15:26:51 2010 From: randallsutton at gmail.com (Randall Sutton) Date: Mon, 11 Jan 2010 13:26:51 -0700 Subject: [Ironruby-core] Debug IronRuby in Silverlight Message-ID: <52C72DBD-F07A-402D-BB03-150C3E65FE74@gmail.com> Ok. I give up. I cannot for the life of me getting a simple IronRuby Silverlight project to debug. I am using VS2008 SP1 and the Silverlight 3 Tools. These are my steps: - Create website using chiron. - Set the initparams to debug=true,reportErrors=errorLocation - F5 These last steps I have tried in every order under the sun. - Set a breakpoint in my app.rb file - Attach to browser - Refresh browser No matter what I do I always get that empty circle with a question mark for my breakpoint like the symbols never get loaded. I have tried using both Casini and Chiron when trying to be debug, but nothing works. I also tried selected the Silverlight checkbox in the website settings for the debugging and still nothing. Please help. Thanks, Randall From ryan.riley at panesofglass.org Mon Jan 11 15:36:26 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 11 Jan 2010 14:36:26 -0600 Subject: [Ironruby-core] Questions for IronRuby's RubyInside Article In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9207309B@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC9207309B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: I'm not sure if this is too late or not, but regarding this question: *Q: **Closures, continuations, and tail-call optimizations are often discussed in terms of programming language VM's. Which of these attributes are implementable at present, which are expected to be implemented, and which are not possible by design?* * * You might want to peek at the Reactive Extensions Observable.Createmethod. This method is supposed to represent call/cc on the CLR. Several of us are still trying to figure out exactly how, but with Rx running on .NET, Mono, and Silverlight, you should be covered. This is probably a 1.x feature, but I just wanted to throw it out there. * *Ryan Riley On Fri, Jan 8, 2010 at 6:58 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > All, > > > > RubyInside.com will be running a series of > articles about all the various Ruby implementations, written by the > implementers, and each article is accompanied with a Q&A-style section. > > > > IronRuby hasn?t really received any IronRuby-specific questions, so I?d > like to ask all of you to propose questions (as a reply to this mail), which > I will then answer in the article =P. These can be questions you know the > answer to, but think would provide valuable information to the rest of the > Ruby community, or questions you don?t know the answer too, which would > provide valuable information to everyone =) > > > > For some context and/or inspiration, here?s the current IronRuby Q&A: > http://docs.google.com/View?id=dcvr9mmg_108c67mcf2b. Feedback or questions > on the answers are welcome. > > > > ~Jimmy > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jan 11 16:02:35 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 11 Jan 2010 21:02:35 +0000 Subject: [Ironruby-core] Questions for IronRuby's RubyInside Article In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC9207309B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E148B5F@TK5EX14MBXC122.redmond.corp.microsoft.com> No, there is currently no way how to implement continuations on CLR that could capture stack of arbitrary managed method frames. If all frames were under your control you could compile them in a special way that supports continuations. That?s IMO what Rx provides. In theory we could IL-rewrite IronRuby.Libararies into code that supports continuations and we could generate continuations aware IL for Ruby methods. But as soon as you have a call to an arbitrary .NET method that wasn?t compiled with continuations support in the middle of your stack trace it breaks. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Monday, January 11, 2010 12:36 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Questions for IronRuby's RubyInside Article I'm not sure if this is too late or not, but regarding this question: Q: Closures, continuations, and tail-call optimizations are often discussed in terms of programming language VM's. Which of these attributes are implementable at present, which are expected to be implemented, and which are not possible by design? You might want to peek at the Reactive Extensions Observable.Create method. This method is supposed to represent call/cc on the CLR. Several of us are still trying to figure out exactly how, but with Rx running on .NET, Mono, and Silverlight, you should be covered. This is probably a 1.x feature, but I just wanted to throw it out there. Ryan Riley On Fri, Jan 8, 2010 at 6:58 PM, Jimmy Schementi > wrote: All, RubyInside.com will be running a series of articles about all the various Ruby implementations, written by the implementers, and each article is accompanied with a Q&A-style section. IronRuby hasn?t really received any IronRuby-specific questions, so I?d like to ask all of you to propose questions (as a reply to this mail), which I will then answer in the article =P. These can be questions you know the answer to, but think would provide valuable information to the rest of the Ruby community, or questions you don?t know the answer too, which would provide valuable information to everyone =) For some context and/or inspiration, here?s the current IronRuby Q&A: http://docs.google.com/View?id=dcvr9mmg_108c67mcf2b. Feedback or questions on the answers are welcome. ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jan 11 16:35:22 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 11 Jan 2010 21:35:22 +0000 Subject: [Ironruby-core] Adding a finalizer to a ruby object In-Reply-To: <42331F7B-B99C-4748-9A87-80293D0F5A20@microsoft.com> References: <42331F7B-B99C-4748-9A87-80293D0F5A20@microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E148BAC@TK5EX14MBXC122.redmond.corp.microsoft.com> We don?t support finalizers yet, but it shouldn?t be too much work to make ObjectSpace#define_finalizer work with Ruby objects. We might also consider providing some means to override CLR Finalize method. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Monday, January 11, 2010 12:45 AM To: Subject: Re: [Ironruby-core] Adding a finalizer to a ruby object Ivan, I'm not sure but I've asked the rest of the team and someone will get back to you shortly. ~Jimmy On Jan 11, 2010, at 12:00 AM, "Ivan Porto Carrero" > wrote: I specifically wanted to find a counterpart for this C# public class SomeClass { private object _unmanagedResource; public SomeClass(object unmanagedResource){ _unmanagedResource = unmanagedResource; } ~SomeClass(){ _unmanagedResource.Cleanup(); _unmanagedResource = null; } } I was writing about the dispose pattern and wanted to include a full counterpart implementation with a finalizer for unmanaged resources. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 11, 2010 at 6:12 AM, Sam Clopton > wrote: Ivan Porto carrero wrote: > Hi > > How do I add a finalizer to a ruby object? > > I've tried using ObjectSpace and define_finalizer. > But the proc never got executed when I called > ObjectSpace.garbage_collect > Calling System::GC.collect had the same outcome > > and implementing a Finalize method doesn't seem to have any effect > either > > class MyClass > > def Finalize > puts "in Finalize" > end > > def finalize > puts "in lower finalize" > end > > end What about using a proc, or block and running finalize after yield or proc.call? -Sam -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Jan 11 16:58:28 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 11 Jan 2010 21:58:28 +0000 Subject: [Ironruby-core] Debug IronRuby in Silverlight In-Reply-To: <52C72DBD-F07A-402D-BB03-150C3E65FE74@gmail.com> References: <52C72DBD-F07A-402D-BB03-150C3E65FE74@gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209E264@TK5EX14MBXC141.redmond.corp.microsoft.com> Randall, It's a bug; we were not emitting PDBs in Silverlight, by mistake (http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3423). This will be checked in shortly and fixed in the next release. If you want to fix this yourself now, just remove the "#if !SILVERLIGHT" and corresponding "#endif" from RubyScriptCode.CompileLambda(http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Languages/Ruby/Ruby/Runtime/RubyScriptCode.cs#L124), then rebuild IronRuby for Silverlight: msbuild Merlin/Main/Languages/Ruby/Ruby.sln /p:Configuration="Silverlight Debug" /p:SilverlightPath="C:\Program Files\Microsoft Silverlight\3.0.40818.0" (make sure that path to Silverlight is correct for you). ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Randall Sutton > Sent: Monday, January 11, 2010 12:27 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Debug IronRuby in Silverlight > > Ok. I give up. I cannot for the life of me getting a simple IronRuby > Silverlight project to debug. I am using VS2008 SP1 and the Silverlight 3 > Tools. > > These are my steps: > - Create website using chiron. > - Set the initparams to debug=true,reportErrors=errorLocation > - F5 > These last steps I have tried in every order under the sun. > - Set a breakpoint in my app.rb file > - Attach to browser > - Refresh browser > > No matter what I do I always get that empty circle with a question mark for > my breakpoint like the symbols never get loaded. I have tried using both > Casini and Chiron when trying to be debug, but nothing works. I also tried > selected the Silverlight checkbox in the website settings for the debugging > and still nothing. > > Please help. > > Thanks, > Randall > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From orion.edwards at gmail.com Mon Jan 11 22:27:26 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Tue, 12 Jan 2010 16:27:26 +1300 Subject: [Ironruby-core] Review: Time does not map to System.DateTime In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C80C487@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C80C487@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <7c1b59c01001111927p5dfdbf9eq9e8454dc9e51e0da@mail.gmail.com> I've just upgraded to the latest IronRuby and am hitting this... Given that I have a bunch of Time objects, how do I now convert them to a System::DateTime for clr interop? I can't seem to find any methods on the ruby Time object that return the clr object -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jan 11 23:43:37 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 12 Jan 2010 04:43:37 +0000 Subject: [Ironruby-core] Review: Time does not map to System.DateTime In-Reply-To: <7c1b59c01001111927p5dfdbf9eq9e8454dc9e51e0da@mail.gmail.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C80C487@TK5EX14MBXC140.redmond.corp.microsoft.com> <7c1b59c01001111927p5dfdbf9eq9e8454dc9e51e0da@mail.gmail.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E149F82@TK5EX14MBXC122.redmond.corp.microsoft.com> RubyTime class is implicitly convertible to DateTime. So you shouldn't need to convert it explicitly in most cases. You can call DateTime method to get DateTime from RubyTime if needed: >>> Time.now => Mon Jan 11 20:40:12 -0800 2010 >>> Time.now.DateTime => 1/11/2010 8:40:15 PM Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Monday, January 11, 2010 7:27 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Review: Time does not map to System.DateTime I've just upgraded to the latest IronRuby and am hitting this... Given that I have a bunch of Time objects, how do I now convert them to a System::DateTime for clr interop? I can't seem to find any methods on the ruby Time object that return the clr object -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.wilson82 at gmail.com Tue Jan 12 00:06:23 2010 From: a.wilson82 at gmail.com (andrew Wilson) Date: Mon, 11 Jan 2010 22:06:23 -0700 Subject: [Ironruby-core] InternalsVisibleTo Message-ID: <9dbb46901001112106r79971abai7de5e677da0ee823@mail.gmail.com> I know this is a bit of a longshot, but has anyone got an internalsvisibleto attribute to work so they could debug internal classes from ir itself? I tried to add the namespace "ir" and public key to the assembly I was trying to test to no avail. Im building out some rspec & IronRuby tests of my .net assemblies and it would be nice if I could reach out and touch some internal classes :) -A -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 12 00:13:55 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 05:13:55 +0000 Subject: [Ironruby-core] InternalsVisibleTo In-Reply-To: <9dbb46901001112106r79971abai7de5e677da0ee823@mail.gmail.com> References: <9dbb46901001112106r79971abai7de5e677da0ee823@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209E938@TK5EX14MBXC141.redmond.corp.microsoft.com> Running IronRuby with the "-X:PrivateBinding" will allow access to private members, which should also work for internal members (I believe, try it out just to be sure and report back). From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of andrew Wilson Sent: Monday, January 11, 2010 9:06 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] InternalsVisibleTo I know this is a bit of a longshot, but has anyone got an internalsvisibleto attribute to work so they could debug internal classes from ir itself? I tried to add the namespace "ir" and public key to the assembly I was trying to test to no avail. Im building out some rspec & IronRuby tests of my .net assemblies and it would be nice if I could reach out and touch some internal classes :) -A -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Tue Jan 12 00:59:25 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Tue, 12 Jan 2010 07:59:25 +0200 Subject: [Ironruby-core] Is ROR on IronRuby production ready? In-Reply-To: References: <052086c48f676524efeaaf012a1c4568@ruby-forum.com> Message-ID: In addition to what Ivan has said - IronRuby still hasn't reach version 1.0, so I guess you can't really say it's ready for production. -------------------------------------------------------- Shay Friedman | Author of IronRuby Unleashed Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Jan 11, 2010 at 3:42 PM, Ivan Porto Carrero wrote: > If by production ready you mean will it run rails without blowing up. Then > the answer is yes > But the only way to know for sure is to run your test suite against > IronRuby. > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > > On Mon, Jan 11, 2010 at 2:01 PM, Cristiano Ceglia wrote: > >> Hi all, >> >> I was wondering if ROR on IronRuby is ready for production use? >> >> I googled it, but I couldn't find something on it. >> >> Thank you >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 12 01:41:56 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 06:41:56 +0000 Subject: [Ironruby-core] Is ROR on IronRuby production ready? In-Reply-To: References: <052086c48f676524efeaaf012a1c4568@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209EB9A@TK5EX14MBXC141.redmond.corp.microsoft.com> Cristiano Ceglia > I was wondering if ROR on IronRuby is ready for production use? > > I googled it, but I couldn't find something on it. I'll go out on a limb and say we're really really close. I've been testing Rails for the past couple days, and thinks are just working. Once I get this new round of documentation completed (I'll let the list know when), I'd love to see more people trying out their apps, and also trying to deploy on Windows. From shay.friedman at gmail.com Tue Jan 12 01:51:43 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Tue, 12 Jan 2010 08:51:43 +0200 Subject: [Ironruby-core] Is ROR on IronRuby production ready? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9209EB9A@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <052086c48f676524efeaaf012a1c4568@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC9209EB9A@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: I did an IronRuby on Rails presentation the other day and developed an entire blog application with IronRuby on Rails. Even though you don't run into the rough edges during a presentation demo (hopefully!), I didn't have any problems with IronRuby running rails and I did use various features of rails. -------------------------------------------------------- Shay Friedman | Author of IronRuby Unleashed Mobile: +972 52 3978252 | Email: shay.friedman at gmail.com | Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Jan 12, 2010 at 8:41 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Cristiano Ceglia > > I was wondering if ROR on IronRuby is ready for production use? > > > > I googled it, but I couldn't find something on it. > > I'll go out on a limb and say we're really really close. I've been testing > Rails for the past couple days, and thinks are just working. Once I get this > new round of documentation completed (I'll let the list know when), I'd love > to see more people trying out their apps, and also trying to deploy on > Windows. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 12 02:22:10 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 07:22:10 +0000 Subject: [Ironruby-core] Using IronPython and IronRuby from C# 4.0 In-Reply-To: <353328.51407.qm@web113804.mail.gq1.yahoo.com> References: <353328.51407.qm@web113804.mail.gq1.yahoo.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209EC32@TK5EX14MBXC141.redmond.corp.microsoft.com> Check this out for something to get you started with ActiveRecord (outside of Rails): http://gist.github.com/273430. The Rails documentation on the IronRuby site is for all of Rails: http://ironruby.net/documentation/rails. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Tayseer Sent: Monday, January 11, 2010 7:21 AM To: IronPython IronPython; ironruby-core at rubyforge.org Subject: [Ironruby-core] Using IronPython and IronRuby from C# 4.0 Hello I'm going to give a session about new features in C# 4.0 in Cairo Code Camp (), and I was thinking of illustrating using Python and Ruby libraries from C# 4, instead of the repeated COM interoperability. I was thinking of presenting BeautifulSoup, SqlAlchemy and/or Rails ActiveRecord, as examples of common libraries in dynamic languages. I'm still working on them and discovering if they are supported on IronPython and IronRuby, but what would you like to see if you were able to attend Your feedback is highly appreciated. Mohammad Tayseer http://spellcoder.com/blogs/tayseer -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 12 04:20:09 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 09:20:09 +0000 Subject: [Ironruby-core] Code Review: rbslpdb Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920A38E2@TK5EX14MBXC141.redmond.corp.microsoft.com> tfpt review "/shelveset:rbslpdb;REDMOND\jimmysch" Comment : IronRuby should emit PDBs in Silverlight -------------- next part -------------- A non-text attachment was scrubbed... Name: rbslpdb.diff Type: application/octet-stream Size: 1118 bytes Desc: rbslpdb.diff URL: From lists at ruby-forum.com Tue Jan 12 09:41:20 2010 From: lists at ruby-forum.com (Cristiano Ceglia) Date: Tue, 12 Jan 2010 15:41:20 +0100 Subject: [Ironruby-core] Is ROR on IronRuby production ready? In-Reply-To: References: <052086c48f676524efeaaf012a1c4568@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC9209EB9A@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Thank you guys for the answers. I will try it in production, and.. crossed fingers!! :) Cristiano -- Posted via http://www.ruby-forum.com/. From a.wilson82 at gmail.com Tue Jan 12 11:42:30 2010 From: a.wilson82 at gmail.com (andrew Wilson) Date: Tue, 12 Jan 2010 09:42:30 -0700 Subject: [Ironruby-core] InternalsVisibleTo Message-ID: <9dbb46901001120842q7a54e322x67c4a6e3be0802d8@mail.gmail.com> Jimmy, Yes that worked, but it did point out another problem. When I do: My::Domain.constants I have somewhere like 15 references to .dll's that won't load unless I copy them off to the bin folder for IronRuby. The references for each of them are to their physical path, so I would have thought that to solve that issue. It's not a major deal for now, but its kinda hokey copying those files over :) Any ideas? -A On Mon, Jan 11, 2010 at 10:14 PM, wrote: > Send Ironruby-core mailing list submissions to > ironruby-core at rubyforge.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://rubyforge.org/mailman/listinfo/ironruby-core > or, via email, send a message with subject or body 'help' to > ironruby-core-request at rubyforge.org > > You can reach the person managing the list at > ironruby-core-owner at rubyforge.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ironruby-core digest..." > > > Today's Topics: > > 1. InternalsVisibleTo (andrew Wilson) > 2. Re: InternalsVisibleTo (Jimmy Schementi) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 11 Jan 2010 22:06:23 -0700 > From: andrew Wilson > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] InternalsVisibleTo > Message-ID: > <9dbb46901001112106r79971abai7de5e677da0ee823 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I know this is a bit of a longshot, but has anyone got an > internalsvisibleto > attribute to work so they could debug internal classes from ir itself? I > tried to add the namespace "ir" and public key to the assembly I was trying > to test to no avail. > > Im building out some rspec & IronRuby tests of my .net assemblies and it > would be nice if I could reach out and touch some internal classes :) > > -A > > -- > When I wrote this, only God and I understood what I was doing. Now, God > only knows - Karl Weierstrass > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://rubyforge.org/pipermail/ironruby-core/attachments/20100111/05457b09/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Tue, 12 Jan 2010 05:13:55 +0000 > From: Jimmy Schementi > To: "ironruby-core at rubyforge.org" > Subject: Re: [Ironruby-core] InternalsVisibleTo > Message-ID: > < > 1B42307CD4AADD438CDDA2FE1121CC9209E938 at TK5EX14MBXC141.redmond.corp.microsoft.com > > > > Content-Type: text/plain; charset="us-ascii" > > Running IronRuby with the "-X:PrivateBinding" will allow access to private > members, which should also work for internal members (I believe, try it out > just to be sure and report back). > > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of andrew Wilson > Sent: Monday, January 11, 2010 9:06 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] InternalsVisibleTo > > I know this is a bit of a longshot, but has anyone got an > internalsvisibleto attribute to work so they could debug internal classes > from ir itself? I tried to add the namespace "ir" and public key to the > assembly I was trying to test to no avail. > > Im building out some rspec & IronRuby tests of my .net assemblies and it > would be nice if I could reach out and touch some internal classes :) > > -A > > -- > When I wrote this, only God and I understood what I was doing. Now, God > only knows - Karl Weierstrass > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://rubyforge.org/pipermail/ironruby-core/attachments/20100112/aaad5e6f/attachment.html > > > > ------------------------------ > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > End of Ironruby-core Digest, Vol 29, Issue 15 > ********************************************* > -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Jan 12 12:50:21 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 12 Jan 2010 17:50:21 +0000 Subject: [Ironruby-core] Code Review: specupdate Message-ID: tfpt review "/shelveset:specupdate;REDMOND\jdeville" Comment : Updates RubySpecs and fixes bugs in FileOps, FileTest and Kernel. Also implements etc.rb to match MRI on windows. The FileOps, FileTest, Kernel and etc.rb changes are duplicated in specupdate-cs so that they can be reviewed without the entire Rubyspec update JD -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: specupdate.diff Type: application/octet-stream Size: 1428615 bytes Desc: specupdate.diff URL: From Tomas.Matousek at microsoft.com Tue Jan 12 13:38:10 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 12 Jan 2010 18:38:10 +0000 Subject: [Ironruby-core] Code Review: rbslpdb In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920A38E2@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920A38E2@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14B587@TK5EX14MBXC122.redmond.corp.microsoft.com> Looks good. Tomas -----Original Message----- From: Jimmy Schementi Sent: Tuesday, January 12, 2010 1:20 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: rbslpdb tfpt review "/shelveset:rbslpdb;REDMOND\jimmysch" Comment : IronRuby should emit PDBs in Silverlight From Tomas.Matousek at microsoft.com Tue Jan 12 13:43:10 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 12 Jan 2010 18:43:10 +0000 Subject: [Ironruby-core] Code Review: specupdate In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14B5A0@TK5EX14MBXC122.redmond.corp.microsoft.com> Looks good. Tomas From: Jim Deville Sent: Tuesday, January 12, 2010 9:50 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: specupdate tfpt review "/shelveset:specupdate;REDMOND\jdeville" Comment : Updates RubySpecs and fixes bugs in FileOps, FileTest and Kernel. Also implements etc.rb to match MRI on windows. The FileOps, FileTest, Kernel and etc.rb changes are duplicated in specupdate-cs so that they can be reviewed without the entire Rubyspec update JD -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 12 14:38:39 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 19:38:39 +0000 Subject: [Ironruby-core] InternalsVisibleTo In-Reply-To: <9dbb46901001120842q7a54e322x67c4a6e3be0802d8@mail.gmail.com> References: <9dbb46901001120842q7a54e322x67c4a6e3be0802d8@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920A8EC3@TK5EX14MBXC141.redmond.corp.microsoft.com> Have you tried requiring them? "require 'foo'" will look on the path for foo.rb, as well as foo.dll. If you could provide a small repro of your issue I can give more help. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of andrew Wilson Sent: Tuesday, January 12, 2010 8:43 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] InternalsVisibleTo Jimmy, Yes that worked, but it did point out another problem. When I do: My::Domain.constants I have somewhere like 15 references to .dll's that won't load unless I copy them off to the bin folder for IronRuby. The references for each of them are to their physical path, so I would have thought that to solve that issue. It's not a major deal for now, but its kinda hokey copying those files over :) Any ideas? -A On Mon, Jan 11, 2010 at 10:14 PM, > wrote: Send Ironruby-core mailing list submissions to ironruby-core at rubyforge.org To subscribe or unsubscribe via the World Wide Web, visit http://rubyforge.org/mailman/listinfo/ironruby-core or, via email, send a message with subject or body 'help' to ironruby-core-request at rubyforge.org You can reach the person managing the list at ironruby-core-owner at rubyforge.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Ironruby-core digest..." Today's Topics: 1. InternalsVisibleTo (andrew Wilson) 2. Re: InternalsVisibleTo (Jimmy Schementi) ---------------------------------------------------------------------- Message: 1 Date: Mon, 11 Jan 2010 22:06:23 -0700 From: andrew Wilson > To: ironruby-core at rubyforge.org Subject: [Ironruby-core] InternalsVisibleTo Message-ID: <9dbb46901001112106r79971abai7de5e677da0ee823 at mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" I know this is a bit of a longshot, but has anyone got an internalsvisibleto attribute to work so they could debug internal classes from ir itself? I tried to add the namespace "ir" and public key to the assembly I was trying to test to no avail. Im building out some rspec & IronRuby tests of my .net assemblies and it would be nice if I could reach out and touch some internal classes :) -A -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Tue, 12 Jan 2010 05:13:55 +0000 From: Jimmy Schementi > To: "ironruby-core at rubyforge.org" > Subject: Re: [Ironruby-core] InternalsVisibleTo Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209E938 at TK5EX14MBXC141.redmond.corp.microsoft.com> Content-Type: text/plain; charset="us-ascii" Running IronRuby with the "-X:PrivateBinding" will allow access to private members, which should also work for internal members (I believe, try it out just to be sure and report back). From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of andrew Wilson Sent: Monday, January 11, 2010 9:06 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] InternalsVisibleTo I know this is a bit of a longshot, but has anyone got an internalsvisibleto attribute to work so they could debug internal classes from ir itself? I tried to add the namespace "ir" and public key to the assembly I was trying to test to no avail. Im building out some rspec & IronRuby tests of my .net assemblies and it would be nice if I could reach out and touch some internal classes :) -A -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core End of Ironruby-core Digest, Vol 29, Issue 15 ********************************************* -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipidi at gmail.com Tue Jan 12 15:49:36 2010 From: dipidi at gmail.com (Dotan N.) Date: Tue, 12 Jan 2010 22:49:36 +0200 Subject: [Ironruby-core] in ir, __FILE__ not the same as in irb nor jirb Message-ID: <6927b8741001121249x1c1a5b0bmdea4cb13b50ee07f@mail.gmail.com> hi all, not sure if it matters, in both irb and jirb we get "(irb)", however in ir (on 0.9.2) i'm getting "(eval)" i was just fiddling around with ir and didn't expect this -- Dotan -------------- next part -------------- An HTML attachment was scrubbed... URL: From randallsutton at gmail.com Tue Jan 12 16:03:16 2010 From: randallsutton at gmail.com (Randall Sutton) Date: Tue, 12 Jan 2010 14:03:16 -0700 Subject: [Ironruby-core] Daily Build Message-ID: <08C06649-61F8-48C9-8F0F-9B5CC26B81B4@gmail.com> I've noticed a link to a daily build for the DLR, but it looks like it is broken. Does you guys maintain a daily build for IronRuby anymore? Thanks, Randall From jdeville at microsoft.com Tue Jan 12 16:06:17 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 12 Jan 2010 21:06:17 +0000 Subject: [Ironruby-core] in ir, __FILE__ not the same as in irb nor jirb In-Reply-To: <6927b8741001121249x1c1a5b0bmdea4cb13b50ee07f@mail.gmail.com> References: <6927b8741001121249x1c1a5b0bmdea4cb13b50ee07f@mail.gmail.com> Message-ID: [160] > iirb irb(main):001:0> __FILE__ => "(irb)" irb(main):002:0> exit Looks like that might have been fixed in RC1, can you try to repro there? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dotan N. Sent: Tuesday, January 12, 2010 12:50 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] in ir, __FILE__ not the same as in irb nor jirb hi all, not sure if it matters, in both irb and jirb we get "(irb)", however in ir (on 0.9.2) i'm getting "(eval)" i was just fiddling around with ir and didn't expect this -- Dotan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 12 16:10:03 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 21:10:03 +0000 Subject: [Ironruby-core] in ir, __FILE__ not the same as in irb nor jirb In-Reply-To: References: <6927b8741001121249x1c1a5b0bmdea4cb13b50ee07f@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920A9353@TK5EX14MBXC141.redmond.corp.microsoft.com> Actually, I'm pretty sure Dotan just tried it in ir.exe: C:\dev\jschementi_ironruby>rbr IronRuby 0.9.3.0 on .NET 2.0.50727.4927 Copyright (c) Microsoft Corporation. All rights reserved. >>> __FILE__ => "(eval)" >>> Dotan, IronRuby's console as part of ir.exe is NOT the same as IRB; though IronRuby does ship with a "iirb" ... ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 12, 2010 1:06 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] in ir, __FILE__ not the same as in irb nor jirb [160] > iirb irb(main):001:0> __FILE__ => "(irb)" irb(main):002:0> exit Looks like that might have been fixed in RC1, can you try to repro there? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dotan N. Sent: Tuesday, January 12, 2010 12:50 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] in ir, __FILE__ not the same as in irb nor jirb hi all, not sure if it matters, in both irb and jirb we get "(irb)", however in ir (on 0.9.2) i'm getting "(eval)" i was just fiddling around with ir and didn't expect this -- Dotan -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipidi at gmail.com Tue Jan 12 16:15:14 2010 From: dipidi at gmail.com (Dotan N.) Date: Tue, 12 Jan 2010 23:15:14 +0200 Subject: [Ironruby-core] in ir, __FILE__ not the same as in irb nor jirb In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920A9353@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <6927b8741001121249x1c1a5b0bmdea4cb13b50ee07f@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920A9353@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <6927b8741001121315j7324e703j502f8455002ff877@mail.gmail.com> yep. i've tried it in ir. thanks it seems to work correctly on iirb :) On Tue, Jan 12, 2010 at 11:10 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Actually, I?m pretty sure Dotan just tried it in ir.exe: > > > > C:\dev\jschementi_ironruby>rbr > > IronRuby 0.9.3.0 on .NET 2.0.50727.4927 > > Copyright (c) Microsoft Corporation. All rights reserved. > > > > >>> __FILE__ > > => "(eval)" > > >>> > > > > Dotan, IronRuby?s console as part of ir.exe is NOT the same as IRB; though > IronRuby does ship with a ?iirb? ? > > > > ~js > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville > *Sent:* Tuesday, January 12, 2010 1:06 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] in ir, __FILE__ not the same as in irb nor > jirb > > > > [160] ? iirb > > irb(main):001:0> __FILE__ > > => "(irb)" > > irb(main):002:0> exit > > > > Looks like that might have been fixed in RC1, can you try to repro there? > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Dotan N. > *Sent:* Tuesday, January 12, 2010 12:50 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] in ir, __FILE__ not the same as in irb nor jirb > > > > hi all, > not sure if it matters, in both irb and jirb we get "(irb)", however in ir > (on 0.9.2) i'm getting "(eval)" > i was just fiddling around with ir and didn't expect this > > -- > Dotan > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jan 12 16:38:55 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 12 Jan 2010 22:38:55 +0100 Subject: [Ironruby-core] Daily Build In-Reply-To: <08C06649-61F8-48C9-8F0F-9B5CC26B81B4@gmail.com> References: <08C06649-61F8-48C9-8F0F-9B5CC26B81B4@gmail.com> Message-ID: At the moment the server is down. I'll see if I can get it up again this week. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 12, 2010 at 10:03 PM, Randall Sutton wrote: > I've noticed a link to a daily build for the DLR, but it looks like it is > broken. Does you guys maintain a daily build for IronRuby anymore? > > Thanks, > Randall > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Jan 12 19:13:48 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 13 Jan 2010 00:13:48 +0000 Subject: [Ironruby-core] Review: ActionPack fix Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C88BF9C@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review /shelveset:rails;sborde Fixes a bug in Proc equality comparison which was causing the ActionPack caching tests to fail Splits up the Rails test harness files into tests that fail with MRI as well (which are often issues with the test) Changes the tests to load specific versions of Rails and other gems. Without that, you get load errors because of incorrect versions being loaded Changed the default of irtests to run the Rails tests. They can be skipped by using -m (for "minimum") -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 12 22:04:59 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 13 Jan 2010 03:04:59 +0000 Subject: [Ironruby-core] Review: ActionPack fix In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C88BF9C@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C88BF9C@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920A9A90@TK5EX14MBXC141.redmond.corp.microsoft.com> Is ActiveRecord supposed to be commented out (irtests.rb#46)? Also, we should upgrade to testing the latest version of Rails (2.3.5), but it doesn't have to be now. Looks good otherwise, ~js From: Shri Borde Sent: Tuesday, January 12, 2010 4:14 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActionPack fix tfpt review /shelveset:rails;sborde Fixes a bug in Proc equality comparison which was causing the ActionPack caching tests to fail Splits up the Rails test harness files into tests that fail with MRI as well (which are often issues with the test) Changes the tests to load specific versions of Rails and other gems. Without that, you get load errors because of incorrect versions being loaded Changed the default of irtests to run the Rails tests. They can be skipped by using -m (for "minimum") -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Jan 12 23:12:05 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 13 Jan 2010 04:12:05 +0000 Subject: [Ironruby-core] Code Review: LightBinding5 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14B83E@TK5EX14MBXC122.redmond.corp.microsoft.com> tfpt review "/shelveset:LightBinding5;REDMOND\tomat" The changeset focuses on reducing time spent in JIT to compile generic instantiations of various helper methods. These are mostly related to generic instructions that implement dynamic sites and method calls. It reduces the number of methods jitted during startup time of irb from 481 to 80 (with -X:CompilationThreshold 10000000), which translates to 34% time reduction: rbr -X:CompilationThreshold 10000000 i.rb < exit.txt i.rb: --- s = Time.now require 'irb' IRB.start(__FILE__) t = Time.now p t - s --- Before: 0.961096 seconds After: 0.631063 seconds DLR Adds LightDynamicExpression - these reducible nodes reduce to strongly typed DynamicExpressions yet when interpreted use untyped dynamic sites (sites typed to CallSite>). Using light sites avoids jitting generic instantiations of various instructions, stubs and helpers that are strongly typed to the call-site signature. Also, strongly typed delegate types are created only when compiling the sites. Adds helpers to CallInstruction that add MethodInfo to CallInstruction mapping into the internal cache. These helpers can be used by reflection caches that look up CLR helper methods. For example, Ruby's ReflectionCache holds on MethodInfos for all RubyOps. Whenever a helper MethodInfo is needed a delegate is created for it and cached into CallInstruction's cache along with the instruction that dispatches to it. Since all static helpers are known upfront the delegates and the corresponding instructions can all be ngen'd. Moves helpers for rule interpretation from Ruby to DynamicUtils. Python Replaces LazyDynamicExpressions with subclasses of LightDynamicExpressions. Ruby Simplifies rules interpretation, moves related helpers to DLR. Uses LightDynamicExpression for all dynamic sites. Uses CallInstruction caching for RubyOps. Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LightBinding5.diff Type: application/octet-stream Size: 287931 bytes Desc: LightBinding5.diff URL: From lists at ruby-forum.com Wed Jan 13 03:03:50 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Wed, 13 Jan 2010 09:03:50 +0100 Subject: [Ironruby-core] Newwer to Ironruby/ruby In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C853E2B@TK5EX14MBXC132.redmond.corp.microsoft.com> References: <35b9e09ac509d72f78577f1a5ae4432c@ruby-forum.com> <8E45365BECA665489F3CB8878A6C1B7D0C853E2B@TK5EX14MBXC132.redmond.corp.microsoft.com> Message-ID: <6d6c78b456adf721f745f95ae8dd2500@ruby-forum.com> Shri Borde wrote: > For SQL Server, you are better off using ironruby-dbi + > sqlserver_adapter as mentioned in the attached email. Ivan has already > fixed a number of SQL issues in ironruby-dbi. Usage is not streamlined > yet though. See > http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Languages/Ruby/Tests/Scripts/ActiveRecordTests.rb > for hints on how to set things up. > > I have added a rough note about this to > http://ironruby.net/Documentation/Real_Ruby_Applications/Rails, but the > instructions need to be flushed out more. Will be great if you can help > flush this out... I noticed your update to: http://ironruby.net/Documentation/Real_Ruby_Applications/Rails#database also, I had to add this: $: << IRONRUBY_DBI_PATH $: << SQLSERVER_ADAPTER_PATH in environment.rb as well so it would be added to the load path to get it to work correctly. Plus, I needed the deprecated gem which iroonruby-dbi requires. Might be worth mentioning that the user should also set their correct username and password. Hope this helps, -Sam -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Wed Jan 13 03:16:05 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 13 Jan 2010 08:16:05 +0000 Subject: [Ironruby-core] Newwer to Ironruby/ruby In-Reply-To: <6d6c78b456adf721f745f95ae8dd2500@ruby-forum.com> References: <35b9e09ac509d72f78577f1a5ae4432c@ruby-forum.com> <8E45365BECA665489F3CB8878A6C1B7D0C853E2B@TK5EX14MBXC132.redmond.corp.microsoft.com> <6d6c78b456adf721f745f95ae8dd2500@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920AA324@TK5EX14MBXC141.redmond.corp.microsoft.com> > I noticed your update to: > http://ironruby.net/Documentation/Real_Ruby_Applications/Rails#database > > also, I had to add this: > $: << IRONRUBY_DBI_PATH > $: << SQLSERVER_ADAPTER_PATH > in environment.rb as well so it would be added to the load path to get it to > work correctly. That's what these lines are for: $:.unshift "#{IRONRUBY_DBI_PATH}/src/lib" $:.unshift "#{SQLSERVER_ADAPTER_PATH}/lib" The code to add to environment.rb that's in the link there is all that is needed. Adding the lines you added should have no effect, especially the first one as the correct dbi.rb won't be found in ironruby-dbi. > Plus, I needed the deprecated gem which irooruby-dbi requires. Step #2 of Setup says to install the "deprecated" gem. > Might be worth mentioning that the user should also set their > correct username and password. Where? In the database.yml file, I suggested to use integrated security, which doesn't require putting your username and password. It'd be great to bundle all this in a ironruby-rails gem to do this automatically. Also, ironruby-dbi really should just depend on the dbi gem itself, and be renamed to ironruby-dbd, which just adds the mssql dbd extension. It should also take a dependency on the depreciated gem so it doesn't need to be installed separately. From lists at ruby-forum.com Wed Jan 13 12:36:27 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Wed, 13 Jan 2010 18:36:27 +0100 Subject: [Ironruby-core] Newwer to Ironruby/ruby In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AA324@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <35b9e09ac509d72f78577f1a5ae4432c@ruby-forum.com> <8E45365BECA665489F3CB8878A6C1B7D0C853E2B@TK5EX14MBXC132.redmond.corp.microsoft.com> <6d6c78b456adf721f745f95ae8dd2500@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AA324@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Jimmy Schementi wrote: >> I noticed your update to: >> http://ironruby.net/Documentation/Real_Ruby_Applications/Rails#database >> >> also, I had to add this: >> $: << IRONRUBY_DBI_PATH >> $: << SQLSERVER_ADAPTER_PATH >> in environment.rb as well so it would be added to the load path to get it to >> work correctly. > > That's what these lines are for: > $:.unshift "#{IRONRUBY_DBI_PATH}/src/lib" > $:.unshift "#{SQLSERVER_ADAPTER_PATH}/lib" > > The code to add to environment.rb that's in the link there is all that > is needed. > Adding the lines you added should have no effect, especially the first > one > as the correct dbi.rb won't be found in ironruby-dbi. > >> Plus, I needed the deprecated gem which irooruby-dbi requires. > > Step #2 of Setup says to install the "deprecated" gem. > >> Might be worth mentioning that the user should also set their >> correct username and password. > > Where? In the database.yml file, I suggested to use integrated security, > which > doesn't require putting your username and password. > > It'd be great to bundle all this in a ironruby-rails gem to do this > automatically. > Also, ironruby-dbi really should just depend on the dbi gem itself, and > be > renamed to ironruby-dbd, which just adds the mssql dbd extension. It > should also > take a dependency on the depreciated gem so it doesn't need to be > installed separately. Sorry, your right. I copied over the lib directory of both of the downloads without even paying attention. Also, I didn't re-read every part of http://ironruby.net/Documentation/Real_Ruby_Applications/Rails , just the database part, so I missed the deprecated gem. I was up at midnight trying to get this to work... Thanks for the help. -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Wed Jan 13 12:41:52 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 13 Jan 2010 17:41:52 +0000 Subject: [Ironruby-core] Review: ActionPack fix In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920A9A90@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C88BF9C@TK5EX14MBXC140.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC920A9A90@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C88C8DE@TK5EX14MBXC140.redmond.corp.microsoft.com> The ActiveRecord tests in irtests.rb has never been really enabled for real (it was enabled with --all but no one used --all). The tests do work with a little bit of manual setup (downloading ironruby-dbi, creating the two required test databases, etc), but they should be enabled in irtests only when they are fully automated. From: Jimmy Schementi Sent: Tuesday, January 12, 2010 7:05 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix Is ActiveRecord supposed to be commented out (irtests.rb#46)? Also, we should upgrade to testing the latest version of Rails (2.3.5), but it doesn't have to be now. Looks good otherwise, ~js From: Shri Borde Sent: Tuesday, January 12, 2010 4:14 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActionPack fix tfpt review /shelveset:rails;sborde Fixes a bug in Proc equality comparison which was causing the ActionPack caching tests to fail Splits up the Rails test harness files into tests that fail with MRI as well (which are often issues with the test) Changes the tests to load specific versions of Rails and other gems. Without that, you get load errors because of incorrect versions being loaded Changed the default of irtests to run the Rails tests. They can be skipped by using -m (for "minimum") -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Wed Jan 13 12:54:13 2010 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 13 Jan 2010 17:54:13 +0000 Subject: [Ironruby-core] Review: ActionPack fix In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C88C8DE@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C88BF9C@TK5EX14MBXC140.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC920A9A90@TK5EX14MBXC141.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C88C8DE@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: In generate_test-unit_tags.rb line 39: Please change if fault == testcase_faults.last then comma_separator = "" else comma_separator = "," end to if fault == testcase_faults.last comma_separator = "" else comma_separator = "," end In utr it looks like you've added ~120 blank lines after line 70, can you double check please? I'd also like a better way than checking the defined?-ness of RUBY_ENGINE to disable MRI failures (since 1.9 has RUBY_ENGINE), but I don't feel too strongly about that. JD From: Shri Borde Sent: Wednesday, January 13, 2010 9:42 AM To: Jimmy Schementi; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix The ActiveRecord tests in irtests.rb has never been really enabled for real (it was enabled with --all but no one used --all). The tests do work with a little bit of manual setup (downloading ironruby-dbi, creating the two required test databases, etc), but they should be enabled in irtests only when they are fully automated. From: Jimmy Schementi Sent: Tuesday, January 12, 2010 7:05 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix Is ActiveRecord supposed to be commented out (irtests.rb#46)? Also, we should upgrade to testing the latest version of Rails (2.3.5), but it doesn't have to be now. Looks good otherwise, ~js From: Shri Borde Sent: Tuesday, January 12, 2010 4:14 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActionPack fix tfpt review /shelveset:rails;sborde Fixes a bug in Proc equality comparison which was causing the ActionPack caching tests to fail Splits up the Rails test harness files into tests that fail with MRI as well (which are often issues with the test) Changes the tests to load specific versions of Rails and other gems. Without that, you get load errors because of incorrect versions being loaded Changed the default of irtests to run the Rails tests. They can be skipped by using -m (for "minimum") -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Jan 13 13:11:31 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 13 Jan 2010 18:11:31 +0000 Subject: [Ironruby-core] Review: ActionPack fix In-Reply-To: References: <8E45365BECA665489F3CB8878A6C1B7D0C88BF9C@TK5EX14MBXC140.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC920A9A90@TK5EX14MBXC141.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C88C8DE@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14CD49@TK5EX14MBXC122.redmond.corp.microsoft.com> It looks like Proc equality is simply a reference equality ReferenceEquals(self, other)with an exception of an empty block for which the scopes seem to be compared. Or do you have a counterexample? def foo a = Proc.new { |x| } b = lambda &a c = Proc.new &a d = Proc.new { |x| } return a,b,c,d end x = foo y = foo p x[0] == y[0] p x[1] == y[1] p x[2] == y[2] p x[0] == x[1] p x[0] == x[2] p x[0] == x[3] p x[0].object_id p x[1].object_id p x[2].object_id p x[3].object_id a = Proc.new {} b = Proc.new {} def bar Proc.new {} end p a == b, a.object_id == b.object_id, a == bar, bar == bar Ruby 1.8: false false false false true false 29077332 29077320 29077332 29077308 true false false false Tomas From: Jim Deville Sent: Wednesday, January 13, 2010 9:54 AM To: Shri Borde; Jimmy Schementi; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix In generate_test-unit_tags.rb line 39: Please change if fault == testcase_faults.last then comma_separator = "" else comma_separator = "," end to if fault == testcase_faults.last comma_separator = "" else comma_separator = "," end In utr it looks like you've added ~120 blank lines after line 70, can you double check please? I'd also like a better way than checking the defined?-ness of RUBY_ENGINE to disable MRI failures (since 1.9 has RUBY_ENGINE), but I don't feel too strongly about that. JD From: Shri Borde Sent: Wednesday, January 13, 2010 9:42 AM To: Jimmy Schementi; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix The ActiveRecord tests in irtests.rb has never been really enabled for real (it was enabled with --all but no one used --all). The tests do work with a little bit of manual setup (downloading ironruby-dbi, creating the two required test databases, etc), but they should be enabled in irtests only when they are fully automated. From: Jimmy Schementi Sent: Tuesday, January 12, 2010 7:05 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix Is ActiveRecord supposed to be commented out (irtests.rb#46)? Also, we should upgrade to testing the latest version of Rails (2.3.5), but it doesn't have to be now. Looks good otherwise, ~js From: Shri Borde Sent: Tuesday, January 12, 2010 4:14 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActionPack fix tfpt review /shelveset:rails;sborde Fixes a bug in Proc equality comparison which was causing the ActionPack caching tests to fail Splits up the Rails test harness files into tests that fail with MRI as well (which are often issues with the test) Changes the tests to load specific versions of Rails and other gems. Without that, you get load errors because of incorrect versions being loaded Changed the default of irtests to run the Rails tests. They can be skipped by using -m (for "minimum") -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Wed Jan 13 13:16:55 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 13 Jan 2010 18:16:55 +0000 Subject: [Ironruby-core] Review: ActionPack fix In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C2E14CD49@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C88BF9C@TK5EX14MBXC140.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC920A9A90@TK5EX14MBXC141.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C88C8DE@TK5EX14MBXC140.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C2E14CD49@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C88C9CF@TK5EX14MBXC140.redmond.corp.microsoft.com> The examples in Merlin\External.LCA_RESTRICTED\Languages\IronRuby\mspec\rubyspec\core\proc\shared\equal.rb would not seem to work with ReferenceEquals From: Tomas Matousek Sent: Wednesday, January 13, 2010 10:12 AM To: Jim Deville; Shri Borde; Jimmy Schementi; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix It looks like Proc equality is simply a reference equality ReferenceEquals(self, other)with an exception of an empty block for which the scopes seem to be compared. Or do you have a counterexample? def foo a = Proc.new { |x| } b = lambda &a c = Proc.new &a d = Proc.new { |x| } return a,b,c,d end x = foo y = foo p x[0] == y[0] p x[1] == y[1] p x[2] == y[2] p x[0] == x[1] p x[0] == x[2] p x[0] == x[3] p x[0].object_id p x[1].object_id p x[2].object_id p x[3].object_id a = Proc.new {} b = Proc.new {} def bar Proc.new {} end p a == b, a.object_id == b.object_id, a == bar, bar == bar Ruby 1.8: false false false false true false 29077332 29077320 29077332 29077308 true false false false Tomas From: Jim Deville Sent: Wednesday, January 13, 2010 9:54 AM To: Shri Borde; Jimmy Schementi; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix In generate_test-unit_tags.rb line 39: Please change if fault == testcase_faults.last then comma_separator = "" else comma_separator = "," end to if fault == testcase_faults.last comma_separator = "" else comma_separator = "," end In utr it looks like you've added ~120 blank lines after line 70, can you double check please? I'd also like a better way than checking the defined?-ness of RUBY_ENGINE to disable MRI failures (since 1.9 has RUBY_ENGINE), but I don't feel too strongly about that. JD From: Shri Borde Sent: Wednesday, January 13, 2010 9:42 AM To: Jimmy Schementi; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix The ActiveRecord tests in irtests.rb has never been really enabled for real (it was enabled with --all but no one used --all). The tests do work with a little bit of manual setup (downloading ironruby-dbi, creating the two required test databases, etc), but they should be enabled in irtests only when they are fully automated. From: Jimmy Schementi Sent: Tuesday, January 12, 2010 7:05 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActionPack fix Is ActiveRecord supposed to be commented out (irtests.rb#46)? Also, we should upgrade to testing the latest version of Rails (2.3.5), but it doesn't have to be now. Looks good otherwise, ~js From: Shri Borde Sent: Tuesday, January 12, 2010 4:14 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActionPack fix tfpt review /shelveset:rails;sborde Fixes a bug in Proc equality comparison which was causing the ActionPack caching tests to fail Splits up the Rails test harness files into tests that fail with MRI as well (which are often issues with the test) Changes the tests to load specific versions of Rails and other gems. Without that, you get load errors because of incorrect versions being loaded Changed the default of irtests to run the Rails tests. They can be skipped by using -m (for "minimum") -------------- next part -------------- An HTML attachment was scrubbed... URL: From randallsutton at gmail.com Wed Jan 13 13:41:47 2010 From: randallsutton at gmail.com (Randall Sutton) Date: Wed, 13 Jan 2010 11:41:47 -0700 Subject: [Ironruby-core] silverlight.rb Message-ID: I would like to use the Wpf.build method contained in the silverlight.rb file. Currently I can only find this file in the photoviewer app from 2008 for what looks like Silverlight 2. Is there an updated version of this file? I noticed it isn't contained in the 1.0RC1 download. Thanks, Randall From jdeville at microsoft.com Wed Jan 13 13:54:43 2010 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 13 Jan 2010 18:54:43 +0000 Subject: [Ironruby-core] Code Review: LightBinding5 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34C1682B@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C2E14B83E@TK5EX14MBXC122.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD34C1682B@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: Tests look good. JD From: Dino Viehland Sent: Wednesday, January 13, 2010 10:46 AM To: Tomas Matousek; IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: LightBinding5 One nitpick: The usings in the namespace in DynamicUtils.cs are misformatted. Otherwise looks great! From: Tomas Matousek Sent: Tuesday, January 12, 2010 8:12 PM To: IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: LightBinding5 tfpt review "/shelveset:LightBinding5;REDMOND\tomat" The changeset focuses on reducing time spent in JIT to compile generic instantiations of various helper methods. These are mostly related to generic instructions that implement dynamic sites and method calls. It reduces the number of methods jitted during startup time of irb from 481 to 80 (with -X:CompilationThreshold 10000000), which translates to 34% time reduction: rbr -X:CompilationThreshold 10000000 i.rb < exit.txt i.rb: --- s = Time.now require 'irb' IRB.start(__FILE__) t = Time.now p t - s --- Before: 0.961096 seconds After: 0.631063 seconds DLR Adds LightDynamicExpression - these reducible nodes reduce to strongly typed DynamicExpressions yet when interpreted use untyped dynamic sites (sites typed to CallSite>). Using light sites avoids jitting generic instantiations of various instructions, stubs and helpers that are strongly typed to the call-site signature. Also, strongly typed delegate types are created only when compiling the sites. Adds helpers to CallInstruction that add MethodInfo to CallInstruction mapping into the internal cache. These helpers can be used by reflection caches that look up CLR helper methods. For example, Ruby's ReflectionCache holds on MethodInfos for all RubyOps. Whenever a helper MethodInfo is needed a delegate is created for it and cached into CallInstruction's cache along with the instruction that dispatches to it. Since all static helpers are known upfront the delegates and the corresponding instructions can all be ngen'd. Moves helpers for rule interpretation from Ruby to DynamicUtils. Python Replaces LazyDynamicExpressions with subclasses of LightDynamicExpressions. Ruby Simplifies rules interpretation, moves related helpers to DLR. Uses LightDynamicExpression for all dynamic sites. Uses CallInstruction caching for RubyOps. Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.wilson82 at gmail.com Wed Jan 13 17:35:19 2010 From: a.wilson82 at gmail.com (andrew Wilson) Date: Wed, 13 Jan 2010 15:35:19 -0700 Subject: [Ironruby-core] Code review? Shameless plug? Either or :) Message-ID: <9dbb46901001131435s2901c11p191aefda9a63c5ae@mail.gmail.com> All, I am pleased to release my first version of my IronRuby csproj runner tool. In short, it become obvious after trying to test a relatively large project that manually adding all the "requires" was going to be an absolute pain. So I decided to write a small app that reads in a .csproj and uses the XML and some reflection to gather in all the required assemblies. The result is an emited spec_helper.rb file so you can quickly load up your .net environment for testing. The basic syntax is: rspec_project_runner.exe -T "target.csproj" -R -O "output/dir/path" the -R is a recursive call so that if your target project has any other project references it will walk them and emit a helper_spec file for each one. Otherwise it will just grab a copy of the assembly. Please let me know if you run into any bugs or whatnot. I would love the feedback Source: http://github.com/andrewjwilson/IronRuby-Rspec-Csproj-Runner Additionally, the spec folder has tests which actually test the .net assemblies for the project. They aren't all complete, but you can take a peek if you'd like ** In order to run the spec tests you have to copy the CmdParser.dll into the /bin/ folder of IronRuby itself. Thanks, Andrew -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Jan 14 10:41:50 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Thu, 14 Jan 2010 16:41:50 +0100 Subject: [Ironruby-core] igem not working Message-ID: When I execute igem install rake I get the following error: C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>irake.bat '"C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin\ir.exe"' is not recognized as an internal or external command, operable program or batch file. Any ideas? IronRuby configuration is extremely weird!!!! -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Jan 14 10:48:19 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Thu, 14 Jan 2010 16:48:19 +0100 Subject: [Ironruby-core] igem not working In-Reply-To: References: Message-ID: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> And here is my environment variables: c:\ruby\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\DevTools\IronRuby\ironruby\Merlin\Main\bin\Debug;C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\lib\ironruby\gems\1.8\bin;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\IVI Foundation\VISA\WinNT\Bin -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Jan 14 12:40:00 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Thu, 14 Jan 2010 18:40:00 +0100 Subject: [Ironruby-core] Executing irake from C# Message-ID: How can I execute irake from C#? static void Main(string[] args) { var engine = IronRuby.Ruby.CreateEngine(); engine.Execute("../../rake foo"); } The above does not work! -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Thu Jan 14 15:14:44 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 14 Jan 2010 21:14:44 +0100 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: References: Message-ID: Try with "call irake" On Thursday, January 14, 2010, Mohammad Azam wrote: > How can I execute irake from C#? > > ?static void Main(string[] args) > ? ? ? ?{ > ? ? ? ? ? ?var engine = IronRuby.Ruby.CreateEngine(); > ? ? ? ? ? ?engine.Execute("../../rake foo"); > ? ? ? ?} > > The above does not work! > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) From ivan at flanders.co.nz Thu Jan 14 15:21:31 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 14 Jan 2010 21:21:31 +0100 Subject: [Ironruby-core] igem not working In-Reply-To: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> References: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> Message-ID: My advice to you is: do *not* build from source or use the Dev env for ironruby. Because ironruby config is really easy. You have 2 paths for ironruby. Is your config correct? If we ever meet I'll walk you through all the files and how it works. Maybe the MVP summit? On Thursday, January 14, 2010, Mohammad Azam wrote: > And here is my environment variables: > > c:\ruby\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program > Files\TortoiseSVN\bin;C:\DevTools\IronRuby\ironruby\Merlin\Main\bin\Debug;C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\lib\ironruby\gems\1.8\bin;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Program > Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL > Server\90\Tools\binn\;C:\Program Files\Microsoft SQL > Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL > Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft > Visual Studio 8\Common7\IDE\PrivateAssemblies\;c:\Program > Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft > SQL Server\100\DTS\Binn\;C:\Program Files\IVI Foundation\VISA\WinNT\Bin > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) From lists at ruby-forum.com Thu Jan 14 15:27:05 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Thu, 14 Jan 2010 21:27:05 +0100 Subject: [Ironruby-core] igem not working In-Reply-To: References: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> Message-ID: <055785c7e97aeccb6c53e596701f98bf@ruby-forum.com> Hi, Thanks! I got it working using Dev.bat. It will my pleasure to meet you at the MVP Summit :) Maybe we can record a Podcast about IronRuby. Thanks, Azam -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Jan 14 15:36:13 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Thu, 14 Jan 2010 21:36:13 +0100 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: References: Message-ID: call irake foo did not work! The reason is that in order to run irake it is required that I run dev.bat first which seems weird and silly! -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Thu Jan 14 15:42:59 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 14 Jan 2010 20:42:59 +0000 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: References: Message-ID: a) irake is meant to be a command line runner, if you are trying to execute it from C#, then you should be executing a single file that is a rake application. b) dev.bat is for developing IronRuby. If you don't like dev.bat, and you just want to use IronRuby, use a release zip, not the git repo. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Thursday, January 14, 2010 12:36 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Executing irake from C# call irake foo did not work! The reason is that in order to run irake it is required that I run dev.bat first which seems weird and silly! -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Thu Jan 14 15:50:07 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Thu, 14 Jan 2010 21:50:07 +0100 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: References: Message-ID: <2257f36c7afc59bfbafdf084b62a4336@ruby-forum.com> Jim Deville wrote: > a) irake is meant to be a command line runner, if you are trying to > execute it from C#, then you should be executing a single file that is a > rake application. > b) dev.bat is for developing IronRuby. If you don't like dev.bat, and > you just want to use IronRuby, use a release zip, not the git repo. > > JD what do u mean by rake application? -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Thu Jan 14 15:53:59 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 14 Jan 2010 20:53:59 +0000 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: <2257f36c7afc59bfbafdf084b62a4336@ruby-forum.com> References: <2257f36c7afc59bfbafdf084b62a4336@ruby-forum.com> Message-ID: http://onestepback.org/index.cgi/Tech/Rake/FindInCode.red -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Thursday, January 14, 2010 12:50 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Executing irake from C# Jim Deville wrote: > a) irake is meant to be a command line runner, if you are trying to > execute it from C#, then you should be executing a single file that is > a rake application. > b) dev.bat is for developing IronRuby. If you don't like dev.bat, and > you just want to use IronRuby, use a release zip, not the git repo. > > JD what do u mean by rake application? -- 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 Thu Jan 14 16:01:52 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Thu, 14 Jan 2010 22:01:52 +0100 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: References: <2257f36c7afc59bfbafdf084b62a4336@ruby-forum.com> Message-ID: <20917e338d58b23c93998e13d4bde50c@ruby-forum.com> Jim Deville wrote: > http://onestepback.org/index.cgi/Tech/Rake/FindInCode.red I am not sure if the article above is related to my issue. I want to simply execute a rake task using IronRuby engine in DLR. I can do this: static void Main(string[] args) { var engine = IronRuby.Ruby.CreateEngine(); engine.Execute("puts 'hello ironruby'"); } but how can I execute a rake task without using another .rb file. -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Thu Jan 14 16:06:32 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 14 Jan 2010 22:06:32 +0100 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: <20917e338d58b23c93998e13d4bde50c@ruby-forum.com> References: <2257f36c7afc59bfbafdf084b62a4336@ruby-forum.com> <20917e338d58b23c93998e13d4bde50c@ruby-forum.com> Message-ID: something like this then. require 'rubygems'; require 'rake'; require '../../Rakefile'; Rake::Task['mytask'].execute --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Jan 14, 2010 at 10:01 PM, Mohammad Azam wrote: > Jim Deville wrote: > > http://onestepback.org/index.cgi/Tech/Rake/FindInCode.red > > I am not sure if the article above is related to my issue. > > I want to simply execute a rake task using IronRuby engine in DLR. > > I can do this: > > static void Main(string[] args) > { > var engine = IronRuby.Ruby.CreateEngine(); > engine.Execute("puts 'hello ironruby'"); > } > > but how can I execute a rake task without using another .rb file. > -- > 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 ivan at flanders.co.nz Thu Jan 14 16:13:33 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 14 Jan 2010 22:13:33 +0100 Subject: [Ironruby-core] igem not working In-Reply-To: <055785c7e97aeccb6c53e596701f98bf@ruby-forum.com> References: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> <055785c7e97aeccb6c53e596701f98bf@ruby-forum.com> Message-ID: That's fine but my point is that if you just want to just use ironruby do NOT get the sources.. they haven't been updated in a while and the 1.0 RC1 version is probably very close to what you get with building from source but without the added hassle and changed gems location. There is no obvious win anymore when you build from source. >From the types of questions you ask I think that you never had a MS-DOS based pc or haven't done much batch scripting in your life, which is perfectly fine of course. Using the dev.bat file will change a bunch of environment variables which you don't need at all. Like Jim said earlier I think it's better if you just stick to released versions of IronRuby so you don't have these kinds of surprises, just make sure you install it in a path without spaces or that requires elevated privileges (like say program files). Sure a podcast sounds like a plan :). Will there be anybody from the IronRuby team attending the mvp summit too? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Jan 14, 2010 at 9:27 PM, Mohammad Azam wrote: > Hi, > > Thanks! I got it working using Dev.bat. > > It will my pleasure to meet you at the MVP Summit :) Maybe we can record > a Podcast about IronRuby. > > Thanks, > Azam > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jan 14 16:15:47 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 14 Jan 2010 21:15:47 +0000 Subject: [Ironruby-core] igem not working In-Reply-To: References: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> <055785c7e97aeccb6c53e596701f98bf@ruby-forum.com> Message-ID: I plan on being here/there for at least part of it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, January 14, 2010 1:14 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] igem not working That's fine but my point is that if you just want to just use ironruby do NOT get the sources.. they haven't been updated in a while and the 1.0 RC1 version is probably very close to what you get with building from source but without the added hassle and changed gems location. There is no obvious win anymore when you build from source. From the types of questions you ask I think that you never had a MS-DOS based pc or haven't done much batch scripting in your life, which is perfectly fine of course. Using the dev.bat file will change a bunch of environment variables which you don't need at all. Like Jim said earlier I think it's better if you just stick to released versions of IronRuby so you don't have these kinds of surprises, just make sure you install it in a path without spaces or that requires elevated privileges (like say program files). Sure a podcast sounds like a plan :). Will there be anybody from the IronRuby team attending the mvp summit too? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Jan 14, 2010 at 9:27 PM, Mohammad Azam > wrote: Hi, Thanks! I got it working using Dev.bat. It will my pleasure to meet you at the MVP Summit :) Maybe we can record a Podcast about IronRuby. Thanks, Azam -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Jan 14 16:47:16 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Thu, 14 Jan 2010 22:47:16 +0100 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: References: <2257f36c7afc59bfbafdf084b62a4336@ruby-forum.com> <20917e338d58b23c93998e13d4bde50c@ruby-forum.com> Message-ID: This works if I create a ruby file and execute it like this: ir something.rb but it does not work using the following code: static void Main(string[] args) { var script = @"require 'rubygems' require 'rake' require 'rakefile'; Rake::Task['foo'].execute"; var engine = IronRuby.Ruby.CreateEngine(); engine.Execute(script); } Exception is: Unhandled Exception: IronRuby.Builtins.LoadError: no such file to load -- rubyge ms at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame fram e) at Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFra me frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 a rg1) at IronRuby.Runtime.RubyScriptCode.Run(Scope scope, Boolean bindGlobals) at IronRuby.Runtime.RubyScriptCode.Run() at Microsoft.Scripting.SourceUnit.Execute() at Microsoft.Scripting.Hosting.ScriptSource.Execute() at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression) at ConsoleApplication2.Program.Main(String[] args) in C:\Projects\EStudyVS200 8\EStudySoltution\EStudy\ConsoleApplication2\Program.cs:line 20 Press any key to continue . . . -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Thu Jan 14 16:52:22 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 14 Jan 2010 21:52:22 +0000 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: References: <2257f36c7afc59bfbafdf084b62a4336@ruby-forum.com> <20917e338d58b23c93998e13d4bde50c@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920ACC46@TK5EX14MBXC141.redmond.corp.microsoft.com> Hosting IronRuby in C# requires a little bit of configuration. Copy the entire contents of ir.exe.config into your C# project's app.config. Take a look at the LibraryPaths setting to make sure any relative paths still make sense, and then any Ruby libraries or gems that work at the command line will also work when hosted. And Mohammad, the bring everything into perspective, "../../rake foo" isn't valid Ruby code =) ~Jimmy > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Mohammad Azam > Sent: Thursday, January 14, 2010 1:47 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Executing irake from C# > > This works if I create a ruby file and execute it like this: > > ir something.rb > > but it does not work using the following code: > > static void Main(string[] args) > { > var script = @"require 'rubygems' > require 'rake' > > require 'rakefile'; > > Rake::Task['foo'].execute"; > > var engine = IronRuby.Ruby.CreateEngine(); > engine.Execute(script); > > } > > Exception is: > > > Unhandled Exception: IronRuby.Builtins.LoadError: no such file to load > -- rubyge > ms > at > Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame > fram > e) > at > Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFra > me frame) > at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame > frame) > at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 > arg0, T1 a > rg1) > at IronRuby.Runtime.RubyScriptCode.Run(Scope scope, Boolean > bindGlobals) > at IronRuby.Runtime.RubyScriptCode.Run() > at Microsoft.Scripting.SourceUnit.Execute() > at Microsoft.Scripting.Hosting.ScriptSource.Execute() > at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String > expression) > at ConsoleApplication2.Program.Main(String[] args) in > C:\Projects\EStudyVS200 > 8\EStudySoltution\EStudy\ConsoleApplication2\Program.cs:line 20 Press any key > to continue . . . > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Thu Jan 14 17:15:03 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 14 Jan 2010 22:15:03 +0000 Subject: [Ironruby-core] Executing irake from C# In-Reply-To: References: <2257f36c7afc59bfbafdf084b62a4336@ruby-forum.com> <20917e338d58b23c93998e13d4bde50c@ruby-forum.com> Message-ID: When you create an engine, it doesn't get the ScriptSetup that goes with it. If you include the xml elements from ir.exe.config into your apps config, it should get the right stuff. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Thursday, January 14, 2010 1:47 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Executing irake from C# This works if I create a ruby file and execute it like this: ir something.rb but it does not work using the following code: static void Main(string[] args) { var script = @"require 'rubygems' require 'rake' require 'rakefile'; Rake::Task['foo'].execute"; var engine = IronRuby.Ruby.CreateEngine(); engine.Execute(script); } Exception is: Unhandled Exception: IronRuby.Builtins.LoadError: no such file to load -- rubyge ms at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame fram e) at Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFra me frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 a rg1) at IronRuby.Runtime.RubyScriptCode.Run(Scope scope, Boolean bindGlobals) at IronRuby.Runtime.RubyScriptCode.Run() at Microsoft.Scripting.SourceUnit.Execute() at Microsoft.Scripting.Hosting.ScriptSource.Execute() at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression) at ConsoleApplication2.Program.Main(String[] args) in C:\Projects\EStudyVS200 8\EStudySoltution\EStudy\ConsoleApplication2\Program.cs:line 20 Press any key to continue . . . -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Shri.Borde at microsoft.com Thu Jan 14 18:58:14 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 14 Jan 2010 23:58:14 +0000 Subject: [Ironruby-core] Review: More ActionPack fixes Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C88DD6E@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review /shelveset:rails3 * ENV["foo"] = "" should set the environment variable to an empty string, not delete it * Added Iconv::IllegalSequence etc * Rails test expect Array#sort_by to be a stable sort (ie. if #<=> returns 0, then the relative order of the elements in the original array is maintained). Worked around this at the top of action_pack_tests (see the comment for more details). * Added -r to utr.rb to run a single test case. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rails3.diff Type: application/octet-stream Size: 55236 bytes Desc: rails3.diff URL: From Jimmy.Schementi at microsoft.com Thu Jan 14 19:48:35 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 15 Jan 2010 00:48:35 +0000 Subject: [Ironruby-core] Updated Rails instructions Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> All, http://ironruby.net/Documentation/Rails has been updated to show instructions for running Rails 2.3.5 on IronRuby, including using the official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work on ironruby-dbi! The steps are extrememly simple now. Assuming you have IronRuby installed and a Rails app you'd like to run on IronRuby: 1. Install Rake, Rails, and IronRuby SQLServer igem install rake rails ironruby-sqlserver 2. Add the following to the top of your app's config/environment.rb: require 'rubygems' require 'ironruby_sqlserver' 3. Connect to SQLServer in config/database.yml: development: mode: ADONET adapter: sqlserver host: YOURMACHINENAME\SQLEXPRESS database: app123_development integrated_security: true 4. Migrate the database and start the server: irake db:migrate ir script\server And that's it! The documentation link above also has a walk through setting up IronRuby, Rails, and SQLServer, and shows a basic Rails "scaffold" running. Coming soon are updated instructions for running rack-based web applications in IIS on IronRuby. Let me know if you have any questions, ~Jimmy From jdeville at microsoft.com Thu Jan 14 20:09:09 2010 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 15 Jan 2010 01:09:09 +0000 Subject: [Ironruby-core] Review: More ActionPack fixes In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C88DD6E@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C88DD6E@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: * Store.rb should be using the send idiom. Your test should be: ENV.send(@method, "foo", "") ENV["foo"].should == "" The second line is fine because we are testing the store method (element set in this case, but I think #store is the other one), not the get method. * Please use a shared behavior for expecptions_spec.rb. Since all of the describes are the same, they should all be using the same behavior. * Utr.rb: exit!(0) should work for both IronRuby and MRI as a hard exit C:\vsl\rubysync\Merlin [29] > irb irb(main):001:0> at_exit { puts 'gotcha' } => # irb(main):002:0> exit!(0) Looks good other than that From: Shri Borde Sent: Thursday, January 14, 2010 3:58 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: More ActionPack fixes tfpt review /shelveset:rails3 * ENV["foo"] = "" should set the environment variable to an empty string, not delete it * Added Iconv::IllegalSequence etc * Rails test expect Array#sort_by to be a stable sort (ie. if #<=> returns 0, then the relative order of the elements in the original array is maintained). Worked around this at the top of action_pack_tests (see the comment for more details). * Added -r to utr.rb to run a single test case. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Fri Jan 15 10:42:18 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 15 Jan 2010 09:42:18 -0600 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: That's terrific, Jimmy! Thanks! Jim mentioned that the 'i' prefix might be going away soon, but I noticed that you are still using the 'i'-prefixed versions of commands. What's the timeline? Cheers! Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Thu, Jan 14, 2010 at 6:48 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > All, > > http://ironruby.net/Documentation/Rails has been updated to show > instructions for running Rails 2.3.5 on IronRuby, including using the > official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work > on ironruby-dbi! > > The steps are extrememly simple now. Assuming you have IronRuby installed > and a Rails app you'd like to run on IronRuby: > > 1. Install Rake, Rails, and IronRuby SQLServer > > igem install rake rails ironruby-sqlserver > > 2. Add the following to the top of your app's config/environment.rb: > > require 'rubygems' > require 'ironruby_sqlserver' > > 3. Connect to SQLServer in config/database.yml: > > development: > mode: ADONET > adapter: sqlserver > host: YOURMACHINENAME\SQLEXPRESS > database: app123_development > integrated_security: true > > 4. Migrate the database and start the server: > > irake db:migrate > ir script\server > > And that's it! The documentation link above also has a walk through setting > up IronRuby, Rails, and SQLServer, and shows a basic Rails "scaffold" > running. > > Coming soon are updated instructions for running rack-based web > applications in IIS on IronRuby. > > Let me know if you have any questions, > ~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 ryan.riley at panesofglass.org Fri Jan 15 10:46:15 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 15 Jan 2010 09:46:15 -0600 Subject: [Ironruby-core] igem not working In-Reply-To: References: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> <055785c7e97aeccb6c53e596701f98bf@ruby-forum.com> Message-ID: On Thu, Jan 14, 2010 at 3:13 PM, Ivan Porto Carrero wrote: > That's fine but my point is that if you just want to just use ironruby do > NOT get the sources.. they haven't been updated in a while and the 1.0 RC1 > version is probably very close to what you get with building from source but > without the added hassle and changed gems location. There is no obvious win > anymore when you build from source. > That's a shame. Will this change at some point? I suppose it really doesn't matter when all you want to do is use IronRuby. Are there any build options to set the gems location? Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Fri Jan 15 11:01:06 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 15 Jan 2010 17:01:06 +0100 Subject: [Ironruby-core] igem not working In-Reply-To: References: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> <055785c7e97aeccb6c53e596701f98bf@ruby-forum.com> Message-ID: sure you can change the GEM_PATH What I tend to do is just build from source and copy the binaries over the ironruby install. Then I have to edit the .config files so it will work with unsigned assemblies. There was a push yesterday and now there is a huge win. An RSpec batch now takes less than half the time it did before. At this point ironruby is very usable and I would take an app in production with it. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Jan 15, 2010 at 4:46 PM, Ryan Riley wrote: > On Thu, Jan 14, 2010 at 3:13 PM, Ivan Porto Carrero wrote: > >> That's fine but my point is that if you just want to just use ironruby do >> NOT get the sources.. they haven't been updated in a while and the 1.0 RC1 >> version is probably very close to what you get with building from source but >> without the added hassle and changed gems location. There is no obvious win >> anymore when you build from source. >> > > That's a shame. Will this change at some point? I suppose it really doesn't > matter when all you want to do is use IronRuby. Are there any build options > to set the gems location? > > Ryan > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Fri Jan 15 11:25:33 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 15 Jan 2010 10:25:33 -0600 Subject: [Ironruby-core] igem not working In-Reply-To: References: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> <055785c7e97aeccb6c53e596701f98bf@ruby-forum.com> Message-ID: That's fantastic news! Btw, if you compile with the '-S' option, can you move the binaries and work directly with regular gems? I don't have my laptop with me, so I can't try that myself, atm. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Fri, Jan 15, 2010 at 10:01 AM, Ivan Porto Carrero wrote: > sure you can change the GEM_PATH > > What I tend to do is just build from source and copy the binaries over the > ironruby install. Then I have to edit the .config files so it will work with > unsigned assemblies. > > There was a push yesterday and now there is a huge win. An RSpec batch now > takes less than half the time it did before. At this point ironruby is very > usable and I would take an app in production with it. > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Jan 15 11:38:42 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 15 Jan 2010 16:38:42 +0000 Subject: [Ironruby-core] igem not working In-Reply-To: References: <7522824aee4b71c101ac9e688fd35950@ruby-forum.com> <055785c7e97aeccb6c53e596701f98bf@ruby-forum.com> Message-ID: <6CF991C9-C5A8-4D9D-8B89-DBFA2CCD0A68@microsoft.com> -S is only in my fork at the moment. ~Jimmy Sent from my phone On Jan 15, 2010, at 8:26 AM, "Ryan Riley" > wrote: That's fantastic news! Btw, if you compile with the '-S' option, can you move the binaries and work directly with regular gems? I don't have my laptop with me, so I can't try that myself, atm. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Fri, Jan 15, 2010 at 10:01 AM, Ivan Porto Carrero <ivan at flanders.co.nz> wrote: sure you can change the GEM_PATH What I tend to do is just build from source and copy the binaries over the ironruby install. Then I have to edit the .config files so it will work with unsigned assemblies. There was a push yesterday and now there is a huge win. An RSpec batch now takes less than half the time it did before. At this point ironruby is very usable and I would take an app in production with it. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) _______________________________________________ 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 Jan 15 12:35:09 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Fri, 15 Jan 2010 18:35:09 +0100 Subject: [Ironruby-core] rexml/document with IronRuby Message-ID: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> Is rexml/document compatible with IronRuby? I am running the following code: and it throws me the exception: require 'rexml/document' include REXML class EnvironmentSetupService def setupEnvironment(connectionString) # open the file file = File.open('../../Web.config','w+') doc = Document.new(file) puts doc.root end end Unhandled Exception: IronRuby.Builtins.LoadError: no such file to load -- rexml/ document at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame fram e) at Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFra me frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 a rg1) at IronRuby.Runtime.RubyScriptCode.Run(Scope scope, Boolean bindGlobals) at IronRuby.Runtime.RubyScriptCode.Run(Scope scope) at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink) at Microsoft.Scripting.SourceUnit.Execute(Scope scope) at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteFile(String path, ScriptSc ope scope) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteFile(String path) at ConsoleApplication2.Program.Main(String[] args) in C:\Projects\EStudyVS200 8\EStudySoltution\EStudy\ConsoleApplication2\Program.cs:line 18 Press any key to continue . . . -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Fri Jan 15 13:11:44 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 15 Jan 2010 18:11:44 +0000 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> > Is rexml/document compatible with IronRuby? Yes: >>> require 'rexml/document' => true What is the value of $LOAD_PATH? I had sent you a mail earlier saying to copy ir.exe.config and put it in your application's app.config, and to correct any relative paths in the LibraryPaths value. Not being able to find rexml means that the Ruby standard library isn't on your $LOAD_PATH, or your application doesn't have permissions to see it. If you have questions about a library being supported, please try it through ir.exe; if it works then you know it's a problem with your hosting setup. ~Jimmy From lists at ruby-forum.com Fri Jan 15 13:19:46 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Fri, 15 Jan 2010 19:19:46 +0100 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: I thought this path mess was cleaned in the IronRuby RC version. I have the "bin" folder path in my environment variable. I can execute the ruby implemention of the rexml/document without any problems. But when I try to do the same using C# invoking IronRuby it throws exceptions. -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Fri Jan 15 13:40:25 2010 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 15 Jan 2010 18:40:25 +0000 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Even with the release version, you need to make your app.exe.config have the right xml elements to setup the load path. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Friday, January 15, 2010 10:20 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] rexml/document with IronRuby I thought this path mess was cleaned in the IronRuby RC version. I have the "bin" folder path in my environment variable. I can execute the ruby implemention of the rexml/document without any problems. But when I try to do the same using C# invoking IronRuby it throws exceptions. -- Posted via 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 Jan 15 13:43:56 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Fri, 15 Jan 2010 19:43:56 +0100 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> Will this be changed in the final release!! This configuration, setting different paths etc is too much a hassle for developers. -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Fri Jan 15 14:09:32 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 15 Jan 2010 19:09:32 +0000 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> > This configuration, setting different paths etc is too much a hassle for developers. Let's go over what "configuration, setting different paths etc" actually means: - When using ir.exe directly? Nothing, the Ruby standard library just works. - When embedding IronRuby inside a .NET app? Just telling your C# app where IronRuby's libraries are: 1. Copy ir.exe.config into your app.config 2. Make sure LibraryPaths still make sense. Making these full-paths is easiest, So just replace the ".." with "C:\IronRuby" (or wherever you extracted a IronRuby release to ... for example this is the LibraryPaths for a C:\IronRuby installation: C:\IronRuby\lib\IronRuby;C:\IronRuby\lib\ruby\site_ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib\ruby\1.8 And that's it. So please, let me know how this could be too much hassle for you. Sure, embedding isn't "one-click", but don't blow it up to be more than it really is. Please let us know if you've found any real ship-stopping bugs. Note that ir.exe.config uses relative paths as we have no idea where someone will unzip the release to. With the MSI we can possibly generate ir.exe.config to use full paths, but that would be very low on our list of stuff to do for 1.0. Also, if we release VS integration in the future, generating the correct app.config for embedding is also a possibility. However, for embedding, presumably you are going to want to put the libraries into your application's directory, so you do really care about where the paths are, which is why we don't somehow magically find them. ~Jimmy From ryan.riley at panesofglass.org Fri Jan 15 14:34:23 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 15 Jan 2010 13:34:23 -0600 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: To further the point, adding elements to your config should be a fairly routine task, as it is also required by data access, WCF, and other libraries. Some of those may have tooling, but you must edit the config in some way. So I don't see this as quite an incredulous thing to ask. Ryan Riley On Fri, Jan 15, 2010 at 1:09 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > > This configuration, setting different paths etc is too much a hassle for > developers. > > Let's go over what "configuration, setting different paths etc" actually > means: > > - When using ir.exe directly? > > Nothing, the Ruby standard library just works. > > - When embedding IronRuby inside a .NET app? > > Just telling your C# app where IronRuby's libraries are: > 1. Copy ir.exe.config into your app.config > 2. Make sure LibraryPaths still make sense. Making these full-paths is > easiest, > So just replace the ".." with "C:\IronRuby" (or wherever you extracted > a IronRuby > release to ... for example this is the LibraryPaths for a C:\IronRuby > installation: > > C:\IronRuby\lib\IronRuby;C:\IronRuby\lib\ruby\site_ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib\ruby\1.8 > > And that's it. So please, let me know how this could be too much hassle for > you. > Sure, embedding isn't "one-click", but don't blow it up to be more than it > really is. > Please let us know if you've found any real ship-stopping bugs. > > Note that ir.exe.config uses relative paths as we have no idea where > someone will > unzip the release to. With the MSI we can possibly generate ir.exe.config > to use > full paths, but that would be very low on our list of stuff to do for 1.0. > Also, > if we release VS integration in the future, generating the correct > app.config > for embedding is also a possibility. > > However, for embedding, presumably you are going to want to put the > libraries > into your application's directory, so you do really care about where the > paths > are, which is why we don't somehow magically find them. > > ~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 lists at ruby-forum.com Fri Jan 15 14:59:23 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Fri, 15 Jan 2010 20:59:23 +0100 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <94e05da9b09fa5384b1f975472a8c223@ruby-forum.com> When I presented on IronRuby at different events and showed people how much they have to do in order to get the thing in working state they nudge their head and says no thanks. Developers are already drained under configuration and now they have to remember this one more configuration. Setting up environment variables, pasting code from ir.exe.config into personal config settings. This is too much work for a developer. Not to mention that this has to be done on every dev machine. Yes, I can make a batch file which can inject the settings into environment and config but then this is another thing to maintain and dev nightmare. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jan 15 15:04:36 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Fri, 15 Jan 2010 21:04:36 +0100 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: <94e05da9b09fa5384b1f975472a8c223@ruby-forum.com> References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> <94e05da9b09fa5384b1f975472a8c223@ruby-forum.com> Message-ID: <4b71d86e690985d354ea0bf3db147a93@ruby-forum.com> BTW, I like to mention that I love IronRuby. The above post is the feedback I received from the audience who were in my "I Love IronRuby" session. -- Posted via http://www.ruby-forum.com/. From orion.edwards at gmail.com Sat Jan 16 00:46:40 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Sat, 16 Jan 2010 18:46:40 +1300 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: While I agree that changing the app.config is a common task, and it's easy if you're just shipping a single standalone app, it's a giant pain in the ass if you're having to upgrade an existing installation, or integrate with another program. (Outlook.exe.config anyone??) I've seen a fair few .net apps move their configuration OUT of app.config and into the registry because of things like that. Is there a way that we can set the library path and other such things programatically (eg: RubyEngine.LoadPath = "blah"), etc? That would be much nicer than app.config mangling :-( Cheers, Orion On 16/01/2010, at 8:09 AM, Jimmy Schementi wrote: >> This configuration, setting different paths etc is too much a hassle for developers. > > Let's go over what "configuration, setting different paths etc" actually means: > > - When using ir.exe directly? > > Nothing, the Ruby standard library just works. > > - When embedding IronRuby inside a .NET app? > > Just telling your C# app where IronRuby's libraries are: > 1. Copy ir.exe.config into your app.config > 2. Make sure LibraryPaths still make sense. Making these full-paths is easiest, > So just replace the ".." with "C:\IronRuby" (or wherever you extracted a IronRuby > release to ... for example this is the LibraryPaths for a C:\IronRuby installation: > C:\IronRuby\lib\IronRuby;C:\IronRuby\lib\ruby\site_ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib\ruby\1.8 > > And that's it. So please, let me know how this could be too much hassle for you. > Sure, embedding isn't "one-click", but don't blow it up to be more than it really is. > Please let us know if you've found any real ship-stopping bugs. > > Note that ir.exe.config uses relative paths as we have no idea where someone will > unzip the release to. With the MSI we can possibly generate ir.exe.config to use > full paths, but that would be very low on our list of stuff to do for 1.0. Also, > if we release VS integration in the future, generating the correct app.config > for embedding is also a possibility. > > However, for embedding, presumably you are going to want to put the libraries > into your application's directory, so you do really care about where the paths > are, which is why we don't somehow magically find them. > > ~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 orion.edwards at gmail.com Sat Jan 16 00:48:43 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Sat, 16 Jan 2010 18:48:43 +1300 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: The worst thing about WCF is all the configuration! Just because everything else sucks it doesn't mean that it's ok for us to suck too! At least you can configure WCF programatically. Along the same lines, it would be nice for IronRuby to offer a programmatic option also (if it already does, then hooray!) On 16/01/2010, at 8:34 AM, Ryan Riley wrote: > To further the point, adding elements to your config should be a fairly routine task, as it is also required by data access, WCF, and other libraries. Some of those may have tooling, but you must edit the config in some way. So I don't see this as quite an incredulous thing to ask. > > > Ryan Riley > > > On Fri, Jan 15, 2010 at 1:09 PM, Jimmy Schementi wrote: > > This configuration, setting different paths etc is too much a hassle for developers. > > Let's go over what "configuration, setting different paths etc" actually means: > > - When using ir.exe directly? > > Nothing, the Ruby standard library just works. > > - When embedding IronRuby inside a .NET app? > > Just telling your C# app where IronRuby's libraries are: > 1. Copy ir.exe.config into your app.config > 2. Make sure LibraryPaths still make sense. Making these full-paths is easiest, > So just replace the ".." with "C:\IronRuby" (or wherever you extracted a IronRuby > release to ... for example this is the LibraryPaths for a C:\IronRuby installation: > C:\IronRuby\lib\IronRuby;C:\IronRuby\lib\ruby\site_ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib\ruby\1.8 > > And that's it. So please, let me know how this could be too much hassle for you. > Sure, embedding isn't "one-click", but don't blow it up to be more than it really is. > Please let us know if you've found any real ship-stopping bugs. > > Note that ir.exe.config uses relative paths as we have no idea where someone will > unzip the release to. With the MSI we can possibly generate ir.exe.config to use > full paths, but that would be very low on our list of stuff to do for 1.0. Also, > if we release VS integration in the future, generating the correct app.config > for embedding is also a possibility. > > However, for embedding, presumably you are going to want to put the libraries > into your application's directory, so you do really care about where the paths > are, which is why we don't somehow magically find them. > > ~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 jdeville at microsoft.com Sat Jan 16 01:15:25 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sat, 16 Jan 2010 06:15:25 +0000 Subject: [Ironruby-core] rexml/document with IronRuby Message-ID: I don't remember the exact command, but there is a method... SetupSearchPath or something like that (it's on my computer which needs to charge). JD ________________________________ From: Orion Edwards Sent: Friday, January 15, 2010 9:52 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] rexml/document with IronRuby While I agree that changing the app.config is a common task, and it's easy if you're just shipping a single standalone app, it's a giant pain in the ass if you're having to upgrade an existing installation, or integrate with another program. (Outlook.exe.config anyone??) I've seen a fair few .net apps move their configuration OUT of app.config and into the registry because of things like that. Is there a way that we can set the library path and other such things programatically (eg: RubyEngine.LoadPath = "blah"), etc? That would be much nicer than app.config mangling :-( Cheers, Orion On 16/01/2010, at 8:09 AM, Jimmy Schementi wrote: This configuration, setting different paths etc is too much a hassle for developers. Let's go over what "configuration, setting different paths etc" actually means: - When using ir.exe directly? Nothing, the Ruby standard library just works. - When embedding IronRuby inside a .NET app? Just telling your C# app where IronRuby's libraries are: 1. Copy ir.exe.config into your app.config 2. Make sure LibraryPaths still make sense. Making these full-paths is easiest, So just replace the ".." with "C:\IronRuby" (or wherever you extracted a IronRuby release to ... for example this is the LibraryPaths for a C:\IronRuby installation: C:\IronRuby\lib\IronRuby;C:\IronRuby\lib\ruby\site_ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib\ruby\1.8 And that's it. So please, let me know how this could be too much hassle for you. Sure, embedding isn't "one-click", but don't blow it up to be more than it really is. Please let us know if you've found any real ship-stopping bugs. Note that ir.exe.config uses relative paths as we have no idea where someone will unzip the release to. With the MSI we can possibly generate ir.exe.config to use full paths, but that would be very low on our list of stuff to do for 1.0. Also, if we release VS integration in the future, generating the correct app.config for embedding is also a possibility. However, for embedding, presumably you are going to want to put the libraries into your application's directory, so you do really care about where the paths are, which is why we don't somehow magically find them. ~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 ivan at flanders.co.nz Sat Jan 16 02:01:26 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 16 Jan 2010 08:01:26 +0100 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: You can change all that from code as well. ScriptRuntimeSetup is what you're interested in http://github.com/casualjim/ironrubymvc/blob/master/IronRubyMvc/Core/RubyEngine.cs#L412 You can add load paths too from C# http://github.com/casualjim/ironrubymvc/blob/master/IronRubyMvc/Core/RubyEngine.cs#L365 Adding stuff to the registry is always wrong IMO. The reason being that the registry only exists on windows and maybe for you that isn't a problem. In european governments it's not allowed to use windows for many of the applications (I'm sure most of you know about the great relationship between the EU and MSFT) so they run linux with mono. In my country that amounts to about 30% of the entire IT infrastructure/employment. The config problem is a trivial problem at best, and I don't think this issue is ironruby specific. Deploying stuff with registry keys almost forces you to use an installer, which makes the process of scripting the installation of an entire environment less than optimal for example ( I don't do system images because they get stale and are bound to specific hardware). I could do a long rant on this subject, but in comparison to 95% of the software I get to deal with in an enterprise environment has at least 5x the configuration requirements from IronRuby. Let's look at this closer this whole thread is about < 10 f'ing lines of XML. Less than 10 lines people, have you ever set up asp.netmvc/WCF/windsor/unity/....? So I think instead of complaining you should be happy with what the IronRuby team accomplished. Would you rather have the default values hard-coded then, because that's such a great solution ?
--- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sat, Jan 16, 2010 at 6:46 AM, Orion Edwards wrote: > While I agree that changing the app.config is a common task, and it's easy > if you're just shipping a single standalone app, it's a *giant* pain in > the ass if you're having to upgrade an existing installation, or integrate > with another program. (Outlook.exe.config anyone??) > I've seen a fair few .net apps move their configuration OUT of app.config > and into the registry because of things like that. > > Is there a way that we can set the library path and other such things > programatically (eg: RubyEngine.LoadPath = "blah"), etc? That would be much > nicer than app.config mangling :-( > > Cheers, Orion > > > > On 16/01/2010, at 8:09 AM, Jimmy Schementi wrote: > > This configuration, setting different paths etc is too much a hassle for > developers. > > > Let's go over what "configuration, setting different paths etc" actually > means: > > - When using ir.exe directly? > > Nothing, the Ruby standard library just works. > > - When embedding IronRuby inside a .NET app? > > Just telling your C# app where IronRuby's libraries are: > 1. Copy ir.exe.config into your app.config > 2. Make sure LibraryPaths still make sense. Making these full-paths is > easiest, > So just replace the ".." with "C:\IronRuby" (or wherever you extracted > a IronRuby > release to ... for example this is the LibraryPaths for a C:\IronRuby > installation: > > C:\IronRuby\lib\IronRuby;C:\IronRuby\lib\ruby\site_ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib\ruby\1.8 > > And that's it. So please, let me know how this could be too much hassle for > you. > Sure, embedding isn't "one-click", but don't blow it up to be more than it > really is. > Please let us know if you've found any real ship-stopping bugs. > > Note that ir.exe.config uses relative paths as we have no idea where > someone will > unzip the release to. With the MSI we can possibly generate ir.exe.config > to use > full paths, but that would be very low on our list of stuff to do for 1.0. > Also, > if we release VS integration in the future, generating the correct > app.config > for embedding is also a possibility. > > However, for embedding, presumably you are going to want to put the > libraries > into your application's directory, so you do really care about where the > paths > are, which is why we don't somehow magically find them. > > ~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 Tomas.Matousek at microsoft.com Sat Jan 16 02:02:58 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 16 Jan 2010 07:02:58 +0000 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14F078@TK5EX14MBXC122.redmond.corp.microsoft.com> ScriptEngine.SetSearchPaths does it for search paths. A configuration file is just one of the options how to configure IronRuby. The most general API is Ruby.CreateRuntime(ScriptRuntimeSetup), where you provide a configuration object. In fact, the parameter-less Ruby.CreateRuntime and Ruby.CreateEngine just call Ruby.CreateRuntime(ScriptRuntimeSetup.ReadConfiguration()). You can write your own configuration system that produces ScriptRuntimeSetup instance from registry, MEF, yaml files, server on the Internet, or any other data provider. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Friday, January 15, 2010 10:15 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] rexml/document with IronRuby I don't remember the exact command, but there is a method... SetupSearchPath or something like that (it's on my computer which needs to charge). JD ________________________________ From: Orion Edwards Sent: Friday, January 15, 2010 9:52 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] rexml/document with IronRuby While I agree that changing the app.config is a common task, and it's easy if you're just shipping a single standalone app, it's a giant pain in the ass if you're having to upgrade an existing installation, or integrate with another program. (Outlook.exe.config anyone??) I've seen a fair few .net apps move their configuration OUT of app.config and into the registry because of things like that. Is there a way that we can set the library path and other such things programatically (eg: RubyEngine.LoadPath = "blah"), etc? That would be much nicer than app.config mangling :-( Cheers, Orion On 16/01/2010, at 8:09 AM, Jimmy Schementi wrote: This configuration, setting different paths etc is too much a hassle for developers. Let's go over what "configuration, setting different paths etc" actually means: - When using ir.exe directly? Nothing, the Ruby standard library just works. - When embedding IronRuby inside a .NET app? Just telling your C# app where IronRuby's libraries are: 1. Copy ir.exe.config into your app.config 2. Make sure LibraryPaths still make sense. Making these full-paths is easiest, So just replace the ".." with "C:\IronRuby" (or wherever you extracted a IronRuby release to ... for example this is the LibraryPaths for a C:\IronRuby installation: C:\IronRuby\lib\IronRuby;C:\IronRuby\lib\ruby\site_ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib\ruby\1.8 And that's it. So please, let me know how this could be too much hassle for you. Sure, embedding isn't "one-click", but don't blow it up to be more than it really is. Please let us know if you've found any real ship-stopping bugs. Note that ir.exe.config uses relative paths as we have no idea where someone will unzip the release to. With the MSI we can possibly generate ir.exe.config to use full paths, but that would be very low on our list of stuff to do for 1.0. Also, if we release VS integration in the future, generating the correct app.config for embedding is also a possibility. However, for embedding, presumably you are going to want to put the libraries into your application's directory, so you do really care about where the paths are, which is why we don't somehow magically find them. ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sat Jan 16 02:13:57 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 16 Jan 2010 07:13:57 +0000 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: References: <3fdece349d12bf06c3082a2e8ecd568f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE34B@TK5EX14MBXC141.redmond.corp.microsoft.com> <5d3fc77a0c08087ca3aad4e27e503b0f@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920AE421@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14F0AD@TK5EX14MBXC122.redmond.corp.microsoft.com> BTW: I don't see how moving configuration from .config file to registry helps anything. There is an API for updating .config files as there is an API for updating registry. When integrating with another .NET program you just insert IronRuby/DLR specific section into the existing .config file and you're done. Outlook isn't a managed app and thus hosts CLR via native hosting APIs. In that case it's up to the host how it manages configuration. You can always load a configuration file yourself if the host doesn't do it for you. See http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx API. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Friday, January 15, 2010 9:47 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] rexml/document with IronRuby While I agree that changing the app.config is a common task, and it's easy if you're just shipping a single standalone app, it's a giant pain in the ass if you're having to upgrade an existing installation, or integrate with another program. (Outlook.exe.config anyone??) I've seen a fair few .net apps move their configuration OUT of app.config and into the registry because of things like that. Is there a way that we can set the library path and other such things programatically (eg: RubyEngine.LoadPath = "blah"), etc? That would be much nicer than app.config mangling :-( Cheers, Orion On 16/01/2010, at 8:09 AM, Jimmy Schementi wrote: This configuration, setting different paths etc is too much a hassle for developers. Let's go over what "configuration, setting different paths etc" actually means: - When using ir.exe directly? Nothing, the Ruby standard library just works. - When embedding IronRuby inside a .NET app? Just telling your C# app where IronRuby's libraries are: 1. Copy ir.exe.config into your app.config 2. Make sure LibraryPaths still make sense. Making these full-paths is easiest, So just replace the ".." with "C:\IronRuby" (or wherever you extracted a IronRuby release to ... for example this is the LibraryPaths for a C:\IronRuby installation: C:\IronRuby\lib\IronRuby;C:\IronRuby\lib\ruby\site_ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib\ruby\1.8 And that's it. So please, let me know how this could be too much hassle for you. Sure, embedding isn't "one-click", but don't blow it up to be more than it really is. Please let us know if you've found any real ship-stopping bugs. Note that ir.exe.config uses relative paths as we have no idea where someone will unzip the release to. With the MSI we can possibly generate ir.exe.config to use full paths, but that would be very low on our list of stuff to do for 1.0. Also, if we release VS integration in the future, generating the correct app.config for embedding is also a possibility. However, for embedding, presumably you are going to want to put the libraries into your application's directory, so you do really care about where the paths are, which is why we don't somehow magically find them. ~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 a.wilson82 at gmail.com Sat Jan 16 03:41:03 2010 From: a.wilson82 at gmail.com (andrew Wilson) Date: Sat, 16 Jan 2010 01:41:03 -0700 Subject: [Ironruby-core] InternalsVisibleTo Message-ID: <9dbb46901001160041m75153fbbn837d7f1790d161b9@mail.gmail.com> Jimmy, So I decided to debug this out a bit for myself. Before I go too far, here is how my require headers are setup: require 'System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' require 'System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' require 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' require 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' require 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' require 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' require 'C:\Users\pinvoke\Desktop\Rspec_Project_Runner\cmd_parser\bin\Debug\CmdParser.dll' require 'C:\Users\pinvoke\Desktop\Rspec_Project_Runner\rspec_project_runner\bin\Debug\rspec_project_runner.exe' Inside of my IronRuby specs, there is a call that, in ruby looks like this: rargs = ['-o', 'C:\Users\pinvoke'] args = System::Array[System::String].new(rargs) p = Rspec::Project::Runner::ProgramArguments.Parse(args) The call to assign the results of Parse to P always fails unless I a) Do what Ivan suggested and copy to the bin folder b.) Modify ir.exe.config to include the path to the actual .dll - I was reading the source code this evening and noticed that during the RubyContext buildup it only includes the following paths to resolve references: context.Loader.GetLoadPathStrings() {string[4]} [0]: "F:/ironruby-ironruby-178b744/Merlin/Main/Languages/Ruby/libs/" [1]: "F:/ironruby-ironruby-178b744/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/site_ruby/1.8/" [2]: "F:/ironruby-ironruby-178b744/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/" [3]: "." I assumed this is was why if I dump my .dll into any of those paths it resolves. Then when I looked at the loaded files, everything looked like it loaded correctly: [2]: "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [3]: "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [4]: "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [5]: "System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [6]: "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [7]: "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [8]: "C:\\\\Users\\\\pinvoke\\\\Desktop\\\\Rspec_Project_Runner\\\\cmd_parser\\\\bin\\\\Debug\\\\CmdParser.dll" [9]: "C:\\\\Users\\\\pinvoke\\\\Desktop\\\\Rspec_Project_Runner\\\\Specs\\\\CmdParser_spec_helper.rb" [10]: "C:\\\\Users\\\\pinvoke\\\\Desktop\\\\Rspec_Project_Runner\\\\rspec_project_runner\\\\bin\\\\Debug\\\\rspec_project_runner.exe" [11]: "rspec_project_runner_spec_helper.rb" Here is where it gets fun! The problem appears to be in the way IronRuby is resolving assembly references from other already loaded assemblies. That is, if I make the above spec calls (rargs /args/ p) the application blows up w/o the CmdParser assembly in the path. The thing is that all the .Parse(args) method call is doing is a wrapper to call into another assembly... the one that blows up as not being found. So, I decided to see what happened if I call the methods from the CmdParser assembly directly and... everything works fine. Regardless of which path the file is in :) If I wasn't so tired I would try and trace back how the resolve was working and why it wasn't checking the loaded files... however I am exhausted and it's way past my bed time. If this helps, here is the Fusion Log that got dumped: === Pre-bind state information === LOG: User = veritas\pinvoke LOG: DisplayName = CmdParser, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null (Fully-specified) LOG: Appbase = file:///F:/ironruby-ironruby-178b744/Merlin/Main/bin/Debug/ LOG: Initial PrivatePath = NULL Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: F:\ironruby-ironruby-178b744\Merlin\Main\bin\Debug\ir.exe.Config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: The same bind was seen before, and was failed with hr = 0x80070002. -Andrew -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sat Jan 16 12:45:32 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Sat, 16 Jan 2010 18:45:32 +0100 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C2E14F078@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C2E14F078@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <9e456f7b85caaf3a778e2d6b5a9a3cf8@ruby-forum.com> var scriptingRuntime = IronRuby.Ruby.CreateRuntime(); var engine = scriptingRuntime.GetEngine("rb"); var operations = engine.CreateOperations(); var paths = new List(); paths.Add(@"C:\ironruby\ironruby\Merlin\Main\Languages\Ruby\Libs"); paths.Add(@"C:\ironruby\ironruby\Merlin\External.LCA_RESTRICTED\Languages\Ruby\redist-libs\ruby\1.8"); engine.SetSearchPaths(paths); -- Posted via http://www.ruby-forum.com/. From orion.edwards at gmail.com Sat Jan 16 13:47:44 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Sun, 17 Jan 2010 07:47:44 +1300 Subject: [Ironruby-core] rexml/document with IronRuby In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C2E14F078@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C2E14F078@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <0A24BF38-57FD-4274-92EF-29F0F3D1FB98@gmail.com> Sweet :-) What can I say, I've just had some bad experiences with app.config files in the past. Apologies for the rantish tone I took the other day Thanks, Orion On 16/01/2010, at 8:02 PM, Tomas Matousek wrote: > ScriptEngine.SetSearchPaths does it for search paths. > > A configuration file is just one of the options how to configure IronRuby. The most general API is Ruby.CreateRuntime(ScriptRuntimeSetup), where you provide a configuration object. In fact, the parameter-less Ruby.CreateRuntime and Ruby.CreateEngine just call Ruby.CreateRuntime(ScriptRuntimeSetup.ReadConfiguration()). You can write your own configuration system that produces ScriptRuntimeSetup instance from registry, MEF, yaml files, server on the Internet, or any other data provider. > > Tomas > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Friday, January 15, 2010 10:15 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] rexml/document with IronRuby > > I don't remember the exact command, but there is a method... SetupSearchPath or something like that (it's on my computer which needs to charge). > > JD > > > > From: Orion Edwards > Sent: Friday, January 15, 2010 9:52 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] rexml/document with IronRuby > > While I agree that changing the app.config is a common task, and it's easy if you're just shipping a single standalone app, it's a giant pain in the ass if you're having to upgrade an existing installation, or integrate with another program. (Outlook.exe.config anyone??) > I've seen a fair few .net apps move their configuration OUT of app.config and into the registry because of things like that. > > Is there a way that we can set the library path and other such things programatically (eg: RubyEngine.LoadPath = "blah"), etc? That would be much nicer than app.config mangling :-( > > Cheers, Orion > > > On 16/01/2010, at 8:09 AM, Jimmy Schementi wrote: > > > This configuration, setting different paths etc is too much a hassle for developers. > > Let's go over what "configuration, setting different paths etc" actually means: > > - When using ir.exe directly? > > Nothing, the Ruby standard library just works. > > - When embedding IronRuby inside a .NET app? > > Just telling your C# app where IronRuby's libraries are: > 1. Copy ir.exe.config into your app.config > 2. Make sure LibraryPaths still make sense. Making these full-paths is easiest, > So just replace the ".." with "C:\IronRuby" (or wherever you extracted a IronRuby > release to ... for example this is the LibraryPaths for a C:\IronRuby installation: > C:\IronRuby\lib\IronRuby;C:\IronRuby\lib\ruby\site_ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib\ruby\1.8 > > And that's it. So please, let me know how this could be too much hassle for you. > Sure, embedding isn't "one-click", but don't blow it up to be more than it really is. > Please let us know if you've found any real ship-stopping bugs. > > Note that ir.exe.config uses relative paths as we have no idea where someone will > unzip the release to. With the MSI we can possibly generate ir.exe.config to use > full paths, but that would be very low on our list of stuff to do for 1.0. Also, > if we release VS integration in the future, generating the correct app.config > for embedding is also a possibility. > > However, for embedding, presumably you are going to want to put the libraries > into your application's directory, so you do really care about where the paths > are, which is why we don't somehow magically find them. > > ~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 Jimmy.Schementi at microsoft.com Sun Jan 17 05:51:45 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sun, 17 Jan 2010 10:51:45 +0000 Subject: [Ironruby-core] Code Review: dash_s Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920AED0B@TK5EX14MBXC141.redmond.corp.microsoft.com> -S finds the file being run on the environment's PATH, rather than requiring the full path to be provided. Adds the -S command-line option (for example: ir -S irb) http://github.com/jschementi/ironruby/commit/135d5e5715409a194191c51c0566863603f49e16 Add spec for -S http://github.com/jschementi/ironruby/commit/62f211de25d1e7c7793b4f9af36cfde3670247f8 -------------- next part -------------- A non-text attachment was scrubbed... Name: dash_s.diff Type: application/octet-stream Size: 4694 bytes Desc: dash_s.diff URL: From ben2004uk at googlemail.com Sun Jan 17 19:10:34 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Mon, 18 Jan 2010 00:10:34 +0000 Subject: [Ironruby-core] Bug?: Ruby2Ruby and ParseTree on IronRuby Message-ID: Hi guys, For a project I want to be able to get access to the block definition as a string. After some help I came up with this: http://gist.github.com/279656 This solves the problem. When I run the same code on top of IronRuby, I get the following error message: /Users/Ben/Library/ironruby-0.9.3/lib/ironruby/gems/1.8/gems/ParseTree-3.0.4/lib/parse_tree_extensions.rb:52:in `to_sexp': undefined method `parse_tree_for_proc' for # (NoMethodError) from /Users/Ben/Library/ironruby-0.9.3/lib/ironruby/gems/1.8/gems/ParseTree-3.0.4/lib/parse_tree_extensions.rb:57:in `to_ruby' from mock.rb:31:in `block_as_string' from mock.rb:34 Any ideas on this? It's using Ruby2Ruby and ParseTree. Is it because it's based around C extensions? Anyone know how to do it on the CLR? Thanks Ben From ben2004uk at googlemail.com Sun Jan 17 19:17:03 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Mon, 18 Jan 2010 00:17:03 +0000 Subject: [Ironruby-core] RC2 Message-ID: Hi guys, With the latest performance improvements and -S feature, any ideas on when RC2 will be pushed out? Thanks Ben From Jimmy.Schementi at microsoft.com Sun Jan 17 21:32:30 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 18 Jan 2010 02:32:30 +0000 Subject: [Ironruby-core] Bug?: Ruby2Ruby and ParseTree on IronRuby In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920AEF70@TK5EX14MBXC141.redmond.corp.microsoft.com> > Any ideas on this? It's using Ruby2Ruby and ParseTree. Is it because it's > based around C extensions? Anyone know how to do it on the CLR? http://parsetree.rubyforge.org/ ParseTree hooks into MRI's internals and exposes the parse tree for a given chunk of Ruby code. For this to work on IronRuby you'd have to rewrite the C-extension-portion of this library to look at the DLR trees (may require changes to ironruby as well to expose the tree, but I'm not sure). Ruby2Ruby is just a Ruby parser written in Ruby, but depends on racc, which uses a C extension, though it seems like you can run racc without it. ~Jimmy From orion.edwards at gmail.com Sun Jan 17 21:44:55 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Mon, 18 Jan 2010 15:44:55 +1300 Subject: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) Message-ID: <7c1b59c01001171844t41e6ec26qc826d62e99988507@mail.gmail.com> I'd like to use the IronRuby name mangling methods from within a script I'm writing, but it seems as though I can't access things that are defined in IronRuby.dll? Reflector tells me that TryMangleName is a public static method on IronRuby.Runtime.RubyUtils, which is defined in IronRuby.dll. I'm trying to access it like this: > load_assembly 'IronRuby' => true > System::AppDomain.current_domain.get_assemblies.each{|x| puts x}; nil ...(snip) ... System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 IronRuby, Version=0.9.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 Microsoft.Scripting, Version=0.9.6.20, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ...(snip) ... => nil > IronRuby::Runtime::RubyUtils.try_mangle_name("Foo") NameError: uninitialized constant IronRuby::Runtime > IronRuby::Runtime NameError: uninitialized constant IronRuby::Runtime Is IronRuby treating it's own dll's specially? If so, is there any way I can get at the name mangling function? Thanks, Orion. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Sun Jan 17 21:49:02 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 18 Jan 2010 02:49:02 +0000 Subject: [Ironruby-core] RC2 In-Reply-To: References: Message-ID: Currently scheduled for early Feb. On Jan 17, 2010, at 4:17 PM, "Ben Hall" wrote: > Hi guys, > > With the latest performance improvements and -S feature, any ideas on > when RC2 will be pushed out? > > Thanks > > Ben > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From Jimmy.Schementi at microsoft.com Sun Jan 17 21:56:23 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 18 Jan 2010 02:56:23 +0000 Subject: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) In-Reply-To: <7c1b59c01001171844t41e6ec26qc826d62e99988507@mail.gmail.com> References: <7c1b59c01001171844t41e6ec26qc826d62e99988507@mail.gmail.com> Message-ID: load_assembly 'IronRuby' will do the trick. Doing require 'ironruby' will actually load the ironruby.rb in the ironruby library dir, but that file just warns that its not required to load that file, and doesn't load any assemblies. We should probably just get rid of that file, or make it actually load the assembly. ~Jimmy On Jan 17, 2010, at 6:45 PM, "Orion Edwards" > wrote: I'd like to use the IronRuby name mangling methods from within a script I'm writing, but it seems as though I can't access things that are defined in IronRuby.dll? Reflector tells me that TryMangleName is a public static method on IronRuby.Runtime.RubyUtils, which is defined in IronRuby.dll. I'm trying to access it like this: > load_assembly 'IronRuby' => true > System::AppDomain.current_domain.get_assemblies.each{|x| puts x}; nil ...(snip) ... System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 IronRuby, Version=0.9.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 Microsoft.Scripting, Version=0.9.6.20, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ...(snip) ... => nil > IronRuby::Runtime::RubyUtils.try_mangle_name("Foo") NameError: uninitialized constant IronRuby::Runtime > IronRuby::Runtime NameError: uninitialized constant IronRuby::Runtime Is IronRuby treating it's own dll's specially? If so, is there any way I can get at the name mangling function? Thanks, Orion. _______________________________________________ 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 michael.letterle at gmail.com Sun Jan 17 22:00:04 2010 From: michael.letterle at gmail.com (Michael Letterle) Date: Sun, 17 Jan 2010 22:00:04 -0500 Subject: [Ironruby-core] Bug?: Ruby2Ruby and ParseTree on IronRuby In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AEF70@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AEF70@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Considering we have access to the AST.. I would think that.. in theory at least, it would be EASIER to implement than CRuby... But yeah, what Jimmy said :) On Sun, Jan 17, 2010 at 9:32 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > > Any ideas on this? It's using Ruby2Ruby and ParseTree. Is it because it's > > based around C extensions? Anyone know how to do it on the CLR? > > http://parsetree.rubyforge.org/ > > ParseTree hooks into MRI's internals and exposes the parse tree for a given > chunk of Ruby code. For this to work on IronRuby you'd have to rewrite the > C-extension-portion of this library to look at the DLR trees (may require > changes to ironruby as well to expose the tree, but I'm not sure). > > Ruby2Ruby is just a Ruby parser written in Ruby, but depends on racc, which > uses a C extension, though it seems like you can run racc without it. > > ~Jimmy > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Michael Letterle IronRuby MVP http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion.edwards at gmail.com Sun Jan 17 23:29:09 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Mon, 18 Jan 2010 17:29:09 +1300 Subject: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) In-Reply-To: References: <7c1b59c01001171844t41e6ec26qc826d62e99988507@mail.gmail.com> Message-ID: <7c1b59c01001172029x3edeba63x3fc39dc1cc74bd91@mail.gmail.com> I am doing load_assembly 'IronRuby', and it didn't work (the example is copy/pasted pretty much verbatim). Not sure if that means your version of IR is different to mine, or what? Cheers, On Mon, Jan 18, 2010 at 3:56 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > load_assembly 'IronRuby' will do the trick. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jan 18 00:25:31 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 18 Jan 2010 05:25:31 +0000 Subject: [Ironruby-core] Bug?: Ruby2Ruby and ParseTree on IronRuby Message-ID: ParseTree is actually already implemented for IronRuby. Tomas did that to get merb running last year. Ruby2Ruby will probably need some work though. ________________________________ From: Michael Letterle Sent: Sunday, January 17, 2010 7:01 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Bug?: Ruby2Ruby and ParseTree on IronRuby Considering we have access to the AST.. I would think that.. in theory at least, it would be EASIER to implement than CRuby... But yeah, what Jimmy said :) On Sun, Jan 17, 2010 at 9:32 PM, Jimmy Schementi > wrote: > Any ideas on this? It's using Ruby2Ruby and ParseTree. Is it because it's > based around C extensions? Anyone know how to do it on the CLR? http://parsetree.rubyforge.org/ ParseTree hooks into MRI's internals and exposes the parse tree for a given chunk of Ruby code. For this to work on IronRuby you'd have to rewrite the C-extension-portion of this library to look at the DLR trees (may require changes to ironruby as well to expose the tree, but I'm not sure). Ruby2Ruby is just a Ruby parser written in Ruby, but depends on racc, which uses a C extension, though it seems like you can run racc without it. ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle IronRuby MVP http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jan 18 01:08:51 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 18 Jan 2010 06:08:51 +0000 Subject: [Ironruby-core] Bug?: Ruby2Ruby and ParseTree on IronRuby In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14F51C@TK5EX14MBXC122.redmond.corp.microsoft.com> Yes, the base ParseTree functionality is implemented in Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\ParseTree\IronRubyParseTreeOps.cs and Merlin\Main\Languages\Ruby\Libs\parse_tree.rb. It's not well tested code so it might be missing something or not exactly emulate Ruby's behavior (it's somewhat difficult to figure out how the tree should look like for some syntax elements). So, please, file a bug if you fined differences that matter. We also accept unit test contributions in a form of a spec :). IronRuby 0.9.3.0 on .NET 2.0.50727.4927 Copyright (c) Microsoft Corporation. All rights reserved. >>> require 'parse_tree' => true >>> ParseTree.translate("puts 'hello'") => [:fcall, :puts, [:array, [:str, "hello"]]] You can get a parse tree for a string and for a method. So far blocks are not supported. Do blocks work in Ruby 1.8.6? Note that the ability to retrieve a parse tree for an arbitrary method or a block makes all apps more memory consuming and thus also slower. Ruby trees of every single method and block need to stay in the memory for the case someone might call ParseTree.translate on them. We might need to do something about that for v1.0. Ideally, there would be a syntax in Ruby to define a quoted block or a method - that is a syntax that takes a method or block declaration and turns it into a parse tree. Something like ParseTree.translate but with a real code instead of a string. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Sunday, January 17, 2010 9:26 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Bug?: Ruby2Ruby and ParseTree on IronRuby ParseTree is actually already implemented for IronRuby. Tomas did that to get merb running last year. Ruby2Ruby will probably need some work though. ________________________________ From: Michael Letterle Sent: Sunday, January 17, 2010 7:01 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Bug?: Ruby2Ruby and ParseTree on IronRuby Considering we have access to the AST.. I would think that.. in theory at least, it would be EASIER to implement than CRuby... But yeah, what Jimmy said :) On Sun, Jan 17, 2010 at 9:32 PM, Jimmy Schementi > wrote: > Any ideas on this? It's using Ruby2Ruby and ParseTree. Is it because it's > based around C extensions? Anyone know how to do it on the CLR? http://parsetree.rubyforge.org/ ParseTree hooks into MRI's internals and exposes the parse tree for a given chunk of Ruby code. For this to work on IronRuby you'd have to rewrite the C-extension-portion of this library to look at the DLR trees (may require changes to ironruby as well to expose the tree, but I'm not sure). Ruby2Ruby is just a Ruby parser written in Ruby, but depends on racc, which uses a C extension, though it seems like you can run racc without it. ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle IronRuby MVP http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jan 18 01:23:49 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 18 Jan 2010 06:23:49 +0000 Subject: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) In-Reply-To: <7c1b59c01001172029x3edeba63x3fc39dc1cc74bd91@mail.gmail.com> References: <7c1b59c01001171844t41e6ec26qc826d62e99988507@mail.gmail.com> <7c1b59c01001172029x3edeba63x3fc39dc1cc74bd91@mail.gmail.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14F548@TK5EX14MBXC122.redmond.corp.microsoft.com> IronRuby is a module already defined in standard library. It gives you access to a bunch of useful APIs, including name mangling: >>> IronRuby.singleton_methods => ["configuration", "globals", "load", "loaded_assemblies", "loaded_scripts", "require", 'create_runtime', 'create_engine', 'create_ruby_setup', 'get_engine', 'require_file', 'get_execution_context'] >>> IronRuby.constants => ["Clr", "Print"] >>> IronRuby::Clr.constants => ["BigInteger", "FlagEnumeration", "Float", "Integer", "MultiDimensionalArray", "String", "Name", "Scope"] >>> IronRuby::Clr::Name.singleton_methods(false) => ["clr_to_ruby", "mangle", "ruby_to_clr", "unmangle"] >>> include IronRuby::Clr >>> Name.mangle("FooBar") => "foo_bar" >>> Name.unmangle("my_foo") => "MyFoo" Re loading IronRuby.dll - the problem is that IronRuby is also a namespace in IronRuby.dll so there is a name conflict we don't probably handle the best we could. Loading IronRuby.dll shouldn't be a common scenario though. The best place for IronRuby specific functionality is in the IronRuby module. If you're missing some let us know. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Sunday, January 17, 2010 8:29 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) I am doing load_assembly 'IronRuby', and it didn't work (the example is copy/pasted pretty much verbatim). Not sure if that means your version of IR is different to mine, or what? Cheers, On Mon, Jan 18, 2010 at 3:56 PM, Jimmy Schementi > wrote: load_assembly 'IronRuby' will do the trick. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jan 18 01:35:08 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 18 Jan 2010 06:35:08 +0000 Subject: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C2E14F548@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <7c1b59c01001171844t41e6ec26qc826d62e99988507@mail.gmail.com> <7c1b59c01001172029x3edeba63x3fc39dc1cc74bd91@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C2E14F548@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14F57A@TK5EX14MBXC122.redmond.corp.microsoft.com> BTW, if you really needed to get to IronRuby.dll's types you can use this workaround: >>> Utils = System::Type.get_type('IronRuby.Runtime.RubyUtils, IronRuby').to_class => IronRuby::Runtime::RubyUtils >>> Utils.try_unmangle_name("foo_bar") => 'FooBar' Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Sunday, January 17, 2010 10:24 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) IronRuby is a module already defined in standard library. It gives you access to a bunch of useful APIs, including name mangling: >>> IronRuby.singleton_methods => ["configuration", "globals", "load", "loaded_assemblies", "loaded_scripts", "require", 'create_runtime', 'create_engine', 'create_ruby_setup', 'get_engine', 'require_file', 'get_execution_context'] >>> IronRuby.constants => ["Clr", "Print"] >>> IronRuby::Clr.constants => ["BigInteger", "FlagEnumeration", "Float", "Integer", "MultiDimensionalArray", "String", "Name", "Scope"] >>> IronRuby::Clr::Name.singleton_methods(false) => ["clr_to_ruby", "mangle", "ruby_to_clr", "unmangle"] >>> include IronRuby::Clr >>> Name.mangle("FooBar") => "foo_bar" >>> Name.unmangle("my_foo") => "MyFoo" Re loading IronRuby.dll - the problem is that IronRuby is also a namespace in IronRuby.dll so there is a name conflict we don't probably handle the best we could. Loading IronRuby.dll shouldn't be a common scenario though. The best place for IronRuby specific functionality is in the IronRuby module. If you're missing some let us know. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Sunday, January 17, 2010 8:29 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) I am doing load_assembly 'IronRuby', and it didn't work (the example is copy/pasted pretty much verbatim). Not sure if that means your version of IR is different to mine, or what? Cheers, On Mon, Jan 18, 2010 at 3:56 PM, Jimmy Schementi > wrote: load_assembly 'IronRuby' will do the trick. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jan 18 02:25:58 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 18 Jan 2010 07:25:58 +0000 Subject: [Ironruby-core] Code Review: dash_s In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AED0B@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AED0B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: I noticed that -S should use the first file it finds on the path, can you do a spec for that? The rest looks good. JD -----Original Message----- From: Jimmy Schementi Sent: Sunday, January 17, 2010 2:52 AM To: ironruby-core at rubyforge.org Cc: IronRuby External Code Reviewers Subject: Code Review: dash_s -S finds the file being run on the environment's PATH, rather than requiring the full path to be provided. Adds the -S command-line option (for example: ir -S irb) http://github.com/jschementi/ironruby/commit/135d5e5715409a194191c51c0566863603f49e16 Add spec for -S http://github.com/jschementi/ironruby/commit/62f211de25d1e7c7793b4f9af36cfde3670247f8 From Shri.Borde at microsoft.com Mon Jan 18 04:36:28 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 18 Jan 2010 09:36:28 +0000 Subject: [Ironruby-core] Code Review: ActiveSupport fixes Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C891C58@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review "/shelveset:rails2;REDMOND\sborde" Comment : Implements RubyLambdaMethodInfo.GetArity ("%+d" % 0) should equal "+0", not "0". Fixes some of the other String#% specs as well -------------- next part -------------- A non-text attachment was scrubbed... Name: rails2.diff Type: application/octet-stream Size: 8755 bytes Desc: rails2.diff URL: From orion.edwards at gmail.com Mon Jan 18 15:40:31 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Tue, 19 Jan 2010 09:40:31 +1300 Subject: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C2E14F57A@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <7c1b59c01001171844t41e6ec26qc826d62e99988507@mail.gmail.com> <7c1b59c01001172029x3edeba63x3fc39dc1cc74bd91@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C2E14F548@TK5EX14MBXC122.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C2E14F57A@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <7c1b59c01001181240t6938b055tf06c60e7a181d1db@mail.gmail.com> Thanks for that Tomas. I ended up copy/pasting the String#camelize and #underscore methods from rails as they were only a couple of lines long. This is probably less error prone than importing types from the IronRuby dll in the long run anyway :-) Cheers. On Mon, Jan 18, 2010 at 7:35 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > BTW, if you really needed to get to IronRuby.dll?s types you can use this > workaround: > > > > >>> Utils = System::Type.get_type('IronRuby.Runtime.RubyUtils, > IronRuby').to_class > > => IronRuby::Runtime::RubyUtils > > >>> Utils.try_unmangle_name("foo_bar") > > => 'FooBar' > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Tomas Matousek > *Sent:* Sunday, January 17, 2010 10:24 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Accessing classes defined in IronRuby.dll > from within IronRuby (IronRuby 1.0RC1) > > > > IronRuby is a module already defined in standard library. It gives you > access to a bunch of useful APIs, including name mangling: > > > > >>> IronRuby.singleton_methods > > => ["configuration", "globals", "load", "loaded_assemblies", > "loaded_scripts", "require", 'create_runtime', 'create_engine', > 'create_ruby_setup', 'get_engine', 'require_file', 'get_execution_context'] > > >>> IronRuby.constants > > => ["Clr", "Print"] > > >>> IronRuby::Clr.constants > > => ["BigInteger", "FlagEnumeration", "Float", "Integer", > "MultiDimensionalArray", "String", "Name", "Scope"] > > >>> IronRuby::Clr::Name.singleton_methods(false) > > => ["clr_to_ruby", "mangle", "ruby_to_clr", "unmangle"] > > >>> include IronRuby::Clr > > >>> Name.mangle("FooBar") > > => "foo_bar" > > >>> Name.unmangle("my_foo") > > => "MyFoo" > > > > Re loading IronRuby.dll ? the problem is that IronRuby is also a namespace > in IronRuby.dll so there is a name conflict we don?t probably handle the > best we could. Loading IronRuby.dll shouldn?t be a common scenario though. > The best place for IronRuby specific functionality is in the IronRuby > module. If you?re missing some let us know. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Orion Edwards > *Sent:* Sunday, January 17, 2010 8:29 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Accessing classes defined in IronRuby.dll > from within IronRuby (IronRuby 1.0RC1) > > > > I am doing load_assembly 'IronRuby', and it didn't work (the example is > copy/pasted pretty much verbatim). Not sure if that means your version of IR > is different to mine, or what? > > > > Cheers, > > On Mon, Jan 18, 2010 at 3:56 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > > load_assembly 'IronRuby' will do the trick. > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jan 18 16:09:09 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 18 Jan 2010 21:09:09 +0000 Subject: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) In-Reply-To: <7c1b59c01001181240t6938b055tf06c60e7a181d1db@mail.gmail.com> References: <7c1b59c01001171844t41e6ec26qc826d62e99988507@mail.gmail.com> <7c1b59c01001172029x3edeba63x3fc39dc1cc74bd91@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C2E14F548@TK5EX14MBXC122.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C2E14F57A@TK5EX14MBXC122.redmond.corp.microsoft.com> <7c1b59c01001181240t6938b055tf06c60e7a181d1db@mail.gmail.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14F8D3@TK5EX14MBXC122.redmond.corp.microsoft.com> They won't probably work exactly the same way as IronRuby mangling though. So if you need this for CLR interop you should use IronRuby::Clr::Name class. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Monday, January 18, 2010 12:41 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) Thanks for that Tomas. I ended up copy/pasting the String#camelize and #underscore methods from rails as they were only a couple of lines long. This is probably less error prone than importing types from the IronRuby dll in the long run anyway :-) Cheers. On Mon, Jan 18, 2010 at 7:35 PM, Tomas Matousek > wrote: BTW, if you really needed to get to IronRuby.dll's types you can use this workaround: >>> Utils = System::Type.get_type('IronRuby.Runtime.RubyUtils, IronRuby').to_class => IronRuby::Runtime::RubyUtils >>> Utils.try_unmangle_name("foo_bar") => 'FooBar' Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Sunday, January 17, 2010 10:24 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) IronRuby is a module already defined in standard library. It gives you access to a bunch of useful APIs, including name mangling: >>> IronRuby.singleton_methods => ["configuration", "globals", "load", "loaded_assemblies", "loaded_scripts", "require", 'create_runtime', 'create_engine', 'create_ruby_setup', 'get_engine', 'require_file', 'get_execution_context'] >>> IronRuby.constants => ["Clr", "Print"] >>> IronRuby::Clr.constants => ["BigInteger", "FlagEnumeration", "Float", "Integer", "MultiDimensionalArray", "String", "Name", "Scope"] >>> IronRuby::Clr::Name.singleton_methods(false) => ["clr_to_ruby", "mangle", "ruby_to_clr", "unmangle"] >>> include IronRuby::Clr >>> Name.mangle("FooBar") => "foo_bar" >>> Name.unmangle("my_foo") => "MyFoo" Re loading IronRuby.dll - the problem is that IronRuby is also a namespace in IronRuby.dll so there is a name conflict we don't probably handle the best we could. Loading IronRuby.dll shouldn't be a common scenario though. The best place for IronRuby specific functionality is in the IronRuby module. If you're missing some let us know. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Sunday, January 17, 2010 8:29 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1) I am doing load_assembly 'IronRuby', and it didn't work (the example is copy/pasted pretty much verbatim). Not sure if that means your version of IR is different to mine, or what? Cheers, On Mon, Jan 18, 2010 at 3:56 PM, Jimmy Schementi > wrote: load_assembly 'IronRuby' will do the trick. _______________________________________________ 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 Jan 18 16:56:30 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 18 Jan 2010 21:56:30 +0000 Subject: [Ironruby-core] Specs updated Message-ID: The specs have been updated to a more recent version of RubySpec, it's a few days due to the time it takes to do this, but it is done. I will be pushing shortly, and then Jimmy can update ironruby.info. JD -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jan 18 17:00:11 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 18 Jan 2010 22:00:11 +0000 Subject: [Ironruby-core] Code Review: regressions Message-ID: tfpt review "/shelveset:regressions;REDMOND\jdeville" Comment : Closes the following bugs: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3196 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2118 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2044 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2217 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2912 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2962 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1920 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2116 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1353 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1354 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1651 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2051 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2892 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2827 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2514 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2654 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2191 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2190 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1558 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1486 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1485 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=923 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=597 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1483 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2421 -------------- next part -------------- A non-text attachment was scrubbed... Name: regressions.diff Type: application/octet-stream Size: 69567 bytes Desc: regressions.diff URL: From jdeville at microsoft.com Mon Jan 18 17:11:03 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 18 Jan 2010 22:11:03 +0000 Subject: [Ironruby-core] Code Review: regressions In-Reply-To: References: Message-ID: Ignore this, it was in my outbox on my desktop and when I repaired outlook it got sent. JD -----Original Message----- From: Jim Deville Sent: Monday, January 18, 2010 2:00 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: regressions tfpt review "/shelveset:regressions;REDMOND\jdeville" Comment : Closes the following bugs: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3196 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2118 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2044 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2217 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2912 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2962 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1920 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2116 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1353 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1354 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1651 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2051 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2892 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2827 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2514 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2654 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2191 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2190 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1558 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1486 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1485 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=923 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=597 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1483 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2421 From ben2004uk at googlemail.com Mon Jan 18 20:23:15 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Tue, 19 Jan 2010 01:23:15 +0000 Subject: [Ironruby-core] AutoSpec exits after executing Message-ID: Hello, I've been trying to get AutoSpec to work again. I execute it using the following command: pretty:Kona Ben$ ir autospec However, it just exits. Any ideas why? Thanks Ben From Shri.Borde at microsoft.com Tue Jan 19 03:43:57 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 19 Jan 2010 08:43:57 +0000 Subject: [Ironruby-core] Code Review: More ActionPack fixes Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C8934CF@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review "/shelveset:rails;REDMOND\sborde" Comment : defined? should clear $! of any exception that may have been thrown by const_missing Makes NativeMethods.SetEnvironmentVariable check if the call succeeded Adds a critical tag for library\socket\basicsocket\send_spec as it hung on my machine -------------- next part -------------- A non-text attachment was scrubbed... Name: rails.diff Type: application/octet-stream Size: 18569 bytes Desc: rails.diff URL: From jdeville at microsoft.com Tue Jan 19 12:49:45 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 19 Jan 2010 17:49:45 +0000 Subject: [Ironruby-core] Code Review: More ActionPack fixes In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C8934CF@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C8934CF@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Since the send_spec tag is working on my machine and snap, I'd like to try to figure out why it's failing for you instead of disabling it. JD -----Original Message----- From: Shri Borde Sent: Tuesday, January 19, 2010 12:44 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: More ActionPack fixes tfpt review "/shelveset:rails;REDMOND\sborde" Comment : defined? should clear $! of any exception that may have been thrown by const_missing Makes NativeMethods.SetEnvironmentVariable check if the call succeeded Adds a critical tag for library\socket\basicsocket\send_spec as it hung on my machine From Shri.Borde at microsoft.com Tue Jan 19 13:26:43 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 19 Jan 2010 18:26:43 +0000 Subject: [Ironruby-core] Code Review: More ActionPack fixes In-Reply-To: References: <8E45365BECA665489F3CB8878A6C1B7D0C8934CF@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C893896@TK5EX14MBXC140.redmond.corp.microsoft.com> It was marked as critical before the spec update (I sent you an email), which means we did look into it when it first started failing. I did look into the failure (not knowing that it was previously tagged as critical) and know what is causing the problem, and it is a race. It will fail on your machine and in Snap given enough time. We should not be untagging such non-deterministic critical and unstable failures. Otherwise we end up spending time investigating the failures everytime. Do you know if any other critical and unstable tags were removed? Would be good to send the list of such removed tags to the team after a RubySpec update so folks can keep an eye out for the failures. -----Original Message----- From: Jim Deville Sent: Tuesday, January 19, 2010 9:50 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: More ActionPack fixes Since the send_spec tag is working on my machine and snap, I'd like to try to figure out why it's failing for you instead of disabling it. JD -----Original Message----- From: Shri Borde Sent: Tuesday, January 19, 2010 12:44 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: More ActionPack fixes tfpt review "/shelveset:rails;REDMOND\sborde" Comment : defined? should clear $! of any exception that may have been thrown by const_missing Makes NativeMethods.SetEnvironmentVariable check if the call succeeded Adds a critical tag for library\socket\basicsocket\send_spec as it hung on my machine From jdeville at microsoft.com Tue Jan 19 14:06:46 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 19 Jan 2010 19:06:46 +0000 Subject: [Ironruby-core] Code Review: More ActionPack fixes In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C893896@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C8934CF@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C893896@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Criticals should mean that it causes a hang or a termination. Those should be immediately apparent for that reason. This should have been (and should be) tagged unstable. When I update the tags, I run every critical spec, and if it passes, I remove the tag. Unstables, are different, after you pointed out the unstable tags, I ran them in a loop to see if they failed. I tagged the ones that did, and left the rest. So, to recap, please change this to an unstable tag, and in the future, I will regress it more than one time. Also, I like your idea of sending out a changelist on the major tags, so I will do that too in the future. JD -----Original Message----- From: Shri Borde Sent: Tuesday, January 19, 2010 10:27 AM To: Jim Deville; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: More ActionPack fixes It was marked as critical before the spec update (I sent you an email), which means we did look into it when it first started failing. I did look into the failure (not knowing that it was previously tagged as critical) and know what is causing the problem, and it is a race. It will fail on your machine and in Snap given enough time. We should not be untagging such non-deterministic critical and unstable failures. Otherwise we end up spending time investigating the failures everytime. Do you know if any other critical and unstable tags were removed? Would be good to send the list of such removed tags to the team after a RubySpec update so folks can keep an eye out for the failures. -----Original Message----- From: Jim Deville Sent: Tuesday, January 19, 2010 9:50 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: More ActionPack fixes Since the send_spec tag is working on my machine and snap, I'd like to try to figure out why it's failing for you instead of disabling it. JD -----Original Message----- From: Shri Borde Sent: Tuesday, January 19, 2010 12:44 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: More ActionPack fixes tfpt review "/shelveset:rails;REDMOND\sborde" Comment : defined? should clear $! of any exception that may have been thrown by const_missing Makes NativeMethods.SetEnvironmentVariable check if the call succeeded Adds a critical tag for library\socket\basicsocket\send_spec as it hung on my machine From Tomas.Matousek at microsoft.com Tue Jan 19 14:16:03 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 19 Jan 2010 19:16:03 +0000 Subject: [Ironruby-core] Code Review: More ActionPack fixes In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C8934CF@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C8934CF@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14FE0A@TK5EX14MBXC122.redmond.corp.microsoft.com> Looks good. Tomas -----Original Message----- From: Shri Borde Sent: Tuesday, January 19, 2010 12:44 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: More ActionPack fixes tfpt review "/shelveset:rails;REDMOND\sborde" Comment : defined? should clear $! of any exception that may have been thrown by const_missing Makes NativeMethods.SetEnvironmentVariable check if the call succeeded Adds a critical tag for library\socket\basicsocket\send_spec as it hung on my machine From Shri.Borde at microsoft.com Tue Jan 19 14:17:16 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 19 Jan 2010 19:17:16 +0000 Subject: [Ironruby-core] Code Review: More ActionPack fixes In-Reply-To: References: <8E45365BECA665489F3CB8878A6C1B7D0C8934CF@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C893896@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C893969@TK5EX14MBXC140.redmond.corp.microsoft.com> Marking it as unstable sounds good. -----Original Message----- From: Jim Deville Sent: Tuesday, January 19, 2010 11:07 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: More ActionPack fixes Criticals should mean that it causes a hang or a termination. Those should be immediately apparent for that reason. This should have been (and should be) tagged unstable. When I update the tags, I run every critical spec, and if it passes, I remove the tag. Unstables, are different, after you pointed out the unstable tags, I ran them in a loop to see if they failed. I tagged the ones that did, and left the rest. So, to recap, please change this to an unstable tag, and in the future, I will regress it more than one time. Also, I like your idea of sending out a changelist on the major tags, so I will do that too in the future. JD -----Original Message----- From: Shri Borde Sent: Tuesday, January 19, 2010 10:27 AM To: Jim Deville; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: More ActionPack fixes It was marked as critical before the spec update (I sent you an email), which means we did look into it when it first started failing. I did look into the failure (not knowing that it was previously tagged as critical) and know what is causing the problem, and it is a race. It will fail on your machine and in Snap given enough time. We should not be untagging such non-deterministic critical and unstable failures. Otherwise we end up spending time investigating the failures everytime. Do you know if any other critical and unstable tags were removed? Would be good to send the list of such removed tags to the team after a RubySpec update so folks can keep an eye out for the failures. -----Original Message----- From: Jim Deville Sent: Tuesday, January 19, 2010 9:50 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: More ActionPack fixes Since the send_spec tag is working on my machine and snap, I'd like to try to figure out why it's failing for you instead of disabling it. JD -----Original Message----- From: Shri Borde Sent: Tuesday, January 19, 2010 12:44 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: More ActionPack fixes tfpt review "/shelveset:rails;REDMOND\sborde" Comment : defined? should clear $! of any exception that may have been thrown by const_missing Makes NativeMethods.SetEnvironmentVariable check if the call succeeded Adds a critical tag for library\socket\basicsocket\send_spec as it hung on my machine From Tomas.Matousek at microsoft.com Tue Jan 19 14:19:05 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 19 Jan 2010 19:19:05 +0000 Subject: [Ironruby-core] Code Review: dash_s In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AED0B@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AED0B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E14FE2F@TK5EX14MBXC122.redmond.corp.microsoft.com> Looks good. Could you factor the file search out into a private method? Tomas -----Original Message----- From: Jimmy Schementi Sent: Sunday, January 17, 2010 2:52 AM To: ironruby-core at rubyforge.org Cc: IronRuby External Code Reviewers Subject: Code Review: dash_s -S finds the file being run on the environment's PATH, rather than requiring the full path to be provided. Adds the -S command-line option (for example: ir -S irb) http://github.com/jschementi/ironruby/commit/135d5e5715409a194191c51c0566863603f49e16 Add spec for -S http://github.com/jschementi/ironruby/commit/62f211de25d1e7c7793b4f9af36cfde3670247f8 From michael.letterle at gmail.com Tue Jan 19 15:32:04 2010 From: michael.letterle at gmail.com (Michael Letterle) Date: Tue, 19 Jan 2010 15:32:04 -0500 Subject: [Ironruby-core] IronRuby.net Wiki Spam Message-ID: There's a ton of spam comments on the wiki... is there anyway to clean these up? -- Michael Letterle IronRuby MVP http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 19 16:44:43 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 19 Jan 2010 21:44:43 +0000 Subject: [Ironruby-core] IronRuby.net Wiki Spam In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B078F@TK5EX14MBXC141.redmond.corp.microsoft.com> Yeah, it's pretty ridiculous. I've been going through and deleting comments, but they just come back. The crazy thing is adding a comment requires a login, and the signup process has a captcha, so these spammers seem human. Anyway, I've gone through the site deleting any fake comments I found. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Tuesday, January 19, 2010 12:32 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] IronRuby.net Wiki Spam There's a ton of spam comments on the wiki... is there anyway to clean these up? -- Michael Letterle IronRuby MVP http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Tue Jan 19 17:46:50 2010 From: michael.letterle at gmail.com (Michael Letterle) Date: Tue, 19 Jan 2010 17:46:50 -0500 Subject: [Ironruby-core] IronRuby.net Wiki Spam In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920B078F@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920B078F@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: You rock. Don't suppose there's an akismet type plugin for the wiki? :) On Tue, Jan 19, 2010 at 4:44 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Yeah, it?s pretty ridiculous. I?ve been going through and deleting > comments, but they just come back. The crazy thing is adding a comment > requires a login, and the signup process has a captcha, so these spammers > seem human. Anyway, I?ve gone through the site deleting any fake comments I > found. > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Michael Letterle > *Sent:* Tuesday, January 19, 2010 12:32 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] IronRuby.net Wiki Spam > > > > There's a ton of spam comments on the wiki... is there anyway to clean > these up? > > -- > Michael Letterle > IronRuby MVP > http://blog.prokrams.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Michael Letterle IronRuby MVP http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Tue Jan 19 23:45:43 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Tue, 19 Jan 2010 22:45:43 -0600 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: I just noticed the instructions are using ironruby-sqlserver though you note in your email that you are supporting activerecord-sqlserver-adapter. Is ironruby-sqlserver a wrapper, or would you just need to swap your adapter? I'm also running into other problems: 1) I verified that I have the correct access (unless rails needs access?), but irake db:migrate produces the following error: [image: ?ui=2&view=att&th=1264a0aeac40d8b9&attid=0.1&disp=attd&realattid=ii_1264a0aeac40d8b9&zw] [image: ?ui=2&view=att&th=1264a0b50426065a&attid=0.1&disp=attd&realattid=ii_1264a0b50426065a&zw] 2) Trying to open the environment settings from the default page for the Rails app produces this message: [image: ?ui=2&view=att&th=1264a0a693b3123b&attid=0.1&disp=attd&realattid=ii_1264a0a693b3123b&zw] Any help is appreciated. I'm stumped. And if anyone knows how to copy text from Console2, I would appreciate the tip. Thanks! Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Thu, Jan 14, 2010 at 6:48 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > All, > > http://ironruby.net/Documentation/Rails has been updated to show > instructions for running Rails 2.3.5 on IronRuby, including using the > official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work > on ironruby-dbi! > > The steps are extrememly simple now. Assuming you have IronRuby installed > and a Rails app you'd like to run on IronRuby: > > 1. Install Rake, Rails, and IronRuby SQLServer > > igem install rake rails ironruby-sqlserver > > 2. Add the following to the top of your app's config/environment.rb: > > require 'rubygems' > require 'ironruby_sqlserver' > > 3. Connect to SQLServer in config/database.yml: > > development: > mode: ADONET > adapter: sqlserver > host: YOURMACHINENAME\SQLEXPRESS > database: app123_development > integrated_security: true > > 4. Migrate the database and start the server: > > irake db:migrate > ir script\server > > And that's it! The documentation link above also has a walk through setting > up IronRuby, Rails, and SQLServer, and shows a basic Rails "scaffold" > running. > > Coming soon are updated instructions for running rack-based web > applications in IIS on IronRuby. > > Let me know if you have any questions, > ~Jimmy > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 621885 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 36385 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 400297 bytes Desc: not available URL: From ryan.riley at panesofglass.org Tue Jan 19 23:47:09 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Tue, 19 Jan 2010 22:47:09 -0600 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: I should add that, on item 2, though the default page says something went wrong, the console reports nothing at all, not even a request. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Jan 19, 2010 at 10:45 PM, Ryan Riley wrote: > I just noticed the instructions are using ironruby-sqlserver though you > note in your email that you are supporting activerecord-sqlserver-adapter. > Is ironruby-sqlserver a wrapper, or would you just need to swap your > adapter? > > I'm also running into other problems: > 1) I verified that I have the correct access (unless rails needs access?), > but irake db:migrate produces the following error: > [image: > ?ui=2&view=att&th=1264a0aeac40d8b9&attid=0.1&disp=attd&realattid=ii_1264a0aeac40d8b9&zw] > [image: > ?ui=2&view=att&th=1264a0b50426065a&attid=0.1&disp=attd&realattid=ii_1264a0b50426065a&zw] > 2) Trying to open the environment settings from the default page for the > Rails app produces this message: > [image: > ?ui=2&view=att&th=1264a0a693b3123b&attid=0.1&disp=attd&realattid=ii_1264a0a693b3123b&zw] > > Any help is appreciated. I'm stumped. And if anyone knows how to copy text > from Console2, I would appreciate the tip. > > Thanks! > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Thu, Jan 14, 2010 at 6:48 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> All, >> >> http://ironruby.net/Documentation/Rails has been updated to show >> instructions for running Rails 2.3.5 on IronRuby, including using the >> official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work >> on ironruby-dbi! >> >> The steps are extrememly simple now. Assuming you have IronRuby installed >> and a Rails app you'd like to run on IronRuby: >> >> 1. Install Rake, Rails, and IronRuby SQLServer >> >> igem install rake rails ironruby-sqlserver >> >> 2. Add the following to the top of your app's config/environment.rb: >> >> require 'rubygems' >> require 'ironruby_sqlserver' >> >> 3. Connect to SQLServer in config/database.yml: >> >> development: >> mode: ADONET >> adapter: sqlserver >> host: YOURMACHINENAME\SQLEXPRESS >> database: app123_development >> integrated_security: true >> >> 4. Migrate the database and start the server: >> >> irake db:migrate >> ir script\server >> >> And that's it! The documentation link above also has a walk through >> setting up IronRuby, Rails, and SQLServer, and shows a basic Rails >> "scaffold" running. >> >> Coming soon are updated instructions for running rack-based web >> applications in IIS on IronRuby. >> >> Let me know if you have any questions, >> ~Jimmy >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 36385 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 400297 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 621885 bytes Desc: not available URL: From ivan at flanders.co.nz Wed Jan 20 02:28:12 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 20 Jan 2010 08:28:12 +0100 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: copying text from console 2. Copy is broken AFAICT. Where do we submit a request to microsoft to finally include a console that allows you to copy paste with a keyboard shortcut from a console window, tabs would be nice too. I've wanted to get that for 15 years now. right click the console window and select view > console window That gives you the cmd window and you can use mark,.... Then to your rails problem. Does your database exist? For item 2. Does anything show up in log/develpment.log? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Jan 20, 2010 at 5:45 AM, Ryan Riley wrote: > I just noticed the instructions are using ironruby-sqlserver though you > note in your email that you are supporting activerecord-sqlserver-adapter. > Is ironruby-sqlserver a wrapper, or would you just need to swap your > adapter? > > I'm also running into other problems: > 1) I verified that I have the correct access (unless rails needs access?), > but irake db:migrate produces the following error: > [image: > ?ui=2&view=att&th=1264a0aeac40d8b9&attid=0.1&disp=attd&realattid=ii_1264a0aeac40d8b9&zw] > [image: > ?ui=2&view=att&th=1264a0b50426065a&attid=0.1&disp=attd&realattid=ii_1264a0b50426065a&zw] > 2) Trying to open the environment settings from the default page for the > Rails app produces this message: > [image: > ?ui=2&view=att&th=1264a0a693b3123b&attid=0.1&disp=attd&realattid=ii_1264a0a693b3123b&zw] > > Any help is appreciated. I'm stumped. And if anyone knows how to copy text > from Console2, I would appreciate the tip. > > Thanks! > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Thu, Jan 14, 2010 at 6:48 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> All, >> >> http://ironruby.net/Documentation/Rails has been updated to show >> instructions for running Rails 2.3.5 on IronRuby, including using the >> official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work >> on ironruby-dbi! >> >> The steps are extrememly simple now. Assuming you have IronRuby installed >> and a Rails app you'd like to run on IronRuby: >> >> 1. Install Rake, Rails, and IronRuby SQLServer >> >> igem install rake rails ironruby-sqlserver >> >> 2. Add the following to the top of your app's config/environment.rb: >> >> require 'rubygems' >> require 'ironruby_sqlserver' >> >> 3. Connect to SQLServer in config/database.yml: >> >> development: >> mode: ADONET >> adapter: sqlserver >> host: YOURMACHINENAME\SQLEXPRESS >> database: app123_development >> integrated_security: true >> >> 4. Migrate the database and start the server: >> >> irake db:migrate >> ir script\server >> >> And that's it! The documentation link above also has a walk through >> setting up IronRuby, Rails, and SQLServer, and shows a basic Rails >> "scaffold" running. >> >> Coming soon are updated instructions for running rack-based web >> applications in IIS on IronRuby. >> >> Let me know if you have any questions, >> ~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 Jimmy.Schementi at microsoft.com Wed Jan 20 03:21:52 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 20 Jan 2010 08:21:52 +0000 Subject: [Ironruby-core] silverlight.rb In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B5402@TK5EX14MBXC141.redmond.corp.microsoft.com> Silverlight.rb has actually been embedded in the Microsoft.Scripting.Silverlight.dll (as init.rb) and is loaded automatically, but I didn't include Wpf.build, so the version you have in the photoviewer app is the latest, so use at your own risk. It could possibly be added for the final release, or put in an external helper file. Let me know if it works for you currently. ~Jimmy > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Randall Sutton > Sent: Wednesday, January 13, 2010 10:42 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] silverlight.rb > > I would like to use the Wpf.build method contained in the silverlight.rb > file. Currently I can only find this file in the photoviewer app from 2008 > for what looks like Silverlight 2. Is there an updated version of this file? > I noticed it isn't contained in the 1.0RC1 download. > > Thanks, > Randall > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Wed Jan 20 03:47:20 2010 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 20 Jan 2010 08:47:20 +0000 Subject: [Ironruby-core] Updated Rails instructions Message-ID: I believe console 2 defaults to shift + click and drag to select, and auto-copy on release. I do agree with the request for a better console in windows, though. ________________________________ From: Ivan Porto Carrero Sent: Wednesday, January 20, 2010 7:29 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Updated Rails instructions copying text from console 2. Copy is broken AFAICT. Where do we submit a request to microsoft to finally include a console that allows you to copy paste with a keyboard shortcut from a console window, tabs would be nice too. I've wanted to get that for 15 years now. right click the console window and select view > console window That gives you the cmd window and you can use mark,.... Then to your rails problem. Does your database exist? For item 2. Does anything show up in log/develpment.log? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Jan 20, 2010 at 5:45 AM, Ryan Riley > wrote: I just noticed the instructions are using ironruby-sqlserver though you note in your email that you are supporting activerecord-sqlserver-adapter. Is ironruby-sqlserver a wrapper, or would you just need to swap your adapter? I'm also running into other problems: 1) I verified that I have the correct access (unless rails needs access?), but irake db:migrate produces the following error: [?ui=2&view=att&th=1264a0aeac40d8b9&attid=0.1&disp=attd&realattid=ii_1264a0aeac40d8b9&zw] [?ui=2&view=att&th=1264a0b50426065a&attid=0.1&disp=attd&realattid=ii_1264a0b50426065a&zw] 2) Trying to open the environment settings from the default page for the Rails app produces this message: [?ui=2&view=att&th=1264a0a693b3123b&attid=0.1&disp=attd&realattid=ii_1264a0a693b3123b&zw] Any help is appreciated. I'm stumped. And if anyone knows how to copy text from Console2, I would appreciate the tip. Thanks! Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Thu, Jan 14, 2010 at 6:48 PM, Jimmy Schementi > wrote: All, http://ironruby.net/Documentation/Rails has been updated to show instructions for running Rails 2.3.5 on IronRuby, including using the official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work on ironruby-dbi! The steps are extrememly simple now. Assuming you have IronRuby installed and a Rails app you'd like to run on IronRuby: 1. Install Rake, Rails, and IronRuby SQLServer igem install rake rails ironruby-sqlserver 2. Add the following to the top of your app's config/environment.rb: require 'rubygems' require 'ironruby_sqlserver' 3. Connect to SQLServer in config/database.yml: development: mode: ADONET adapter: sqlserver host: YOURMACHINENAME\SQLEXPRESS database: app123_development integrated_security: true 4. Migrate the database and start the server: irake db:migrate ir script\server And that's it! The documentation link above also has a walk through setting up IronRuby, Rails, and SQLServer, and shows a basic Rails "scaffold" running. Coming soon are updated instructions for running rack-based web applications in IIS on IronRuby. Let me know if you have any questions, ~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 Jimmy.Schementi at microsoft.com Wed Jan 20 03:46:44 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 20 Jan 2010 08:46:44 +0000 Subject: [Ironruby-core] InternalsVisibleTo In-Reply-To: <9dbb46901001160041m75153fbbn837d7f1790d161b9@mail.gmail.com> References: <9dbb46901001160041m75153fbbn837d7f1790d161b9@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B546F@TK5EX14MBXC141.redmond.corp.microsoft.com> > The call to assign the results of Parse to P always fails unless I > > a) Do what Ivan suggested and copy to the bin folder > b.) Modify ir.exe.config to include the path to the actual .dll I would suggest neither of these =P See below. > I was reading the source code this evening and noticed that during > the RubyContext buildup it only includes the following paths to > resolve references: > > context.Loader.GetLoadPathStrings() > {string[4]} >??? [0]: "F:/ironruby-ironruby-178b744/Merlin/Main/Languages/Ruby/libs/" >??? [1]: "F:/ironruby-ironruby-178b744/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/site_ruby/1.8/" >??? [2]: "F:/ironruby-ironruby-178b744/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/" >??? [3]: "." > > I assumed this is was why if I dump my .dll into any of those paths it resolves. Resolving DLLs should behave the same way as resolving Ruby libraries; it has to be on the load path. As you saw in the debugger, the load path is preset with the LibraryPaths value that is in the config, but it's preferred to modify the load path by appending string to the $LOAD_PATH (or $: shorthand) variable, rather than modifying the config file. Consider the following directory structure: /dlls/foo.dll /bar.rb Where foo.dll was compiled from this C# code: public class Foo { public static void Bar() { System.Console.WriteLine("In Bar"); } } If foo.rb just looked like this: require 'foo.dll' Foo.bar ... and ir.exe is anywhere but the dlls directory you'd get this error: PS C:\temp> ir .\bar.rb :0:in `require': no such file to load -- foo (LoadError) from ./bar.rb:1 However, if you add "dlls" to the load path first: $LOAD_PATH << File.dirname(__FILE__) + "/dlls" require 'foo.dll' Foo.bar Then all will work: PS C:\temp> ir .\bar.rb In Bar Notice that the first line "File.dirname(__FILE__)" to make the "dlls" path relative to the current file. Then doing "require 'foo'" will look in the dlls directory. Does that solve your problem? ~Jimmy From Jimmy.Schementi at microsoft.com Wed Jan 20 04:19:14 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 20 Jan 2010 09:19:14 +0000 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B5532@TK5EX14MBXC141.redmond.corp.microsoft.com> Console2 is the first thing I install on a new machine. Yeah, a updated console in windows would be nice, but it's not something I see changing in the future, so I'm fine using something that is good. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Wednesday, January 20, 2010 12:47 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Updated Rails instructions I believe console 2 defaults to shift + click and drag to select, and auto-copy on release. I do agree with the request for a better console in windows, though. ________________________________ From: Ivan Porto Carrero Sent: Wednesday, January 20, 2010 7:29 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Updated Rails instructions copying text from console 2. Copy is broken AFAICT. Where do we submit a request to microsoft to finally include a console that allows you to copy paste with a keyboard shortcut from a console window, tabs would be nice too. I've wanted to get that for 15 years now. right click the console window and select view > console window That gives you the cmd window and you can use mark,.... Then to your rails problem. Does your database exist? For item 2. Does anything show up in log/develpment.log? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Jan 20, 2010 at 5:45 AM, Ryan Riley > wrote: I just noticed the instructions are using ironruby-sqlserver though you note in your email that you are supporting activerecord-sqlserver-adapter. Is ironruby-sqlserver a wrapper, or would you just need to swap your adapter? I'm also running into other problems: 1) I verified that I have the correct access (unless rails needs access?), but irake db:migrate produces the following error: [?ui=2&view=att&th=1264a0aeac40d8b9&attid=0.1&disp=attd&realattid=ii_1264a0aeac40d8b9&zw] [?ui=2&view=att&th=1264a0b50426065a&attid=0.1&disp=attd&realattid=ii_1264a0b50426065a&zw] 2) Trying to open the environment settings from the default page for the Rails app produces this message: [?ui=2&view=att&th=1264a0a693b3123b&attid=0.1&disp=attd&realattid=ii_1264a0a693b3123b&zw] Any help is appreciated. I'm stumped. And if anyone knows how to copy text from Console2, I would appreciate the tip. Thanks! Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Thu, Jan 14, 2010 at 6:48 PM, Jimmy Schementi > wrote: All, http://ironruby.net/Documentation/Rails has been updated to show instructions for running Rails 2.3.5 on IronRuby, including using the official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work on ironruby-dbi! The steps are extrememly simple now. Assuming you have IronRuby installed and a Rails app you'd like to run on IronRuby: 1. Install Rake, Rails, and IronRuby SQLServer igem install rake rails ironruby-sqlserver 2. Add the following to the top of your app's config/environment.rb: require 'rubygems' require 'ironruby_sqlserver' 3. Connect to SQLServer in config/database.yml: development: mode: ADONET adapter: sqlserver host: YOURMACHINENAME\SQLEXPRESS database: app123_development integrated_security: true 4. Migrate the database and start the server: irake db:migrate ir script\server And that's it! The documentation link above also has a walk through setting up IronRuby, Rails, and SQLServer, and shows a basic Rails "scaffold" running. Coming soon are updated instructions for running rack-based web applications in IIS on IronRuby. Let me know if you have any questions, ~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 Jimmy.Schementi at microsoft.com Wed Jan 20 04:24:34 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 20 Jan 2010 09:24:34 +0000 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B5552@TK5EX14MBXC141.redmond.corp.microsoft.com> ironruby-sqlserver simple depends on ironruby-dbi, which replaces the built-in DBI module with one capable of working with ADO.NET, as well as activerecord-sqlserver-adapter. It also patches activerecord-sqlserver-adapter to allow connection through ADO.NET. So doing a gem install ironruby-sqlserver pulls down those two gems also, and wires everything up: > igem install ironruby-sqlserver --no-rdoc --no-ri Successfully installed ironruby-dbi-0.1.0 Successfully installed activerecord-sqlserver-adapter-2.3.0 Successfully installed ironruby-sqlserver-0.1.0 3 gems installed In fact, your log below shows activerecord-sqlserver-adapter on the stack =) For the connection issue, did you set your database.yml? As long as ir.exe is running as you, integrated security should be fine. From looking at your log, this should work (if you?re using sqlexpress, and you set up the database to use Windows authentication): development: mode: ADONET adapter: sqlserver host: CATAPULT\SQLEXPRESS database: ironruby_on_rails_dev integrated_security: true Otherwise, you can set up a specific username and password for your database, and then specific the ?username? and ?password? in the database yml file. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Tuesday, January 19, 2010 8:46 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Updated Rails instructions I just noticed the instructions are using ironruby-sqlserver though you note in your email that you are supporting activerecord-sqlserver-adapter. Is ironruby-sqlserver a wrapper, or would you just need to swap your adapter? I'm also running into other problems: 1) I verified that I have the correct access (unless rails needs access?), but irake db:migrate produces the following error: [?ui=2&view=att&th=1264a0aeac40d8b9&attid=0.1&disp=attd&realattid=ii_1264a0aeac40d8b9&zw] [?ui=2&view=att&th=1264a0b50426065a&attid=0.1&disp=attd&realattid=ii_1264a0b50426065a&zw] 2) Trying to open the environment settings from the default page for the Rails app produces this message: [?ui=2&view=att&th=1264a0a693b3123b&attid=0.1&disp=attd&realattid=ii_1264a0a693b3123b&zw] Any help is appreciated. I'm stumped. And if anyone knows how to copy text from Console2, I would appreciate the tip. Thanks! Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Thu, Jan 14, 2010 at 6:48 PM, Jimmy Schementi > wrote: All, http://ironruby.net/Documentation/Rails has been updated to show instructions for running Rails 2.3.5 on IronRuby, including using the official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work on ironruby-dbi! The steps are extrememly simple now. Assuming you have IronRuby installed and a Rails app you'd like to run on IronRuby: 1. Install Rake, Rails, and IronRuby SQLServer igem install rake rails ironruby-sqlserver 2. Add the following to the top of your app's config/environment.rb: require 'rubygems' require 'ironruby_sqlserver' 3. Connect to SQLServer in config/database.yml: development: mode: ADONET adapter: sqlserver host: YOURMACHINENAME\SQLEXPRESS database: app123_development integrated_security: true 4. Migrate the database and start the server: irake db:migrate ir script\server And that's it! The documentation link above also has a walk through setting up IronRuby, Rails, and SQLServer, and shows a basic Rails "scaffold" running. Coming soon are updated instructions for running rack-based web applications in IIS on IronRuby. Let me know if you have any questions, ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 621885 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 400297 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 36385 bytes Desc: image003.png URL: From Jimmy.Schementi at microsoft.com Wed Jan 20 05:21:46 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 20 Jan 2010 10:21:46 +0000 Subject: [Ironruby-core] AutoSpec exits after executing In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B5626@TK5EX14MBXC141.redmond.corp.microsoft.com> > Hello, > > I've been trying to get AutoSpec to work again. > > I execute it using the following command: > pretty:Kona Ben$ ir autospec > > However, it just exits. > > Any ideas why? > > Thanks > > Ben So after doing this: > igem install ZenTest > cd C:\ironruby\lib\ironruby\gems\1.8\gems\ZenTest-4.1.4 > ir -Ilib bin\autospec Autospec tries to execute this command: C:\ironruby\bin\ir.exe -I.;lib;test:../../minitest/dev/lib -rubygems -e "%w[minitest/autorun test/test_focus.rb test/test_autotest.rb test/test_zentest_mapping.rb test/test_unit_diff.rb test/test_zentest.rb].each { |f| require f }" | unit_diff -u The problem is unit_diff will fail to load, since there is no unit_diff.bat or something like that on the path. To get past that I just commented out the unit_diff part of lib/autospec.rb#422. However, it still quits, though the command that is generated does run on its own. It quits because IronRuby doesn't support the call to open it is using (open with a "|"), and they are swallowing the error msg. Here's a smaller repro: >>> open("| ir.exe -e \"puts 'hi'\"", 'r') :0:in `open': Exception of type 'IronRuby.Builtins.NotImplementedError' was thrown. (NotImplementedError) from :0:in `open' from (ir):1 Tomas, is there any work-around to this? ... reading a process like a file, character by character? To get autotest working right now, you can replace the entire open(){} call in lib/autotest.rb#243 with simply this: puts `#{cmd}` It won't print out the test results as they happen, but it'll at least show the results when done, and rerun the tests when you change something. ~Jimmy From ryan.riley at panesofglass.org Wed Jan 20 07:59:34 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Wed, 20 Jan 2010 06:59:34 -0600 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920B5552@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC920B5552@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: I did everything you noted below. I think I had already installed ironruby-sqlserber, which is why I didn't notice the adapter. In answer to Ivan, I created my database but forgot to check the logs. It's been awhile since I used Rails and had db issues. :) Sadly, the log just tells me what trace tells me, which isn't too surprising. I have had problems with connection timeouts on this machine in the past, but that was generally noticable in SSMS as well. I'll try on another machine and see where I land. Thanks for the help! Ryan Sent from my iPhone On Jan 20, 2010, at 3:24 AM, Jimmy Schementi wrote: > ironruby-sqlserver simple depends on ironruby-dbi, which replaces > the built-in DBI module with one capable of working with ADO.NET, as > well as activerecord-sqlserver-adapter. It also patches activerecord- > sqlserver-adapter to allow connection through ADO.NET. So doing a > gem install ironruby-sqlserver pulls down those two gems also, and > wires everything up: > > > > > igem install ironruby-sqlserver --no-rdoc --no-ri > > Successfully installed ironruby-dbi-0.1.0 > > Successfully installed activerecord-sqlserver-adapter-2.3.0 > > Successfully installed ironruby-sqlserver-0.1.0 > > 3 gems installed > > > > In fact, your log below shows activerecord-sqlserver-adapter on the > stack =) > > > > For the connection issue, did you set your database.yml? As long as > ir.exe is running as you, integrated security should be fine. From > looking at your log, this should work (if you?re using sqlexpress, a > nd you set up the database to use Windows authentication): > > > > development: > > mode: ADONET > > adapter: sqlserver > > host: CATAPULT\SQLEXPRESS > > database: ironruby_on_rails_dev > > integrated_security: true > > > > Otherwise, you can set up a specific username and password for your > database, and then specific the ?username? and ?password? in > the database yml file. > > > > ~Jimmy > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Ryan Riley > Sent: Tuesday, January 19, 2010 8:46 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Updated Rails instructions > > > > I just noticed the instructions are using ironruby-sqlserver though > you note in your email that you are supporting activerecord- > sqlserver-adapter. Is ironruby-sqlserver a wrapper, or would you > just need to swap your adapter? > > > > I'm also running into other problems: > > 1) I verified that I have the correct access (unless rails needs > access?), but irake db:migrate produces the following error: > > > > > > 2) Trying to open the environment settings from the default page for > the Rails app produces this message: > > > > > > Any help is appreciated. I'm stumped. And if anyone knows how to > copy text from Console2, I would appreciate the tip. > > > > Thanks! > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Thu, Jan 14, 2010 at 6:48 PM, Jimmy Schementi > wrote: > > All, > > http://ironruby.net/Documentation/Rails has been updated to show > instructions for running Rails 2.3.5 on IronRuby, including using > the official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan > for his work on ironruby-dbi! > > The steps are extrememly simple now. Assuming you have IronRuby > installed and a Rails app you'd like to run on IronRuby: > > 1. Install Rake, Rails, and IronRuby SQLServer > > igem install rake rails ironruby-sqlserver > > 2. Add the following to the top of your app's config/environment.rb: > > require 'rubygems' > require 'ironruby_sqlserver' > > 3. Connect to SQLServer in config/database.yml: > > development: > mode: ADONET > adapter: sqlserver > host: YOURMACHINENAME\SQLEXPRESS > database: app123_development > integrated_security: true > > 4. Migrate the database and start the server: > > irake db:migrate > ir script\server > > And that's it! The documentation link above also has a walk through > setting up IronRuby, Rails, and SQLServer, and shows a basic Rails > "scaffold" running. > > Coming soon are updated instructions for running rack-based web > applications in IIS on IronRuby. > > Let me know if you have any questions, > ~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 ryan.riley at panesofglass.org Wed Jan 20 14:02:16 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Wed, 20 Jan 2010 13:02:16 -0600 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920B5552@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC920B5552@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Turns out I'm just an idiot. I've not been able to get my connection to work. Turns out, my database name is just my computer name, not COMPUTERNAME\SQLEXPRESS. Sheesh! I switched machines recently and keep forgetting the name of my mahcine. Sorry for the trouble and thanks for the help! Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Wed, Jan 20, 2010 at 3:24 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > ironruby-sqlserver simple depends on ironruby-dbi, which replaces the > built-in DBI module with one capable of working with ADO.NET, as well as > activerecord-sqlserver-adapter. It also patches > activerecord-sqlserver-adapter to allow connection through ADO.NET. So > doing a gem install ironruby-sqlserver pulls down those two gems also, and > wires everything up: > > > > > igem install ironruby-sqlserver --no-rdoc --no-ri > > Successfully installed ironruby-dbi-0.1.0 > > Successfully installed activerecord-sqlserver-adapter-2.3.0 > > Successfully installed ironruby-sqlserver-0.1.0 > > 3 gems installed > > > > In fact, your log below shows activerecord-sqlserver-adapter on the stack > =) > > > > For the connection issue, did you set your database.yml? As long as ir.exe > is running as you, integrated security should be fine. From looking at your > log, this should work (if you?re using sqlexpress, and you set up the > database to use Windows authentication): > > > > development: > > mode: ADONET > > adapter: sqlserver > > host: CATAPULT\SQLEXPRESS > > database: ironruby_on_rails_dev > > integrated_security: true > > > > Otherwise, you can set up a specific username and password for your > database, and then specific the ?username? and ?password? in the database > yml file. > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Tuesday, January 19, 2010 8:46 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Updated Rails instructions > > > > I just noticed the instructions are using ironruby-sqlserver though you > note in your email that you are supporting activerecord-sqlserver-adapter. > Is ironruby-sqlserver a wrapper, or would you just need to swap your > adapter? > > > > I'm also running into other problems: > > 1) I verified that I have the correct access (unless rails needs access?), > but irake db:migrate produces the following error: > > [image: > ?ui=2&view=att&th=1264a0aeac40d8b9&attid=0.1&disp=attd&realattid=ii_1264a0aeac40d8b9&zw] > > [image: > ?ui=2&view=att&th=1264a0b50426065a&attid=0.1&disp=attd&realattid=ii_1264a0b50426065a&zw] > > 2) Trying to open the environment settings from the default page for the > Rails app produces this message: > > [image: > ?ui=2&view=att&th=1264a0a693b3123b&attid=0.1&disp=attd&realattid=ii_1264a0a693b3123b&zw] > > > > Any help is appreciated. I'm stumped. And if anyone knows how to copy text > from Console2, I would appreciate the tip. > > > > Thanks! > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Thu, Jan 14, 2010 at 6:48 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > > All, > > http://ironruby.net/Documentation/Rails has been updated to show > instructions for running Rails 2.3.5 on IronRuby, including using the > official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work > on ironruby-dbi! > > The steps are extrememly simple now. Assuming you have IronRuby installed > and a Rails app you'd like to run on IronRuby: > > 1. Install Rake, Rails, and IronRuby SQLServer > > igem install rake rails ironruby-sqlserver > > 2. Add the following to the top of your app's config/environment.rb: > > require 'rubygems' > require 'ironruby_sqlserver' > > 3. Connect to SQLServer in config/database.yml: > > development: > mode: ADONET > adapter: sqlserver > host: YOURMACHINENAME\SQLEXPRESS > database: app123_development > integrated_security: true > > 4. Migrate the database and start the server: > > irake db:migrate > ir script\server > > And that's it! The documentation link above also has a walk through setting > up IronRuby, Rails, and SQLServer, and shows a basic Rails "scaffold" > running. > > Coming soon are updated instructions for running rack-based web > applications in IIS on IronRuby. > > Let me know if you have any questions, > ~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: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 621885 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 400297 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 36385 bytes Desc: not available URL: From lists at ruby-forum.com Wed Jan 20 15:49:14 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Wed, 20 Jan 2010 21:49:14 +0100 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> Bug noticed: Only with the new adapter (used igem install ...), only when I create a new row, the redirect below adds two 0's to the end of the new rows id (I.E. id = 56, it will try to show 5600). Switched back to the old adapter (at work) for now. code: @company = Company.new(params[:company]) if @company.save flash[:notice] = "Successfully created company." redirect_to company_path(@company) else Jimmy Schementi wrote: > All, > > http://ironruby.net/Documentation/Rails has been updated to show > instructions for running Rails 2.3.5 on IronRuby, including using the > official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his > work on ironruby-dbi! > > The steps are extrememly simple now. Assuming you have IronRuby > installed and a Rails app you'd like to run on IronRuby: > > 1. Install Rake, Rails, and IronRuby SQLServer > > igem install rake rails ironruby-sqlserver > > 2. Add the following to the top of your app's config/environment.rb: > > require 'rubygems' > require 'ironruby_sqlserver' > > 3. Connect to SQLServer in config/database.yml: > > development: > mode: ADONET > adapter: sqlserver > host: YOURMACHINENAME\SQLEXPRESS > database: app123_development > integrated_security: true > > 4. Migrate the database and start the server: > > irake db:migrate > ir script\server > > And that's it! The documentation link above also has a walk through > setting up IronRuby, Rails, and SQLServer, and shows a basic Rails > "scaffold" running. > > Coming soon are updated instructions for running rack-based web > applications in IIS on IronRuby. > > Let me know if you have any questions, > ~Jimmy -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Wed Jan 20 16:50:25 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 20 Jan 2010 21:50:25 +0000 Subject: [Ironruby-core] AutoSpec exits after executing In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920B5626@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920B5626@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C894BC9@TK5EX14MBXC140.redmond.corp.microsoft.com> open with a "|" seems to be the same as popen/popen3. We support both of those, so it should not be too hard to support open with a "|". Could even be written in Ruby code building on top of popen/popen3 (if you want a workaround right away). -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, January 20, 2010 2:22 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] AutoSpec exits after executing > Hello, > > I've been trying to get AutoSpec to work again. > > I execute it using the following command: > pretty:Kona Ben$ ir autospec > > However, it just exits. > > Any ideas why? > > Thanks > > Ben So after doing this: > igem install ZenTest > cd C:\ironruby\lib\ironruby\gems\1.8\gems\ZenTest-4.1.4 > ir -Ilib bin\autospec Autospec tries to execute this command: C:\ironruby\bin\ir.exe -I.;lib;test:../../minitest/dev/lib -rubygems -e "%w[minitest/autorun test/test_focus.rb test/test_autotest.rb test/test_zentest_mapping.rb test/test_unit_diff.rb test/test_zentest.rb].each { |f| require f }" | unit_diff -u The problem is unit_diff will fail to load, since there is no unit_diff.bat or something like that on the path. To get past that I just commented out the unit_diff part of lib/autospec.rb#422. However, it still quits, though the command that is generated does run on its own. It quits because IronRuby doesn't support the call to open it is using (open with a "|"), and they are swallowing the error msg. Here's a smaller repro: >>> open("| ir.exe -e \"puts 'hi'\"", 'r') :0:in `open': Exception of type 'IronRuby.Builtins.NotImplementedError' was thrown. (NotImplementedError) from :0:in `open' from (ir):1 Tomas, is there any work-around to this? ... reading a process like a file, character by character? To get autotest working right now, you can replace the entire open(){} call in lib/autotest.rb#243 with simply this: puts `#{cmd}` It won't print out the test results as they happen, but it'll at least show the results when done, and rerun the tests when you change something. ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Wed Jan 20 17:21:43 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 20 Jan 2010 22:21:43 +0000 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Sam Clopton > Sent: Wednesday, January 20, 2010 12:49 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Updated Rails instructions > > Bug noticed: > Only with the new adapter (used igem install ...), only when I create a > new row, the redirect below adds two 0's to the end of the new rows id > (I.E. id = 56, it will try to show 5600). Switched back to the old > adapter (at work) for now. > > code: > @company = Company.new(params[:company]) > if @company.save > flash[:notice] = "Successfully created company." > redirect_to company_path(@company) > else I'm not seeing this; the scaffolding example at the link below does the same thing, and redirects fine with the new adapter (a Post created with the id "4" will redirect to "/posts/4"): @post = Post.new(params[:post]) if @post.save flash[:notice] = 'Post was successfully created.' redirect_to(@post) else render :action => "new" end Can you possibly send more information with the old adapter? I'd like these lines added right after @company.save succeeds (inside the "if" statement), and then could you send the output? p params p @company p company_path(@company) ~Jimmy > Jimmy Schementi wrote: > > All, > > > > http://ironruby.net/Documentation/Rails has been updated to show > > instructions for running Rails 2.3.5 on IronRuby, including using the > > official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his > > work on ironruby-dbi! > > > > The steps are extrememly simple now. Assuming you have IronRuby > > installed and a Rails app you'd like to run on IronRuby: > > > > 1. Install Rake, Rails, and IronRuby SQLServer > > > > igem install rake rails ironruby-sqlserver > > > > 2. Add the following to the top of your app's config/environment.rb: > > > > require 'rubygems' > > require 'ironruby_sqlserver' > > > > 3. Connect to SQLServer in config/database.yml: > > > > development: > > mode: ADONET > > adapter: sqlserver > > host: YOURMACHINENAME\SQLEXPRESS > > database: app123_development > > integrated_security: true > > > > 4. Migrate the database and start the server: > > > > irake db:migrate > > ir script\server > > > > And that's it! The documentation link above also has a walk through > > setting up IronRuby, Rails, and SQLServer, and shows a basic Rails > > "scaffold" running. > > > > Coming soon are updated instructions for running rack-based web > > applications in IIS on IronRuby. > > > > Let me know if you have any questions, > > ~Jimmy > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Shri.Borde at microsoft.com Wed Jan 20 19:36:02 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 21 Jan 2010 00:36:02 +0000 Subject: [Ironruby-core] Code Review: open Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C894E0F@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review "/shelveset:open;REDMOND\sborde" Comment : open("|shell_command") Removes other tags for Kernel.open -------------- next part -------------- A non-text attachment was scrubbed... Name: open.diff Type: application/octet-stream Size: 6490 bytes Desc: open.diff URL: From jdeville at microsoft.com Wed Jan 20 20:05:51 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 21 Jan 2010 01:05:51 +0000 Subject: [Ironruby-core] Code Review: crit_argf Message-ID: tfpt review "/shelveset:crit_argf;REDMOND\jdeville" Comment : cleans up a few critical tags: * re-patches mock.rb with the patch to remove respond_to last * implements a basic implementation of ARGF, there are many holes that still need to be filled here, but the basic idea works, and the specs are no longer critical. -------------- next part -------------- A non-text attachment was scrubbed... Name: crit_argf.diff Type: application/octet-stream Size: 33313 bytes Desc: crit_argf.diff URL: From Jimmy.Schementi at microsoft.com Wed Jan 20 20:16:41 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 21 Jan 2010 01:16:41 +0000 Subject: [Ironruby-core] Write a Ruby or Python web-app and win cash! Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B617A@TK5EX14MBXC141.redmond.corp.microsoft.com> MIX 10K Smart Coding Challenge: http://mix10k.visitmix.com 9 days left, an counting, to enter your minimalist creation into the MIX 10K Smart Coding Challenge. I can be anything you want, it just has to be less than 10 kilobytes of source code. You can use HTML5, or Silverlight, and also use Ruby or Python through Gestalt. You can win a free trip to MIX and up to $1000 in cash. Get out the already submitted entries for inspiration: http://mix10k.visitmix.com/Gallery Some "Hello, World" examples to get you started: http://mix10k.visitmix.com/Content/mix10kSamples.zip And more info on http://visitmix.com/labs/gestalt Read more about the entry rules/prizes/etc: http://mix10k.visitmix.com/Terms Also, I'm on the judge panel for the contest (http://live.visitmix.com/News/MIX-10K-Judge-Panel-Announced), so I'd be *very happy* if you submitted a Python or Ruby app. ;) Let me know if you have any questions, ~Jimmy From Tomas.Matousek at microsoft.com Wed Jan 20 20:43:53 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 21 Jan 2010 01:43:53 +0000 Subject: [Ironruby-core] Code Review: open In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C894E0F@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C894E0F@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E150CD7@TK5EX14MBXC122.redmond.corp.microsoft.com> Looks good. Tomas -----Original Message----- From: Shri Borde Sent: Wednesday, January 20, 2010 4:36 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: open tfpt review "/shelveset:open;REDMOND\sborde" Comment : open("|shell_command") Removes other tags for Kernel.open -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Jan 20 20:52:52 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 21 Jan 2010 01:52:52 +0000 Subject: [Ironruby-core] Code Review: crit_argf In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E150D14@TK5EX14MBXC122.redmond.corp.microsoft.com> Could you add comments "TODO: thread safety" to the added fields. There are several places that access them in thread unsafe way. Could you also replace return MutableString.CreateAscii(CommandLineArguments[_currentFileIndex].ToString()); with // TODO: convert any non-string return (MutableString)CommandLineArguments[_currentFileIndex]; ? Tomas -----Original Message----- From: Jim Deville Sent: Wednesday, January 20, 2010 5:06 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: crit_argf tfpt review "/shelveset:crit_argf;REDMOND\jdeville" Comment : cleans up a few critical tags: * re-patches mock.rb with the patch to remove respond_to last * implements a basic implementation of ARGF, there are many holes that still need to be filled here, but the basic idea works, and the specs are no longer critical. From jdeville at microsoft.com Thu Jan 21 00:34:30 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 21 Jan 2010 05:34:30 +0000 Subject: [Ironruby-core] Code Review: crit_argf In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C2E150D14@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C2E150D14@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: Will do. -----Original Message----- From: Tomas Matousek Sent: Wednesday, January 20, 2010 5:53 PM To: Jim Deville; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: crit_argf Could you add comments "TODO: thread safety" to the added fields. There are several places that access them in thread unsafe way. Could you also replace return MutableString.CreateAscii(CommandLineArguments[_currentFileIndex].ToString()); with // TODO: convert any non-string return (MutableString)CommandLineArguments[_currentFileIndex]; ? Tomas -----Original Message----- From: Jim Deville Sent: Wednesday, January 20, 2010 5:06 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: crit_argf tfpt review "/shelveset:crit_argf;REDMOND\jdeville" Comment : cleans up a few critical tags: * re-patches mock.rb with the patch to remove respond_to last * implements a basic implementation of ARGF, there are many holes that still need to be filled here, but the basic idea works, and the specs are no longer critical. From Shri.Borde at microsoft.com Thu Jan 21 12:57:12 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 21 Jan 2010 17:57:12 +0000 Subject: [Ironruby-core] FYI review - Updating to Rails 2.3.5 Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C896914@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review /shelveset:rails;sborde Replaces the gems, and adjusts the tests to work with 2.3.5. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jan 21 13:02:53 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 21 Jan 2010 18:02:53 +0000 Subject: [Ironruby-core] FYI review - Updating to Rails 2.3.5 In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C896914@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C896914@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Looks good. Can you run tfpt uu to un-edit unchanged files (such as utr.rb) JD From: Shri Borde Sent: Thursday, January 21, 2010 9:57 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: FYI review - Updating to Rails 2.3.5 tfpt review /shelveset:rails;sborde Replaces the gems, and adjusts the tests to work with 2.3.5. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jan 21 13:08:07 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 21 Jan 2010 18:08:07 +0000 Subject: [Ironruby-core] Code Review: alive Message-ID: FYI Review tfpt review "/shelveset:alive;REDMOND\jdeville" Comment : marks "Thread#alive? reports aborting on a killed thread" as unstable -------------- next part -------------- A non-text attachment was scrubbed... Name: alive.diff Type: application/octet-stream Size: 545 bytes Desc: alive.diff URL: From jdeville at microsoft.com Thu Jan 21 13:21:34 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 21 Jan 2010 18:21:34 +0000 Subject: [Ironruby-core] Testing Message-ID: I'm getting delivery failures from somewhere, and this might be it, so I'm trying it. JD -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Thu Jan 21 17:01:21 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 21 Jan 2010 22:01:21 +0000 Subject: [Ironruby-core] Code Review: rails2 Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C896D68@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review "/shelveset:rails2;REDMOND\sborde" Comment : Added active_resource and action_mailer tests to irtests.rb Added a category (disable_unstable_tests) of unstable tests to utr.rb so that we can track non-deterministic failures. Also a category (exclude_critical_files) for critical test files that cause an exception when loaded (even if no tests are run from the file). Disabled a TestMultiTask test in rake_tests. MultiTaskTest uses monitor.rb which uses Thread.critical= in a way that is not friendly with native threads. Ideally, we will implement our own version of monitor.rb that does not uses Thread.critical= Also, I think I left out active_support_tests.rb out of my previous update to 2.3.5. So it might be broken in irtests. This change should fix it. -------------- next part -------------- A non-text attachment was scrubbed... Name: rails2.diff Type: application/octet-stream Size: 36609 bytes Desc: rails2.diff URL: From jdeville at microsoft.com Thu Jan 21 17:13:32 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 21 Jan 2010 22:13:32 +0000 Subject: [Ironruby-core] Code Review: fxcop Message-ID: tfpt review "/shelveset:fxcop;REDMOND\jdeville" Comment : Moves APTCA out of an if SIGNED ifdef so we pass FxCop when unsigned. -------------- next part -------------- A non-text attachment was scrubbed... Name: fxcop.diff Type: application/octet-stream Size: 1668 bytes Desc: fxcop.diff URL: From jdeville at microsoft.com Thu Jan 21 17:19:04 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 21 Jan 2010 22:19:04 +0000 Subject: [Ironruby-core] Code Review: rails2 In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C896D68@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C896D68@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: * irtests.rb: Reminder for me: why is active record commented out? * utr.rb: Disable_unstable_tests doesn't appear to get called, is that intentional? * active_record_tests.rb, line 82: I would get rid of the empty method, it's already defined Otherwise looks good. JD -----Original Message----- From: Shri Borde Sent: Thursday, January 21, 2010 2:01 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: rails2 tfpt review "/shelveset:rails2;REDMOND\sborde" Comment : Added active_resource and action_mailer tests to irtests.rb Added a category (disable_unstable_tests) of unstable tests to utr.rb so that we can track non-deterministic failures. Also a category (exclude_critical_files) for critical test files that cause an exception when loaded (even if no tests are run from the file). Disabled a TestMultiTask test in rake_tests. MultiTaskTest uses monitor.rb which uses Thread.critical= in a way that is not friendly with native threads. Ideally, we will implement our own version of monitor.rb that does not uses Thread.critical= Also, I think I left out active_support_tests.rb out of my previous update to 2.3.5. So it might be broken in irtests. This change should fix it. From Shri.Borde at microsoft.com Thu Jan 21 17:18:40 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 21 Jan 2010 22:18:40 +0000 Subject: [Ironruby-core] Code Review: fxcop In-Reply-To: References: Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C896D90@TK5EX14MBXC140.redmond.corp.microsoft.com> Looks good -----Original Message----- From: Jim Deville Sent: Thursday, January 21, 2010 2:14 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: fxcop tfpt review "/shelveset:fxcop;REDMOND\jdeville" Comment : Moves APTCA out of an if SIGNED ifdef so we pass FxCop when unsigned. From randallsutton at gmail.com Thu Jan 21 17:58:06 2010 From: randallsutton at gmail.com (Randall Sutton) Date: Thu, 21 Jan 2010 15:58:06 -0700 Subject: [Ironruby-core] Asynchronous Calls Message-ID: <8D1BCC4B-EB59-4C63-B841-D58F9063668F@gmail.com> Is there a way to setup asychronous calls in IronRuby. I've used things like WebClient.download_string_async, but I'm wondering if I can setup an async using just IronRuby. For example: @data.get_settings do |settings| # do stuff after async call end Where get_settings is an async method and it executes the block after it is completed. Thanks for any help, Randall From Shri.Borde at microsoft.com Thu Jan 21 19:36:33 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 22 Jan 2010 00:36:33 +0000 Subject: [Ironruby-core] Code Review: rails2 In-Reply-To: References: <8E45365BECA665489F3CB8878A6C1B7D0C896D68@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C896F12@TK5EX14MBXC140.redmond.corp.microsoft.com> To enable active record tests, we need to check in the ironruby-sqlserver gem (not hard), and implement ensure_test_databases (a bit more work to figure out). disable_unstable_tests should be called. Good catch. Removed line 82 of active_record_tests.rb -----Original Message----- From: Jim Deville Sent: Thursday, January 21, 2010 2:19 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: rails2 * irtests.rb: Reminder for me: why is active record commented out? * utr.rb: Disable_unstable_tests doesn't appear to get called, is that intentional? * active_record_tests.rb, line 82: I would get rid of the empty method, it's already defined Otherwise looks good. JD -----Original Message----- From: Shri Borde Sent: Thursday, January 21, 2010 2:01 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: rails2 tfpt review "/shelveset:rails2;REDMOND\sborde" Comment : Added active_resource and action_mailer tests to irtests.rb Added a category (disable_unstable_tests) of unstable tests to utr.rb so that we can track non-deterministic failures. Also a category (exclude_critical_files) for critical test files that cause an exception when loaded (even if no tests are run from the file). Disabled a TestMultiTask test in rake_tests. MultiTaskTest uses monitor.rb which uses Thread.critical= in a way that is not friendly with native threads. Ideally, we will implement our own version of monitor.rb that does not uses Thread.critical= Also, I think I left out active_support_tests.rb out of my previous update to 2.3.5. So it might be broken in irtests. This change should fix it. From jdeville at microsoft.com Thu Jan 21 19:40:51 2010 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 22 Jan 2010 00:40:51 +0000 Subject: [Ironruby-core] Code Review: rails2 In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C896F12@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C896D68@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C896F12@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Sounds good -----Original Message----- From: Shri Borde Sent: Thursday, January 21, 2010 4:37 PM To: Jim Deville; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: rails2 To enable active record tests, we need to check in the ironruby-sqlserver gem (not hard), and implement ensure_test_databases (a bit more work to figure out). disable_unstable_tests should be called. Good catch. Removed line 82 of active_record_tests.rb -----Original Message----- From: Jim Deville Sent: Thursday, January 21, 2010 2:19 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: rails2 * irtests.rb: Reminder for me: why is active record commented out? * utr.rb: Disable_unstable_tests doesn't appear to get called, is that intentional? * active_record_tests.rb, line 82: I would get rid of the empty method, it's already defined Otherwise looks good. JD -----Original Message----- From: Shri Borde Sent: Thursday, January 21, 2010 2:01 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: rails2 tfpt review "/shelveset:rails2;REDMOND\sborde" Comment : Added active_resource and action_mailer tests to irtests.rb Added a category (disable_unstable_tests) of unstable tests to utr.rb so that we can track non-deterministic failures. Also a category (exclude_critical_files) for critical test files that cause an exception when loaded (even if no tests are run from the file). Disabled a TestMultiTask test in rake_tests. MultiTaskTest uses monitor.rb which uses Thread.critical= in a way that is not friendly with native threads. Ideally, we will implement our own version of monitor.rb that does not uses Thread.critical= Also, I think I left out active_support_tests.rb out of my previous update to 2.3.5. So it might be broken in irtests. This change should fix it. From orion.edwards at gmail.com Fri Jan 22 00:19:06 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Fri, 22 Jan 2010 18:19:06 +1300 Subject: [Ironruby-core] Asynchronous Calls In-Reply-To: <8D1BCC4B-EB59-4C63-B841-D58F9063668F@gmail.com> References: <8D1BCC4B-EB59-4C63-B841-D58F9063668F@gmail.com> Message-ID: <905CF1FB-19AC-494F-B4BE-446916E01F62@gmail.com> What do you mean by "set up asynchronous calls"? If your get_settings method is a C# method using the IAsyncResult pattern, then you should be able to invoke it from IronRuby. From memory you can pass a ruby Proc in place of the AsyncCallback and it should all work: Example: callback = lambda{ |asyncresult| puts data.end_get_settings(asyncresult) } data.begin_get_settings("abc", callback, nil) If you want to write your own asynchronous method not involving C# at all, then you can do that too. If that's the case, then all you really need to do is remember to call the block when you're done. Example def get_settings(&block) do_long_thing settings = 123 block.call(settings) end In a real function you'd probably run the body of get_settings in another thread, but I won't go into how to do threading, as there may be other better ways depending on your situation. Cheers On 22/01/2010, at 11:58 AM, Randall Sutton wrote: > Is there a way to setup asychronous calls in IronRuby. I've used things like WebClient.download_string_async, but I'm wondering if I can setup an async using just IronRuby. > > For example: > @data.get_settings do |settings| > # do stuff after async call > end > > Where get_settings is an async method and it executes the block after it is completed. > > Thanks for any help, > Randall > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From ryan.riley at panesofglass.org Fri Jan 22 13:11:31 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 22 Jan 2010 12:11:31 -0600 Subject: [Ironruby-core] RCov Message-ID: I know everyone is using IronRuby for their testing, but what about code coverage? Has anyone tried RCov with a .NET app? Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Fri Jan 22 13:23:19 2010 From: lists at ruby-forum.com (Bassel Samman) Date: Fri, 22 Jan 2010 19:23:19 +0100 Subject: [Ironruby-core] Is it possible to generate DLLs? Message-ID: <58f693957744286f131efe57f54bc891@ruby-forum.com> Hello guys, we're looking to adopt IronRuby within our project. It's been great to test with since we're all ex-Ruby and/or ex-Rails guys and this makes everything simpler. We were able to work with windows forms and we can do everything we want with it so far without a problem. The one thing that remains is that we are not allowed to send the actual source files as they are to the customer. I assume there is a simple way we can do this, but I can't find any documentation on that or maybe I missed something. Is there a way I can turn the ruby classes into DLLs so we can package them up and ship them? That would pretty much seal the deal to get IronRuby approved for our project. thanks, Bassel -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Fri Jan 22 13:34:26 2010 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 22 Jan 2010 18:34:26 +0000 Subject: [Ironruby-core] RCov In-Reply-To: References: Message-ID: I think rcov is c-based ? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Friday, January 22, 2010 10:12 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] RCov I know everyone is using IronRuby for their testing, but what about code coverage? Has anyone tried RCov with a .NET app? Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Fri Jan 22 13:53:19 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 22 Jan 2010 18:53:19 +0000 Subject: [Ironruby-core] RCov In-Reply-To: References: Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89792E@TK5EX14MBXC140.redmond.corp.microsoft.com> The core is C-based. Most of it is in Ruby. This is just similar to ruby-debug which also has a small C-based core. Both would need a small hook from IronRuby. So its certainly feasible to support it, but at this point, it will be post-1.0 However, you would only get coverage for Ruby code. For profiling .NET code, you have to use .NET profilers like the one in VS. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Friday, January 22, 2010 10:34 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RCov I think rcov is c-based ? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Friday, January 22, 2010 10:12 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] RCov I know everyone is using IronRuby for their testing, but what about code coverage? Has anyone tried RCov with a .NET app? Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Fri Jan 22 15:02:53 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Fri, 22 Jan 2010 14:02:53 -0600 Subject: [Ironruby-core] RCov In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89792E@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C89792E@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: That's what I thought. Thanks for the responses. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Fri, Jan 22, 2010 at 12:53 PM, Shri Borde wrote: > The core is C-based. Most of it is in Ruby. This is just similar to > ruby-debug which also has a small C-based core. Both would need a small hook > from IronRuby. So its certainly feasible to support it, but at this point, > it will be post-1.0 > > > > However, you would only get coverage for Ruby code. For profiling .NET > code, you have to use .NET profilers like the one in VS. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville > *Sent:* Friday, January 22, 2010 10:34 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] RCov > > > > I think rcov is c-based L > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Friday, January 22, 2010 10:12 AM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] RCov > > > > I know everyone is using IronRuby for their testing, but what about code > coverage? Has anyone tried RCov with a .NET app? > > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Fri Jan 22 15:30:17 2010 From: lists at ruby-forum.com (Bassel Samman) Date: Fri, 22 Jan 2010 21:30:17 +0100 Subject: [Ironruby-core] Is it possible to generate DLLs? In-Reply-To: <58f693957744286f131efe57f54bc891@ruby-forum.com> References: <58f693957744286f131efe57f54bc891@ruby-forum.com> Message-ID: <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> Actually, never mind. Looks like precompilation is not supported yet. Googling shows they may work on it post 1.0. On the other hand, one of the developers came up with a workaround that will work for us since our needs are minimal. We are just going to zip and encrypt for now and we can unzip and run in memory from a small C# app. Also, if someone really needs a DLL you can use rubydotnet. -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Fri Jan 22 17:26:18 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 22 Jan 2010 22:26:18 +0000 Subject: [Ironruby-core] Code Review: rails Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C897CF0@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review "/shelveset:rails;REDMOND\sborde" Comment : Flushes out iconv implementation. Added more specs Made String#encoding visible only in 1.9 mode Adds optional paramter to StringScanner.new The above fixes enable many more Rails tests -------------- next part -------------- A non-text attachment was scrubbed... Name: rails.diff Type: application/octet-stream Size: 49582 bytes Desc: rails.diff URL: From lists at ruby-forum.com Fri Jan 22 17:31:31 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Fri, 22 Jan 2010 23:31:31 +0100 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <1ee7112467ccdc8de4ca51942484ab44@ruby-forum.com> > I'm not seeing this; the scaffolding example at the link below does the > same thing, and redirects fine with the new adapter (a Post created with > the id "4" will redirect to "/posts/4"): > > @post = Post.new(params[:post]) > if @post.save > flash[:notice] = 'Post was successfully created.' > redirect_to(@post) > else > render :action => "new" > end > > Can you possibly send more information with the old adapter? I'd like > these lines added right after @company.save succeeds (inside the "if" > statement), and then could you send the output? > > p params > p @company > p company_path(@company) > > ~Jimmy Hopefully this helps: authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companynamehmmmjj...commentstestcommitSubmitcontrollercompaniesactioncreate # /companies/268 -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jan 22 17:38:38 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Fri, 22 Jan 2010 23:38:38 +0100 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <67568604a7b3287bee0833857e0524fa@ruby-forum.com> > I'm not seeing this; the scaffolding example at the link below does the > same thing, and redirects fine with the new adapter (a Post created with > the id "4" will redirect to "/posts/4"): > > @post = Post.new(params[:post]) > if @post.save > flash[:notice] = 'Post was successfully created.' > redirect_to(@post) > else > render :action => "new" > end > > Can you possibly send more information with the old adapter? I'd like > these lines added right after @company.save succeeds (inside the "if" > statement), and then could you send the output? > > p params > p @company > p company_path(@company) > > ~Jimmy Should have included this in the last post, but here is both of the data with the new/old adapter: *** New Adapter *** Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 14:33:19) [POST] Parameters: {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", "company"=>{"name"=>"hmmmjjj...", "comments"=>"test"}, "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} User Load (0.0ms) SELECT TOP 1 * FROM [users] WHERE ([users].[id] = '1')  EXECUTE (15.6ms) BEGIN TRANSACTION Company Create (46.9ms) INSERT INTO [companies] ([name], [comments]) VALUES('hmmmjjj...', 'test') SQL (0.0ms) SELECT SCOPE_IDENTITY() AS Ident EXECUTE (0.0ms) COMMIT TRANSACTION authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companynamehmmmjjj...commentstestcommitSubmitcontrollercompaniesactioncreate # /companies/26900 Redirected to http://127.0.0.1:3000/companies/26900 *** Old Adapter *** Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 14:30:02) [POST] Parameters: {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", "company"=>{"name"=>"hmmmjj...", "comments"=>"test"}, "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companynamehmmmjj...commentstestcommitSubmitcontrollercompaniesactioncreate # /companies/268 Redirected to http://127.0.0.1:3000/companies/268 Completed in 1922ms (DB: 0) | 302 Found [http://127.0.0.1/companies] -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Fri Jan 22 17:52:49 2010 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 22 Jan 2010 22:52:49 +0000 Subject: [Ironruby-core] Code Review: rails In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C897CF0@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C897CF0@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Looks good, are the rails tests ready to go into SNAP? JD -----Original Message----- From: Shri Borde Sent: Friday, January 22, 2010 2:26 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: rails tfpt review "/shelveset:rails;REDMOND\sborde" Comment : Flushes out iconv implementation. Added more specs Made String#encoding visible only in 1.9 mode Adds optional paramter to StringScanner.new The above fixes enable many more Rails tests From suppakilla at gmail.com Fri Jan 22 18:02:57 2010 From: suppakilla at gmail.com (Daniele Alessandri) Date: Sat, 23 Jan 2010 00:02:57 +0100 Subject: [Ironruby-core] IronRuby's rake script with MRI versions greater than 1.8.6 Message-ID: <3bf20551001221502n4b460b34ma8776fce75ae739d@mail.gmail.com> Hello, I just uploaded a gist on GitHub with a quick fix that allows IronRuby's rake script to also run on versions of the MRI greater than 1.8.6 (actually tested with "rake compile" on 1.8.6p383 and 1.9.1p376). Here is the .diff: http://gist.github.com/284217 PS: on a totally unrelated and side note, mono's gmcs 2.6.1 breaks when compiling IronRuby after the last commit on the Git repository :( -- Daniele Alessandri http://www.clorophilla.net/ http://twitter.com/JoL1hAHN From Tomas.Matousek at microsoft.com Fri Jan 22 19:03:26 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 23 Jan 2010 00:03:26 +0000 Subject: [Ironruby-core] Code Review: rails In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C897CF0@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C897CF0@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C2E152EAC@TK5EX14MBXC122.redmond.corp.microsoft.com> Looks good. Tomas -----Original Message----- From: Shri Borde Sent: Friday, January 22, 2010 2:26 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: rails tfpt review "/shelveset:rails;REDMOND\sborde" Comment : Flushes out iconv implementation. Added more specs Made String#encoding visible only in 1.9 mode Adds optional paramter to StringScanner.new The above fixes enable many more Rails tests From Shri.Borde at microsoft.com Fri Jan 22 19:37:51 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Sat, 23 Jan 2010 00:37:51 +0000 Subject: [Ironruby-core] Code Review: rails In-Reply-To: References: <8E45365BECA665489F3CB8878A6C1B7D0C897CF0@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C897EA7@TK5EX14MBXC140.redmond.corp.microsoft.com> Let me run them overnight to catch non-determinstic failures, but they have been reasonably stable so far. -----Original Message----- From: Jim Deville Sent: Friday, January 22, 2010 2:53 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: rails Looks good, are the rails tests ready to go into SNAP? JD -----Original Message----- From: Shri Borde Sent: Friday, January 22, 2010 2:26 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: rails tfpt review "/shelveset:rails;REDMOND\sborde" Comment : Flushes out iconv implementation. Added more specs Made String#encoding visible only in 1.9 mode Adds optional paramter to StringScanner.new The above fixes enable many more Rails tests From jdeville at microsoft.com Fri Jan 22 20:10:52 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sat, 23 Jan 2010 01:10:52 +0000 Subject: [Ironruby-core] Code Review: rails Message-ID: ok -----Original Message----- From: Shri Borde Sent: Friday, January 22, 2010 4:37 PM To: Jim Deville ; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: rails Let me run them overnight to catch non-determinstic failures, but they have been reasonably stable so far. -----Original Message----- From: Jim Deville Sent: Friday, January 22, 2010 2:53 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: rails Looks good, are the rails tests ready to go into SNAP? JD -----Original Message----- From: Shri Borde Sent: Friday, January 22, 2010 2:26 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: rails tfpt review "/shelveset:rails;REDMOND\sborde" Comment : Flushes out iconv implementation. Added more specs Made String#encoding visible only in 1.9 mode Adds optional paramter to StringScanner.new The above fixes enable many more Rails tests From lists at ruby-forum.com Sat Jan 23 07:02:51 2010 From: lists at ruby-forum.com (David Lake) Date: Sat, 23 Jan 2010 13:02:51 +0100 Subject: [Ironruby-core] Is it possible to generate DLLs? In-Reply-To: <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> References: <58f693957744286f131efe57f54bc891@ruby-forum.com> <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> Message-ID: <608e7071a7d092d5700383fa852d738b@ruby-forum.com> Bassel Samman wrote: > Actually, never mind. Looks like precompilation is not supported yet. > Googling shows they may work on it post 1.0. On the other hand, one of > the developers came up with a workaround that will work for us since our > needs are minimal. We are just going to zip and encrypt for now and we > can unzip and run in memory from a small C# app. Also, if someone > really needs a DLL you can use rubydotnet. I've found it easiest to put Ruby scripts into embedded resources in the DLL then read them out from there. You can optionally encrypt them as part of the build process and decrypt them before running them so that they cannot be spied upon. I use this system a lot (with Ruby.Net, but it will work fine with IronRuby too). As an added aid during development, the code that I use to get a resource 'foo.rb' from the DLL will do a quick check on disk at location \ for a plain-text version of 'foo.rb'. If it finds one, it loads it in preference. This way you don't need to rebuild the DLL during development - only when ready to release. -- Posted via http://www.ruby-forum.com/. From shay.friedman at gmail.com Sat Jan 23 09:04:37 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Sat, 23 Jan 2010 16:04:37 +0200 Subject: [Ironruby-core] Is it possible to generate DLLs? In-Reply-To: <608e7071a7d092d5700383fa852d738b@ruby-forum.com> References: <58f693957744286f131efe57f54bc891@ruby-forum.com> <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> <608e7071a7d092d5700383fa852d738b@ruby-forum.com> Message-ID: Good idea. However, I'd remove the file check before the production build (use #if DEBUG or something similar). Having it on the client computers generates 2 main problems: 1. Performance - you're doing one or multiple file system calls in vain. 2. Security - one can figure out about this little mechanism and put a malicious foo.rb file in the correct folder, so your application uses and executes it. Thanks for sharing, Shay. -------------------------------------------------------- Shay Friedman | .NET Technologies Expert | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Sat, Jan 23, 2010 at 2:02 PM, David Lake wrote: > Bassel Samman wrote: > > Actually, never mind. Looks like precompilation is not supported yet. > > Googling shows they may work on it post 1.0. On the other hand, one of > > the developers came up with a workaround that will work for us since our > > needs are minimal. We are just going to zip and encrypt for now and we > > can unzip and run in memory from a small C# app. Also, if someone > > really needs a DLL you can use rubydotnet. > > I've found it easiest to put Ruby scripts into embedded resources in the > DLL then read them out from there. You can optionally encrypt them as > part of the build process and decrypt them before running them so that > they cannot be spied upon. I use this system a lot (with Ruby.Net, but > it will work fine with IronRuby too). > > As an added aid during development, the code that I use to get a > resource 'foo.rb' from the DLL will do a quick check on disk at location > \ for a plain-text version of 'foo.rb'. If it > finds one, it loads it in preference. This way you don't need to rebuild > the DLL during development - only when ready to release. > > -- > 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 ivan at flanders.co.nz Sat Jan 23 10:28:14 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 23 Jan 2010 16:28:14 +0100 Subject: [Ironruby-core] dealing with TFS Message-ID: Hi How do you guys deal with TFS? My guys have settled on Rubymine as their IDE, but their SCM is TFS of course as it's a .NET shop. As you're well aware off TFS has the unfortunate habit of marking files as read-only and AFAIK there isn't an easy way to make it detect new files short of going through all the folders and manually adding the new files. When you're on a roll with a rails app for example this can mean there are quite a few files that need to be added. What is the workflow you settled on? use git for everything and once in a while make it sync with TFS? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Sat Jan 23 11:01:47 2010 From: curth at microsoft.com (Curt Hagenlocher) Date: Sat, 23 Jan 2010 16:01:47 +0000 Subject: [Ironruby-core] dealing with TFS In-Reply-To: References: Message-ID: <9DBDB52016D6F34AABBACF6C2876EA2828361C26@TK5EX14MBXC139.redmond.corp.microsoft.com> I know some people who like "tfpt online" (from TFS Power Tools) for the purpose of adding a bunch of new files to a preexisting enlistment. I've never used it myself. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Saturday, January 23, 2010 7:28 AM To: ironruby-core Subject: [Ironruby-core] dealing with TFS Hi How do you guys deal with TFS? My guys have settled on Rubymine as their IDE, but their SCM is TFS of course as it's a .NET shop. As you're well aware off TFS has the unfortunate habit of marking files as read-only and AFAIK there isn't an easy way to make it detect new files short of going through all the folders and manually adding the new files. When you're on a roll with a rails app for example this can mean there are quite a few files that need to be added. What is the workflow you settled on? use git for everything and once in a while make it sync with TFS? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Jan 23 13:48:41 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sat, 23 Jan 2010 18:48:41 +0000 Subject: [Ironruby-core] dealing with TFS In-Reply-To: <9DBDB52016D6F34AABBACF6C2876EA2828361C26@TK5EX14MBXC139.redmond.corp.microsoft.com> References: <9DBDB52016D6F34AABBACF6C2876EA2828361C26@TK5EX14MBXC139.redmond.corp.microsoft.com> Message-ID: Tfpt online is nice for that purpose. tf folderdiff . /r (recursive on this directory) is another way to detect changes, but it?s a pain since it re-syncs everytime you make a change. Rails would make it hard, but a few other options I can think of to help: a) If it?s a new project, maybe Codeplex?s new Mercurial support can convince them to use something different b) I can help you get setup to sync Git with TFS like we do for IronRuby. It?s a bit of a kludge right now, but it works. Jimmy and I are both trying to make it better, but neither of us have the time yet. c) Write a plugin for rails that hooks into the generator?s SCM support (-g and ?s options) to add and edit files as it works. One other thing I have for working within TFS. I map :w to :w! (to overwrite read-only files). And I have defined te and ta which simply call :!tf edit % and :!tf add %. The percent expands to the current file. Whenever I touch a file I run this command, of course, this requires you to launch vim from a command line that has TF in the path. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Saturday, January 23, 2010 8:02 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] dealing with TFS I know some people who like "tfpt online" (from TFS Power Tools) for the purpose of adding a bunch of new files to a preexisting enlistment. I've never used it myself. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Saturday, January 23, 2010 7:28 AM To: ironruby-core Subject: [Ironruby-core] dealing with TFS Hi How do you guys deal with TFS? My guys have settled on Rubymine as their IDE, but their SCM is TFS of course as it's a .NET shop. As you're well aware off TFS has the unfortunate habit of marking files as read-only and AFAIK there isn't an easy way to make it detect new files short of going through all the folders and manually adding the new files. When you're on a roll with a rails app for example this can mean there are quite a few files that need to be added. What is the workflow you settled on? use git for everything and once in a while make it sync with TFS? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion.edwards at gmail.com Sat Jan 23 17:38:16 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Sun, 24 Jan 2010 11:38:16 +1300 Subject: [Ironruby-core] dealing with TFS In-Reply-To: References: Message-ID: <45CD7A57-421C-4737-BAFE-90BB940B8E13@gmail.com> We've got a couple of people using the TFS->SVN bridge, which I think is made by the codeplex guys. It's SLOW, but it works well for them, as they're on smaller projects. On 24/01/2010, at 4:28 AM, Ivan Porto Carrero wrote: > Hi > > How do you guys deal with TFS? > > My guys have settled on Rubymine as their IDE, but their SCM is TFS of course as it's a .NET shop. > As you're well aware off TFS has the unfortunate habit of marking files as read-only and AFAIK there isn't an easy way to make it detect new files short of going through all the folders and manually adding the new files. When you're on a roll with a rails app for example this can mean there are quite a few files that need to be added. > > What is the workflow you settled on? use git for everything and once in a while make it sync with TFS? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > _______________________________________________ > 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 orion.edwards at gmail.com Sat Jan 23 17:40:44 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Sun, 24 Jan 2010 11:40:44 +1300 Subject: [Ironruby-core] Is it possible to generate DLLs? In-Reply-To: <608e7071a7d092d5700383fa852d738b@ruby-forum.com> References: <58f693957744286f131efe57f54bc891@ruby-forum.com> <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> <608e7071a7d092d5700383fa852d738b@ruby-forum.com> Message-ID: <2E98E7CD-E686-4880-9488-20616A84B529@gmail.com> If you've ever run reflector over a .NET dll, you'll realise that you're pretty much shipping the source to every C# or VB.net app you write - so going along with this I'd recommend just putting the ruby files in a zip, renaming the zip to .blah, and calling it a day On 24/01/2010, at 1:02 AM, David Lake wrote: > Bassel Samman wrote: >> Actually, never mind. Looks like precompilation is not supported yet. >> Googling shows they may work on it post 1.0. On the other hand, one of >> the developers came up with a workaround that will work for us since our >> needs are minimal. We are just going to zip and encrypt for now and we >> can unzip and run in memory from a small C# app. Also, if someone >> really needs a DLL you can use rubydotnet. > > I've found it easiest to put Ruby scripts into embedded resources in the > DLL then read them out from there. You can optionally encrypt them as > part of the build process and decrypt them before running them so that > they cannot be spied upon. I use this system a lot (with Ruby.Net, but > it will work fine with IronRuby too). > > As an added aid during development, the code that I use to get a > resource 'foo.rb' from the DLL will do a quick check on disk at location > \ for a plain-text version of 'foo.rb'. If it > finds one, it loads it in preference. This way you don't need to rebuild > the DLL during development - only when ready to release. > > -- > 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 flanders.co.nz Sat Jan 23 18:05:31 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 24 Jan 2010 00:05:31 +0100 Subject: [Ironruby-core] dealing with TFS In-Reply-To: <45CD7A57-421C-4737-BAFE-90BB940B8E13@gmail.com> References: <45CD7A57-421C-4737-BAFE-90BB940B8E13@gmail.com> Message-ID: svnbridge doesn't work with rubymine or git-svn but it does with tortoise etc. The source control needs to work from within the environment, at least that's what the boss told me. this looks promising too with a few rake tasks perhaps: http://jeroen.haegebaert.com/post/2008/08/23/Dealing-with-the-quirks-of-TFS-using-git-take-2 I'll check out the ironruby source code too on how you do it. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sat, Jan 23, 2010 at 11:38 PM, Orion Edwards wrote: > We've got a couple of people using the TFS->SVN bridge, which I think is > made by the codeplex guys. It's SLOW, but it works well for them, as they're > on smaller projects. > > On 24/01/2010, at 4:28 AM, Ivan Porto Carrero wrote: > > Hi > > How do you guys deal with TFS? > > My guys have settled on Rubymine as their IDE, but their SCM is TFS of > course as it's a .NET shop. > As you're well aware off TFS has the unfortunate habit of marking files as > read-only and AFAIK there isn't an easy way to make it detect new files > short of going through all the folders and manually adding the new files. > When you're on a roll with a rails app for example this can mean there are > quite a few files that need to be added. > > What is the workflow you settled on? use git for everything and once in a > while make it sync with TFS? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > _______________________________________________ > 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 Sun Jan 24 10:31:36 2010 From: lists at ruby-forum.com (Bassel Samman) Date: Sun, 24 Jan 2010 16:31:36 +0100 Subject: [Ironruby-core] Is it possible to generate DLLs? In-Reply-To: <2E98E7CD-E686-4880-9488-20616A84B529@gmail.com> References: <58f693957744286f131efe57f54bc891@ruby-forum.com> <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> <608e7071a7d092d5700383fa852d738b@ruby-forum.com> <2E98E7CD-E686-4880-9488-20616A84B529@gmail.com> Message-ID: Thanks to everyone for their responses. We did something similar and things seem to be going OK with management. Also, Orion, the whole point is we can't just ship source. I agree you can do a lot of things to get to source from compiled formats, but I don't want to get into the whole argument of shipping source just won't fly in the Enterprise world. Long story short, I think this would make our life easier and make it easier to convince management that IronRuby is a viable option. -- Posted via http://www.ruby-forum.com/. From a.wilson82 at gmail.com Sun Jan 24 13:19:09 2010 From: a.wilson82 at gmail.com (andrew Wilson) Date: Sun, 24 Jan 2010 11:19:09 -0700 Subject: [Ironruby-core] Mocking behavior between clr types Message-ID: <9dbb46901001241019v55b5c70aob7257ae79b42d044@mail.gmail.com> As I have been working more and more with testing C# via IronRuby & Rspec, I have found myself wanting to use more and more of the rspec framework for testing. I have also found problems that I am not sure how to work through yet. For instance lets say I have two c# classes: public class Foo { private Bar _bar; public Foo(Bar someBar) { this._bar = someBar; } public int GetBarCount() { return this._bar.Count; } } public class Bar { private int _count = 0; public Count { get { return _count;} } } in my spec test I want to do something like this: b = Bar.new b.stub!(:Count).and_return(400) f = Foo.new(b) f.GetBarCount(),should == 100 The problem is that because I am stubbing the Bar instance via the dlr, the CLR call on f never sees the stub and just returns 0. Is there any way to make this work? I was wondering if I could maybe make my Foo instance a proxy or mock itself and see if that would let the method calls work... but I haven't had any luck :( -A -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sun Jan 24 13:38:34 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 24 Jan 2010 19:38:34 +0100 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: <9dbb46901001241019v55b5c70aob7257ae79b42d044@mail.gmail.com> References: <9dbb46901001241019v55b5c70aob7257ae79b42d044@mail.gmail.com> Message-ID: you can use caricature to solve that problem gem install caricature for rspec you do require 'caricature' Spec::Runner.configure do |config| config.mock_with Caricature::RSpecAdapter config.include Caricature::RSpecMatchers end But it works slightly different as it won't verify unless you tell it to verify. it has no mock or stub knowledge but works from the assumption you want to stub unless you add a verify call. the bacon integration specs show off all the combinations. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Jan 24, 2010 at 7:19 PM, andrew Wilson wrote: > As I have been working more and more with testing C# via IronRuby & Rspec, > I have found myself wanting to use more and more of the rspec framework for > testing. I have also found problems that I am not sure how to work through > yet. > > For instance lets say I have two c# classes: > > public class Foo > { > private Bar _bar; > > public Foo(Bar someBar) > { > this._bar = someBar; > } > > public int GetBarCount() > { > return this._bar.Count; > } > > } > > > public class Bar > { > private int _count = 0; > > public Count > { > get { return _count;} > } > } > > > in my spec test I want to do something like this: > > b = Bar.new > b.stub!(:Count).and_return(400) > > f = Foo.new(b) > f.GetBarCount(),should == 100 > > The problem is that because I am stubbing the Bar instance via the dlr, the > CLR call on f never sees the stub and just returns 0. > > Is there any way to make this work? I was wondering if I could maybe make > my Foo instance a proxy or mock itself and see if that would let the method > calls work... but I haven't had any luck :( > > -A > > -- > When I wrote this, only God and I understood what I was doing. Now, God > only knows - Karl Weierstrass > > _______________________________________________ > 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 a.wilson82 at gmail.com Sun Jan 24 14:16:16 2010 From: a.wilson82 at gmail.com (andrew Wilson) Date: Sun, 24 Jan 2010 12:16:16 -0700 Subject: [Ironruby-core] Mocking behavior between clr types Message-ID: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> Ivan, Seems like a what I was looking for, however according to the documentation it says it can only mock virtuals and non-static though. I don't want that restriction :( One of the advantages I was hoping to leverage was the ability to re-write methods that I wouldn't otherwise be able to. -A -- When I wrote this, only God and I understood what I was doing. Now, God only knows - Karl Weierstrass -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion.edwards at gmail.com Sun Jan 24 14:29:14 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Mon, 25 Jan 2010 08:29:14 +1300 Subject: [Ironruby-core] Is it possible to generate DLLs? In-Reply-To: References: <58f693957744286f131efe57f54bc891@ruby-forum.com> <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> <608e7071a7d092d5700383fa852d738b@ruby-forum.com> <2E98E7CD-E686-4880-9488-20616A84B529@gmail.com> Message-ID: <7c1b59c01001241129s6561bf08wafe3454d73c82fd8@mail.gmail.com> Sure :-) I realise the world of enterprises is not neccessarily the world of reason or logic :-) At any rate, I remember some vague mentionings on the list about a platform abstraction layer and it's being able to read files directly out of zips, which sounds like it would also be useful... was that a silverlight thing or am I confused? On Mon, Jan 25, 2010 at 4:31 AM, Bassel Samman wrote: > Thanks to everyone for their responses. We did something similar and > things seem to be going OK with management. Also, Orion, the whole > point is we can't just ship source. I agree you can do a lot of things > to get to source from compiled formats, but I don't want to get into the > whole argument of shipping source just won't fly in the Enterprise > world. Long story short, I think this would make our life easier and > make it easier to convince management that IronRuby is a viable option. > -- > 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 orion.edwards at gmail.com Sun Jan 24 14:31:37 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Mon, 25 Jan 2010 08:31:37 +1300 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> Message-ID: <7c1b59c01001241131u3e34f4e6me8aeecc2c6b598f8@mail.gmail.com> > > I don't want that restriction :( One of the advantages I was hoping to > leverage was the ability to re-write methods that I wouldn't otherwise be > able to. Unfortunately that's not a limitation put there by Caricature, but one put there by the CLR itself. Unless you want to get into disassembling and reassembling your dll's on the fly, you're out of luck -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben2004uk at googlemail.com Sun Jan 24 15:00:45 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Sun, 24 Jan 2010 20:00:45 +0000 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: <7c1b59c01001241131u3e34f4e6me8aeecc2c6b598f8@mail.gmail.com> References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> <7c1b59c01001241131u3e34f4e6me8aeecc2c6b598f8@mail.gmail.com> Message-ID: "disassembling and reassembling your dll's on the fly" That sounds like fun..... hmmmm, I'll think that one over a little bit. On a similar note, you might be interested in my presentation on Testing ASP.net applications using C# http://blog.benhall.me.uk/2010/01/testing-aspnet-using-ruby-codemash.html Ben On Sun, Jan 24, 2010 at 7:31 PM, Orion Edwards wrote: >> I don't want that restriction :(? One of the advantages I was hoping to >> leverage was the ability to re-write methods that I wouldn't otherwise be >> able to. > > Unfortunately that's not a limitation put there by Caricature, but one put > there by the CLR itself. Unless you want to get into?disassembling?and > reassembling your dll's on the fly, you're out of luck > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From ivan at flanders.co.nz Sun Jan 24 15:34:52 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 24 Jan 2010 21:34:52 +0100 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> Message-ID: You don't need to do anything as drastic as disassemble dlls though :). There are several solutions and I think the cleanest one is to use the CLR profiling API. Another avenue I could take is to use Mono.Cecil but I don't like the idea of the IL rewriting stuff. heck even postsharp would probably do the trick. I need to look into the CLR profiling API to make the rest of the stuff happening as that is the cleanest solution IMO. The limitation only exists if you're mocking CLR classes for use in other CLR classes. If you're going to use it in ruby code you can do whatever you want. My mocker does most of what Moq and Rhino.Mocks do, except that it doesn't use LCG or expression trees but just the reflection API once per type. from there on out it uses ruby to do its job. What I need to add but don't know if they are really necessary are call count constraints. And I also want to make the RSpec integration a little bit better so that you can enlist an expectation for verification too. The docs are a bit outdated too, best is to look into spec/bacon/integration that's where I test out the new features or syntax additions. I have a chapter in my book that explains the use of Caricature with RSpec which will be in the update at the end of january. Contact me off list if you want a discount :) --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Jan 24, 2010 at 8:16 PM, andrew Wilson wrote: > Ivan, > > Seems like a what I was looking for, however according to the documentation > it says it can only mock virtuals and non-static though. > > I don't want that restriction :( One of the advantages I was hoping to > leverage was the ability to re-write methods that I wouldn't otherwise be > able to. > > > -A > > -- > When I wrote this, only God and I understood what I was doing. Now, God > only knows - Karl Weierstrass > > _______________________________________________ > 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 ben2004uk at googlemail.com Sun Jan 24 16:30:33 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Sun, 24 Jan 2010 21:30:33 +0000 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> Message-ID: Hi Ivan, I was thinking Mono.Cecil first and then the CLR profiling API as I'm pretty sure that will work. I used a similar approach for http://blog.benhall.me.uk/2008/11/net-fault-injection-very-early-proof-of.html but the fault injection was done via some Microsoft Research stuff. Either approach your re-writing IL, it just depends which layer you work with. Lots of interesting problems to solve. Then it would just need a nice Ruby wrapper so it's transparent to the end user - ideally incorporating the backend work into Caricature. Ben On Sun, Jan 24, 2010 at 8:34 PM, Ivan Porto Carrero wrote: > You don't need to do anything as drastic as disassemble dlls though :). > There are several solutions and I think the cleanest one is to use the CLR > profiling API. ?Another avenue I could take is to use Mono.Cecil but I don't > like the idea of the IL rewriting stuff. heck even postsharp would probably > do the trick. > I need to look into the CLR profiling API to make the rest of the stuff > happening as that is the cleanest solution IMO. The limitation only exists > if you're mocking CLR classes for use in other CLR classes. If you're going > to use it in ruby code you can do whatever you want. > My mocker does most of what Moq and Rhino.Mocks do, except that it doesn't > use LCG or expression trees but just the reflection API once per type. from > there on out it uses ruby to do its job. > What I need to add but don't know if they are really necessary are?call > count constraints. > And I also want to make the RSpec integration a little bit better so that > you can enlist an expectation for verification too. > The docs are a bit outdated too, best is to look into spec/bacon/integration > that's where I test out the new features or syntax additions. > I have a chapter in my book that explains the use of Caricature with RSpec > which will be in the update at the end of january. Contact me off list if > you want a discount :) > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Sun, Jan 24, 2010 at 8:16 PM, andrew Wilson wrote: >> >> Ivan, >> >> Seems like a what I was looking for, however according to the >> documentation it says it can only mock virtuals and non-static though. >> >> I don't want that restriction :(? One of the advantages I was hoping to >> leverage was the ability to re-write methods that I wouldn't otherwise be >> able to. >> >> -A >> >> -- >> When I wrote this, only God and I understood what I was doing. ?Now, God >> only knows - Karl Weierstrass >> >> _______________________________________________ >> 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 Sun Jan 24 21:04:48 2010 From: lists at ruby-forum.com (Bassel Samman) Date: Mon, 25 Jan 2010 03:04:48 +0100 Subject: [Ironruby-core] Is it possible to generate DLLs? In-Reply-To: <7c1b59c01001241129s6561bf08wafe3454d73c82fd8@mail.gmail.com> References: <58f693957744286f131efe57f54bc891@ruby-forum.com> <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> <608e7071a7d092d5700383fa852d738b@ruby-forum.com> <2E98E7CD-E686-4880-9488-20616A84B529@gmail.com> <7c1b59c01001241129s6561bf08wafe3454d73c82fd8@mail.gmail.com> Message-ID: <201202a7e375d25e08e6c87d40b3cadc@ruby-forum.com> Orion Edwards wrote: > Sure :-) I realise the world of enterprises is not neccessarily the > world of > reason or logic :-) > > At any rate, I remember some vague mentionings on the list about a > platform > abstraction layer and it's being able to read files directly out of > zips, > which sounds like it would also be useful... was that a silverlight > thing or > am I confused? Nope, no SilverLight here, just a desktop app with MSCharts, win forms and a whole lot of IronRuby metaprogramming goodness. -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Mon Jan 25 00:55:09 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 25 Jan 2010 05:55:09 +0000 Subject: [Ironruby-core] Review: ActiveRecord tests Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C899655@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review /shelveset:ar;sborde Enables active_record tests in irtests.rb. They require SQLExpress to be installed on the machine. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Jan 25 01:31:48 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 25 Jan 2010 06:31:48 +0000 Subject: [Ironruby-core] Code Review: dash_s In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C2E14FE2F@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AED0B@TK5EX14MBXC141.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C2E14FE2F@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BB6F3@TK5EX14MBXC141.redmond.corp.microsoft.com> > Could you factor the file search out into a private method? Done ... > I noticed that -S should use the first file it finds on the path, can > you do a spec for that? ... and done (though, isn't that the definition of the path? =P) Attached diff, or tfpt review "/shelveset:dash_upper_s;REDMOND\jimmysch" ~Jimmy > -----Original Message----- > From: Jimmy Schementi > Sent: Sunday, January 17, 2010 2:52 AM > To: ironruby-core at rubyforge.org > Cc: IronRuby External Code Reviewers > Subject: Code Review: dash_s > > -S finds the file being run on the environment's PATH, rather than requiring > the full path to be provided. > > Adds the -S command-line option (for example: ir -S irb) > http://github.com/jschementi/ironruby/commit/135d5e5715409a194191c51c05668636 > 03f49e16 > > Add spec for -S > http://github.com/jschementi/ironruby/commit/62f211de25d1e7c7793b4f9af36cfde3 > 670247f8 -------------- next part -------------- A non-text attachment was scrubbed... Name: dash_upper_s.diff Type: application/octet-stream Size: 6363 bytes Desc: dash_upper_s.diff URL: From ivan at flanders.co.nz Mon Jan 25 02:20:35 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 08:20:35 +0100 Subject: [Ironruby-core] Is it possible to generate DLLs? In-Reply-To: <201202a7e375d25e08e6c87d40b3cadc@ruby-forum.com> References: <58f693957744286f131efe57f54bc891@ruby-forum.com> <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> <608e7071a7d092d5700383fa852d738b@ruby-forum.com> <2E98E7CD-E686-4880-9488-20616A84B529@gmail.com> <7c1b59c01001241129s6561bf08wafe3454d73c82fd8@mail.gmail.com> <201202a7e375d25e08e6c87d40b3cadc@ruby-forum.com> Message-ID: using a zip format blocks you from using it in certain ways like adding it as a reference to visual studio. Nobody says your dll needs to contain just ruby code. It can contain thin C# wrappers for example. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 3:04 AM, Bassel Samman wrote: > Orion Edwards wrote: > > Sure :-) I realise the world of enterprises is not neccessarily the > > world of > > reason or logic :-) > > > > At any rate, I remember some vague mentionings on the list about a > > platform > > abstraction layer and it's being able to read files directly out of > > zips, > > which sounds like it would also be useful... was that a silverlight > > thing or > > am I confused? > > Nope, no SilverLight here, just a desktop app with MSCharts, win forms > and a whole lot of IronRuby metaprogramming goodness. > -- > 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 Mon Jan 25 02:41:18 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 25 Jan 2010 07:41:18 +0000 Subject: [Ironruby-core] FYI Code Review: rackupdate4 Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BB7A1@TK5EX14MBXC141.redmond.corp.microsoft.com> tfpt unshelve /shelveset:"rackupdate4;REDMOND\jimmysch" Note: the diff has been truncated of adding a Rails example and a bunch of gems (see below). --- Fixes for running rack-based applications Ruby changes: - Put ESPIPE class in Errno module; it was defined at top-level which is incorrect, and Sinatra's error-reporting depends on it. - Remove 'hacks' from irake; it doesn't exist anymore IronRuby.Rack changes: - request.body is always a string - rack.input should never have a null contents (eg. StringIO.new(nil)). - rack.version should be set to Rack::VERSION, rather than hardcoded. - Ruby errors shouldn't be swallowed because the error handler threw - Generate the rack env with Ruby types the first time around, and only execute Ruby code where needed. - Make sure AppPath is a full path - Lazy load web.config settings, and allow setting RACK_ENV from web.config. - Remove locks in HttpHandler and HttpHandlerFactory; may revert this change after speaking with the ASP.NET team to better understand the request architecture. - Requests are processed asynchronously - Manually set TOPLEVEL_BINDING since it's not set automatically when IronRuby is embedded. - Canonlicalize paths of files added to the load path, so Ruby files always show "/" as the path separator. - Always log exceptions to ironrack.log, and only show them to the HTML page when RACK_ENV is 'development'. - Update Rails example app, and run all examples in RACK_ENV production mode. - Add Rails example that uses ActiveRecord (IronRuby.RailsDB.Example) - Update gems: rails 2.3.5, sinatra 0.9.4, ironruby-sqlserver 0.1.0, rspec 1.3.0, and make sure the executables are in the gembin dir. - Add Microsoft.Dynamic.csproj to IronRuby.Rack.sln - Update permissions instructions in README. - Clean up little perf test, and add an actual test of IronRuby.Rack, though testing is still very lacking. -------------- next part -------------- A non-text attachment was scrubbed... Name: rackupdate4.diff Type: application/octet-stream Size: 157871 bytes Desc: rackupdate4.diff URL: From mark.ryall at gmail.com Mon Jan 25 03:17:20 2010 From: mark.ryall at gmail.com (Mark Ryall) Date: Mon, 25 Jan 2010 19:17:20 +1100 Subject: [Ironruby-core] using custom controls with gestalt Message-ID: <43769a4a1001250017q3c2b0438i79cf01b1d0f9474e@mail.gmail.com> I'm preparing some demos of using silverlight+ironruby with gestalt. It's really impressive but i'd like to show an example using the bing map control but can't work out how to make external controls available. Here's what I thought I should do: * Created a Microsoft.Maps.slvx containing the Microsoft.Maps.MapControl.dll and Microsoft.Maps.MapControl.Common.dll * Cracked open the dlr.xap file and added to the manifest and packaged it up again The browser had cached dlr.xap which confused me for a while but I can now see the Microsoft.Maps.slvx is getting downloaded (i'm using my own little webserver tool - http://bitbucket.org/markryall/webshare/) but none of the classes seem to be available. Can anyone see what's missing? I'd also like to demo using silverlight 4 - does anyone know if changes are required to the gestalt dlr.js, dlr.xap etc. to use the new features (camera control etc.)? Mark. From thibaut.barrere at gmail.com Mon Jan 25 05:56:53 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 25 Jan 2010 11:56:53 +0100 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Message-ID: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> Hello, doing my first real test on Windows 7 - I installed the latest IronRuby (using the MSI installer) and igem install rake issues the following error: ERROR: While executing gem ... (SystemCallError) unknown scenario - System.UnauthorizedAccessException, C:/Program Files/IronRuby 0.9.3.0/lib/ironruby/gems, Create My understanding is that it's linked to the permissions in Windows 7. If I manually create the gems folder and allow full control to the current user (not in administrator mode), then I get the following error: ERROR: While executing gem ... (ArgumentError) Illegal characters in path. Is there anyone currently running the MSI installed version of IronRuby on Windows 7 without these issues ? thanks, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Jan 25 06:15:10 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 12:15:10 +0100 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> Message-ID: move ironruby to a location without a space in the path like C:\ironruby --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 11:56 AM, Thibaut Barr?re wrote: > Hello, > > doing my first real test on Windows 7 - I installed the latest IronRuby > (using the MSI installer) and igem install rake issues the following error: > > ERROR: While executing gem ... (SystemCallError) > unknown scenario - System.UnauthorizedAccessException, C:/Program > Files/IronRuby 0.9.3.0/lib/ironruby/gems, Create > > My understanding is that it's linked to the permissions in Windows 7. > > If I manually create the gems folder and allow full control to the current > user (not in administrator mode), then I get the following error: > > ERROR: While executing gem ... (ArgumentError) > Illegal characters in path. > > Is there anyone currently running the MSI installed version of IronRuby on > Windows 7 without these issues ? > > thanks, > > -- Thibaut > > _______________________________________________ > 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 thibaut.barrere at gmail.com Mon Jan 25 07:58:34 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 25 Jan 2010 13:58:34 +0100 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> Message-ID: <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> > > move ironruby to a location without a space in the path like C:\ironruby > thanks - will try that. Is it worth filing a bug ? -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Jan 25 10:03:00 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 16:03:00 +0100 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> Message-ID: it's a known issue that should be fixed in the next release, AFAIK --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 1:58 PM, Thibaut Barr?re wrote: > move ironruby to a location without a space in the path like C:\ironruby >> > > thanks - will try that. Is it worth filing a bug ? > > -- Thibaut > > > _______________________________________________ > 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 thibaut.barrere at gmail.com Mon Jan 25 10:20:38 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 25 Jan 2010 16:20:38 +0100 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> Message-ID: <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> > > it's a known issue that should be fixed in the next release, AFAIK > > Thanks Ivan, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jan 25 11:56:17 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 17:56:17 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... Message-ID: I am trying to unit test my .NET CLR assembly using IronRuby spec framework. First, the following command does not work anymore igem install spec Now, I have to type the following: igem install rspec Anyway, when I run the following script: require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/bin/Debug/EStudy.Domain.Model.dll' include EStudy.Domain.Model.Model user = User.new describe User, "when user is created" do it "should not be null" do user.should == null end end I get the following error: C:\Projects\EStudyVS2008\EStudySoltution\EStudy\ConsoleApplication2>spec test_us er.rb --format nested ./bin/Debug/EStudy.Domain.Model.dll: 127: The specified procedure could not be f ound. - Init_EStudy (LoadError) ./bin/Debug/EStudy.Domain.Model.dll from c:/ruby/lib/ruby/site_ruby/1.8/ruby gems/custom_require.rb:31:in `require' from ./test_user.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 Any ideas! I am using the exactly the same code I used before. Before I used it on IronRuby 0.9 version and now I am using IronRuby RC. -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Jan 25 12:02:52 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 18:02:52 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: Message-ID: the command you want is ispec or you're mixing the gems from your MRI install in which case I'd say don't do that nastiness follows. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 5:56 PM, Mohammad Azam wrote: > I am trying to unit test my .NET CLR assembly using IronRuby spec > framework. First, the following command does not work anymore > > igem install spec > > Now, I have to type the following: > > igem install rspec > > Anyway, when I run the following script: > > > require 'rubygems' > require 'spec' > > require File.dirname(__FILE__) + '/bin/Debug/EStudy.Domain.Model.dll' > > include EStudy.Domain.Model.Model > > user = User.new > > describe User, "when user is created" do > > it "should not be null" do > > user.should == null > > end > > end > > I get the following error: > > > C:\Projects\EStudyVS2008\EStudySoltution\EStudy\ConsoleApplication2>spec > test_us > er.rb --format nested > ./bin/Debug/EStudy.Domain.Model.dll: 127: The specified procedure could > not be f > ound. - Init_EStudy (LoadError) > ./bin/Debug/EStudy.Domain.Model.dll from > c:/ruby/lib/ruby/site_ruby/1.8/ruby > gems/custom_require.rb:31:in `require' > from ./test_user.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 > > Any ideas! I am using the exactly the same code I used before. Before I > used it on IronRuby 0.9 version and now I am using IronRuby RC. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jan 25 12:04:04 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 17:04:04 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: Message-ID: Igem install spec never worked. It's always been igem install rspec. And before you complain about the confusion, that is the RSpec project's (rspec.info) choice, not ours. It also looks like when you run spec, you are running the Ruby version, not the IronRuby version. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 8:56 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Did Something Changed Again in Spec... I am trying to unit test my .NET CLR assembly using IronRuby spec framework. First, the following command does not work anymore igem install spec Now, I have to type the following: igem install rspec Anyway, when I run the following script: require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/bin/Debug/EStudy.Domain.Model.dll' include EStudy.Domain.Model.Model user = User.new describe User, "when user is created" do it "should not be null" do user.should == null end end I get the following error: C:\Projects\EStudyVS2008\EStudySoltution\EStudy\ConsoleApplication2>spec test_us er.rb --format nested ./bin/Debug/EStudy.Domain.Model.dll: 127: The specified procedure could not be f ound. - Init_EStudy (LoadError) ./bin/Debug/EStudy.Domain.Model.dll from c:/ruby/lib/ruby/site_ruby/1.8/ruby gems/custom_require.rb:31:in `require' from ./test_user.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 Any ideas! I am using the exactly the same code I used before. Before I used it on IronRuby 0.9 version and now I am using IronRuby RC. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From thibaut.barrere at gmail.com Mon Jan 25 12:05:22 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 25 Jan 2010 18:05:22 +0100 Subject: [Ironruby-core] Plans for Kernel.fork (even a stub) ? Message-ID: <4a68b8cf1001250905y6fc29c13oe3f317757af71126@mail.gmail.com> Hi, just curious as I'm going to patch an existing MRI lib around that and willing to ensure IronRuby support is baked in. What are the plans around Kernel.fork ? It looks like the method is not currently available (I'm going to check for this method existence in my case) Based on some code I read, I think Kernel.fork could just raise a NonImplementedError. what do you think ? -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jan 25 12:06:26 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 18:06:26 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: Message-ID: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> I did ran igem install spec and it worked fine in IR 0.9. Anyway, how should I make it work with IronRuby and not Ruby. Does this mean I have to alter the ENV path AGAIN! -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Jan 25 12:12:32 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 18:12:32 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: There is mspec, spec, rspec... In order to run IronRuby specification framework do I have to use rspec. Also, I think I have to set the ENVIRONMENT variables again for this to work right?? -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Jan 25 12:12:53 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 18:12:53 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: man! changing the PATH variable isn't needed it never worked the way you say. http://flanders.co.nz/2009/10/26/creating-launcher-scripts-for-ironruby/ follow that for the spec and spec.bat file --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 6:06 PM, Mohammad Azam wrote: > I did ran igem install spec and it worked fine in IR 0.9. Anyway, how > should I make it work with IronRuby and not Ruby. Does this mean I have > to alter the ENV path AGAIN! > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-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 Jan 25 12:16:53 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 17:16:53 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: For gems: Mspec is a simplified version of rspec for testing Ruby implementations. You shouldn't be using it unless you are testing a Ruby implementation. Spec does not exist. I don't know how you installed it before, but it doesn't exist. It is the name of the library that rspec installs Rspec is the BDD framework for Ruby that you appear to be looking for. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 9:13 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... There is mspec, spec, rspec... In order to run IronRuby specification framework do I have to use rspec. Also, I think I have to set the ENVIRONMENT variables again for this to work right?? -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Mon Jan 25 12:17:18 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 17:17:18 +0000 Subject: [Ironruby-core] Plans for Kernel.fork (even a stub) ? In-Reply-To: <4a68b8cf1001250905y6fc29c13oe3f317757af71126@mail.gmail.com> References: <4a68b8cf1001250905y6fc29c13oe3f317757af71126@mail.gmail.com> Message-ID: I think we should match MRI's error. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Monday, January 25, 2010 9:05 AM To: ironruby-core Subject: [Ironruby-core] Plans for Kernel.fork (even a stub) ? Hi, just curious as I'm going to patch an existing MRI lib around that and willing to ensure IronRuby support is baked in. What are the plans around Kernel.fork ? It looks like the method is not currently available (I'm going to check for this method existence in my case) Based on some code I read, I think Kernel.fork could just raise a NonImplementedError. what do you think ? -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jan 25 12:18:59 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 18:18:59 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: <02e8c76d8b64726bc5b0328ff439b68c@ruby-forum.com> The problem is that my command line does not recognize ispec or rspec or mspec. it only recognize spec which is basically ruby framework and not ironruby. Previously with IronRuby 0.9 I used the following command: spec test_prime.rb --format nested and it worked. Now, when I use spec it executes the ruby framework spec and not ironruby. In 0.9 I had to adjust environment variables so that IronRuby spec command can be executed from anywhere. Here is my article on that: http://www.highoncoding.com/Articles/585_Unit_Testing_CLR_Assembly_Using_IronRuby_with_Spec.aspx -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Jan 25 12:20:58 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 18:20:58 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: there is mspec, rspec, bacon, ..... Ironruby uses mspec The rest of the world (that means just about anything that isn't a ruby implementation) uses rspec, shoulda, bacon, test-unit, test-spec, .... All you need to do to run the specs for ironruby is that you have to execute dev.bat but I thought we worked out last time that this is probably not the best idea, because it's confusing if you're not used to working in the console and with the environment variables. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 6:12 PM, Mohammad Azam wrote: > There is mspec, spec, rspec... > > In order to run IronRuby specification framework do I have to use rspec. > Also, I think I have to set the ENVIRONMENT variables again for this to > work right?? > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Mon Jan 25 12:26:43 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 25 Jan 2010 18:26:43 +0100 Subject: [Ironruby-core] Plans for Kernel.fork (even a stub) ? In-Reply-To: References: <4a68b8cf1001250905y6fc29c13oe3f317757af71126@mail.gmail.com> Message-ID: <4a68b8cf1001250926i1ad9eb0j94920c69858a5878@mail.gmail.com> > > I think we should match MRI?s error. > Just tested - it looks like MRI raises NotImplementedError on Windows (just like in the code I was reading expected it to). Should I create an issue for this to get tracking ? (Nothing urgent in my case, I'll patch the code to check Kernel.methods.include?('fork')) -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jan 25 12:31:31 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 18:31:31 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: <9f91837697ff850426d4e0c918212d13@ruby-forum.com> I don't like to execute dev.bat each time I need to work with IronRuby. Why can't it just work out of the box like PowerShell. This is a big defect in the IronRuby. Too many configurations will scare developers away. People are not interested in setting paths in ENV variables, performing configuration settings in App.config to make sure that IronRuby is pointing to correct lib paths. Not many people are willing to try out IronRuby because of configuration issues. -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Jan 25 12:33:36 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 18:33:36 +0100 Subject: [Ironruby-core] can't generate the initializers Message-ID: Hi hi, what's wrong with this code http://gist.github.com/285354 when I generate things look right but of course I have no idea what right means there is content in the Initializer.generated.cs file Many many problems in my file and I can't seem to work out why. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Mon Jan 25 12:33:54 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 25 Jan 2010 18:33:54 +0100 Subject: [Ironruby-core] Plans for Kernel.fork (even a stub) ? In-Reply-To: <4a68b8cf1001250926i1ad9eb0j94920c69858a5878@mail.gmail.com> References: <4a68b8cf1001250905y6fc29c13oe3f317757af71126@mail.gmail.com> <4a68b8cf1001250926i1ad9eb0j94920c69858a5878@mail.gmail.com> Message-ID: <4a68b8cf1001250933p25e8b971q1531bcc694ba2ad0@mail.gmail.com> > > I think we should match MRI?s error. >> > Just tested - it looks like MRI raises NotImplementedError on Windows (just > like in the code I was reading expected it to). > Meanwhile here is a patch that works in my situation: http://gist.github.com/286052 I guess Mono would probably behave differently :) -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jan 25 12:36:39 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 18:36:39 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: <54855810d5f7557f6f62da60bfe19051@ruby-forum.com> Does that mean I have to go to the following folder: C:\DevTools\ironruby-1.0-rc1\lib\ironruby\gems\1.8\gems\rspec-1.3.0\bin and copy the files into the C:\DevTools\ironruby-1.0-rc1\bin folder? -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Jan 25 12:40:13 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 18:40:13 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <9f91837697ff850426d4e0c918212d13@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> Message-ID: Mohammed listen, If you just extract the ironruby.zip to c:\ironruby and add C:\ironruby\bin to your PATH you're good to go. always, everywhere. You're making it out to be harder than it is. I wrote this earlier but will do it again: You do igem install rspec when that completes copy C:\ironruby\lib\ironruby\gems\bin\spec C:\ironruby\bin\ispec copy C:\ironruby\lib\ironruby\gems\bin\spec.bat C:\ironruby\bin\ispec.bat now you're good to go. That wasn't hard was it. Now my advice to you is: * read a book on shell/batch scripting * first check if the problem isn't PEBKAC/user error/... * use google * learn properly about ruby and it's ecosystem and more importantly the way it works (the secret it's file based). As it so happens we sell training so feel free to hire us (http://whiterabbitconsulting.eu). * do stuff in piecemeal. start with the most simple thing you can think off * build your own gem so you know how it works * .... Did I mention don't badmouth stuff if the real problem is ignorance. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 6:31 PM, Mohammad Azam wrote: > I don't like to execute dev.bat each time I need to work with IronRuby. > Why can't it just work out of the box like PowerShell. > > This is a big defect in the IronRuby. Too many configurations will scare > developers away. People are not interested in setting paths in ENV > variables, performing configuration settings in App.config to make sure > that IronRuby is pointing to correct lib paths. > > Not many people are willing to try out IronRuby because of configuration > issues. > -- > 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 thibaut.barrere at gmail.com Mon Jan 25 12:41:18 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 25 Jan 2010 18:41:18 +0100 Subject: [Ironruby-core] Resque on IronRuby 1.0RC1 (it works) - some feedback Message-ID: <4a68b8cf1001250941p58fc847cv191e5ff956e08412@mail.gmail.com> Hello, some feedback from my experiments, in case that's useful to anyone: I wanted to see if I could use IronRuby to create Resque workers, and the answer looks like yes. Resque is a nice ruby/Redis-based message queue (introduction here: http://github.com/blog/542-introducing-resque). It comes with a Sinatra based UI (http://github.com/blog/543-new-resque-web-ui). I'm using Resque to push XML messages from a Rails internet-based back-end to IronRuby workers (that will do Excel spreadsheets generation amongst other things). To get this to work, use the edge version of Resque (not the gem 1.3.1), and tweak IronRuby to tell it doesn't support Kernel.fork ( http://gist.github.com/286052). hth, cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jan 25 12:41:39 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 18:41:39 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <54855810d5f7557f6f62da60bfe19051@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <54855810d5f7557f6f62da60bfe19051@ruby-forum.com> Message-ID: <162713f0325182ef8bbd8ca8a519a56a@ruby-forum.com> I guess there is no point doing all of this since IronRuby does not support rCov for code coverage for the .NET CLR assemblies. -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Mon Jan 25 12:44:06 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 17:44:06 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <9f91837697ff850426d4e0c918212d13@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> Message-ID: As we've talked about before, you only need dev.bat if you are developing IronRuby. If you are developing with IronRuby, you only need to use the installer. If you are embedding IronRuby, then there are app.config issues that need to be worked out, some of those can be handled by better tooling down the road, some of those can't be helped. Even those that can't be helped have alternate API's. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 9:32 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... I don't like to execute dev.bat each time I need to work with IronRuby. Why can't it just work out of the box like PowerShell. This is a big defect in the IronRuby. Too many configurations will scare developers away. People are not interested in setting paths in ENV variables, performing configuration settings in App.config to make sure that IronRuby is pointing to correct lib paths. Not many people are willing to try out IronRuby because of configuration issues. -- 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 Mon Jan 25 12:44:08 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 18:44:08 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> Message-ID: OKay let's do this step by step. I am failing on step ONE! C:\Projects\EStudyVS2008\EStudySoltution\EStudy\ConsoleApplication2>igem install rspec ERROR: While executing gem ... (RangeError) bignum too big to convert into Fixnum -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Mon Jan 25 12:45:12 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 17:45:12 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <162713f0325182ef8bbd8ca8a519a56a@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <54855810d5f7557f6f62da60bfe19051@ruby-forum.com> <162713f0325182ef8bbd8ca8a519a56a@ruby-forum.com> Message-ID: Feel free to port rCov to IronRuby to support a) the subset of rCov written in C. b) adding integration for .NET profiling. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 9:42 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... I guess there is no point doing all of this since IronRuby does not support rCov for code coverage for the .NET CLR assemblies. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Mon Jan 25 12:45:49 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 17:45:49 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> Message-ID: What version of IronRuby? -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 9:44 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... OKay let's do this step by step. I am failing on step ONE! C:\Projects\EStudyVS2008\EStudySoltution\EStudy\ConsoleApplication2>igem install rspec ERROR: While executing gem ... (RangeError) bignum too big to convert into Fixnum -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Mon Jan 25 13:02:58 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 19:02:58 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> Message-ID: <080df83174c67aaafaae395f518187bf@ruby-forum.com> Okay that worked out but I am still not comfortable copying files and renaming them to batch files and putting them in the bin directory of the IronRuby folder. Also switching back and forth between the dev.bat and console. Also, cmd console is not able to find dev.bat from anywhere so I have to manually execute it from the folder that contains dev.bat. I am willing to learn IronRuby and spend countless hours using this cool dynamic language. But I am afraid people are just going to GIVE UP trying to solve these configuration issues. Setting paths, copying and renaming their batch files to ispec whatever... I am not trying to put down IronRuby but sorry this is not going to work in the real world. -- Posted via http://www.ruby-forum.com/. From ryan.riley at panesofglass.org Mon Jan 25 13:06:58 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 25 Jan 2010 12:06:58 -0600 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <080df83174c67aaafaae395f518187bf@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> Message-ID: Why are you using dev.bat? Are you developing IronRuby? If not, don't use it. It's unnecessary unless you are working on or debugging IronRuby. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Mon, Jan 25, 2010 at 12:02 PM, Mohammad Azam wrote: > Okay that worked out but I am still not comfortable copying files and > renaming them to batch files and putting them in the bin directory of > the IronRuby folder. Also switching back and forth between the dev.bat > and console. Also, cmd console is not able to find dev.bat from anywhere > so I have to manually execute it from the folder that contains dev.bat. > > I am willing to learn IronRuby and spend countless hours using this cool > dynamic language. But I am afraid people are just going to GIVE UP > trying to solve these configuration issues. Setting paths, copying and > renaming their batch files to ispec whatever... > > I am not trying to put down IronRuby but sorry this is not going to work > in the real world. > -- > 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 ivan at flanders.co.nz Mon Jan 25 13:07:13 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 19:07:13 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <080df83174c67aaafaae395f518187bf@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> Message-ID: this will change soon when you can do ir -S spec spec/**/*_spec.rb --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 7:02 PM, Mohammad Azam wrote: > Okay that worked out but I am still not comfortable copying files and > renaming them to batch files and putting them in the bin directory of > the IronRuby folder. Also switching back and forth between the dev.bat > and console. Also, cmd console is not able to find dev.bat from anywhere > so I have to manually execute it from the folder that contains dev.bat. > > I am willing to learn IronRuby and spend countless hours using this cool > dynamic language. But I am afraid people are just going to GIVE UP > trying to solve these configuration issues. Setting paths, copying and > renaming their batch files to ispec whatever... > > I am not trying to put down IronRuby but sorry this is not going to work > in the real world. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jan 25 13:11:59 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 18:11:59 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <080df83174c67aaafaae395f518187bf@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> Message-ID: When the -S support gets checked in, we shouldn't need copying files and so on. Again dev.bat IS NOT NEEDED for anyone who doesn't develop IronRuby itself, it is only needed to use the IronRuby sources to build IronRuby. It is expected that dev.bat won't be found unless you add dev.bat to the path. We don't plan on changing that since we don't want to mess with peoples' paths from the git repo. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 10:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... Okay that worked out but I am still not comfortable copying files and renaming them to batch files and putting them in the bin directory of the IronRuby folder. Also switching back and forth between the dev.bat and console. Also, cmd console is not able to find dev.bat from anywhere so I have to manually execute it from the folder that contains dev.bat. I am willing to learn IronRuby and spend countless hours using this cool dynamic language. But I am afraid people are just going to GIVE UP trying to solve these configuration issues. Setting paths, copying and renaming their batch files to ispec whatever... I am not trying to put down IronRuby but sorry this is not going to work in the real 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 ryan.riley at panesofglass.org Mon Jan 25 13:13:21 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 25 Jan 2010 12:13:21 -0600 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: This is just basic Ruby. If you want to use Ruby, you have to learn Ruby's nuances. :) Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Mon, Jan 25, 2010 at 11:12 AM, Mohammad Azam wrote: > There is mspec, spec, rspec... > > In order to run IronRuby specification framework do I have to use rspec. > Also, I think I have to set the ENVIRONMENT variables again for this to > work right?? > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core 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 Jan 25 13:21:49 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 18:21:49 +0000 Subject: [Ironruby-core] Review: ActiveRecord tests In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C899655@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C899655@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Utr.rb: Please replace @disabled = 0 if @disabled == nil with @disabled ||= 0 Why are we undefining methods instead of aliasing them to noop? I'm not pulled too strongly in either direction, but I'd like to know. If we are going to undef, then get rid of the noop definition. Generate_test-unit_tags.rb: Couldn't all of ensure_single_fault_per_method_name be accomplished by: faults.map {|e| test_method_name(e)}.uniq Rest looks good. JD From: Shri Borde Sent: Sunday, January 24, 2010 9:55 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActiveRecord tests tfpt review /shelveset:ar;sborde Enables active_record tests in irtests.rb. They require SQLExpress to be installed on the machine. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jan 25 13:24:41 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 19:24:41 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: Currently in order to run spec I did the following: 1) Set the environment variable for IronRuby (This is done to use IronRuby on the machine) 2) Copying the files and renaming them. 3) Add IronRuby configs in App.config if I need to invoke spec command from C#. Sorry to say but 90% of the people will bail out and NOT use IronRuby. I have experienced the same feedback from people who were in my IronRuby presentation. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Jan 25 13:41:22 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 19:41:22 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: <763cc48de44382d2610035e00e7f82de@ruby-forum.com> >> This is just basic Ruby. If you want to use Ruby, you have to learn >> Ruby's >> nuances. :) Disagree! You don't have to perform configurations in Ruby. It just works :) -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Jan 25 13:43:39 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 19:43:39 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <080df83174c67aaafaae395f518187bf@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> Message-ID: interesting you are not opposed to having an installer mess up your system which involves several clicks, registry entries but are opposed to adding an entry to PATH and copying 2 files to make an app, which is still in development, work. But good to know what we can do to make it even easier for people to get on board. would running a small script or installing a gem be better for you? Can I change the path permanently through the registry or something? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 7:02 PM, Mohammad Azam wrote: > Okay that worked out but I am still not comfortable copying files and > renaming them to batch files and putting them in the bin directory of > the IronRuby folder. Also switching back and forth between the dev.bat > and console. Also, cmd console is not able to find dev.bat from anywhere > so I have to manually execute it from the folder that contains dev.bat. > > I am willing to learn IronRuby and spend countless hours using this cool > dynamic language. But I am afraid people are just going to GIVE UP > trying to solve these configuration issues. Setting paths, copying and > renaming their batch files to ispec whatever... > > I am not trying to put down IronRuby but sorry this is not going to work > in the real world. > -- > 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 Jan 25 13:50:34 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 19:50:34 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> Message-ID: <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> The problem is that every person has their own IronRuby folder. It has to work same for everyone. Kind of like libraries in GAC. You are NOT thinking throughly about the problem! This is not regarding putting the path in ENV variables and copying couple of files. This is about doing the same thing for 10 servers. I don't think you will be comfortable doing the same for 10 servers. This also adds extra work for writing build scripts that will do this work. Maybe the IronRuby installation should add the IronRuby folder to a common path which is same for all the machines. Kind of like when installing the .NET framework which is usually on a common place. -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Mon Jan 25 13:50:59 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 18:50:59 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> Message-ID: 1) what environment variable do you need to set? 2)will be changed soone 3) why are you invoking the spec command from C#?????? It makes sense to use other ruby libraries, but it's odd (to me) to use the spec command from within C#. We've also mentioned that yes, this could be easier, but we don't have the resources at current. Most .NET dev's have had to deal with config files, so I don't think your presentation experience is typical of most developers. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 10:25 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... Currently in order to run spec I did the following: 1) Set the environment variable for IronRuby (This is done to use IronRuby on the machine) 2) Copying the files and renaming them. 3) Add IronRuby configs in App.config if I need to invoke spec command from C#. Sorry to say but 90% of the people will bail out and NOT use IronRuby. I have experienced the same feedback from people who were in my IronRuby presentation. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Shri.Borde at microsoft.com Mon Jan 25 14:10:00 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 25 Jan 2010 19:10:00 +0000 Subject: [Ironruby-core] Review: ActiveRecord tests In-Reply-To: References: <8E45365BECA665489F3CB8878A6C1B7D0C899655@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C899E3E@TK5EX14MBXC140.redmond.corp.microsoft.com> Inline... From: Jim Deville Sent: Monday, January 25, 2010 10:22 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests Utr.rb: Please replace @disabled = 0 if @disabled == nil with @disabled ||= 0 [Shri Borde] Sounds good Why are we undefining methods instead of aliasing them to noop? I'm not pulled too strongly in either direction, but I'd like to know. If we are going to undef, then get rid of the noop definition. [Shri Borde] Aliasing to noop will still causes setup and teardown of the test to run, and there can be (and are) errors in those methods, resulting in an error associated with the test. Undefing fixes this. Will get rid of noop. Generate_test-unit_tags.rb: Couldn't all of ensure_single_fault_per_method_name be accomplished by: faults.map {|e| test_method_name(e)}.uniq [Shri Borde] The issue is that there can be two different faults for a test, one a failure and one an error. I want to keep just one of these so that we emit just one "disable ClassName, :test_name" line. #uniq does not work because the faults will not compare as equal. Rest looks good. JD From: Shri Borde Sent: Sunday, January 24, 2010 9:55 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActiveRecord tests tfpt review /shelveset:ar;sborde Enables active_record tests in irtests.rb. They require SQLExpress to be installed on the machine. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jan 25 14:17:55 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 19:17:55 +0000 Subject: [Ironruby-core] Review: ActiveRecord tests In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C899E3E@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C899655@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C899E3E@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: >Generate_test-unit_tags.rb: >Couldn't all of ensure_single_fault_per_method_name be accomplished by: > >faults.map {|e| test_method_name(e)}.uniq >[Shri Borde] The issue is that there can be two different faults for a test, one a failure and one an error. I want to keep just one of these so that we emit just one >"disable ClassName, :test_name" line. #uniq does not work because the faults will not compare as equal. I thought include used the same equal call as uniq, or is there something else going on here? JD From: Shri Borde Sent: Monday, January 25, 2010 11:10 AM To: Jim Deville; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests Inline... From: Jim Deville Sent: Monday, January 25, 2010 10:22 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests Utr.rb: Please replace @disabled = 0 if @disabled == nil with @disabled ||= 0 [Shri Borde] Sounds good Why are we undefining methods instead of aliasing them to noop? I'm not pulled too strongly in either direction, but I'd like to know. If we are going to undef, then get rid of the noop definition. [Shri Borde] Aliasing to noop will still causes setup and teardown of the test to run, and there can be (and are) errors in those methods, resulting in an error associated with the test. Undefing fixes this. Will get rid of noop. Generate_test-unit_tags.rb: Couldn't all of ensure_single_fault_per_method_name be accomplished by: faults.map {|e| test_method_name(e)}.uniq [Shri Borde] The issue is that there can be two different faults for a test, one a failure and one an error. I want to keep just one of these so that we emit just one "disable ClassName, :test_name" line. #uniq does not work because the faults will not compare as equal. Rest looks good. JD From: Shri Borde Sent: Sunday, January 24, 2010 9:55 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActiveRecord tests tfpt review /shelveset:ar;sborde Enables active_record tests in irtests.rb. They require SQLExpress to be installed on the machine. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jan 25 14:20:23 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 19:20:23 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> Message-ID: If you want to deploy easily, then you can include the needed files in the same directory as the DLL. Every programming system I have ever used requires setup, it's not hard to script setting up ENV variables and copying files. We do this kind of thing on 20+ machines for testing for IronRuby and IronPython. Using the installer does install to a common location, %ProgramFiles%. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 10:51 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... The problem is that every person has their own IronRuby folder. It has to work same for everyone. Kind of like libraries in GAC. You are NOT thinking throughly about the problem! This is not regarding putting the path in ENV variables and copying couple of files. This is about doing the same thing for 10 servers. I don't think you will be comfortable doing the same for 10 servers. This also adds extra work for writing build scripts that will do this work. Maybe the IronRuby installation should add the IronRuby folder to a common path which is same for all the machines. Kind of like when installing the .NET framework which is usually on a common place. -- 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 flanders.co.nz Mon Jan 25 14:34:48 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 20:34:48 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> Message-ID: I'm sorry if I offended you that wasn't my intention. Don't tell me I'm not thinking. 1. Do you know what gems are and how they work? It's like the GAC 2. It's easy to find out the location of a certain file from script and go from there (killing the need for the PATH variable) 3. exactly it's about a repeatable and scriptable process. so I don't think an installer will do the trick you know, but invoking an included script does. 4. I fully realise what a build server is, how you do automated deployments and how you provision many machines fast and quite frankly script the lot so I don't have to do it twice. So my advice stands Buy a book on batch scripting learn how ruby works. if you're provisioning a server the idea is that you're in control of where you download and extract the zip. so you know and it will probably be the same on another server you create and provision with your script (rocket science, I think not) killing the need for a preordained location which probably isn't where I want it. You don't even need to set the path and if you're running a script it's easy to do so in the script. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 7:50 PM, Mohammad Azam wrote: > The problem is that every person has their own IronRuby folder. It has > to work same for everyone. Kind of like libraries in GAC. > > You are NOT thinking throughly about the problem! > > This is not regarding putting the path in ENV variables and copying > couple of files. This is about doing the same thing for 10 servers. I > don't think you will be comfortable doing the same for 10 servers. > > This also adds extra work for writing build scripts that will do this > work. > > Maybe the IronRuby installation should add the IronRuby folder to a > common path which is same for all the machines. Kind of like when > installing the .NET framework which is usually on a common place. > > > -- > 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 orion.edwards at gmail.com Mon Jan 25 14:44:44 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Tue, 26 Jan 2010 08:44:44 +1300 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> Message-ID: <7c1b59c01001251144o3d646caenf904ad5c654dab2c@mail.gmail.com> On Tue, Jan 26, 2010 at 7:50 AM, Mohammad Azam wrote: > The problem is that every person has their own IronRuby folder. It has > to work same for everyone. Kind of like libraries in GAC. > > You are NOT thinking throughly about the problem! > > This is not regarding putting the path in ENV variables and copying > couple of files. This is about doing the same thing for 10 servers. I > don't think you will be comfortable doing the same for 10 servers. > Seriously? If a developer isn't comfortable with setting ENV variables what hope do they have to actually write decent code? Even visual studio has it's own special command prompt runner (guess what, it's a bat file, just like dev.bat) Regarding 10 servers, why not? You can write a setup script once and execute it on those 10 servers. > This also adds extra work for writing build scripts that will do this > work. > > Maybe the IronRuby installation should add the IronRuby folder to a > common path which is same for all the machines. Kind of like when > installing the .NET framework which is usually on a common place. > The .NET framework does not add it's folder to the common path. Try run regasm on a clean windows 7 machine from the command prompt and watch it fail. This does however raise a small question - does the IronRuby MSI installer drop a registry entry that others can use to determine the installation path? That seems to be common practice amongst windows apps, and might be handy -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jan 25 14:45:09 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 20:45:09 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> Message-ID: <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> You are completely missing my point!!!! gems are like GAC but IronRuby is not using them as GAC. It is using it like a simple zip file extraction and folder path mechanism. Since, it is not an installable every developer can download the IronRuby framework in a different folder. Which means that on all the machines the ENV variable is different and now gems are downloaded also in the different folders. If we install IronRuby like "Ruby" using one click installer then chances are high that it will reside in a common directory. Using the method about I have to announce to all developers that please keep your files in C:\IronRuby folder. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Jan 25 14:47:19 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 20:47:19 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <7c1b59c01001251144o3d646caenf904ad5c654dab2c@mail.gmail.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <7c1b59c01001251144o3d646caenf904ad5c654dab2c@mail.gmail.com> Message-ID: >>Seriously? If a developer isn't comfortable with setting ENV variables >>what >>hope do they have to actually write decent code? Even visual studio has >>it's >>own special command prompt runner (guess what, it's a bat file, just >>like >>dev.bat) Can we move forward to solve the problem instead of mocking? -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Mon Jan 25 14:55:01 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 19:55:01 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> Message-ID: First, can you please join the mailing list so that we don't have to figure out your context. The forum doesn't include the thread. Gems are not like the GAC. The location of the GAC is hard to change, yes you can do it via hint paths, but you will probably break something. Gems are easy to move. Simply set your GEM_PATH environment variable. You can also redirect the binary location at install time. Some of the tools out there change the location of these things on purpose to allow you to setup different "environments". Gems are better compared to *nix packaging systems than to the GAC. They handle dependency loading, installation, versioning, etc. If you need the IronRuby folder in the "right" location, then require your users to use the installer with default options. However, even then, you are requiring your users to go through the greater issue of installing IronRuby and all of your required gems. You are also requiring them to keep up with your versions if you choose to update. I would expect people to include the IronRuby dll's and the required ruby libraries with their application, just like they would do with .NET libraries. Then the setup isn't a problem since it is only setting up the app. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 11:45 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... You are completely missing my point!!!! gems are like GAC but IronRuby is not using them as GAC. It is using it like a simple zip file extraction and folder path mechanism. Since, it is not an installable every developer can download the IronRuby framework in a different folder. Which means that on all the machines the ENV variable is different and now gems are downloaded also in the different folders. If we install IronRuby like "Ruby" using one click installer then chances are high that it will reside in a common directory. Using the method about I have to announce to all developers that please keep your files in C:\IronRuby folder. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ryan.riley at panesofglass.org Mon Jan 25 15:00:28 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 25 Jan 2010 14:00:28 -0600 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> References: <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> Message-ID: Have you used the IronRuby installer? When I used it, it asked me for a directory and defaulted to Program Files. How is that different than the one-click Ruby installer? Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Mon, Jan 25, 2010 at 1:45 PM, Mohammad Azam wrote: > You are completely missing my point!!!! > > gems are like GAC but IronRuby is not using them as GAC. It is using it > like a simple zip file extraction and folder path mechanism. Since, it > is not an installable every developer can download the IronRuby > framework in a different folder. Which means that on all the machines > the ENV variable is different and now gems are downloaded also in the > different folders. If we install IronRuby like "Ruby" using one click > installer then chances are high that it will reside in a common > directory. Using the method about I have to announce to all developers > that please keep your files in C:\IronRuby folder. > > > > > > -- > 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 Jan 25 15:03:22 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 21:03:22 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> Message-ID: <05afbad3e38bb2edc3949e42543b9027@ruby-forum.com> Most people will use Program files then c"\IronRuby or c:\devtools\Ironruby. Consider this thread closed! -- Posted via http://www.ruby-forum.com/. From ryan.riley at panesofglass.org Mon Jan 25 15:06:22 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 25 Jan 2010 14:06:22 -0600 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> Message-ID: On Mon, Jan 25, 2010 at 1:55 PM, Jim Deville wrote: > If you need the IronRuby folder in the "right" location, then require your > users to use the installer with default options. However, even then, you are > requiring your users to go through the greater issue of installing IronRuby > and all of your required gems. You are also requiring them to keep up with > your versions if you choose to update. I would expect people to include the > IronRuby dll's and the required ruby libraries with their application, just > like they would do with .NET libraries. Then the setup isn't a problem since > it is only setting up the app. Right. This isn't .NET, so it shouldn't behave like .NET. If developers are going to use Ruby, then they need to learn to use Ruby. You want to solve a problem, but I'm not seeing that a problem exists. The gem issue seems to be sorted soon with the dash_s addition. Other problems, such as C extensions, are problems for any non-MRI / Ruby 1.9 implementation, and everyone is working on how to sort that out. IronRuby is still in development, and the team is doing a terrific job getting it there. You're going to have to help people shift their expectations to get them onto IronRuby. I don't expect (and don't want) IronRuby to work like C# or VB.NET in Visual Studio. It's a totally different animal altogether, which is what makes it so fun to use! So, what exactly is the problem you want to solve? And please don't mention config settings (already an issue for other .NET libraries), ENV variables (already optional in MRI), or gem naming issues, as these aren't related to IronRuby. Regards, Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Jan 25 15:07:30 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 21:07:30 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> References: <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> Message-ID: rofl seriously? You don't know when to call it quits do you. If you want to duplicate environments you just zip up your installation, copy it around, extract and add the location to the path (the last isn't mandatory, because you can still use absolute paths, after all if you announce to developers where it needs to be then that's where they need to extract it to). In this case everybody has the same gems and config. How is that worse than running an installer and requiring clicks? By the way your problem will go a way with the next version of the ironruby installer (remember that this is still in development). --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 8:45 PM, Mohammad Azam wrote: > You are completely missing my point!!!! > > gems are like GAC but IronRuby is not using them as GAC. It is using it > like a simple zip file extraction and folder path mechanism. Since, it > is not an installable every developer can download the IronRuby > framework in a different folder. Which means that on all the machines > the ENV variable is different and now gems are downloaded also in the > different folders. If we install IronRuby like "Ruby" using one click > installer then chances are high that it will reside in a common > directory. Using the method about I have to announce to all developers > that please keep your files in C:\IronRuby folder. > > > > > > -- > 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 Shri.Borde at microsoft.com Mon Jan 25 14:30:13 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 25 Jan 2010 19:30:13 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> Ivan, do you remember what the known issue is? I can't remember seeing a discussion about UnauthorizedAccessException. Just making sure that the bug is really being tracked From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Monday, January 25, 2010 7:21 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) it's a known issue that should be fixed in the next release, AFAIK Thanks Ivan, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jan 25 15:15:13 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 25 Jan 2010 21:15:13 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> Message-ID: <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> I was trying to make ironruby to perform code coverage for a .NET assembly using rcov but it seems like it is not currently supported yet.. -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Mon Jan 25 15:17:03 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 20:17:03 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <763cc48de44382d2610035e00e7f82de@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <763cc48de44382d2610035e00e7f82de@ruby-forum.com> Message-ID: Disagree. Try installing Ruby without the one click installer from source. Try using ruby without gem and rake installed. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 10:41 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... >> This is just basic Ruby. If you want to use Ruby, you have to learn >> Ruby's nuances. :) Disagree! You don't have to perform configurations in Ruby. It just works :) -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Mon Jan 25 15:17:18 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 21:17:18 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> References: <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> Message-ID: nope that's right. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 9:15 PM, Mohammad Azam wrote: > I was trying to make ironruby to perform code coverage for a .NET > assembly using rcov but it seems like it is not currently supported > yet.. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jan 25 15:23:20 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 20:23:20 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> Message-ID: RCov is partially written in C, so of course it is not supported yet. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, January 25, 2010 12:15 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... I was trying to make ironruby to perform code coverage for a .NET assembly using rcov but it seems like it is not currently supported yet.. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Mon Jan 25 15:42:43 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 21:42:43 +0100 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Program files is a protected location and contains a space in the path. I couldn't find a workitem. But all the problems would be solved by mimicking jruby and ruby's way and just putting it in C:\ironruby. This workitem is related though http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2969 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 8:30 PM, Shri Borde wrote: > Ivan, do you remember what the known issue is? I can?t remember seeing a > discussion about UnauthorizedAccessException. Just making sure that the bug > is really being tracked > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Thibaut Barr?re > *Sent:* Monday, January 25, 2010 7:21 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > it's a known issue that should be fixed in the next release, AFAIK > > > > > Thanks Ivan, > > > > -- Thibaut > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Mon Jan 25 15:20:34 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 25 Jan 2010 20:20:34 +0000 Subject: [Ironruby-core] Review: ActiveRecord tests In-Reply-To: References: <8E45365BECA665489F3CB8878A6C1B7D0C899655@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C899E3E@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C899FC9@TK5EX14MBXC140.redmond.corp.microsoft.com> "faults.map {|e| test_method_name(e)}.uniq" will give you a unique set of method names. I need an array of faults with a unique set of method names. If uniq took a block like sort does, that would work. From: Jim Deville Sent: Monday, January 25, 2010 11:18 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests >Generate_test-unit_tags.rb: >Couldn't all of ensure_single_fault_per_method_name be accomplished by: > >faults.map {|e| test_method_name(e)}.uniq >[Shri Borde] The issue is that there can be two different faults for a test, one a failure and one an error. I want to keep just one of these so that we emit just one >"disable ClassName, :test_name" line. #uniq does not work because the faults will not compare as equal. I thought include used the same equal call as uniq, or is there something else going on here? JD From: Shri Borde Sent: Monday, January 25, 2010 11:10 AM To: Jim Deville; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests Inline... From: Jim Deville Sent: Monday, January 25, 2010 10:22 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests Utr.rb: Please replace @disabled = 0 if @disabled == nil with @disabled ||= 0 [Shri Borde] Sounds good Why are we undefining methods instead of aliasing them to noop? I'm not pulled too strongly in either direction, but I'd like to know. If we are going to undef, then get rid of the noop definition. [Shri Borde] Aliasing to noop will still causes setup and teardown of the test to run, and there can be (and are) errors in those methods, resulting in an error associated with the test. Undefing fixes this. Will get rid of noop. Generate_test-unit_tags.rb: Couldn't all of ensure_single_fault_per_method_name be accomplished by: faults.map {|e| test_method_name(e)}.uniq [Shri Borde] The issue is that there can be two different faults for a test, one a failure and one an error. I want to keep just one of these so that we emit just one "disable ClassName, :test_name" line. #uniq does not work because the faults will not compare as equal. Rest looks good. JD From: Shri Borde Sent: Sunday, January 24, 2010 9:55 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActiveRecord tests tfpt review /shelveset:ar;sborde Enables active_record tests in irtests.rb. They require SQLExpress to be installed on the machine. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jan 25 15:49:08 2010 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 25 Jan 2010 20:49:08 +0000 Subject: [Ironruby-core] Review: ActiveRecord tests In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C899FC9@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C899655@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C899E3E@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C899FC9@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: My bad, I see what's going on. You are rejecting faults based on the condition, not the string method names. Looks good. JD From: Shri Borde Sent: Monday, January 25, 2010 12:21 PM To: Jim Deville; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests "faults.map {|e| test_method_name(e)}.uniq" will give you a unique set of method names. I need an array of faults with a unique set of method names. If uniq took a block like sort does, that would work. From: Jim Deville Sent: Monday, January 25, 2010 11:18 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests >Generate_test-unit_tags.rb: >Couldn't all of ensure_single_fault_per_method_name be accomplished by: > >faults.map {|e| test_method_name(e)}.uniq >[Shri Borde] The issue is that there can be two different faults for a test, one a failure and one an error. I want to keep just one of these so that we emit just one >"disable ClassName, :test_name" line. #uniq does not work because the faults will not compare as equal. I thought include used the same equal call as uniq, or is there something else going on here? JD From: Shri Borde Sent: Monday, January 25, 2010 11:10 AM To: Jim Deville; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests Inline... From: Jim Deville Sent: Monday, January 25, 2010 10:22 AM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: ActiveRecord tests Utr.rb: Please replace @disabled = 0 if @disabled == nil with @disabled ||= 0 [Shri Borde] Sounds good Why are we undefining methods instead of aliasing them to noop? I'm not pulled too strongly in either direction, but I'd like to know. If we are going to undef, then get rid of the noop definition. [Shri Borde] Aliasing to noop will still causes setup and teardown of the test to run, and there can be (and are) errors in those methods, resulting in an error associated with the test. Undefing fixes this. Will get rid of noop. Generate_test-unit_tags.rb: Couldn't all of ensure_single_fault_per_method_name be accomplished by: faults.map {|e| test_method_name(e)}.uniq [Shri Borde] The issue is that there can be two different faults for a test, one a failure and one an error. I want to keep just one of these so that we emit just one "disable ClassName, :test_name" line. #uniq does not work because the faults will not compare as equal. Rest looks good. JD From: Shri Borde Sent: Sunday, January 24, 2010 9:55 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: ActiveRecord tests tfpt review /shelveset:ar;sborde Enables active_record tests in irtests.rb. They require SQLExpress to be installed on the machine. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jan 25 16:19:14 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 25 Jan 2010 21:19:14 +0000 Subject: [Ironruby-core] can't generate the initializers In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C38461656@TK5EX14MBXC129.redmond.corp.microsoft.com> There seems to be a bug in the generator. It generates a method name using invalid characters (::) Load__Singleton_TheLandOfChocolate::OompaLoompa_Instance Could you please file a bug? Thanks, Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, January 25, 2010 9:34 AM To: ironruby-core Subject: [Ironruby-core] can't generate the initializers Hi hi, what's wrong with this code http://gist.github.com/285354 when I generate things look right but of course I have no idea what right means there is content in the Initializer.generated.cs file Many many problems in my file and I can't seem to work out why. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Jan 25 16:22:57 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 25 Jan 2010 21:22:57 +0000 Subject: [Ironruby-core] can't generate the initializers In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BBE9F@TK5EX14MBXC141.redmond.corp.microsoft.com> http://wiki.github.com/ironruby/ironruby/modifying-the-sources (see the ?Adding a new Ruby library class or method? section) The easiest way to fix any issues with Initializer.Generated.cs is to delete all the contents of Initializers.Generated.cs (but not the file itself), build (debug mode), run ?geninit? to repopulate the Initializers.Generated.cs, and build again. ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, January 25, 2010 9:34 AM To: ironruby-core Subject: [Ironruby-core] can't generate the initializers Hi hi, what's wrong with this code http://gist.github.com/285354 when I generate things look right but of course I have no idea what right means there is content in the Initializer.generated.cs file Many many problems in my file and I can't seem to work out why. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Jan 25 16:28:06 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 22:28:06 +0100 Subject: [Ironruby-core] can't generate the initializers In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920BBE9F@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920BBE9F@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: this is outside the ironruby source tree and not a class of ironruby itself. Are you saying I have to put my sources in the ironruby source tree for me to use those attributes? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 10:22 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > http://wiki.github.com/ironruby/ironruby/modifying-the-sources (see the > ?Adding a new Ruby library class or method? section) > > > > The easiest way to fix any issues with Initializer.Generated.cs is to > delete all the contents of Initializers.Generated.cs (but not the file > itself), build (debug mode), run ?geninit? to repopulate the > Initializers.Generated.cs, and build again. > > > > ~js > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, January 25, 2010 9:34 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] can't generate the initializers > > > > Hi > > hi, what's wrong with this code > > http://gist.github.com/285354 > > when I generate things look right but of course I have no idea > what right means > > there is content in the Initializer.generated.cs file > > > > Many many problems in my file and I can't seem to work out why. > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Jan 25 16:28:19 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 22:28:19 +0100 Subject: [Ironruby-core] can't generate the initializers In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C38461656@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C38461656@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: Ok will do --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 10:19 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > There seems to be a bug in the generator. It generates a method name using > invalid characters (::) > > > > Load__Singleton_TheLandOfChocolate::OompaLoompa_Instance > > > > Could you please file a bug? > > > > Thanks, > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, January 25, 2010 9:34 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] can't generate the initializers > > > > Hi > > hi, what's wrong with this code > > http://gist.github.com/285354 > > when I generate things look right but of course I have no idea > what right means > > there is content in the Initializer.generated.cs file > > > > Many many problems in my file and I can't seem to work out why. > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Jan 25 16:31:09 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 25 Jan 2010 22:31:09 +0100 Subject: [Ironruby-core] can't generate the initializers In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C38461656@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C38461656@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: But the TheLandOfChocolate file is properly attributed? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 10:19 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > There seems to be a bug in the generator. It generates a method name using > invalid characters (::) > > > > Load__Singleton_TheLandOfChocolate::OompaLoompa_Instance > > > > Could you please file a bug? > > > > Thanks, > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, January 25, 2010 9:34 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] can't generate the initializers > > > > Hi > > hi, what's wrong with this code > > http://gist.github.com/285354 > > when I generate things look right but of course I have no idea > what right means > > there is content in the Initializer.generated.cs file > > > > Many many problems in my file and I can't seem to work out why. > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Mon Jan 25 16:41:44 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 25 Jan 2010 21:41:44 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89A19A@TK5EX14MBXC140.redmond.corp.microsoft.com> Added a comment to the workitem? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, January 25, 2010 12:43 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Program files is a protected location and contains a space in the path. I couldn't find a workitem. But all the problems would be solved by mimicking jruby and ruby's way and just putting it in C:\ironruby. This workitem is related though http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2969 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 8:30 PM, Shri Borde > wrote: Ivan, do you remember what the known issue is? I can?t remember seeing a discussion about UnauthorizedAccessException. Just making sure that the bug is really being tracked From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Monday, January 25, 2010 7:21 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) it's a known issue that should be fixed in the next release, AFAIK Thanks Ivan, -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Mon Jan 25 16:55:16 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 25 Jan 2010 21:55:16 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> Btw, c:\ironruby will still need admin priviledges to install to, right? Does the one-click installer make the gem folder writable to all users (or atleast all Admin users)? What about on *nix? Without making the gem folder writable, ?igem install? will still fail. Making the folder writable to all users is a security hole, and ideally RubyGems will support a way to install to a per-user location, or elevate permission otherwise. I believe you need to use ?sudo gem install? on *nix. From: Shri Borde Sent: Monday, January 25, 2010 1:42 PM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Added a comment to the workitem? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, January 25, 2010 12:43 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Program files is a protected location and contains a space in the path. I couldn't find a workitem. But all the problems would be solved by mimicking jruby and ruby's way and just putting it in C:\ironruby. This workitem is related though http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2969 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 8:30 PM, Shri Borde > wrote: Ivan, do you remember what the known issue is? I can?t remember seeing a discussion about UnauthorizedAccessException. Just making sure that the bug is really being tracked From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Monday, January 25, 2010 7:21 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) it's a known issue that should be fixed in the next release, AFAIK Thanks Ivan, -- Thibaut _______________________________________________ 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 Jan 25 18:05:47 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Tue, 26 Jan 2010 00:05:47 +0100 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <67568604a7b3287bee0833857e0524fa@ruby-forum.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> <67568604a7b3287bee0833857e0524fa@ruby-forum.com> Message-ID: <54f4c996c12c23fe54d99979d61cb191@ruby-forum.com> Sam Clopton wrote: > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 > 14:33:19) [POST] > Parameters: > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", > "company"=>{"name"=>"hmmmjjj...", "comments"=>"test"}, > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} > User Load (0.0ms) SELECT TOP 1 * FROM [users] > WHERE ([users].[id] = '1')  > EXECUTE (15.6ms) BEGIN TRANSACTION > Company Create (46.9ms) INSERT INTO [companies] > ([name], [comments]) VALUES('hmmmjjj...', 'test') > SQL (0.0ms) SELECT SCOPE_IDENTITY() AS Ident > EXECUTE (0.0ms) COMMIT TRANSACTION > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companynamehmmmjjj...commentstestcommitSubmitcontrollercompaniesactioncreate > # > /companies/26900 > Redirected to http://127.0.0.1:3000/companies/26900 > > *** Old Adapter *** > > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 > 14:30:02) [POST] > Parameters: > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", > "company"=>{"name"=>"hmmmjj...", "comments"=>"test"}, > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companynamehmmmjj...commentstestcommitSubmitcontrollercompaniesactioncreate > # > /companies/268 > Redirected to http://127.0.0.1:3000/companies/268 > Completed in 1922ms (DB: 0) | 302 Found [http://127.0.0.1/companies] Jimmy, Do you have any suggestions or is there anything else I can do to help pin down this problem? Thanks, Sam -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Mon Jan 25 19:47:27 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 00:47:27 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> Jim and I were discussing the desired behavior, and it is a choice between security and convenience. http://ironpython-urls.blogspot.com/2009/10/distributing-ironpython-packages.html has information on how Python is dealing with the admin issue. Packages (the equivalent of gems) are installed to a per-user location. The IronRuby equivalent would be that every user has to install his/her own set of gems, and could be implemented by setting the GEM_PATH environment variable for the user to point to something like %USERPROFILE%. Any objection to this behavior? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Monday, January 25, 2010 1:55 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Btw, c:\ironruby will still need admin priviledges to install to, right? Does the one-click installer make the gem folder writable to all users (or atleast all Admin users)? What about on *nix? Without making the gem folder writable, ?igem install? will still fail. Making the folder writable to all users is a security hole, and ideally RubyGems will support a way to install to a per-user location, or elevate permission otherwise. I believe you need to use ?sudo gem install? on *nix. From: Shri Borde Sent: Monday, January 25, 2010 1:42 PM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Added a comment to the workitem? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, January 25, 2010 12:43 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Program files is a protected location and contains a space in the path. I couldn't find a workitem. But all the problems would be solved by mimicking jruby and ruby's way and just putting it in C:\ironruby. This workitem is related though http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2969 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 8:30 PM, Shri Borde > wrote: Ivan, do you remember what the known issue is? I can?t remember seeing a discussion about UnauthorizedAccessException. Just making sure that the bug is really being tracked From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Monday, January 25, 2010 7:21 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) it's a known issue that should be fixed in the next release, AFAIK Thanks Ivan, -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Mon Jan 25 19:58:06 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 00:58:06 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> Just realized that setting GEM_PATH will affect MRI too which would be a problem. So there will have to be some other way to implement the per-user IronRuby-specific location for gems. Assuming we can figure this out, the question still is if the per-user gems model sounds good? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Monday, January 25, 2010 4:47 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Jim and I were discussing the desired behavior, and it is a choice between security and convenience. http://ironpython-urls.blogspot.com/2009/10/distributing-ironpython-packages.html has information on how Python is dealing with the admin issue. Packages (the equivalent of gems) are installed to a per-user location. The IronRuby equivalent would be that every user has to install his/her own set of gems, and could be implemented by setting the GEM_PATH environment variable for the user to point to something like %USERPROFILE%. Any objection to this behavior? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Monday, January 25, 2010 1:55 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Btw, c:\ironruby will still need admin priviledges to install to, right? Does the one-click installer make the gem folder writable to all users (or atleast all Admin users)? What about on *nix? Without making the gem folder writable, ?igem install? will still fail. Making the folder writable to all users is a security hole, and ideally RubyGems will support a way to install to a per-user location, or elevate permission otherwise. I believe you need to use ?sudo gem install? on *nix. From: Shri Borde Sent: Monday, January 25, 2010 1:42 PM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Added a comment to the workitem? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, January 25, 2010 12:43 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Program files is a protected location and contains a space in the path. I couldn't find a workitem. But all the problems would be solved by mimicking jruby and ruby's way and just putting it in C:\ironruby. This workitem is related though http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2969 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 8:30 PM, Shri Borde > wrote: Ivan, do you remember what the known issue is? I can?t remember seeing a discussion about UnauthorizedAccessException. Just making sure that the bug is really being tracked From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Monday, January 25, 2010 7:21 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) it's a known issue that should be fixed in the next release, AFAIK Thanks Ivan, -- Thibaut _______________________________________________ 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 Jan 25 20:19:17 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 26 Jan 2010 01:19:17 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Ideally we would be setting GEM_PATH to somewhere in AppData. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Monday, January 25, 2010 4:47 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Jim and I were discussing the desired behavior, and it is a choice between security and convenience. http://ironpython-urls.blogspot.com/2009/10/distributing-ironpython-packages.html has information on how Python is dealing with the admin issue. Packages (the equivalent of gems) are installed to a per-user location. The IronRuby equivalent would be that every user has to install his/her own set of gems, and could be implemented by setting the GEM_PATH environment variable for the user to point to something like %USERPROFILE%. Any objection to this behavior? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Monday, January 25, 2010 1:55 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Btw, c:\ironruby will still need admin priviledges to install to, right? Does the one-click installer make the gem folder writable to all users (or atleast all Admin users)? What about on *nix? Without making the gem folder writable, ?igem install? will still fail. Making the folder writable to all users is a security hole, and ideally RubyGems will support a way to install to a per-user location, or elevate permission otherwise. I believe you need to use ?sudo gem install? on *nix. From: Shri Borde Sent: Monday, January 25, 2010 1:42 PM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Added a comment to the workitem? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, January 25, 2010 12:43 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Program files is a protected location and contains a space in the path. I couldn't find a workitem. But all the problems would be solved by mimicking jruby and ruby's way and just putting it in C:\ironruby. This workitem is related though http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2969 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 8:30 PM, Shri Borde > wrote: Ivan, do you remember what the known issue is? I can?t remember seeing a discussion about UnauthorizedAccessException. Just making sure that the bug is really being tracked From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Monday, January 25, 2010 7:21 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) it's a known issue that should be fixed in the next release, AFAIK Thanks Ivan, -- Thibaut _______________________________________________ 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.ryall at gmail.com Mon Jan 25 22:12:24 2010 From: mark.ryall at gmail.com (Mark Ryall) Date: Tue, 26 Jan 2010 14:12:24 +1100 Subject: [Ironruby-core] using custom controls with gestalt In-Reply-To: <43769a4a1001250017q3c2b0438i79cf01b1d0f9474e@mail.gmail.com> References: <43769a4a1001250017q3c2b0438i79cf01b1d0f9474e@mail.gmail.com> Message-ID: <43769a4a1001251912h7421b5efl874c0b029272a189@mail.gmail.com> In case anyone is curious - I got this to work by putting the Microsoft.Maps.MapControl.dll and Microsoft.Maps.MapControl.Common.dll assemblies directly into the DLR.xap file. This doesn't seem ideal - the slvx approach ensures that silverlight applications can avoid downloading command dependencies such as IronRuby, IronPython etc. once for every application. It's functional enough to show how easily silverlight applications can be created without needing an ide or a compiler. Mark. On Mon, Jan 25, 2010 at 7:17 PM, Mark Ryall wrote: > I'm preparing some demos of using silverlight+ironruby with gestalt. > > It's really impressive but i'd like to show an example using the bing > map control but can't work out how to make external controls > available. > > Here's what I thought I should do: > > * Created a Microsoft.Maps.slvx containing the > Microsoft.Maps.MapControl.dll and Microsoft.Maps.MapControl.Common.dll > * Cracked open the dlr.xap file and added Source="Microsoft.Maps.slvx" /> to the manifest and packaged it up > again > > The browser had cached dlr.xap which confused me for a while but I can > now see the Microsoft.Maps.slvx is getting downloaded (i'm using my > own little webserver tool - http://bitbucket.org/markryall/webshare/) > but none of the classes seem to be available. > > Can anyone see what's missing? > > I'd also like to demo using silverlight 4 - does anyone know if > changes are required to the gestalt dlr.js, dlr.xap etc. to use the > new features (camera control etc.)? > > Mark. > From ryan.riley at panesofglass.org Tue Jan 26 00:02:30 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 25 Jan 2010 23:02:30 -0600 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> References: <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> Message-ID: I asked about that earlier, as well, and got the response that it is not covered. I believe one of the goals post-1.0 is to get Ruby FFI working. If you'd like to see RCov working, you might write a patch to move RCov to Ruby FFI so that it will work on IronRuby once FFI support is working. And if you get that done, you might even be able to pitch in with the FFI implementation. I, for one, would appreciate it. :) Of course, I could do those, too, but I'm working on a few other things, atm. :) Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Mon, Jan 25, 2010 at 2:15 PM, Mohammad Azam wrote: > I was trying to make ironruby to perform code coverage for a .NET > assembly using rcov but it seems like it is not currently supported > yet.. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Tue Jan 26 00:06:53 2010 From: will at hotgazpacho.org (Will Green) Date: Tue, 26 Jan 2010 00:06:53 -0500 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are the default. This, of course, would require elevation (sudo gem install xxx). -- Will Green http://hotgazpacho.org/ On Mon, Jan 25, 2010 at 7:58 PM, Shri Borde wrote: > Just realized that setting GEM_PATH will affect MRI too which would be a > problem. So there will have to be some other way to implement the per-user > IronRuby-specific location for gems. Assuming we can figure this out, the > question still is if the per-user gems model sounds good? > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Shri Borde > *Sent:* Monday, January 25, 2010 4:47 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Jim and I were discussing the desired behavior, and it is a choice between > security and convenience. > http://ironpython-urls.blogspot.com/2009/10/distributing-ironpython-packages.htmlhas information on how Python is dealing with the admin issue. Packages (the > equivalent of gems) are installed to a per-user location. The IronRuby > equivalent would be that every user has to install his/her own set of gems, > and could be implemented by setting the GEM_PATH environment variable for > the user to point to something like %USERPROFILE%. Any objection to this > behavior? > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Shri Borde > *Sent:* Monday, January 25, 2010 1:55 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Btw, c:\ironruby will still need admin priviledges to install to, right? > > > > Does the one-click installer make the gem folder writable to all users (or > atleast all Admin users)? What about on *nix? Without making the gem folder > writable, ?igem install? will still fail. Making the folder writable to all > users is a security hole, and ideally RubyGems will support a way to install > to a per-user location, or elevate permission otherwise. I believe you need > to use ?sudo gem install? on *nix. > > > > *From:* Shri Borde > *Sent:* Monday, January 25, 2010 1:42 PM > *To:* ironruby-core at rubyforge.org > *Subject:* RE: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Added a comment to the workitem? > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, January 25, 2010 12:43 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Program files is a protected location and contains a space in the path. I > couldn't find a workitem. But all the problems would be solved > by mimicking jruby and ruby's way and just putting it in C:\ironruby. > > > > This workitem is related though > > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2969 > > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > On Mon, Jan 25, 2010 at 8:30 PM, Shri Borde > wrote: > > Ivan, do you remember what the known issue is? I can?t remember seeing a > discussion about UnauthorizedAccessException. Just making sure that the bug > is really being tracked > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Thibaut Barr?re > *Sent:* Monday, January 25, 2010 7:21 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > it's a known issue that should be fixed in the next release, AFAIK > > > > > Thanks Ivan, > > > > -- Thibaut > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 26 00:32:01 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 26 Jan 2010 05:32:01 +0000 Subject: [Ironruby-core] using custom controls with gestalt In-Reply-To: <43769a4a1001251912h7421b5efl874c0b029272a189@mail.gmail.com> References: <43769a4a1001250017q3c2b0438i79cf01b1d0f9474e@mail.gmail.com> <43769a4a1001251912h7421b5efl874c0b029272a189@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BC6A9@TK5EX14MBXC141.redmond.corp.microsoft.com> Mark, Putting the dlls in the XAP is one way to do it. You could also put them into a ZIP file, and in your app download the zip file and use Silverlight's Application.GetResourceStream API to extract the DLLs from the file, and call Assembly.Load on them. However, this is a bit annoying, so we support doing this: This lets you put files in a zip, and then access them like they were part of the "filesystem". However, I just tried this and I found a bug, so I'll check in a fix and let you know when it's fixed. ~Jimmy > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Mark Ryall > Sent: Monday, January 25, 2010 7:12 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] using custom controls with gestalt > > In case anyone is curious - I got this to work by putting the > Microsoft.Maps.MapControl.dll and Microsoft.Maps.MapControl.Common.dll > assemblies directly into the DLR.xap file. > > This doesn't seem ideal - the slvx approach ensures that silverlight > applications can avoid downloading command dependencies such as IronRuby, > IronPython etc. once for every application. > > It's functional enough to show how easily silverlight applications can be > created without needing an ide or a compiler. > > Mark. > > On Mon, Jan 25, 2010 at 7:17 PM, Mark Ryall wrote: > > I'm preparing some demos of using silverlight+ironruby with gestalt. > > > > It's really impressive but i'd like to show an example using the bing > > map control but can't work out how to make external controls > > available. > > > > Here's what I thought I should do: > > > > * Created a Microsoft.Maps.slvx containing the > > Microsoft.Maps.MapControl.dll and Microsoft.Maps.MapControl.Common.dll > > * Cracked open the dlr.xap file and added > Source="Microsoft.Maps.slvx" /> to the manifest and packaged it up > > again > > > > The browser had cached dlr.xap which confused me for a while but I can > > now see the Microsoft.Maps.slvx is getting downloaded (i'm using my > > own little webserver tool - http://bitbucket.org/markryall/webshare/) > > but none of the classes seem to be available. > > > > Can anyone see what's missing? > > > > I'd also like to demo using silverlight 4 - does anyone know if > > changes are required to the gestalt dlr.js, dlr.xap etc. to use the > > new features (camera control etc.)? > > > > Mark. > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Tue Jan 26 03:37:42 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 26 Jan 2010 08:37:42 +0000 Subject: [Ironruby-core] dealing with TFS In-Reply-To: References: <45CD7A57-421C-4737-BAFE-90BB940B8E13@gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BC932@TK5EX14MBXC141.redmond.corp.microsoft.com> That blogpost is basically all Jim and I would want to do ? wrap the GIT and TFS command-lines. A step above that would be to use grit (GIT implementation in Ruby ? or even Git#) as well as the TFS APIs. But as Jim said, we haven?t found the time to make this really nice, so I welcome anyone else to do so. As a starter, here?s my notes on using TFS and GIT together; it?d be great to just get some easy-to-use scripts to wrap this up: http://gist.github.com/286677 ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Saturday, January 23, 2010 3:06 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] dealing with TFS svnbridge doesn't work with rubymine or git-svn but it does with tortoise etc. The source control needs to work from within the environment, at least that's what the boss told me. this looks promising too with a few rake tasks perhaps: http://jeroen.haegebaert.com/post/2008/08/23/Dealing-with-the-quirks-of-TFS-using-git-take-2 I'll check out the ironruby source code too on how you do it. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sat, Jan 23, 2010 at 11:38 PM, Orion Edwards > wrote: We've got a couple of people using the TFS->SVN bridge, which I think is made by the codeplex guys. It's SLOW, but it works well for them, as they're on smaller projects. On 24/01/2010, at 4:28 AM, Ivan Porto Carrero wrote: Hi How do you guys deal with TFS? My guys have settled on Rubymine as their IDE, but their SCM is TFS of course as it's a .NET shop. As you're well aware off TFS has the unfortunate habit of marking files as read-only and AFAIK there isn't an easy way to make it detect new files short of going through all the folders and manually adding the new files. When you're on a roll with a rails app for example this can mean there are quite a few files that need to be added. What is the workflow you settled on? use git for everything and once in a while make it sync with TFS? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 26 03:43:19 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 26 Jan 2010 08:43:19 +0000 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BC96B@TK5EX14MBXC141.redmond.corp.microsoft.com> Basically, Ruby is able to do all the crazy mocking stuff because of its mutable type system, and the only way to make the CLR's type-system mutable is to rewrite the IL. To put it in SAT terms: "rewriting IL" is to "static languages" as "monkey-patching" is to "dynamic languages" =P ~Jimmy > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Sunday, January 24, 2010 1:31 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Mocking behavior between clr types > > Hi Ivan, > > I was thinking Mono.Cecil first and then the CLR profiling API as I'm pretty > sure that will work. I used a similar approach for > http://blog.benhall.me.uk/2008/11/net-fault-injection-very-early-proof- > of.html > but the fault injection was done via some Microsoft Research stuff. > Either approach your re-writing IL, it just depends which layer you work > with. > > Lots of interesting problems to solve. Then it would just need a nice Ruby > wrapper so it's transparent to the end user - ideally incorporating the > backend work into Caricature. > > Ben > > On Sun, Jan 24, 2010 at 8:34 PM, Ivan Porto Carrero > wrote: > > You don't need to do anything as drastic as disassemble dlls though :). > > There are several solutions and I think the cleanest one is to use the > > CLR profiling API. ?Another avenue I could take is to use Mono.Cecil > > but I don't like the idea of the IL rewriting stuff. heck even > > postsharp would probably do the trick. > > I need to look into the CLR profiling API to make the rest of the > > stuff happening as that is the cleanest solution IMO. The limitation > > only exists if you're mocking CLR classes for use in other CLR > > classes. If you're going to use it in ruby code you can do whatever you > want. > > My mocker does most of what Moq and Rhino.Mocks do, except that it > > doesn't use LCG or expression trees but just the reflection API once > > per type. from there on out it uses ruby to do its job. > > What I need to add but don't know if they are really necessary are > > call count constraints. > > And I also want to make the RSpec integration a little bit better so > > that you can enlist an expectation for verification too. > > The docs are a bit outdated too, best is to look into > > spec/bacon/integration that's where I test out the new features or syntax > additions. > > I have a chapter in my book that explains the use of Caricature with > > RSpec which will be in the update at the end of january. Contact me > > off list if you want a discount :) > > --- > > Met vriendelijke groeten - Best regards - Salutations Ivan Porto > > Carrero > > Blog: http://flanders.co.nz > > Twitter: http://twitter.com/casualjim > > Author of IronRuby in Action (http://manning.com/carrero) > > > > > > > > On Sun, Jan 24, 2010 at 8:16 PM, andrew Wilson > wrote: > >> > >> Ivan, > >> > >> Seems like a what I was looking for, however according to the > >> documentation it says it can only mock virtuals and non-static though. > >> > >> I don't want that restriction :(? One of the advantages I was hoping > >> to leverage was the ability to re-write methods that I wouldn't > >> otherwise be able to. > >> > >> -A > >> > >> -- > >> When I wrote this, only God and I understood what I was doing. ?Now, > >> God only knows - Karl Weierstrass > >> > >> _______________________________________________ > >> 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 Jan 26 03:48:13 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 26 Jan 2010 08:48:13 +0000 Subject: [Ironruby-core] Is it possible to generate DLLs? In-Reply-To: References: <58f693957744286f131efe57f54bc891@ruby-forum.com> <9d78564d2e5cb73e3fc9a577778fa9c0@ruby-forum.com> <608e7071a7d092d5700383fa852d738b@ruby-forum.com> <2E98E7CD-E686-4880-9488-20616A84B529@gmail.com> <7c1b59c01001241129s6561bf08wafe3454d73c82fd8@mail.gmail.com> <201202a7e375d25e08e6c87d40b3cadc@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BC98F@TK5EX14MBXC141.redmond.corp.microsoft.com> After 1.0 we?ll be making IronRuby integrate better with its ?static? world. I?m not sure the current state of precompiling, but I?m pretty sure we?re not even testing it. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Sunday, January 24, 2010 11:21 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Is it possible to generate DLLs? using a zip format blocks you from using it in certain ways like adding it as a reference to visual studio. Nobody says your dll needs to contain just ruby code. It can contain thin C# wrappers for example. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 3:04 AM, Bassel Samman > wrote: Orion Edwards wrote: > Sure :-) I realise the world of enterprises is not neccessarily the > world of > reason or logic :-) > > At any rate, I remember some vague mentionings on the list about a > platform > abstraction layer and it's being able to read files directly out of > zips, > which sounds like it would also be useful... was that a silverlight > thing or > am I confused? Nope, no SilverLight here, just a desktop app with MSCharts, win forms and a whole lot of IronRuby metaprogramming goodness. -- 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 Tue Jan 26 03:52:14 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 26 Jan 2010 08:52:14 +0000 Subject: [Ironruby-core] can't generate the initializers In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC920BBE9F@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BC9B0@TK5EX14MBXC141.redmond.corp.microsoft.com> Sorry for the confusion, I didn?t realize you were just building an external IronRuby library. Can you also open a bug against the generator to not spit the ?Copyright (c) Microsoft Corporation? out into user-code? =P ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, January 25, 2010 1:28 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] can't generate the initializers this is outside the ironruby source tree and not a class of ironruby itself. Are you saying I have to put my sources in the ironruby source tree for me to use those attributes? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Jan 25, 2010 at 10:22 PM, Jimmy Schementi > wrote: http://wiki.github.com/ironruby/ironruby/modifying-the-sources (see the ?Adding a new Ruby library class or method? section) The easiest way to fix any issues with Initializer.Generated.cs is to delete all the contents of Initializers.Generated.cs (but not the file itself), build (debug mode), run ?geninit? to repopulate the Initializers.Generated.cs, and build again. ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, January 25, 2010 9:34 AM To: ironruby-core Subject: [Ironruby-core] can't generate the initializers Hi hi, what's wrong with this code http://gist.github.com/285354 when I generate things look right but of course I have no idea what right means there is content in the Initializer.generated.cs file Many many problems in my file and I can't seem to work out why. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jan 26 04:03:49 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 26 Jan 2010 10:03:49 +0100 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920BC96B@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920BC96B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: I'm not sure if the CLR profiling API is in Mono I'd have to find that out first. My thing against mono.cecil is that you need to instrument the DLL and rewrite the IL before running your app. I'd prefer to do stuff during instead of beforehand. I need to be able to intercept and decide whether to go on or not. I've been googling the CLR profiling API a little yesterday, and I have to go through the mailinglist archive to find the links Shri sent me last year about this subject. I did get the expert IL assembler book which also came out of that discussion but haven't gotten round to actually reading it yet. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 9:43 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Basically, Ruby is able to do all the crazy mocking stuff because of its > mutable type system, and the only way to make the CLR's type-system mutable > is to rewrite the IL. To put it in SAT terms: > > "rewriting IL" is to "static languages" as "monkey-patching" is to "dynamic > languages" > > =P > > ~Jimmy > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > > bounces at rubyforge.org] On Behalf Of Ben Hall > > Sent: Sunday, January 24, 2010 1:31 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Mocking behavior between clr types > > > > Hi Ivan, > > > > I was thinking Mono.Cecil first and then the CLR profiling API as I'm > pretty > > sure that will work. I used a similar approach for > > http://blog.benhall.me.uk/2008/11/net-fault-injection-very-early-proof- > > of.html > > but the fault injection was done via some Microsoft Research stuff. > > Either approach your re-writing IL, it just depends which layer you work > > with. > > > > Lots of interesting problems to solve. Then it would just need a nice > Ruby > > wrapper so it's transparent to the end user - ideally incorporating the > > backend work into Caricature. > > > > Ben > > > > On Sun, Jan 24, 2010 at 8:34 PM, Ivan Porto Carrero > > > wrote: > > > You don't need to do anything as drastic as disassemble dlls though :). > > > There are several solutions and I think the cleanest one is to use the > > > CLR profiling API. Another avenue I could take is to use Mono.Cecil > > > but I don't like the idea of the IL rewriting stuff. heck even > > > postsharp would probably do the trick. > > > I need to look into the CLR profiling API to make the rest of the > > > stuff happening as that is the cleanest solution IMO. The limitation > > > only exists if you're mocking CLR classes for use in other CLR > > > classes. If you're going to use it in ruby code you can do whatever you > > want. > > > My mocker does most of what Moq and Rhino.Mocks do, except that it > > > doesn't use LCG or expression trees but just the reflection API once > > > per type. from there on out it uses ruby to do its job. > > > What I need to add but don't know if they are really necessary are > > > call count constraints. > > > And I also want to make the RSpec integration a little bit better so > > > that you can enlist an expectation for verification too. > > > The docs are a bit outdated too, best is to look into > > > spec/bacon/integration that's where I test out the new features or > syntax > > additions. > > > I have a chapter in my book that explains the use of Caricature with > > > RSpec which will be in the update at the end of january. Contact me > > > off list if you want a discount :) > > > --- > > > Met vriendelijke groeten - Best regards - Salutations Ivan Porto > > > Carrero > > > Blog: http://flanders.co.nz > > > Twitter: http://twitter.com/casualjim > > > Author of IronRuby in Action (http://manning.com/carrero) > > > > > > > > > > > > On Sun, Jan 24, 2010 at 8:16 PM, andrew Wilson > > wrote: > > >> > > >> Ivan, > > >> > > >> Seems like a what I was looking for, however according to the > > >> documentation it says it can only mock virtuals and non-static though. > > >> > > >> I don't want that restriction :( One of the advantages I was hoping > > >> to leverage was the ability to re-write methods that I wouldn't > > >> otherwise be able to. > > >> > > >> -A > > >> > > >> -- > > >> When I wrote this, only God and I understood what I was doing. Now, > > >> God only knows - Karl Weierstrass > > >> > > >> _______________________________________________ > > >> Ironruby-core mailing list > > >> Ironruby-core at rubyforge.org > > >> http://rubyforge.org/mailman/listinfo/ironruby-core > > >> > > > > > > > > > _______________________________________________ > > > Ironruby-core mailing list > > > Ironruby-core at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 26 04:06:01 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 26 Jan 2010 09:06:01 +0000 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <54f4c996c12c23fe54d99979d61cb191@ruby-forum.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> <67568604a7b3287bee0833857e0524fa@ruby-forum.com> <54f4c996c12c23fe54d99979d61cb191@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BC9EA@TK5EX14MBXC141.redmond.corp.microsoft.com> I wanted to see "p @company" (equivalent of "puts @company.inspect") to see what fields it had, since ActiveRecord shows detailed view of the object, including fields. Really I want to see whether the ID is "269" or "26900". Ivan, does this issue seem at all familiar to you? Sam, it'd be helpful if you could produce a small repro, just with ActiveRecord alone, that shows the ID being appended with two zeros. I'd suggest using script\console as it gives you an environment preconfigured for ActiveRecord. If we have a targeted repo of the issue, it'll be easier to diagnose and fix. Ideally, you could just send me the application zipped up, but at a minimum I'll need the migration that creates the table, the model file, and whatever other code reproduces the error. ~Jimmy > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Sam Clopton > Sent: Monday, January 25, 2010 3:06 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Updated Rails instructions > > Sam Clopton wrote: > > > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 > > 14:33:19) [POST] > > Parameters: > > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", > > "company"=>{"name"=>"hmmmjjj...", "comments"=>"test"}, > > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} > > User Load (0.0ms) SELECT TOP 1 * FROM [users] > > WHERE ([users].[id] = '1')  > > EXECUTE (15.6ms) BEGIN TRANSACTION > > Company Create (46.9ms) INSERT INTO [companies] > > ([name], [comments]) VALUES('hmmmjjj...', 'test') > > SQL (0.0ms) SELECT SCOPE_IDENTITY() AS Ident > > EXECUTE (0.0ms) COMMIT TRANSACTION > > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn > > amehmmmjjj...commentstestcommitSubmitcontrollercompaniesactioncreate > > # > > /companies/26900 > > Redirected to http://127.0.0.1:3000/companies/26900 > > > > *** Old Adapter *** > > > > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 > > 14:30:02) [POST] > > Parameters: > > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", > > "company"=>{"name"=>"hmmmjj...", "comments"=>"test"}, > > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} > > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn > > amehmmmjj...commentstestcommitSubmitcontrollercompaniesactioncreate > > # > > /companies/268 > > Redirected to http://127.0.0.1:3000/companies/268 > > Completed in 1922ms (DB: 0) | 302 Found [http://127.0.0.1/companies] > > Jimmy, > > Do you have any suggestions or is there anything else I can do to help pin > down this problem? > > Thanks, > Sam > -- > 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 flanders.co.nz Tue Jan 26 04:07:34 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 26 Jan 2010 10:07:34 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> Message-ID: How does implementing FFI provide code coverage for the CLR, isn't that mutually exclusive? Shouldn't FFI provide us with a way to use C-based extensions? But C-based extensions won't know about the ironruby internals etc. Just thinking out loud so feel free to correct me :) Also aren't the stacks produced by IronRuby a little different from the stacks produced by MRI for example. To get code coverage for the CLR is that again the CLR profiling API you would leverage? could somebody point me in the right direction? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 6:02 AM, Ryan Riley wrote: > I asked about that earlier, as well, and got the response that it is not > covered. I believe one of the goals post-1.0 is to get Ruby FFI working. If > you'd like to see RCov working, you might write a patch to move RCov to Ruby > FFI so that it will work on IronRuby once FFI support is working. And if you > get that done, you might even be able to pitch in with the FFI > implementation. I, for one, would appreciate it. :) Of course, I could do > those, too, but I'm working on a few other things, atm. :) > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > On Mon, Jan 25, 2010 at 2:15 PM, Mohammad Azam wrote: > >> I was trying to make ironruby to perform code coverage for a .NET >> assembly using rcov but it seems like it is not currently supported >> yet.. >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jan 26 04:09:11 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 26 Jan 2010 10:09:11 +0100 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920BC9EA@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> <67568604a7b3287bee0833857e0524fa@ruby-forum.com> <54f4c996c12c23fe54d99979d61cb191@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BC9EA@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: I'm not seeing that issue atm but I'll work on ironruby-sqlserver tonight. So if Sam wants to send me a repro I can also look at the cause for his problem and hopefully fix it. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 10:06 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > I wanted to see "p @company" (equivalent of "puts @company.inspect") to see > what fields it had, since ActiveRecord shows detailed view of the object, > including fields. Really I want to see whether the ID is "269" or "26900". > > Ivan, does this issue seem at all familiar to you? > > Sam, it'd be helpful if you could produce a small repro, just with > ActiveRecord alone, that shows the ID being appended with two zeros. I'd > suggest using script\console as it gives you an environment preconfigured > for ActiveRecord. If we have a targeted repo of the issue, it'll be easier > to diagnose and fix. Ideally, you could just send me the application zipped > up, but at a minimum I'll need the migration that creates the table, the > model file, and whatever other code reproduces the error. > > ~Jimmy > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > > bounces at rubyforge.org] On Behalf Of Sam Clopton > > Sent: Monday, January 25, 2010 3:06 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Updated Rails instructions > > > > Sam Clopton wrote: > > > > > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 > > > 14:33:19) [POST] > > > Parameters: > > > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", > > > "company"=>{"name"=>"hmmmjjj...", "comments"=>"test"}, > > > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} > > > [4;36;1mUser Load (0.0ms) [0m [0;1mSELECT TOP 1 * FROM [users] > > > WHERE ([users].[id] = '1') [0m > > > [4;35;1mEXECUTE (15.6ms) [0m [0mBEGIN TRANSACTION [0m > > > [4;36;1mCompany Create (46.9ms) [0m [0;1mINSERT INTO [companies] > > > ([name], [comments]) VALUES('hmmmjjj...', 'test') [0m > > > [4;35;1mSQL (0.0ms) [0m [0mSELECT SCOPE_IDENTITY() AS Ident [0m > > > [4;36;1mEXECUTE (0.0ms) [0m [0;1mCOMMIT TRANSACTION [0m > > > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn > > > amehmmmjjj...commentstestcommitSubmitcontrollercompaniesactioncreate > > > # > > > /companies/26900 > > > Redirected to http://127.0.0.1:3000/companies/26900 > > > > > > *** Old Adapter *** > > > > > > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 > > > 14:30:02) [POST] > > > Parameters: > > > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", > > > "company"=>{"name"=>"hmmmjj...", "comments"=>"test"}, > > > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} > > > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn > > > amehmmmjj...commentstestcommitSubmitcontrollercompaniesactioncreate > > > # > > > /companies/268 > > > Redirected to http://127.0.0.1:3000/companies/268 > > > Completed in 1922ms (DB: 0) | 302 Found [http://127.0.0.1/companies] > > > > Jimmy, > > > > Do you have any suggestions or is there anything else I can do to help > pin > > down this problem? > > > > Thanks, > > Sam > > -- > > 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 thibaut.barrere at gmail.com Tue Jan 26 04:16:37 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 26 Jan 2010 10:16:37 +0100 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> Message-ID: <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut From Jimmy.Schementi at microsoft.com Tue Jan 26 04:17:21 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 26 Jan 2010 09:17:21 +0000 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> You?re correct Ivan. Today RCov isn?t even supported on IronRuby because it uses a small c-extension. As Shri said previously, it?d be great if someone could remove the dependency on the C-extension (easiest way is to write the equivalent Ruby code ? what Ryan is suggesting is a better way-long-term goal for IronRuby to be compatible with FFI-based extensions), and then RCov would work for code coverage of only ruby code. Now, imagine that was done, and it was called ironruby-rcov ? this wouldn?t work for code coverage of your .NET code, so you?ll have to use the CLR code coverage tools. Only at that point could you think about add CLR support to ironruby-rcov. Make sense now? ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, January 26, 2010 1:08 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... How does implementing FFI provide code coverage for the CLR, isn't that mutually exclusive? Shouldn't FFI provide us with a way to use C-based extensions? But C-based extensions won't know about the ironruby internals etc. Just thinking out loud so feel free to correct me :) Also aren't the stacks produced by IronRuby a little different from the stacks produced by MRI for example. To get code coverage for the CLR is that again the CLR profiling API you would leverage? could somebody point me in the right direction? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 6:02 AM, Ryan Riley > wrote: I asked about that earlier, as well, and got the response that it is not covered. I believe one of the goals post-1.0 is to get Ruby FFI working. If you'd like to see RCov working, you might write a patch to move RCov to Ruby FFI so that it will work on IronRuby once FFI support is working. And if you get that done, you might even be able to pitch in with the FFI implementation. I, for one, would appreciate it. :) Of course, I could do those, too, but I'm working on a few other things, atm. :) Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Mon, Jan 25, 2010 at 2:15 PM, Mohammad Azam > wrote: I was trying to make ironruby to perform code coverage for a .NET assembly using rcov but it seems like it is not currently supported yet.. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jan 26 04:36:08 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 26 Jan 2010 10:36:08 +0100 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: rcov has a pure ruby variant too IIRC. And for the sake of this discussion let's just say that that works as is with IronRuby. Then I'd be looking at the CLR profiling api again isn't it. And to enable that profiling API don't I have to instrument my dll with some constants so it knows it's going to be profiled? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 10:17 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > You?re correct Ivan. Today RCov isn?t even supported on IronRuby because it > uses a small c-extension. As Shri said previously, it?d be great if someone > could remove the dependency on the C-extension (easiest way is to write the > equivalent Ruby code ? what Ryan is suggesting is a better way-long-term > goal for IronRuby to be compatible with FFI-based extensions), and then RCov > would work for code coverage of *only ruby code.* Now, imagine that was > done, and it was called ironruby-rcov ? this wouldn?t work for code coverage > of your .NET code, so you?ll have to use the CLR code coverage tools. Only > at that point could you think about add CLR support to ironruby-rcov. > > > > Make sense now? > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Tuesday, January 26, 2010 1:08 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Did Something Changed Again in Spec... > > > > How does implementing FFI provide code coverage for the CLR, isn't that > mutually exclusive? Shouldn't FFI provide us with a way to use C-based > extensions? But C-based extensions won't know about the ironruby internals > etc. Just thinking out loud so feel free to correct me :) > > > > Also aren't the stacks produced by IronRuby a little different from the > stacks produced by MRI for example. > > > > To get code coverage for the CLR is that again the CLR profiling API you > would leverage? could somebody point me in the right direction? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > On Tue, Jan 26, 2010 at 6:02 AM, Ryan Riley > wrote: > > I asked about that earlier, as well, and got the response that it is not > covered. I believe one of the goals post-1.0 is to get Ruby FFI working. If > you'd like to see RCov working, you might write a patch to move RCov to Ruby > FFI so that it will work on IronRuby once FFI support is working. And if you > get that done, you might even be able to pitch in with the FFI > implementation. I, for one, would appreciate it. :) Of course, I could do > those, too, but I'm working on a few other things, atm. :) > > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Mon, Jan 25, 2010 at 2:15 PM, Mohammad Azam > wrote: > > I was trying to make ironruby to perform code coverage for a .NET > assembly using rcov but it seems like it is not currently supported > yet.. > > -- > > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jan 26 04:39:52 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 26 Jan 2010 10:39:52 +0100 Subject: [Ironruby-core] can't generate the initializers In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920BC9B0@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920BBE9F@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC920BC9B0@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: bugs have been submitted http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3655 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 9:52 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Sorry for the confusion, I didn?t realize you were just building an > external IronRuby library. > > > > Can you also open a bug against the generator to not spit the ?Copyright > (c) Microsoft Corporation? out into user-code? =P > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, January 25, 2010 1:28 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] can't generate the initializers > > > > this is outside the ironruby source tree and not a class of ironruby > itself. > > > > Are you saying I have to put my sources in the ironruby source tree for me > to use those attributes? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > On Mon, Jan 25, 2010 at 10:22 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > > http://wiki.github.com/ironruby/ironruby/modifying-the-sources (see the > ?Adding a new Ruby library class or method? section) > > > > The easiest way to fix any issues with Initializer.Generated.cs is to > delete all the contents of Initializers.Generated.cs (but not the file > itself), build (debug mode), run ?geninit? to repopulate the > Initializers.Generated.cs, and build again. > > > > ~js > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, January 25, 2010 9:34 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] can't generate the initializers > > > > Hi > > hi, what's wrong with this code > > http://gist.github.com/285354 > > when I generate things look right but of course I have no idea > what right means > > there is content in the Initializer.generated.cs file > > > > Many many problems in my file and I can't seem to work out why. > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > _______________________________________________ > 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 mark.ryall at gmail.com Tue Jan 26 05:35:47 2010 From: mark.ryall at gmail.com (Mark Ryall) Date: Tue, 26 Jan 2010 21:35:47 +1100 Subject: [Ironruby-core] using custom controls with gestalt In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920BC6A9@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <43769a4a1001250017q3c2b0438i79cf01b1d0f9474e@mail.gmail.com> <43769a4a1001251912h7421b5efl874c0b029272a189@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920BC6A9@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <43769a4a1001260235g7d0a5448g2ea5fa48c0dd50f8@mail.gmail.com> Thanks. That's excellent - I can easily load gems that way too I guess (adding foo.zip to the load path). I got the impression from the "sl back to just text" document that loading zips wasn't implemented yet - should've just given it a try. Gestalt does seem really awesome - providing textmate bundles is a nice touch. On Tue, Jan 26, 2010 at 4:32 PM, Jimmy Schementi wrote: > Mark, > > Putting the dlls in the XAP is one way to do it. You could also put them into a ZIP file, and in your app download the zip file and use Silverlight's Application.GetResourceStream API to extract the DLLs from the file, and call Assembly.Load on them. However, this is a bit annoying, so we support doing this: > > > > > This lets you put files in a zip, and then access them like they were part of the "filesystem". However, I just tried this and I found a bug, so I'll check in a fix and let you know when it's fixed. > > ~Jimmy > >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >> bounces at rubyforge.org] On Behalf Of Mark Ryall >> Sent: Monday, January 25, 2010 7:12 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] using custom controls with gestalt >> >> In case anyone is curious - I got this to work by putting the >> Microsoft.Maps.MapControl.dll and Microsoft.Maps.MapControl.Common.dll >> assemblies directly into the DLR.xap file. >> >> This doesn't seem ideal - the slvx approach ensures that silverlight >> applications can avoid downloading command dependencies such as IronRuby, >> IronPython etc. once for every application. >> >> It's functional enough to show how easily silverlight applications can be >> created without needing an ide or a compiler. >> >> Mark. >> >> On Mon, Jan 25, 2010 at 7:17 PM, Mark Ryall wrote: >> > I'm preparing some demos of using silverlight+ironruby with gestalt. >> > >> > It's really impressive but i'd like to show an example using the bing >> > map control but can't work out how to make external controls >> > available. >> > >> > Here's what I thought I should do: >> > >> > * Created a Microsoft.Maps.slvx containing the >> > Microsoft.Maps.MapControl.dll and Microsoft.Maps.MapControl.Common.dll >> > * Cracked open the dlr.xap file and added > > Source="Microsoft.Maps.slvx" /> to the manifest and packaged it up >> > again >> > >> > The browser had cached dlr.xap which confused me for a while but I can >> > now see the Microsoft.Maps.slvx is getting downloaded (i'm using my >> > own little webserver tool - http://bitbucket.org/markryall/webshare/) >> > but none of the classes seem to be available. >> > >> > Can anyone see what's missing? >> > >> > I'd also like to demo using silverlight 4 - does anyone know if >> > changes are required to the gestalt dlr.js, dlr.xap etc. to use the >> > new features (camera control etc.)? >> > >> > Mark. >> > >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From ryan.riley at panesofglass.org Tue Jan 26 08:39:08 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Tue, 26 Jan 2010 07:39:08 -0600 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: What Jimmy said. :D Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Jan 26, 2010 at 3:17 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > You?re correct Ivan. Today RCov isn?t even supported on IronRuby because it > uses a small c-extension. As Shri said previously, it?d be great if someone > could remove the dependency on the C-extension (easiest way is to write the > equivalent Ruby code ? what Ryan is suggesting is a better way-long-term > goal for IronRuby to be compatible with FFI-based extensions), and then RCov > would work for code coverage of *only ruby code.* Now, imagine that was > done, and it was called ironruby-rcov ? this wouldn?t work for code coverage > of your .NET code, so you?ll have to use the CLR code coverage tools. Only > at that point could you think about add CLR support to ironruby-rcov. > > > > Make sense now? > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Tuesday, January 26, 2010 1:08 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Did Something Changed Again in Spec... > > > > How does implementing FFI provide code coverage for the CLR, isn't that > mutually exclusive? Shouldn't FFI provide us with a way to use C-based > extensions? But C-based extensions won't know about the ironruby internals > etc. Just thinking out loud so feel free to correct me :) > > > > Also aren't the stacks produced by IronRuby a little different from the > stacks produced by MRI for example. > > > > To get code coverage for the CLR is that again the CLR profiling API you > would leverage? could somebody point me in the right direction? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > On Tue, Jan 26, 2010 at 6:02 AM, Ryan Riley > wrote: > > I asked about that earlier, as well, and got the response that it is not > covered. I believe one of the goals post-1.0 is to get Ruby FFI working. If > you'd like to see RCov working, you might write a patch to move RCov to Ruby > FFI so that it will work on IronRuby once FFI support is working. And if you > get that done, you might even be able to pitch in with the FFI > implementation. I, for one, would appreciate it. :) Of course, I could do > those, too, but I'm working on a few other things, atm. :) > > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Mon, Jan 25, 2010 at 2:15 PM, Mohammad Azam > wrote: > > I was trying to make ironruby to perform code coverage for a .NET > assembly using rcov but it seems like it is not currently supported > yet.. > > -- > > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Tue Jan 26 08:42:02 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Tue, 26 Jan 2010 07:42:02 -0600 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Also, I think Ruby's FFI is relatively new and not in great use, atm, so even adding FFI to IronRuby wouldn't do a whole lot to enable the C extensions of most Ruby libraries until those are ported to use FFI. Is that right? Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Jan 26, 2010 at 3:17 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > You?re correct Ivan. Today RCov isn?t even supported on IronRuby because it > uses a small c-extension. As Shri said previously, it?d be great if someone > could remove the dependency on the C-extension (easiest way is to write the > equivalent Ruby code ? what Ryan is suggesting is a better way-long-term > goal for IronRuby to be compatible with FFI-based extensions), and then RCov > would work for code coverage of *only ruby code.* Now, imagine that was > done, and it was called ironruby-rcov ? this wouldn?t work for code coverage > of your .NET code, so you?ll have to use the CLR code coverage tools. Only > at that point could you think about add CLR support to ironruby-rcov. > > > > Make sense now? > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Tuesday, January 26, 2010 1:08 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Did Something Changed Again in Spec... > > > > How does implementing FFI provide code coverage for the CLR, isn't that > mutually exclusive? Shouldn't FFI provide us with a way to use C-based > extensions? But C-based extensions won't know about the ironruby internals > etc. Just thinking out loud so feel free to correct me :) > > > > Also aren't the stacks produced by IronRuby a little different from the > stacks produced by MRI for example. > > > > To get code coverage for the CLR is that again the CLR profiling API you > would leverage? could somebody point me in the right direction? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > On Tue, Jan 26, 2010 at 6:02 AM, Ryan Riley > wrote: > > I asked about that earlier, as well, and got the response that it is not > covered. I believe one of the goals post-1.0 is to get Ruby FFI working. If > you'd like to see RCov working, you might write a patch to move RCov to Ruby > FFI so that it will work on IronRuby once FFI support is working. And if you > get that done, you might even be able to pitch in with the FFI > implementation. I, for one, would appreciate it. :) Of course, I could do > those, too, but I'm working on a few other things, atm. :) > > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > On Mon, Jan 25, 2010 at 2:15 PM, Mohammad Azam > wrote: > > I was trying to make ironruby to perform code coverage for a .NET > assembly using rcov but it seems like it is not currently supported > yet.. > > -- > > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Tue Jan 26 08:50:52 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Tue, 26 Jan 2010 07:50:52 -0600 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: On Tue, Jan 26, 2010 at 3:36 AM, Ivan Porto Carrero wrote: > rcov has a pure ruby variant too IIRC. And for the sake of this discussion > let's just say that that works as is with IronRuby. > > Then I'd be looking at the CLR profiling api again isn't it. > And to enable that profiling API don't I have to instrument my dll with > some constants so it knows it's going to be profiled? > If that's true, then we could start looking into making it work with .dlls. What we may find is something similar to the mocking story: writing a new one is just easier and makes more sense, e.g. caricature. RCov may turn out to be useful only for Ruby apps and too difficult to make work with anything else. Here's an InfoQ link on some of the progress made by JRuby (and Rubinius' FFI): http://www.infoq.com/news/2008/07/jruby113-rcov-rubinius-ffi-mvm This might be helpful if we decide to attempt a straight port with C# extensions. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Jan 26 11:13:26 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Tue, 26 Jan 2010 17:13:26 +0100 Subject: [Ironruby-core] Why IronRuby? Message-ID: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> Hi, I was thinking about why to use IronRuby and one of the things that came to my mind is because of better gems like spec, cucumber etc. Mostly my use of IronRuby is around unit testing .NET CLR frameworks. But then .NET CLR implementations is catching up with all these tools like specflow and (.NET implementation for cucumber not sure about the name). RAKE is awesome but usually I just use sh to execute shell scripts and perform the build. Currently, I am not interacting RAKE with .NET assemblies so it is pure Ruby implementation. So, what do you think? Where would you use IronRuby? -- Posted via http://www.ruby-forum.com/. From randallsutton at gmail.com Tue Jan 26 11:26:42 2010 From: randallsutton at gmail.com (Randall Sutton) Date: Tue, 26 Jan 2010 09:26:42 -0700 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> Message-ID: <923E3421-A94C-4BD0-A75A-C7A88CCE2581@gmail.com> I have been using it the last couple months for building out a Silverlight app and have found a lot less friction coding WPF with IronRuby as opposed to XAML and C#. Randall On Jan 26, 2010, at 9:13 AM, Mohammad Azam wrote: > Hi, > > I was thinking about why to use IronRuby and one of the things that came > to my mind is because of better gems like spec, cucumber etc. Mostly my > use of IronRuby is around unit testing .NET CLR frameworks. But then > .NET CLR implementations is catching up with all these tools like > specflow and (.NET implementation for cucumber not sure about the name). > > RAKE is awesome but usually I just use sh to execute shell scripts and > perform the build. Currently, I am not interacting RAKE with .NET > assemblies so it is pure Ruby implementation. > > So, what do you think? Where would you use IronRuby? > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From shay.friedman at gmail.com Tue Jan 26 11:35:22 2010 From: shay.friedman at gmail.com (Shay Friedman) Date: Tue, 26 Jan 2010 18:35:22 +0200 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> Message-ID: This question keeps coming back :) Testing is a great use of IronRuby, maybe even the top reason for .NET guys to use it. However, there are more reasons for .NET guys to adopt IronRuby like: - Writing internal tools. - Make it possible to extend .NET applications using IronRuby. - Using IronRuby's REPL capabilities for quick POCs or to enhance current .NET applications. - Silverlight and Gestalt development - Writing DSLs - Running Ruby on Rails on IIS "natively" (this one is not so much for the .NET developer, but it's a great reason too :-) ). All in all, it will be tremendously hard to convince C#/VB.Net guys to work with IronRuby. Moreover, it'll be twice as hard until VS fully supports the language. Having said that, I do believe that as time goes by the walls will collapse and IronRuby will become a common tool among .NET devs. Shay. -------------------------------------------------------- Shay Friedman | .NET Technologies Expert | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Jan 26, 2010 at 6:13 PM, Mohammad Azam wrote: > Hi, > > I was thinking about why to use IronRuby and one of the things that came > to my mind is because of better gems like spec, cucumber etc. Mostly my > use of IronRuby is around unit testing .NET CLR frameworks. But then > .NET CLR implementations is catching up with all these tools like > specflow and (.NET implementation for cucumber not sure about the name). > > RAKE is awesome but usually I just use sh to execute shell scripts and > perform the build. Currently, I am not interacting RAKE with .NET > assemblies so it is pure Ruby implementation. > > So, what do you think? Where would you use IronRuby? > -- > 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 thibaut.barrere at gmail.com Tue Jan 26 11:49:42 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 26 Jan 2010 17:49:42 +0100 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> Message-ID: <4a68b8cf1001260849v323260d2i1a5914c5037f1f0e@mail.gmail.com> A while back I really thought testing would be the largest use case, but it went differently - here are my current real use cases: - faster UI development (windows forms) - interop with solutions already built on Ruby (see my previous message on Resque) - Excel templating (things like embedding IR into spreadsheet, somehow) - Silverlight (games or apps) -- Thibaut From ryan.riley at panesofglass.org Tue Jan 26 11:50:56 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Tue, 26 Jan 2010 10:50:56 -0600 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> Message-ID: On Tue, Jan 26, 2010 at 10:35 AM, Shay Friedman wrote: > This question keeps coming back :) > > Testing is a great use of IronRuby, maybe even the top reason for .NET guys > to use it. However, there are more reasons for .NET guys to adopt IronRuby > like: > I agree with that. :-/ > - Make it possible to extend .NET applications using IronRuby. > This one is a big one. (Think emacs-lisp but using Ruby in any app.) > - Using IronRuby's REPL capabilities for quick POCs or to enhance current > .NET applications. > If things go the way they did for Michael Foord with IronPython at Resolver Systems, those POCs may turn into real apps as developers realize that IronRuby is plenty fast for their scenario. I would further add that many Ruby libraries, or at least those that are written in pure Ruby, may prove better or more useful than similar libraries in C#. The same goes for IronPython. In particular, I'm interested in MongoMapper for Ruby or Dee-python for data access. Writing some of these in C# is just a pain and are cost inefficient. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Jan 26 11:51:30 2010 From: lists at ruby-forum.com (Mohammad Azam) Date: Tue, 26 Jan 2010 17:51:30 +0100 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> Message-ID: <3158cd0372e25b0d0d77dca3a03cc2fa@ruby-forum.com> Amen to that :D -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Tue Jan 26 11:57:09 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 26 Jan 2010 16:57:09 +0000 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> Message-ID: Along a lot of these ideas, I have written a small app which I use to file bugs on Codeplex. The source is at http://github.com/jredville/cp_bugger. I bring it up now because it fills some of these points: * Internal: it's not internal since it is open source, but it is a custom toom * Extending .NET applications: I wrap the TFS api's to make them more friendly and adjust the complexities of TFS to the relative simplicity of Codeplex. * REPL: Used the repl a lot during the development of this. I plan on adding a repl mode to this, and I might make IRB the base of that repl. * SL: Not here ;) * DSLs: Yep, I made a command DSL that makes creating commands relatively easy * IIS: Not here :) This app would have been possible via screen scraping or Ruby.NET, but it was amazingly simple to build using IronRuby. It's also really useful, and has very little todo with testing. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Tuesday, January 26, 2010 8:35 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Why IronRuby? This question keeps coming back :) Testing is a great use of IronRuby, maybe even the top reason for .NET guys to use it. However, there are more reasons for .NET guys to adopt IronRuby like: - Writing internal tools. - Make it possible to extend .NET applications using IronRuby. - Using IronRuby's REPL capabilities for quick POCs or to enhance current .NET applications. - Silverlight and Gestalt development - Writing DSLs - Running Ruby on Rails on IIS "natively" (this one is not so much for the .NET developer, but it's a great reason too :-) ). All in all, it will be tremendously hard to convince C#/VB.Net guys to work with IronRuby. Moreover, it'll be twice as hard until VS fully supports the language. Having said that, I do believe that as time goes by the walls will collapse and IronRuby will become a common tool among .NET devs. Shay. -------------------------------------------------------- Shay Friedman | .NET Technologies Expert | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Jan 26, 2010 at 6:13 PM, Mohammad Azam > wrote: Hi, I was thinking about why to use IronRuby and one of the things that came to my mind is because of better gems like spec, cucumber etc. Mostly my use of IronRuby is around unit testing .NET CLR frameworks. But then .NET CLR implementations is catching up with all these tools like specflow and (.NET implementation for cucumber not sure about the name). RAKE is awesome but usually I just use sh to execute shell scripts and perform the build. Currently, I am not interacting RAKE with .NET assemblies so it is pure Ruby implementation. So, what do you think? Where would you use IronRuby? -- 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 Tue Jan 26 12:03:13 2010 From: will at hotgazpacho.org (Will Green) Date: Tue, 26 Jan 2010 12:03:13 -0500 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> Message-ID: <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re wrote: > > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as > well as MRI on Linux, and I believe OS X, system-wide gems are > > the default. This, of course, would require elevation (sudo gem install > xxx). > > I believe per-user gems is now the default (it wasn't in the past, but > if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - > http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now > installs gems into ~/.gem if GEM_HOME is not writable. Use > --no-user-install command-line switch to disable this behavior.'). > > Here's what happens on my machine (OS X): > > ~$ gem list | grep less > ~$ sudo gem list | grep less > ~$ gem install less > (...) > ~$ gem list | grep less > less (1.2.21) > ~$ sudo gem list | grep less > (empty) > > ~$ gem -v > 1.3.5 > ~$ ruby -v > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] > > -- Thibaut > _______________________________________________ > 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 Tue Jan 26 12:17:44 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 26 Jan 2010 17:17:44 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> Message-ID: There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jan 26 12:14:47 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 26 Jan 2010 18:14:47 +0100 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> Message-ID: The productivity increase vs programming in a language like C# is a big one too :) So why ironruby and not ruby? if you're a .NET shop you probably already have a serious investment in libraries, control suites and so on. With IronRuby you don't lose anything you can reuse those items but still get the productivity increase. As it so happens I tend to disagree that the rails stuff isn't for .NET people What I'm seeing is that Rails is the primary reason people look at IronRuby. For example I'm currently doing a 40 day coaching job at a company that is evaluating asp.net mvc and Rails. IMO and I'm fairly confident I know what's in the asp.net mvc framework, it still has a looooooooong way to go before it can get anywhere near what rails has to offer you. It would involve adding even more ruby/python features to C# (at some point they should then rename it to ironC or something). I have a chuckle every time I see a C# dev create a viewmodel or use stuff like: var myVariable = new MyGiantGeneric(); When they say strong typed view, that's just plain funny because it's correct but also wrong at the same time what they really mean to say is statically typed view, but anyways. It basically boils down to do you want to deal with this typing nonsense or do you want to deal with it more intelligently (at a performance cost). When this coaching job is over I do a 4 day training course at another company on: Ruby/Rails + .NET, RSpec and testing best practices (or what to test). So in my opinion there is a keen interest for something more mature to take over. As you may know I've implemented ironruby mvc, because I assumed that's what .NET people would be interested in. There is 1 good use case for it if you have an existing asp.net mvc app otherwise I don't really see the point of using asp.net mvc for example and having to deal with generics and all other CLR nonsense. + everything shay said. PS: If I get the the sqlserver stuff to work with ActiveRecord properly I definitely want to do a datamapper adapter so I don't have to deal with ActiveRecord and its inconsistencies or actually writing sql --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 5:35 PM, Shay Friedman wrote: > This question keeps coming back :) > > Testing is a great use of IronRuby, maybe even the top reason for .NET guys > to use it. However, there are more reasons for .NET guys to adopt IronRuby > like: > - Writing internal tools. > - Make it possible to extend .NET applications using IronRuby. > - Using IronRuby's REPL capabilities for quick POCs or to enhance current > .NET applications. > - Silverlight and Gestalt development > - Writing DSLs > - Running Ruby on Rails on IIS "natively" (this one is not so much for the > .NET developer, but it's a great reason too :-) ). > > All in all, it will be tremendously hard to convince C#/VB.Net guys to work > with IronRuby. Moreover, it'll be twice as hard until VS fully supports the > language. > Having said that, I do believe that as time goes by the walls will collapse > and IronRuby will become a common tool among .NET devs. > > Shay. > > -------------------------------------------------------- > Shay Friedman | .NET Technologies Expert | Author of IronRuby Unleashed | > Sela Technology Center > Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay > > > On Tue, Jan 26, 2010 at 6:13 PM, Mohammad Azam wrote: > >> Hi, >> >> I was thinking about why to use IronRuby and one of the things that came >> to my mind is because of better gems like spec, cucumber etc. Mostly my >> use of IronRuby is around unit testing .NET CLR frameworks. But then >> .NET CLR implementations is catching up with all these tools like >> specflow and (.NET implementation for cucumber not sure about the name). >> >> RAKE is awesome but usually I just use sh to execute shell scripts and >> perform the build. Currently, I am not interacting RAKE with .NET >> assemblies so it is pure Ruby implementation. >> >> So, what do you think? Where would you use IronRuby? >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ckponnappa at gmail.com Tue Jan 26 12:28:31 2010 From: ckponnappa at gmail.com (C. K. Ponnappa) Date: Tue, 26 Jan 2010 22:58:31 +0530 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250458j3d46c686ja238166e78f868a2@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> Message-ID: <4B5F263F.2010606@gmail.com> > > I believe per-user gems is now the default That's right - now if you sudo install a system wide gem, if not, it just creates a .gems in your home dir and installs there. Of course, the local gems are only available to Ruby apps running as that user. Cheers, Sidu. Thibaut Barr?re wrote: >> Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are >> the default. This, of course, would require elevation (sudo gem install xxx). >> > > I believe per-user gems is now the default (it wasn't in the past, but > if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - > http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now > installs gems into ~/.gem if GEM_HOME is not writable. Use > --no-user-install command-line switch to disable this behavior.'). > > Here's what happens on my machine (OS X): > > ~$ gem list | grep less > ~$ sudo gem list | grep less > ~$ gem install less > (...) > ~$ gem list | grep less > less (1.2.21) > ~$ sudo gem list | grep less > (empty) > > ~$ gem -v > 1.3.5 > ~$ ruby -v > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] > > -- Thibaut > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From ckponnappa at gmail.com Tue Jan 26 12:59:28 2010 From: ckponnappa at gmail.com (C. K. Ponnappa) Date: Tue, 26 Jan 2010 23:29:28 +0530 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> References: <59eb3ade549e3e8d028f925f6ede4a87@ruby-forum.com> <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> Message-ID: <4B5F2D80.2080609@gmail.com> Any particular reason you aren't using NCover or Clover? I'm not sure generating coverage reports via rcov (even if it existed for the CLR) for dlls written in C# would actually produce anything usable. Cheers, Sidu. http://blog.sidu.in http://twitter.com/ponnappa Mohammad Azam wrote: > I was trying to make ironruby to perform code coverage for a .NET > assembly using rcov but it seems like it is not currently supported > yet.. > > From ckponnappa at gmail.com Tue Jan 26 13:08:10 2010 From: ckponnappa at gmail.com (C. K. Ponnappa) Date: Tue, 26 Jan 2010 23:38:10 +0530 Subject: [Ironruby-core] Contributing to IronRuby on *nix Message-ID: <4B5F2F8A.30806@gmail.com> Hello everyone, Recently I've been trying develop a gem with native extensions in C, Java and C# just to learn what's involved. When working with IronRuby, I ran into a few small issues so I figured I'd learn how to build and modify IronRuby source so I can take a shot at fixing these issues and contribute *something* to the project, if possible. Now, when working with IronRuby I'm having a pretty hard time in both cases because I'm not on Windows. For now I'm on OSX, and when I return this oh-so-awesome-but-hugely-expensive laptop to my employers, I'll be developing on Linux. Can you help me or give me any advice on how I can get started fixing bugs on IronRuby when developing on Mono? Is there a guide somewhere already on how to get a dev environment up on Mono using Emacs/TextMate/MonoDevelop? Cheers, Sidu. http://blog.sidu.in http://twitter.com/ponnappa From Shri.Borde at microsoft.com Tue Jan 26 13:49:36 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 18:49:36 +0000 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> <67568604a7b3287bee0833857e0524fa@ruby-forum.com> <54f4c996c12c23fe54d99979d61cb191@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BC9EA@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B111@TK5EX14MBXC140.redmond.corp.microsoft.com> The ActiveRecord unit tests do have failures where extra 0s are appended. You can see it from the following disabled tags in Merlin\Main\Languages\Ruby\Tests\Scripts\utr\active_record_tests.rb (its not yet pushed to GIT). disable InheritanceTest, # <#> expected but was # <#>. # # diff: # - #> wrote: I wanted to see "p @company" (equivalent of "puts @company.inspect") to see what fields it had, since ActiveRecord shows detailed view of the object, including fields. Really I want to see whether the ID is "269" or "26900". Ivan, does this issue seem at all familiar to you? Sam, it'd be helpful if you could produce a small repro, just with ActiveRecord alone, that shows the ID being appended with two zeros. I'd suggest using script\console as it gives you an environment preconfigured for ActiveRecord. If we have a targeted repo of the issue, it'll be easier to diagnose and fix. Ideally, you could just send me the application zipped up, but at a minimum I'll need the migration that creates the table, the model file, and whatever other code reproduces the error. ~Jimmy > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Sam Clopton > Sent: Monday, January 25, 2010 3:06 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Updated Rails instructions > > Sam Clopton wrote: > > > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 > > 14:33:19) [POST] > > Parameters: > > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", > > "company"=>{"name"=>"hmmmjjj...", "comments"=>"test"}, > > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} > > [4;36;1mUser Load (0.0ms) [0m [0;1mSELECT TOP 1 * FROM [users] > > WHERE ([users].[id] = '1') [0m > > [4;35;1mEXECUTE (15.6ms) [0m [0mBEGIN TRANSACTION [0m > > [4;36;1mCompany Create (46.9ms) [0m [0;1mINSERT INTO [companies] > > ([name], [comments]) VALUES('hmmmjjj...', 'test') [0m > > [4;35;1mSQL (0.0ms) [0m [0mSELECT SCOPE_IDENTITY() AS Ident [0m > > [4;36;1mEXECUTE (0.0ms) [0m [0;1mCOMMIT TRANSACTION [0m > > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn > > amehmmmjjj...commentstestcommitSubmitcontrollercompaniesactioncreate > > # > > /companies/26900 > > Redirected to http://127.0.0.1:3000/companies/26900 > > > > *** Old Adapter *** > > > > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22 > > 14:30:02) [POST] > > Parameters: > > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=", > > "company"=>{"name"=>"hmmmjj...", "comments"=>"test"}, > > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"} > > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn > > amehmmmjj...commentstestcommitSubmitcontrollercompaniesactioncreate > > # > > /companies/268 > > Redirected to http://127.0.0.1:3000/companies/268 > > Completed in 1922ms (DB: 0) | 302 Found [http://127.0.0.1/companies] > > Jimmy, > > Do you have any suggestions or is there anything else I can do to help pin > down this problem? > > Thanks, > Sam > -- > 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 Shri.Borde at microsoft.com Tue Jan 26 14:08:35 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 19:08:35 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Jan 26 14:16:06 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 19:16:06 +0000 Subject: [Ironruby-core] RCov In-Reply-To: References: <562a16820eeb89a8da7172b21d927ad3@ruby-forum.com> <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B184@TK5EX14MBXC140.redmond.corp.microsoft.com> Ivan, no, you do not need to instrument your dll to use the profiling APIs. Instead, you have to set an environment variable called COR_PROFILER. http://msdn.microsoft.com/en-us/library/bb384689.aspx has more info. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Tuesday, January 26, 2010 5:51 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... On Tue, Jan 26, 2010 at 3:36 AM, Ivan Porto Carrero > wrote: rcov has a pure ruby variant too IIRC. And for the sake of this discussion let's just say that that works as is with IronRuby. Then I'd be looking at the CLR profiling api again isn't it. And to enable that profiling API don't I have to instrument my dll with some constants so it knows it's going to be profiled? If that's true, then we could start looking into making it work with .dlls. What we may find is something similar to the mocking story: writing a new one is just easier and makes more sense, e.g. caricature. RCov may turn out to be useful only for Ruby apps and too difficult to make work with anything else. Here's an InfoQ link on some of the progress made by JRuby (and Rubinius' FFI): http://www.infoq.com/news/2008/07/jruby113-rcov-rubinius-ffi-mvm This might be helpful if we decide to attempt a straight port with C# extensions. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion.edwards at gmail.com Tue Jan 26 14:30:43 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Wed, 27 Jan 2010 08:30:43 +1300 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> Message-ID: <7c1b59c01001261130r1e1e3748w4c6fd084661fd19@mail.gmail.com> I'm currently using IronRuby to do automated UI testing using the WPF UI Automation framework. IronRuby is working out brilliantly, the WPF UI automation framework on the other hand is "sub par", but that's another story. Have also used it for many ad-hoc tasks such as exploring .NET api's, transforming data files, connecting to SQL server to poke around, and so forth. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Jan 26 14:36:02 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 26 Jan 2010 19:36:02 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: [cid:image001.png at 01CA9E7B.BD018580] That?s what happens when I do notepad 'C:\Program Files'\foo.txt from an elevated or unelevated command prompt. (If you don?t get the picture, it?s a dialog box that says ?Access is denied?). Have you modified your Program Files permissons? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3298 bytes Desc: image001.png URL: From Shri.Borde at microsoft.com Tue Jan 26 14:43:50 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 19:43:50 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> There indeed is a difference in behavior between IronRuby and MRI when creating a file in %ProgramFiles% from a non-elevated process. MRI silently writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track this. I don?t see the System.UnauthorizedAccessException though. D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" D:\>dir "c:\Program Files\foo.txt" File Not Found D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" 01/26/2010 11:39 AM 0 foo.txt 1 File(s) 0 bytes 0 Dir(s) 122,124,869,632 bytes free D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' is denied. (Errno::EACCES) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ 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 Tue Jan 26 14:54:10 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 26 Jan 2010 19:54:10 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Hm, that?s interesting? MRI gets redirected to the virtual store but IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby problem? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:44 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There indeed is a difference in behavior between IronRuby and MRI when creating a file in %ProgramFiles% from a non-elevated process. MRI silently writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track this. I don?t see the System.UnauthorizedAccessException though. D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" D:\>dir "c:\Program Files\foo.txt" File Not Found D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" 01/26/2010 11:39 AM 0 foo.txt 1 File(s) 0 bytes 0 Dir(s) 122,124,869,632 bytes free D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' is denied. (Errno::EACCES) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jan 26 14:58:14 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 26 Jan 2010 20:58:14 +0100 Subject: [Ironruby-core] Contributing to IronRuby on *nix In-Reply-To: <4B5F2F8A.30806@gmail.com> References: <4B5F2F8A.30806@gmail.com> Message-ID: no guide so far. To work and browse the IronRuby source I've been using monodevelop. For ruby dev I've been using textmate on mac, gmate (plugin for gedit) on ubuntu and notepad++ on windows, as well as Rubymine on all platforms but that doesn't feel completely right. With monodevelop you can open the IronRuby solution as is and start hacking. there should be a dev.sh file which should set the right environment variables and aliases when you source it. I know the ironruby team did work to make ironruby work properly on mono a while ago. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 7:08 PM, C. K. Ponnappa wrote: > Hello everyone, > > Recently I've been trying develop a gem with native extensions in C, Java > and C# just to learn what's involved. When working with IronRuby, I ran into > a few small issues so I figured I'd learn how to build and modify IronRuby > source so I can take a shot at fixing these issues and contribute > *something* to the project, if possible. > > Now, when working with IronRuby I'm having a pretty hard time in both cases > because I'm not on Windows. For now I'm on OSX, and when I return this > oh-so-awesome-but-hugely-expensive laptop to my employers, I'll be > developing on Linux. Can you help me or give me any advice on how I can get > started fixing bugs on IronRuby when developing on Mono? Is there a guide > somewhere already on how to get a dev environment up on Mono using > Emacs/TextMate/MonoDevelop? > > Cheers, > Sidu. > http://blog.sidu.in > http://twitter.com/ponnappa > _______________________________________________ > 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 Tue Jan 26 15:01:58 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 26 Jan 2010 20:01:58 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: That one also repro?s for me even though the notepad case doesn?t? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 11:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Hm, that?s interesting? MRI gets redirected to the virtual store but IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby problem? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:44 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There indeed is a difference in behavior between IronRuby and MRI when creating a file in %ProgramFiles% from a non-elevated process. MRI silently writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track this. I don?t see the System.UnauthorizedAccessException though. D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" D:\>dir "c:\Program Files\foo.txt" File Not Found D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" 01/26/2010 11:39 AM 0 foo.txt 1 File(s) 0 bytes 0 Dir(s) 122,124,869,632 bytes free D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' is denied. (Errno::EACCES) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Jan 26 15:03:25 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 20:03:25 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B270@TK5EX14MBXC140.redmond.corp.microsoft.com> You have user error. Put the end-quote after foo.txt. You have it after Program Files. Notepad will try to open the folder, and that is causing the access-denied. Jimmy got the same error, but it went away after he moved the quote to the end. Notepad does prompt me to save to a different location if run from a non-elevated Command Prompt. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 11:36 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) [cid:image001.png at 01CA9E7F.09170820] That?s what happens when I do notepad 'C:\Program Files'\foo.txt from an elevated or unelevated command prompt. (If you don?t get the picture, it?s a dialog box that says ?Access is denied?). Have you modified your Program Files permissons? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3298 bytes Desc: image001.png URL: From Shri.Borde at microsoft.com Tue Jan 26 15:06:13 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 20:06:13 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> Might be a .NET issue, but we should work around it in that case. What I am curious about though is if MRI is installed to Program Files, will ?gem install? also silently install to the virtual store if it is run without elevation. If the redirecting is done at the Ruby/OS level, then RubyGems does not need to do anything, and so ?user-install should not be needed at all. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 11:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Hm, that?s interesting? MRI gets redirected to the virtual store but IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby problem? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:44 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There indeed is a difference in behavior between IronRuby and MRI when creating a file in %ProgramFiles% from a non-elevated process. MRI silently writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track this. I don?t see the System.UnauthorizedAccessException though. D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" D:\>dir "c:\Program Files\foo.txt" File Not Found D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" 01/26/2010 11:39 AM 0 foo.txt 1 File(s) 0 bytes 0 Dir(s) 122,124,869,632 bytes free D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' is denied. (Errno::EACCES) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Jan 26 15:09:16 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 20:09:16 +0000 Subject: [Ironruby-core] Contributing to IronRuby on *nix In-Reply-To: References: <4B5F2F8A.30806@gmail.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B298@TK5EX14MBXC140.redmond.corp.microsoft.com> FWIW http://wiki.github.com/ironruby/ironruby/ has general developer info. Please add to it if you can. Tomas made it easy to develop against Mono on Windows. See attached. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, January 26, 2010 11:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Contributing to IronRuby on *nix no guide so far. To work and browse the IronRuby source I've been using monodevelop. For ruby dev I've been using textmate on mac, gmate (plugin for gedit) on ubuntu and notepad++ on windows, as well as Rubymine on all platforms but that doesn't feel completely right. With monodevelop you can open the IronRuby solution as is and start hacking. there should be a dev.sh file which should set the right environment variables and aliases when you source it. I know the ironruby team did work to make ironruby work properly on mono a while ago. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 7:08 PM, C. K. Ponnappa > wrote: Hello everyone, Recently I've been trying develop a gem with native extensions in C, Java and C# just to learn what's involved. When working with IronRuby, I ran into a few small issues so I figured I'd learn how to build and modify IronRuby source so I can take a shot at fixing these issues and contribute *something* to the project, if possible. Now, when working with IronRuby I'm having a pretty hard time in both cases because I'm not on Windows. For now I'm on OSX, and when I return this oh-so-awesome-but-hugely-expensive laptop to my employers, I'll be developing on Linux. Can you help me or give me any advice on how I can get started fixing bugs on IronRuby when developing on Mono? Is there a guide somewhere already on how to get a dev environment up on Mono using Emacs/TextMate/MonoDevelop? Cheers, Sidu. http://blog.sidu.in http://twitter.com/ponnappa _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: Tomas Matousek Subject: Code Review: Mono5 Date: Wed, 6 Jan 2010 22:23:30 +0000 Size: 44766 URL: From jdeville at microsoft.com Tue Jan 26 15:09:47 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 26 Jan 2010 20:09:47 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Technically, the virtual store is an OS level feature, however, not using --user-install could imply to people that we are installing in a shared location when we aren?t. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 12:06 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Might be a .NET issue, but we should work around it in that case. What I am curious about though is if MRI is installed to Program Files, will ?gem install? also silently install to the virtual store if it is run without elevation. If the redirecting is done at the Ruby/OS level, then RubyGems does not need to do anything, and so ?user-install should not be needed at all. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 11:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Hm, that?s interesting? MRI gets redirected to the virtual store but IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby problem? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:44 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There indeed is a difference in behavior between IronRuby and MRI when creating a file in %ProgramFiles% from a non-elevated process. MRI silently writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track this. I don?t see the System.UnauthorizedAccessException though. D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" D:\>dir "c:\Program Files\foo.txt" File Not Found D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" 01/26/2010 11:39 AM 0 foo.txt 1 File(s) 0 bytes 0 Dir(s) 122,124,869,632 bytes free D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' is denied. (Errno::EACCES) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Jan 26 15:18:09 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 20:18:09 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B30C@TK5EX14MBXC140.redmond.corp.microsoft.com> So how does RubyGems know that the target location is restricted? I can?t just call File.open and catch the exception. Perhaps it eagerly checks for permissions. So where does this leave us? Sounds like we can keep installing to ProgramFiles by default. Users can then run ?gem install? from an elevated Command Prompt if they want to share gems with other users, or they can use ?user-install if they prefer not to elevate. Sounds like we are good as is if Thibaut (or someone else) can confirm that ?user-install does work as expected. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 12:10 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Technically, the virtual store is an OS level feature, however, not using --user-install could imply to people that we are installing in a shared location when we aren?t. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 12:06 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Might be a .NET issue, but we should work around it in that case. What I am curious about though is if MRI is installed to Program Files, will ?gem install? also silently install to the virtual store if it is run without elevation. If the redirecting is done at the Ruby/OS level, then RubyGems does not need to do anything, and so ?user-install should not be needed at all. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 11:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Hm, that?s interesting? MRI gets redirected to the virtual store but IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby problem? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:44 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There indeed is a difference in behavior between IronRuby and MRI when creating a file in %ProgramFiles% from a non-elevated process. MRI silently writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track this. I don?t see the System.UnauthorizedAccessException though. D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" D:\>dir "c:\Program Files\foo.txt" File Not Found D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" 01/26/2010 11:39 AM 0 foo.txt 1 File(s) 0 bytes 0 Dir(s) 122,124,869,632 bytes free D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' is denied. (Errno::EACCES) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jan 26 15:20:32 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 26 Jan 2010 21:20:32 +0100 Subject: [Ironruby-core] Contributing to IronRuby on *nix In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B298@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4B5F2F8A.30806@gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B298@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Ok. In that case you can find a dev.sh and alias.sh in the following links http://github.com/casualjim/ironruby/blob/linux/Merlin/Main/Languages/Ruby/Scripts/dev.sh http://github.com/casualjim/ironruby/blob/linux/Merlin/Main/Scripts/Bat/Alias.sh --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jan 26, 2010 at 9:09 PM, Shri Borde wrote: > FWIW http://wiki.github.com/ironruby/ironruby/ has general developer > info. Please add to it if you can. > > > > Tomas made it easy to develop against Mono *on Windows*. See attached. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Tuesday, January 26, 2010 11:58 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Contributing to IronRuby on *nix > > > > no guide so far. > > > > To work and browse the IronRuby source I've been using monodevelop. > > For ruby dev I've been using textmate on mac, gmate (plugin for gedit) on > ubuntu and notepad++ on windows, as well as Rubymine on all platforms but > that doesn't feel completely right. > > > > With monodevelop you can open the IronRuby solution as is and start > hacking. > > there should be a dev.sh file which should set the right environment > variables and aliases when you source it. I know the ironruby team did work > to make ironruby work properly on mono a while ago. > > > > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > On Tue, Jan 26, 2010 at 7:08 PM, C. K. Ponnappa > wrote: > > Hello everyone, > > Recently I've been trying develop a gem with native extensions in C, Java > and C# just to learn what's involved. When working with IronRuby, I ran into > a few small issues so I figured I'd learn how to build and modify IronRuby > source so I can take a shot at fixing these issues and contribute > *something* to the project, if possible. > > Now, when working with IronRuby I'm having a pretty hard time in both cases > because I'm not on Windows. For now I'm on OSX, and when I return this > oh-so-awesome-but-hugely-expensive laptop to my employers, I'll be > developing on Linux. Can you help me or give me any advice on how I can get > started fixing bugs on IronRuby when developing on Mono? Is there a guide > somewhere already on how to get a dev environment up on Mono using > Emacs/TextMate/MonoDevelop? > > Cheers, > Sidu. > http://blog.sidu.in > http://twitter.com/ponnappa > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Jan 26 15:26:55 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 26 Jan 2010 20:26:55 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B270@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B270@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Got it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 12:03 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) You have user error. Put the end-quote after foo.txt. You have it after Program Files. Notepad will try to open the folder, and that is causing the access-denied. Jimmy got the same error, but it went away after he moved the quote to the end. Notepad does prompt me to save to a different location if run from a non-elevated Command Prompt. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 11:36 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) [cid:image001.png at 01CA9E82.D906F790] That?s what happens when I do notepad 'C:\Program Files'\foo.txt from an elevated or unelevated command prompt. (If you don?t get the picture, it?s a dialog box that says ?Access is denied?). Have you modified your Program Files permissons? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3298 bytes Desc: image001.png URL: From Shri.Borde at microsoft.com Tue Jan 26 15:39:32 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 20:39:32 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B30C@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B30C@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B398@TK5EX14MBXC140.redmond.corp.microsoft.com> With RC1 (installed to Program Files by default), I was able to do ?igem install? from an elevated Command Prompt. From a normal prompt, ?igem install? failed with the System.UnauthorizedAccessException with or without ?user-install. We should track down why this is happening. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 12:18 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) So how does RubyGems know that the target location is restricted? I can?t just call File.open and catch the exception. Perhaps it eagerly checks for permissions. So where does this leave us? Sounds like we can keep installing to ProgramFiles by default. Users can then run ?gem install? from an elevated Command Prompt if they want to share gems with other users, or they can use ?user-install if they prefer not to elevate. Sounds like we are good as is if Thibaut (or someone else) can confirm that ?user-install does work as expected. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 12:10 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Technically, the virtual store is an OS level feature, however, not using --user-install could imply to people that we are installing in a shared location when we aren?t. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 12:06 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Might be a .NET issue, but we should work around it in that case. What I am curious about though is if MRI is installed to Program Files, will ?gem install? also silently install to the virtual store if it is run without elevation. If the redirecting is done at the Ruby/OS level, then RubyGems does not need to do anything, and so ?user-install should not be needed at all. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 11:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Hm, that?s interesting? MRI gets redirected to the virtual store but IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby problem? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:44 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There indeed is a difference in behavior between IronRuby and MRI when creating a file in %ProgramFiles% from a non-elevated process. MRI silently writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track this. I don?t see the System.UnauthorizedAccessException though. D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" D:\>dir "c:\Program Files\foo.txt" File Not Found D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" 01/26/2010 11:39 AM 0 foo.txt 1 File(s) 0 bytes 0 Dir(s) 122,124,869,632 bytes free D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' is denied. (Errno::EACCES) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Jan 26 15:47:18 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 20:47:18 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B398@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <4a68b8cf1001250720p52b980f5t5e5fa33cad235a69@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C899ED7@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A1FA@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A453@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A4C6@TK5EX14MBXC140.redmond.corp.microsoft.com> <398d3e0e1001252106g11301ea2j5fa34c0644ac99d1@mail.gmail.com> <4a68b8cf1001260116t1a7cf28ara60c102ae54bbbdc@mail.gmail.com> <398d3e0e1001260903t21fcabd6ydf96649b004eedd7@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B30C@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B398@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B3B0@TK5EX14MBXC140.redmond.corp.microsoft.com> The following raises System.UnauthorizedAccessException with IronRuby, but works with MRI. require "fileutils" FileUtils.mkdir_p "c:/Program Files/foo" If we make this work with IronRuby or atleast throw Errno::EACCES, I think ?user-install will work from non-elevated prompt From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 12:40 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) With RC1 (installed to Program Files by default), I was able to do ?igem install? from an elevated Command Prompt. From a normal prompt, ?igem install? failed with the System.UnauthorizedAccessException with or without ?user-install. We should track down why this is happening. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 12:18 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) So how does RubyGems know that the target location is restricted? I can?t just call File.open and catch the exception. Perhaps it eagerly checks for permissions. So where does this leave us? Sounds like we can keep installing to ProgramFiles by default. Users can then run ?gem install? from an elevated Command Prompt if they want to share gems with other users, or they can use ?user-install if they prefer not to elevate. Sounds like we are good as is if Thibaut (or someone else) can confirm that ?user-install does work as expected. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 12:10 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Technically, the virtual store is an OS level feature, however, not using --user-install could imply to people that we are installing in a shared location when we aren?t. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 12:06 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Might be a .NET issue, but we should work around it in that case. What I am curious about though is if MRI is installed to Program Files, will ?gem install? also silently install to the virtual store if it is run without elevation. If the redirecting is done at the Ruby/OS level, then RubyGems does not need to do anything, and so ?user-install should not be needed at all. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 11:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Hm, that?s interesting? MRI gets redirected to the virtual store but IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby problem? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:44 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There indeed is a difference in behavior between IronRuby and MRI when creating a file in %ProgramFiles% from a non-elevated process. MRI silently writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track this. I don?t see the System.UnauthorizedAccessException though. D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" D:\>dir "c:\Program Files\foo.txt" File Not Found D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" 01/26/2010 11:39 AM 0 foo.txt 1 File(s) 0 bytes 0 Dir(s) 122,124,869,632 bytes free D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' is denied. (Errno::EACCES) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Tuesday, January 26, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Another way to simulate ?sudo? is to use an elevated Command Prompt. http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you how. If you are using the command prompt a lot, you only need to deal with the UAC dialog box once when you open the elevated Command Prompt. After that, all commands executed from the Command Prompt run elevated. Jim, from an elevated Command prompt, I was able to create a new file in %ProgramFiles% using notepad, and did not get any UAC dialog box. This would mean that ?gem install? should also be able to install gems to %ProgramFiles%. Not sure how this reconciles with your comment about TrustedInstaller. Thibaut, could you try using ?igem install ?user-install?? (I wonder if IronRuby needs to catch the System.UnauthorizedAccessException exception and raise a Ruby exception for RubyGems to do the right thing.) Could you also separately try running from an elevated Command Prompt? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, January 26, 2010 9:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) There are a couple of differences that would be apparent for this proposed solution: 1) Runas /user?. Is much longer than sudo ;) 2) The normal installation directory is owned by TrustedInstaller and Admins have no rights by default. We wouldn?t have a supported way to share gems at this time, since that does have security risks. Each user would have to install their own gems, but (unsupported) you should be able to move GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) to a shared location and change permissions on it. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Tuesday, January 26, 2010 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Yes, that occurred to me this morning. ;-) So, runas /user:mymachine\administrator igem install foo for globals gems, right? -- Will Green http://hotgazpacho.org/ On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > Per-user gems should not be the default. In RubyInstaller (mingw MRI), as well as MRI on Linux, and I believe OS X, system-wide gems are > the default. This, of course, would require elevation (sudo gem install xxx). I believe per-user gems is now the default (it wasn't in the past, but if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior.'). Here's what happens on my machine (OS X): ~$ gem list | grep less ~$ sudo gem list | grep less ~$ gem install less (...) ~$ gem list | grep less less (1.2.21) ~$ sudo gem list | grep less (empty) ~$ gem -v 1.3.5 ~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Jan 26 15:59:27 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 26 Jan 2010 20:59:27 +0000 Subject: [Ironruby-core] Code Review: eaccess Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89B413@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review "/shelveset:eaccess;REDMOND\sborde" Comment : Dir.mkdir should raise Errno::EACCESS instead of System.UnauthorizedException Diables ActiveRecord tests since some fail intermittently -------------- next part -------------- A non-text attachment was scrubbed... Name: eaccess.diff Type: application/octet-stream Size: 1980 bytes Desc: eaccess.diff URL: From jdeville at microsoft.com Tue Jan 26 16:05:30 2010 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 26 Jan 2010 21:05:30 +0000 Subject: [Ironruby-core] Code Review: eaccess In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B413@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C89B413@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: Looks good -----Original Message----- From: Shri Borde Sent: Tuesday, January 26, 2010 12:59 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: eaccess tfpt review "/shelveset:eaccess;REDMOND\sborde" Comment : Dir.mkdir should raise Errno::EACCESS instead of System.UnauthorizedException Diables ActiveRecord tests since some fail intermittently From Tomas.Matousek at microsoft.com Tue Jan 26 16:08:27 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 26 Jan 2010 21:08:27 +0000 Subject: [Ironruby-core] Code Review: eaccess In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B413@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C89B413@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C3846CE37@TK5EX14MBXC129.redmond.corp.microsoft.com> Looks good. Tomas -----Original Message----- From: Shri Borde Sent: Tuesday, January 26, 2010 12:59 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: eaccess tfpt review "/shelveset:eaccess;REDMOND\sborde" Comment : Dir.mkdir should raise Errno::EACCESS instead of System.UnauthorizedException Diables ActiveRecord tests since some fail intermittently From orion.edwards at gmail.com Tue Jan 26 16:35:03 2010 From: orion.edwards at gmail.com (Orion Edwards) Date: Wed, 27 Jan 2010 10:35:03 +1300 Subject: [Ironruby-core] Did Something Changed Again in Spec... In-Reply-To: References: <9f91837697ff850426d4e0c918212d13@ruby-forum.com> <080df83174c67aaafaae395f518187bf@ruby-forum.com> <7801ac2a47ed4e59f6dd13d5331c6b4d@ruby-forum.com> <7c1b59c01001251144o3d646caenf904ad5c654dab2c@mail.gmail.com> Message-ID: <7c1b59c01001261335m6cd370d2mfebcbae5a1ed179e@mail.gmail.com> > > > Can we move forward to solve the problem instead of mocking? > -- > I would expect you would have better success moving forward if you did not make inflammatory statements such as these: "This is a big defect in the IronRuby. Too many configurations will scare developers away." "Not many people are willing to try out IronRuby because of configuration issues. " "You are NOT thinking throughly about the problem!" "I am not trying to put down IronRuby but sorry this is not going to work in the real world." It is clear that you believe IronRuby is too hard to configure, and I've no doubt that you are feeling some pain. Please try not to make exaggerated statements saying things are universally broken and unacceptable just because you are not able to solve something. Thanks, Orion -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Jan 26 17:18:14 2010 From: lists at ruby-forum.com (Sam Clopton) Date: Tue, 26 Jan 2010 23:18:14 +0100 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> <67568604a7b3287bee0833857e0524fa@ruby-forum.com> <54f4c996c12c23fe54d99979d61cb191@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BC9EA@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: The database has information that is FOUO. Even though to me it seems that none of the source code has any of that information (why should it), I don't really want to send any of it other than snippets just to protect myself. I should be able to put together a different case at home that has the same problems as mine. If the ActiveRecord unit tests noted above by Shri will work, let me know. Ivan Porto carrero wrote: > I'm not seeing that issue atm but I'll work on ironruby-sqlserver > tonight. > So if Sam wants to send me a repro I can also look at the cause for his > problem and hopefully fix it. > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Tue, Jan 26, 2010 at 10:06 AM, Jimmy Schementi < -- Posted via http://www.ruby-forum.com/. From ben2004uk at googlemail.com Tue Jan 26 18:03:09 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Tue, 26 Jan 2010 23:03:09 +0000 Subject: [Ironruby-core] RCov In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B184@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <0c1d9a36814c02c08dfd0d02378142ba@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BCA47@TK5EX14MBXC141.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B184@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: I've worked with the COR_PROFILER a little bit before... I'll look if it's possible from IronRuby :) On Tue, Jan 26, 2010 at 7:16 PM, Shri Borde wrote: > Ivan, no, you do not need to instrument your dll to use the profiling APIs. > Instead, you have to set an environment variable called COR_PROFILER. > http://msdn.microsoft.com/en-us/library/bb384689.aspx has more info. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley > Sent: Tuesday, January 26, 2010 5:51 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... > > > > On Tue, Jan 26, 2010 at 3:36 AM, Ivan Porto Carrero > wrote: > > rcov has a pure ruby variant too IIRC. And for the sake of this discussion > let's just say that that works as is with IronRuby. > > > > Then I'd be looking at the CLR profiling api again isn't it. > > And to enable that profiling API don't I have to instrument my dll with some > constants so it knows it's going to be profiled? > > > > If that's true, then we could start looking into making it work with .dlls. > What we may find is something similar to the mocking story: writing a new > one is just easier and makes more sense, e.g. caricature. RCov may turn out > to be useful only for Ruby apps and too difficult to make work with anything > else. > > > > Here's an InfoQ link on some of the progress made by JRuby (and Rubinius' > FFI):?http://www.infoq.com/news/2008/07/jruby113-rcov-rubinius-ffi-mvm?This > might be helpful if we decide to attempt a straight port with C# extensions. > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From me at miguelmadero.com Tue Jan 26 22:50:51 2010 From: me at miguelmadero.com (Miguel Madero) Date: Wed, 27 Jan 2010 14:50:51 +1100 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> Message-ID: <581455be1001261950m5e5007em759e0a8bba91b0a2@mail.gmail.com> TypeMock is doing thing slightly different that allows you to intercept essentially calls to any member (static, sealed types, non-virtuals, etc). It take sa different approach than Rhino and Moq, I'm not sure if something similar could be done using Ruby, I'm just dropping the idea here.... On Mon, Jan 25, 2010 at 7:34 AM, Ivan Porto Carrero wrote: > You don't need to do anything as drastic as disassemble dlls though :). > There are several solutions and I think the cleanest one is to use the CLR > profiling API. Another avenue I could take is to use Mono.Cecil but I don't > like the idea of the IL rewriting stuff. heck even postsharp would probably > do the trick. > > I need to look into the CLR profiling API to make the rest of the stuff > happening as that is the cleanest solution IMO. The limitation only exists > if you're mocking CLR classes for use in other CLR classes. If you're going > to use it in ruby code you can do whatever you want. > > My mocker does most of what Moq and Rhino.Mocks do, except that it doesn't > use LCG or expression trees but just the reflection API once per type. from > there on out it uses ruby to do its job. > > What I need to add but don't know if they are really necessary are call > count constraints. > And I also want to make the RSpec integration a little bit better so that > you can enlist an expectation for verification too. > > The docs are a bit outdated too, best is to look into > spec/bacon/integration that's where I test out the new features or syntax > additions. > I have a chapter in my book that explains the use of Caricature with RSpec > which will be in the update at the end of january. Contact me off list if > you want a discount :) > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Sun, Jan 24, 2010 at 8:16 PM, andrew Wilson wrote: > >> Ivan, >> >> Seems like a what I was looking for, however according to the >> documentation it says it can only mock virtuals and non-static though. >> >> I don't want that restriction :( One of the advantages I was hoping to >> leverage was the ability to re-write methods that I wouldn't otherwise be >> able to. >> >> >> -A >> >> -- >> When I wrote this, only God and I understood what I was doing. Now, God >> only knows - Karl Weierstrass >> >> _______________________________________________ >> 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 > > -- Miguel A. Madero Reyes www.miguelmadero.com (blog) me at miguelmadero.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at miguelmadero.com Tue Jan 26 23:40:49 2010 From: me at miguelmadero.com (Miguel Madero) Date: Wed, 27 Jan 2010 15:40:49 +1100 Subject: [Ironruby-core] dealing with TFS In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920BC932@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <45CD7A57-421C-4737-BAFE-90BB940B8E13@gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920BC932@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <581455be1001262040u19ef95bbt9d036b31e36977da@mail.gmail.com> I've not gone through the full post, but based on the title this might help: http://richardsbraindump.blogspot.com/2010/01/how-to-get-git-and-tfs-working-together.html On Tue, Jan 26, 2010 at 7:37 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > That blogpost is basically all Jim and I would want to do ? wrap the GIT > and TFS command-lines. A step above that would be to use grit (GIT > implementation in Ruby ? or even Git#) as well as the TFS APIs. But as Jim > said, we haven?t found the time to make this really nice, so I welcome > anyone else to do so. > > > > As a starter, here?s my notes on using TFS and GIT together; it?d be great > to just get some easy-to-use scripts to wrap this up: > > http://gist.github.com/286677 > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Saturday, January 23, 2010 3:06 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] dealing with TFS > > > > svnbridge doesn't work with rubymine or git-svn but it does with tortoise > etc. > > > > The source control needs to work from within the environment, at least > that's what the boss told me. > > > > this looks promising too with a few rake tasks perhaps: > > > http://jeroen.haegebaert.com/post/2008/08/23/Dealing-with-the-quirks-of-TFS-using-git-take-2 > > > > I'll check out the ironruby source code too on how you do it. > > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > On Sat, Jan 23, 2010 at 11:38 PM, Orion Edwards > wrote: > > We've got a couple of people using the TFS->SVN bridge, which I think is > made by the codeplex guys. It's SLOW, but it works well for them, as they're > on smaller projects. > > > > On 24/01/2010, at 4:28 AM, Ivan Porto Carrero wrote: > > > > Hi > > > > How do you guys deal with TFS? > > > > My guys have settled on Rubymine as their IDE, but their SCM is TFS of > course as it's a .NET shop. > > As you're well aware off TFS has the unfortunate habit of marking files as > read-only and AFAIK there isn't an easy way to make it detect new files > short of going through all the folders and manually adding the new files. > When you're on a roll with a rails app for example this can mean there are > quite a few files that need to be added. > > > > What is the workflow you settled on? use git for everything and once in a > while make it sync with TFS? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > _______________________________________________ > 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 -- Miguel A. Madero Reyes www.miguelmadero.com (blog) me at miguelmadero.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Wed Jan 27 00:58:55 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 27 Jan 2010 06:58:55 +0100 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: <581455be1001261950m5e5007em759e0a8bba91b0a2@mail.gmail.com> References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> <581455be1001261950m5e5007em759e0a8bba91b0a2@mail.gmail.com> Message-ID: yes typemock uses the CLR profiling API and is a paid product. I don't know if typemock runs on Mono either, couldn't find it on their website. For me running on mono is one of the base requirements of my mocker, because I'm too often on my mac or linux machines to neglect that. That being said 99% of your tests will not need to mock a static method, and if you know about the limitation you can work around it if you're in control of the code. I've looked into this now and I can't find the ICorProfilerCallback2 interface in Mono on my mac. Mono allows you to write a profiler too though but AFAICT that has to be written in C, which I don't know, and it would also require to start mono with a different set of parameters. So I guess the way forward is mono.cecil, but I don't like the approach I need to take at all: Backup the assemblies in the bin before running the tests instrument every assembly in the bin folder with all the static method calls wrapped inside a before and after hook. These hooks call out to caricature and provide the mocking behavior. Save the modified assembly in the bin run the test. if there is an error or an interrupt or exit, restore assemblies from backup and this can go wrong easily. It also means I have to make it a requirement to require caricature before requiring any of your application code in the test_helper or spec_helper file. If somebody has a better solution by all means share, or better yet put it in and send me a pull request --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Jan 27, 2010 at 4:50 AM, Miguel Madero wrote: > TypeMock is doing thing slightly different that allows you to intercept > essentially calls to any member (static, sealed types, non-virtuals, etc). > It take sa different approach than Rhino and Moq, I'm not sure if something > similar could be done using Ruby, I'm just dropping the idea here.... > > On Mon, Jan 25, 2010 at 7:34 AM, Ivan Porto Carrero wrote: > >> You don't need to do anything as drastic as disassemble dlls though :). >> There are several solutions and I think the cleanest one is to use the CLR >> profiling API. Another avenue I could take is to use Mono.Cecil but I don't >> like the idea of the IL rewriting stuff. heck even postsharp would probably >> do the trick. >> >> I need to look into the CLR profiling API to make the rest of the stuff >> happening as that is the cleanest solution IMO. The limitation only exists >> if you're mocking CLR classes for use in other CLR classes. If you're going >> to use it in ruby code you can do whatever you want. >> >> My mocker does most of what Moq and Rhino.Mocks do, except that it doesn't >> use LCG or expression trees but just the reflection API once per type. from >> there on out it uses ruby to do its job. >> >> What I need to add but don't know if they are really necessary are call >> count constraints. >> And I also want to make the RSpec integration a little bit better so that >> you can enlist an expectation for verification too. >> >> The docs are a bit outdated too, best is to look into >> spec/bacon/integration that's where I test out the new features or syntax >> additions. >> I have a chapter in my book that explains the use of Caricature with RSpec >> which will be in the update at the end of january. Contact me off list if >> you want a discount :) >> >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> >> >> On Sun, Jan 24, 2010 at 8:16 PM, andrew Wilson wrote: >> >>> Ivan, >>> >>> Seems like a what I was looking for, however according to the >>> documentation it says it can only mock virtuals and non-static though. >>> >>> I don't want that restriction :( One of the advantages I was hoping to >>> leverage was the ability to re-write methods that I wouldn't otherwise be >>> able to. >>> >>> >>> -A >>> >>> -- >>> When I wrote this, only God and I understood what I was doing. Now, God >>> only knows - Karl Weierstrass >>> >>> _______________________________________________ >>> 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 >> >> > > > -- > 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 me at miguelmadero.com Wed Jan 27 01:08:25 2010 From: me at miguelmadero.com (Miguel Madero) Date: Wed, 27 Jan 2010 17:08:25 +1100 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: <7c1b59c01001261130r1e1e3748w4c6fd084661fd19@mail.gmail.com> References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> <7c1b59c01001261130r1e1e3748w4c6fd084661fd19@mail.gmail.com> Message-ID: <581455be1001262208p5df9fa41va69122edfc785165@mail.gmail.com> I've been willing to try it with Silverlight Apps, I know it has a lot of potential and I'm thinking of IR as full replacement of C#. Binding doesn't work for dynamic objects which is a big showstopper (although I know there're ways around it, I've not had a chance to get aroudn that). I see a lot of application frameworks that would be better implemented on a real dynamic language. People is struggling to fix some C# limitations with weird things like TypeDescriptors, DynamicProxies, AOP, Code Generation, etc. However, the lack of support from tools like the Visual Studio Designer and Blend is another showstopper. I'm happy to handcode my XAML or even add elements from ruby code, but for bigger proejects we might have a designer working in Blend, creating controls in XAML, probably even using Attached Properties, this are all things that won't work ATM with IronRuby so we have to fault back to a statically type language to define this. So we gain productivity in some areasb, but loose it in others, I guess for some apps we would end up with a mixed approach, but I would ike to use IR as the main language and C# for those thigns that I can't do in IR and not the otherway around. -- Miguel A. Madero Reyes www.miguelmadero.com (blog) me at miguelmadero.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Jan 27 01:48:52 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 27 Jan 2010 06:48:52 +0000 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: <581455be1001262208p5df9fa41va69122edfc785165@mail.gmail.com> References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> <7c1b59c01001261130r1e1e3748w4c6fd084661fd19@mail.gmail.com> <581455be1001262208p5df9fa41va69122edfc785165@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920CD71A@TK5EX14MBXC138.redmond.corp.microsoft.com> There's nothing stopping you from using Blend to generate XAML, and loading it from IronRuby. The tutorial app in the IronRuby samples directory was built like that. You're right that AttachedProperties won't work today, but if you really want to use XAML and Ruby together, you can have guidelines for your designers on what blend features they can use, or have some way of converting what they write to Ruby. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Miguel Madero Sent: Tuesday, January 26, 2010 10:08 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Why IronRuby? I've been willing to try it with Silverlight Apps, I know it has a lot of potential and I'm thinking of IR as full replacement of C#. Binding doesn't work for dynamic objects which is a big showstopper (although I know there're ways around it, I've not had a chance to get aroudn that). I see a lot of application frameworks that would be better implemented on a real dynamic language. People is struggling to fix some C# limitations with weird things like TypeDescriptors, DynamicProxies, AOP, Code Generation, etc. However, the lack of support from tools like the Visual Studio Designer and Blend is another showstopper. I'm happy to handcode my XAML or even add elements from ruby code, but for bigger proejects we might have a designer working in Blend, creating controls in XAML, probably even using Attached Properties, this are all things that won't work ATM with IronRuby so we have to fault back to a statically type language to define this. So we gain productivity in some areasb, but loose it in others, I guess for some apps we would end up with a mixed approach, but I would ike to use IR as the main language and C# for those thigns that I can't do in IR and not the otherway around. -- Miguel A. Madero Reyes www.miguelmadero.com (blog) me at miguelmadero.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ckponnappa at gmail.com Wed Jan 27 03:53:36 2010 From: ckponnappa at gmail.com (C. K. Ponnappa) Date: Wed, 27 Jan 2010 14:23:36 +0530 Subject: [Ironruby-core] Contributing to IronRuby on *nix In-Reply-To: References: <4B5F2F8A.30806@gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B298@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B5FFF10.3070506@gmail.com> Fair enough - I'll try to get an environment going and document it along the way (and put it onto the github wiki should I succeed). Thanks for the tips. Cheers, Sidu. Ivan Porto Carrero wrote: > Ok. > > In that case you can find a dev.sh and alias.sh in the following links > > http://github.com/casualjim/ironruby/blob/linux/Merlin/Main/Languages/Ruby/Scripts/dev.sh > http://github.com/casualjim/ironruby/blob/linux/Merlin/Main/Scripts/Bat/Alias.sh > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Tue, Jan 26, 2010 at 9:09 PM, Shri Borde > wrote: > > FWIW http://wiki.github.com/ironruby/ironruby/ has general > developer info. Please add to it if you can. > > > > Tomas made it easy to develop against Mono /on Windows/. See attached. > > > > *From:* ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org > ] *On Behalf Of *Ivan > Porto Carrero > *Sent:* Tuesday, January 26, 2010 11:58 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Contributing to IronRuby on *nix > > > > no guide so far. > > > > To work and browse the IronRuby source I've been using monodevelop. > > For ruby dev I've been using textmate on mac, gmate (plugin for > gedit) on ubuntu and notepad++ on windows, as well as Rubymine on > all platforms but that doesn't feel completely right. > > > > With monodevelop you can open the IronRuby solution as is and > start hacking. > > there should be a dev.sh file which should set the right > environment variables and aliases when you source it. I know the > ironruby team did work to make ironruby work properly on mono a > while ago. > > > > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > On Tue, Jan 26, 2010 at 7:08 PM, C. K. Ponnappa > > wrote: > > Hello everyone, > > Recently I've been trying develop a gem with native extensions in > C, Java and C# just to learn what's involved. When working with > IronRuby, I ran into a few small issues so I figured I'd learn how > to build and modify IronRuby source so I can take a shot at fixing > these issues and contribute *something* to the project, if possible. > > Now, when working with IronRuby I'm having a pretty hard time in > both cases because I'm not on Windows. For now I'm on OSX, and > when I return this oh-so-awesome-but-hugely-expensive laptop to my > employers, I'll be developing on Linux. Can you help me or give me > any advice on how I can get started fixing bugs on IronRuby when > developing on Mono? Is there a guide somewhere already on how to > get a dev environment up on Mono using Emacs/TextMate/MonoDevelop? > > Cheers, > Sidu. > http://blog.sidu.in > http://twitter.com/ponnappa > _______________________________________________ > 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 ivan at flanders.co.nz Wed Jan 27 04:17:53 2010 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 27 Jan 2010 10:17:53 +0100 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> <581455be1001261950m5e5007em759e0a8bba91b0a2@mail.gmail.com> Message-ID: Well this is going to be a very interesting problem to solve when I'm done with the edits on my book. ICorProfilerCallback2 is windows only Mono.Cecil requires steps before running the app On the mono IRC channel I'm told that there is no other way to do it in mono. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Jan 27, 2010 at 6:58 AM, Ivan Porto Carrero wrote: > yes typemock uses the CLR profiling API and is a paid product. I don't know > if typemock runs on Mono either, couldn't find it on their website. > For me running on mono is one of the base requirements of my mocker, > because I'm too often on my mac or linux machines to neglect that. > > That being said 99% of your tests will not need to mock a static method, > and if you know about the limitation you can work around it if you're in > control of the code. > > I've looked into this now and I can't find the ICorProfilerCallback2 > interface in Mono on my mac. Mono allows you to write a profiler too though > but AFAICT that has to be written in C, which I don't know, and it would > also require to start mono with a different set of parameters. > > So I guess the way forward is mono.cecil, but I don't like the approach I > need to take at all: > > Backup the assemblies in the bin > before running the tests instrument every assembly in the bin folder with > all the static method calls wrapped inside a before and after hook. These > hooks call out to caricature and provide the mocking behavior. > Save the modified assembly in the bin > > run the test. > > if there is an error or an interrupt or exit, restore assemblies from > backup and this can go wrong easily. > > It also means I have to make it a requirement to require caricature before > requiring any of your application code in the test_helper or spec_helper > file. > > If somebody has a better solution by all means share, or better yet put it > in and send me a pull request > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Wed, Jan 27, 2010 at 4:50 AM, Miguel Madero wrote: > >> TypeMock is doing thing slightly different that allows you to intercept >> essentially calls to any member (static, sealed types, non-virtuals, etc). >> It take sa different approach than Rhino and Moq, I'm not sure if something >> similar could be done using Ruby, I'm just dropping the idea here.... >> >> On Mon, Jan 25, 2010 at 7:34 AM, Ivan Porto Carrero wrote: >> >>> You don't need to do anything as drastic as disassemble dlls though :). >>> There are several solutions and I think the cleanest one is to use the >>> CLR profiling API. Another avenue I could take is to use Mono.Cecil but I >>> don't like the idea of the IL rewriting stuff. heck even postsharp would >>> probably do the trick. >>> >>> I need to look into the CLR profiling API to make the rest of the stuff >>> happening as that is the cleanest solution IMO. The limitation only exists >>> if you're mocking CLR classes for use in other CLR classes. If you're going >>> to use it in ruby code you can do whatever you want. >>> >>> My mocker does most of what Moq and Rhino.Mocks do, except that it >>> doesn't use LCG or expression trees but just the reflection API once per >>> type. from there on out it uses ruby to do its job. >>> >>> What I need to add but don't know if they are really necessary are call >>> count constraints. >>> And I also want to make the RSpec integration a little bit better so that >>> you can enlist an expectation for verification too. >>> >>> The docs are a bit outdated too, best is to look into >>> spec/bacon/integration that's where I test out the new features or syntax >>> additions. >>> I have a chapter in my book that explains the use of Caricature with >>> RSpec which will be in the update at the end of january. Contact me off list >>> if you want a discount :) >>> >>> --- >>> Met vriendelijke groeten - Best regards - Salutations >>> Ivan Porto Carrero >>> Blog: http://flanders.co.nz >>> Twitter: http://twitter.com/casualjim >>> Author of IronRuby in Action (http://manning.com/carrero) >>> >>> >>> >>> On Sun, Jan 24, 2010 at 8:16 PM, andrew Wilson wrote: >>> >>>> Ivan, >>>> >>>> Seems like a what I was looking for, however according to the >>>> documentation it says it can only mock virtuals and non-static though. >>>> >>>> I don't want that restriction :( One of the advantages I was hoping to >>>> leverage was the ability to re-write methods that I wouldn't otherwise be >>>> able to. >>>> >>>> >>>> -A >>>> >>>> -- >>>> When I wrote this, only God and I understood what I was doing. Now, God >>>> only knows - Karl Weierstrass >>>> >>>> _______________________________________________ >>>> 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 >>> >>> >> >> >> -- >> 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 thibaut.barrere at gmail.com Wed Jan 27 05:33:39 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 27 Jan 2010 11:33:39 +0100 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89B3B0@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B30C@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B398@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B3B0@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4a68b8cf1001270233m43cd4fcbg436bfe6b771a32@mail.gmail.com> Hi, I'll be able to do another test tomorrow if it's still needed (is it ?), I'll have access to my W7 machine then. On the whole thing: I believe that the newcomer, using a regular account, installing the MSI for IronRuby 1.0 (not RC) in the default provided path, should be able to use "igem install xxx" (on xp, vista, w7) without any specific tweak. I'm not saying that it's easy to enable this though :), just that it will be the expected polish from people trying IR out, in my opinion. Is this behaviour the target ? -- Thibaut On Tue, Jan 26, 2010 at 9:47 PM, Shri Borde wrote: > The following raises System.UnauthorizedAccessException with IronRuby, but > works with MRI. > > > > require "fileutils" > > FileUtils.mkdir_p "c:/Program Files/foo" > > > > If we make this work with IronRuby or atleast throw Errno::EACCES, I think > ?user-install will work from non-elevated prompt > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 12:40 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > With RC1 (installed to Program Files by default), I was able to do ?igem > install? from an elevated Command Prompt. > > > > From a normal prompt, ?igem install? failed with the > System.UnauthorizedAccessException with or without ?user-install. We should > track down why this is happening. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 12:18 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > So how does RubyGems know that the target location is restricted? I can?t > just call File.open and catch the exception. Perhaps it eagerly checks for > permissions. > > > > So where does this leave us? Sounds like we can keep installing to > ProgramFiles by default. Users can then run ?gem install? from an elevated > Command Prompt if they want to share gems with other users, or they can use > ?user-install if they prefer not to elevate. Sounds like we are good as is > if Thibaut (or someone else) can confirm that ?user-install does work as > expected. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 26, 2010 12:10 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Technically, the virtual store is an OS level feature, however, not using > --user-install could imply to people that we are installing in a shared > location when we aren?t. > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 12:06 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Might be a .NET issue, but we should work around it in that case. > > > > What I am curious about though is if MRI is installed to Program Files, will > ?gem install? also silently install to the virtual store if it is run > without elevation. If the redirecting is done at the Ruby/OS level, then > RubyGems does not need to do anything, and so ?user-install should not be > needed at all. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 26, 2010 11:54 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Hm, that?s interesting? MRI gets redirected to the virtual store but > IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby > problem? > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 11:44 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > There indeed is a difference in behavior between IronRuby and MRI when > creating a file in %ProgramFiles% from a non-elevated process. MRI silently > writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track > this. I don?t see the System.UnauthorizedAccessException though. > > > > D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" > > > > D:\>dir "c:\Program Files\foo.txt" > > File Not Found > > > > D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" > > 01/26/2010? 11:39 AM???????????????? 0 foo.txt > > ?????????????? 1 File(s)????????????? 0 bytes > > ?????????????? 0 Dir(s)? 122,124,869,632 bytes free > > > > D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" > > mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' > is denied. (Errno::EACCES) > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 11:09 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Another way to simulate ?sudo? is to use an elevated Command Prompt. > http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you > how. If you are using the command prompt a lot, you only need to deal with > the UAC dialog box once when you open the elevated Command Prompt. After > that, all commands executed from the Command Prompt run elevated. > > > > Jim, from an elevated Command prompt, I was able to create a new file in > %ProgramFiles% using notepad, and did not get any UAC dialog box. This would > mean that ?gem install? should also be able to install gems to > %ProgramFiles%. Not sure how this reconciles with your comment about > TrustedInstaller. > > > > Thibaut, could you try using ?igem install ?user-install?? (I wonder if > IronRuby needs to catch the System.UnauthorizedAccessException exception and > raise a Ruby exception for RubyGems to do the right thing.) > > > > Could you also separately try running from an elevated Command Prompt? > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 26, 2010 9:18 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > There are a couple of differences that would be apparent for this proposed > solution: > > 1)????? Runas /user?. Is much longer than sudo ;) > > 2)????? The normal installation directory is owned by TrustedInstaller and > Admins have no rights by default. We wouldn?t have a supported way to share > gems at this time, since that does have security risks. Each user would have > to install their own gems, but (unsupported) you should be able to move > GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) > to a shared location and change permissions on it. > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green > Sent: Tuesday, January 26, 2010 9:03 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Yes, that occurred to me this morning. ;-) > > > > So, runas /user:mymachine\administrator igem install foo for globals gems, > right? > > -- > Will Green > http://hotgazpacho.org/ > > On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > >> Per-user gems should not be the default. In RubyInstaller (mingw MRI), as >> well as MRI on Linux, and I believe OS X, system-wide gems are >> the default. This, of course, would require elevation (sudo gem install >> xxx). > > I believe per-user gems is now the default (it wasn't in the past, but > if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - > http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now > installs gems into ~/.gem if GEM_HOME is not writable. Use > --no-user-install command-line switch to disable this behavior.'). > > Here's what happens on my machine (OS X): > > ~$ gem list | grep less > ~$ sudo gem list | grep less > ~$ gem install less > (...) > ~$ gem list | grep less > less (1.2.21) > ~$ sudo gem list | grep less > (empty) > > ~$ gem -v > 1.3.5 > ~$ ruby -v > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] > > -- Thibaut > _______________________________________________ > 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 ben2004uk at googlemail.com Wed Jan 27 05:39:52 2010 From: ben2004uk at googlemail.com (Ben Hall) Date: Wed, 27 Jan 2010 10:39:52 +0000 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> <581455be1001261950m5e5007em759e0a8bba91b0a2@mail.gmail.com> Message-ID: ICorProfilerCallback2 requires C\COM scaryness :) On Wed, Jan 27, 2010 at 9:17 AM, Ivan Porto Carrero wrote: > Well this is going to be a very interesting problem to solve when I'm done > with the edits on my book. > ICorProfilerCallback2 is windows only > Mono.Cecil requires steps before running the app > On the mono IRC channel I'm told that there is no other way to do it in > mono. > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Wed, Jan 27, 2010 at 6:58 AM, Ivan Porto Carrero > wrote: >> >> yes typemock uses the CLR profiling API and is a paid product. I don't >> know if typemock runs on Mono either, couldn't find it on their website. >> For me running on mono is one of the base requirements of my mocker, >> because I'm too often on my mac or linux machines to neglect that. >> That being said 99% of your tests will not need to mock a static method, >> and if you know about the limitation you can work around it if you're in >> control of the code. >> I've looked into this now and I can't find the ICorProfilerCallback2 >> interface in Mono on my mac. Mono allows you to write a profiler too though >> but AFAICT that has to be written in C, which I don't know, and it would >> also require to start mono with a different set of parameters. >> So I guess the way forward is mono.cecil, but I don't like the approach I >> need to take at all: >> Backup the assemblies in the bin >> before running the tests instrument every assembly in the bin folder with >> all the static method calls wrapped inside a before and after hook. These >> hooks call out to caricature and provide the mocking behavior. >> Save the modified assembly in the bin >> run the test. >> if there is an error or an interrupt or exit, restore assemblies from >> backup and this can go wrong easily. >> It also means I have to make it a requirement to require caricature before >> requiring any of your application code in the test_helper or spec_helper >> file. >> If somebody has a better solution by all means share, or better yet put it >> in and send me a pull request >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> >> >> On Wed, Jan 27, 2010 at 4:50 AM, Miguel Madero >> wrote: >>> >>> TypeMock is doing thing slightly different that allows you to intercept >>> essentially calls to any member (static, sealed types, non-virtuals, etc). >>> It take sa different approach than Rhino and Moq, I'm not sure if something >>> similar could be done using Ruby, I'm just dropping the idea here.... >>> >>> On Mon, Jan 25, 2010 at 7:34 AM, Ivan Porto Carrero >>> wrote: >>>> >>>> You don't need to do anything as drastic as disassemble dlls though :). >>>> There are several solutions and I think the cleanest one is to use the >>>> CLR profiling API. ?Another avenue I could take is to use Mono.Cecil but I >>>> don't like the idea of the IL rewriting stuff. heck even postsharp would >>>> probably do the trick. >>>> I need to look into the CLR profiling API to make the rest of the stuff >>>> happening as that is the cleanest solution IMO. The limitation only exists >>>> if you're mocking CLR classes for use in other CLR classes. If you're going >>>> to use it in ruby code you can do whatever you want. >>>> My mocker does most of what Moq and Rhino.Mocks do, except that it >>>> doesn't use LCG or expression trees but just the reflection API once per >>>> type. from there on out it uses ruby to do its job. >>>> What I need to add but don't know if they are really necessary are?call >>>> count constraints. >>>> And I also want to make the RSpec integration a little bit better so >>>> that you can enlist an expectation for verification too. >>>> The docs are a bit outdated too, best is to look into >>>> spec/bacon/integration that's where I test out the new features or syntax >>>> additions. >>>> I have a chapter in my book that explains the use of Caricature with >>>> RSpec which will be in the update at the end of january. Contact me off list >>>> if you want a discount :) >>>> --- >>>> Met vriendelijke groeten - Best regards - Salutations >>>> Ivan Porto Carrero >>>> Blog: http://flanders.co.nz >>>> Twitter: http://twitter.com/casualjim >>>> Author of IronRuby in Action (http://manning.com/carrero) >>>> >>>> >>>> >>>> On Sun, Jan 24, 2010 at 8:16 PM, andrew Wilson >>>> wrote: >>>>> >>>>> Ivan, >>>>> >>>>> Seems like a what I was looking for, however according to the >>>>> documentation it says it can only mock virtuals and non-static though. >>>>> >>>>> I don't want that restriction :(? One of the advantages I was hoping to >>>>> leverage was the ability to re-write methods that I wouldn't otherwise be >>>>> able to. >>>>> >>>>> -A >>>>> >>>>> -- >>>>> When I wrote this, only God and I understood what I was doing. ?Now, >>>>> God only knows - Karl Weierstrass >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>> >>> >>> >>> -- >>> 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 > > From Shri.Borde at microsoft.com Wed Jan 27 13:26:04 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 27 Jan 2010 18:26:04 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <4a68b8cf1001270233m43cd4fcbg436bfe6b771a32@mail.gmail.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B172@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B30C@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B398@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B3B0@TK5EX14MBXC140.redmond.corp.microsoft.com> <4a68b8cf1001270233m43cd4fcbg436bfe6b771a32@mail.gmail.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C8B007F@TK5EX14MBXC134.redmond.corp.microsoft.com> With yesterday's fix for System.UnauthorizedAccessException and another fix I will do today for File.basename, "igem install" works in either elevated or unelevated mode. In the former case, it will install to %ProgramFiles% allowing for sharing with other users. In the second mode, it falls back to installing to ~/.gems. This sounds like good behavior. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Wednesday, January 27, 2010 2:34 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Hi, I'll be able to do another test tomorrow if it's still needed (is it ?), I'll have access to my W7 machine then. On the whole thing: I believe that the newcomer, using a regular account, installing the MSI for IronRuby 1.0 (not RC) in the default provided path, should be able to use "igem install xxx" (on xp, vista, w7) without any specific tweak. I'm not saying that it's easy to enable this though :), just that it will be the expected polish from people trying IR out, in my opinion. Is this behaviour the target ? -- Thibaut On Tue, Jan 26, 2010 at 9:47 PM, Shri Borde wrote: > The following raises System.UnauthorizedAccessException with IronRuby, but > works with MRI. > > > > require "fileutils" > > FileUtils.mkdir_p "c:/Program Files/foo" > > > > If we make this work with IronRuby or atleast throw Errno::EACCES, I think > -user-install will work from non-elevated prompt > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 12:40 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > With RC1 (installed to Program Files by default), I was able to do "igem > install" from an elevated Command Prompt. > > > > From a normal prompt, "igem install" failed with the > System.UnauthorizedAccessException with or without -user-install. We should > track down why this is happening. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 12:18 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > So how does RubyGems know that the target location is restricted? I can't > just call File.open and catch the exception. Perhaps it eagerly checks for > permissions. > > > > So where does this leave us? Sounds like we can keep installing to > ProgramFiles by default. Users can then run "gem install" from an elevated > Command Prompt if they want to share gems with other users, or they can use > -user-install if they prefer not to elevate. Sounds like we are good as is > if Thibaut (or someone else) can confirm that -user-install does work as > expected. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 26, 2010 12:10 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Technically, the virtual store is an OS level feature, however, not using > --user-install could imply to people that we are installing in a shared > location when we aren't. > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 12:06 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Might be a .NET issue, but we should work around it in that case. > > > > What I am curious about though is if MRI is installed to Program Files, will > "gem install" also silently install to the virtual store if it is run > without elevation. If the redirecting is done at the Ruby/OS level, then > RubyGems does not need to do anything, and so -user-install should not be > needed at all. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 26, 2010 11:54 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Hm, that's interesting. MRI gets redirected to the virtual store but > IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby > problem. > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 11:44 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > There indeed is a difference in behavior between IronRuby and MRI when > creating a file in %ProgramFiles% from a non-elevated process. MRI silently > writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track > this. I don't see the System.UnauthorizedAccessException though. > > > > D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" > > > > D:\>dir "c:\Program Files\foo.txt" > > File Not Found > > > > D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" > > 01/26/2010? 11:39 AM???????????????? 0 foo.txt > > ?????????????? 1 File(s)????????????? 0 bytes > > ?????????????? 0 Dir(s)? 122,124,869,632 bytes free > > > > D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" > > mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' > is denied. (Errno::EACCES) > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 11:09 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Another way to simulate "sudo" is to use an elevated Command Prompt. > http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you > how. If you are using the command prompt a lot, you only need to deal with > the UAC dialog box once when you open the elevated Command Prompt. After > that, all commands executed from the Command Prompt run elevated. > > > > Jim, from an elevated Command prompt, I was able to create a new file in > %ProgramFiles% using notepad, and did not get any UAC dialog box. This would > mean that "gem install" should also be able to install gems to > %ProgramFiles%. Not sure how this reconciles with your comment about > TrustedInstaller. > > > > Thibaut, could you try using "igem install -user-install"? (I wonder if > IronRuby needs to catch the System.UnauthorizedAccessException exception and > raise a Ruby exception for RubyGems to do the right thing.) > > > > Could you also separately try running from an elevated Command Prompt? > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 26, 2010 9:18 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > There are a couple of differences that would be apparent for this proposed > solution: > > 1)????? Runas /user.. Is much longer than sudo ;) > > 2)????? The normal installation directory is owned by TrustedInstaller and > Admins have no rights by default. We wouldn't have a supported way to share > gems at this time, since that does have security risks. Each user would have > to install their own gems, but (unsupported) you should be able to move > GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) > to a shared location and change permissions on it. > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green > Sent: Tuesday, January 26, 2010 9:03 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Yes, that occurred to me this morning. ;-) > > > > So, runas /user:mymachine\administrator igem install foo for globals gems, > right? > > -- > Will Green > http://hotgazpacho.org/ > > On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > wrote: > >> Per-user gems should not be the default. In RubyInstaller (mingw MRI), as >> well as MRI on Linux, and I believe OS X, system-wide gems are >> the default. This, of course, would require elevation (sudo gem install >> xxx). > > I believe per-user gems is now the default (it wasn't in the past, but > if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - > http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now > installs gems into ~/.gem if GEM_HOME is not writable. Use > --no-user-install command-line switch to disable this behavior.'). > > Here's what happens on my machine (OS X): > > ~$ gem list | grep less > ~$ sudo gem list | grep less > ~$ gem install less > (...) > ~$ gem list | grep less > less (1.2.21) > ~$ sudo gem list | grep less > (empty) > > ~$ gem -v > 1.3.5 > ~$ ruby -v > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] > > -- Thibaut > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Wed Jan 27 13:26:46 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 27 Jan 2010 18:26:46 +0000 Subject: [Ironruby-core] Code Review: Symbols and YAML Message-ID: <4B342496A3EFEB48839E10BB4BF5964C3846CEA7@TK5EX14MBXC129.redmond.corp.microsoft.com> tfpt review /shelveset:RSym14;tomat DLR: Adds ExpressionCollectionBuilder as a specialization of ExpressionCollectionBuilder. Ruby: Replaces SymbolId usage by RubySymbol class. Ruby symbols are possibly encoded interned frozen strings. Enables KCODE on Silverlight. Allows class reopening in libraries (a class defined in Ruby can be reopened by a library class). Fixes bunch of bugs in YAML. Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3466 Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Jan 27 13:39:14 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 27 Jan 2010 18:39:14 +0000 Subject: [Ironruby-core] Code Review: Symbols and YAML In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34CA5311@TK5EX14MBXC116.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C3846CEA7@TK5EX14MBXC129.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD34CA5311@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C38489CAC@TK5EX14MBXC122.redmond.corp.microsoft.com> It is more general. Any expression tree node that holds on a list of Expressions could (should ultimately) have its factory there, not just MethodCall. Tomas From: Dino Viehland Sent: Wednesday, January 27, 2010 10:36 AM To: Tomas Matousek; IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: Symbols and YAML Shouldn't ExpressionCollectionBuilder be more appropriately called CallExpressionBuilder? Other than that looks fine. From: Tomas Matousek Sent: Wednesday, January 27, 2010 10:27 AM To: IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: Symbols and YAML tfpt review /shelveset:RSym14;tomat DLR: Adds ExpressionCollectionBuilder as a specialization of ExpressionCollectionBuilder. Ruby: Replaces SymbolId usage by RubySymbol class. Ruby symbols are possibly encoded interned frozen strings. Enables KCODE on Silverlight. Allows class reopening in libraries (a class defined in Ruby can be reopened by a library class). Fixes bunch of bugs in YAML. Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3466 Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Wed Jan 27 17:55:24 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 27 Jan 2010 22:55:24 +0000 Subject: [Ironruby-core] Mocking behavior between clr types In-Reply-To: References: <9dbb46901001241116j1fed671emae361fd05615c357@mail.gmail.com> <581455be1001261950m5e5007em759e0a8bba91b0a2@mail.gmail.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C8B2B3B@TK5EX14MBXC134.redmond.corp.microsoft.com> One suggestion would be to prototype with Mono.Cecil to do the IL rewriting and get rcov working with that. If that does work, then it might turn out to be an acceptable solution inspite of the need to instrument the assemblies up front since you don't do coverage runs too often. If the instrumenting is not acceptable at that point, I am sure we can find samples using ICorProfilerCallback2 that can be used to do the IL rewriting on the fly. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Wednesday, January 27, 2010 2:40 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Mocking behavior between clr types ICorProfilerCallback2 requires C\COM scaryness :) On Wed, Jan 27, 2010 at 9:17 AM, Ivan Porto Carrero wrote: > Well this is going to be a very interesting problem to solve when I'm done > with the edits on my book. > ICorProfilerCallback2 is windows only > Mono.Cecil requires steps before running the app > On the mono IRC channel I'm told that there is no other way to do it in > mono. > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Wed, Jan 27, 2010 at 6:58 AM, Ivan Porto Carrero > wrote: >> >> yes typemock uses the CLR profiling API and is a paid product. I don't >> know if typemock runs on Mono either, couldn't find it on their website. >> For me running on mono is one of the base requirements of my mocker, >> because I'm too often on my mac or linux machines to neglect that. >> That being said 99% of your tests will not need to mock a static method, >> and if you know about the limitation you can work around it if you're in >> control of the code. >> I've looked into this now and I can't find the ICorProfilerCallback2 >> interface in Mono on my mac. Mono allows you to write a profiler too though >> but AFAICT that has to be written in C, which I don't know, and it would >> also require to start mono with a different set of parameters. >> So I guess the way forward is mono.cecil, but I don't like the approach I >> need to take at all: >> Backup the assemblies in the bin >> before running the tests instrument every assembly in the bin folder with >> all the static method calls wrapped inside a before and after hook. These >> hooks call out to caricature and provide the mocking behavior. >> Save the modified assembly in the bin >> run the test. >> if there is an error or an interrupt or exit, restore assemblies from >> backup and this can go wrong easily. >> It also means I have to make it a requirement to require caricature before >> requiring any of your application code in the test_helper or spec_helper >> file. >> If somebody has a better solution by all means share, or better yet put it >> in and send me a pull request >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> >> >> On Wed, Jan 27, 2010 at 4:50 AM, Miguel Madero >> wrote: >>> >>> TypeMock is doing thing slightly different that allows you to intercept >>> essentially calls to any member (static, sealed types, non-virtuals, etc). >>> It take sa different approach than Rhino and Moq, I'm not sure if something >>> similar could be done using Ruby, I'm just dropping the idea here.... >>> >>> On Mon, Jan 25, 2010 at 7:34 AM, Ivan Porto Carrero >>> wrote: >>>> >>>> You don't need to do anything as drastic as disassemble dlls though :). >>>> There are several solutions and I think the cleanest one is to use the >>>> CLR profiling API. ?Another avenue I could take is to use Mono.Cecil but I >>>> don't like the idea of the IL rewriting stuff. heck even postsharp would >>>> probably do the trick. >>>> I need to look into the CLR profiling API to make the rest of the stuff >>>> happening as that is the cleanest solution IMO. The limitation only exists >>>> if you're mocking CLR classes for use in other CLR classes. If you're going >>>> to use it in ruby code you can do whatever you want. >>>> My mocker does most of what Moq and Rhino.Mocks do, except that it >>>> doesn't use LCG or expression trees but just the reflection API once per >>>> type. from there on out it uses ruby to do its job. >>>> What I need to add but don't know if they are really necessary are?call >>>> count constraints. >>>> And I also want to make the RSpec integration a little bit better so >>>> that you can enlist an expectation for verification too. >>>> The docs are a bit outdated too, best is to look into >>>> spec/bacon/integration that's where I test out the new features or syntax >>>> additions. >>>> I have a chapter in my book that explains the use of Caricature with >>>> RSpec which will be in the update at the end of january. Contact me off list >>>> if you want a discount :) >>>> --- >>>> Met vriendelijke groeten - Best regards - Salutations >>>> Ivan Porto Carrero >>>> Blog: http://flanders.co.nz >>>> Twitter: http://twitter.com/casualjim >>>> Author of IronRuby in Action (http://manning.com/carrero) >>>> >>>> >>>> >>>> On Sun, Jan 24, 2010 at 8:16 PM, andrew Wilson >>>> wrote: >>>>> >>>>> Ivan, >>>>> >>>>> Seems like a what I was looking for, however according to the >>>>> documentation it says it can only mock virtuals and non-static though. >>>>> >>>>> I don't want that restriction :(? One of the advantages I was hoping to >>>>> leverage was the ability to re-write methods that I wouldn't otherwise be >>>>> able to. >>>>> >>>>> -A >>>>> >>>>> -- >>>>> When I wrote this, only God and I understood what I was doing. ?Now, >>>>> God only knows - Karl Weierstrass >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>> >>> >>> >>> -- >>> 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 > > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Wed Jan 27 18:47:38 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 27 Jan 2010 23:47:38 +0000 Subject: [Ironruby-core] Code Review: Basename Message-ID: <4B342496A3EFEB48839E10BB4BF5964C3848C691@TK5EX14MBXC122.redmond.corp.microsoft.com> tfpt review "/shelveset:Basename;REDMOND\tomat" File.basename fix Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Basename.diff Type: application/octet-stream Size: 8028 bytes Desc: Basename.diff URL: From Shri.Borde at microsoft.com Wed Jan 27 19:01:29 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 28 Jan 2010 00:01:29 +0000 Subject: [Ironruby-core] Code Review: Basename In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C3848C691@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C3848C691@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C8B3FEC@TK5EX14MBXC134.redmond.corp.microsoft.com> Looks good. -----Original Message----- From: Tomas Matousek Sent: Wednesday, January 27, 2010 3:48 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: Basename tfpt review "/shelveset:Basename;REDMOND\tomat" File.basename fix Tomas From me at miguelmadero.com Wed Jan 27 19:16:17 2010 From: me at miguelmadero.com (Miguel Madero) Date: Thu, 28 Jan 2010 11:16:17 +1100 Subject: [Ironruby-core] Why IronRuby? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920CD71A@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <34ef3a21c3dc46164ec8d0c0203da956@ruby-forum.com> <7c1b59c01001261130r1e1e3748w4c6fd084661fd19@mail.gmail.com> <581455be1001262208p5df9fa41va69122edfc785165@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920CD71A@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <581455be1001271616k3eabf224n99eb2914d2e9bddd@mail.gmail.com> Jimmy, I know I can consume XAML from Ruby, what doesn't work is the other way around, create and set properties of Ruby objects from XAML About converting what they have to ruby, sounds like a tough task, they tend to generate the ugliest XAML, certainly something that can be automated, but that's not the issue. The problem is that we need to create some custom controls, converters, behaviors, attached properties, etc, in code and they won't be able to consume it from XAML so they woudl be limited to using "assets" created in C# (or we would have to create wrappers for our IR implementations). Now that I think about it, it might not be that hard to generate the wrappers for our IR objects, sounds simple at least for things like Converters where we only care about the interface. On Wed, Jan 27, 2010 at 5:48 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > There?s nothing stopping you from using Blend to generate XAML, and > loading it from IronRuby. The tutorial app in the IronRuby samples directory > was built like that. You?re right that AttachedProperties won?t work today, > but if you really want to use XAML and Ruby together, you can have > guidelines for your designers on what blend features they can use, or have > some way of converting what they write to Ruby. > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Miguel Madero > *Sent:* Tuesday, January 26, 2010 10:08 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Why IronRuby? > > > > I've been willing to try it with Silverlight Apps, I know it has a lot of > potential and I'm thinking of IR as full replacement of C#. Binding doesn't > work for dynamic objects which is a big showstopper (although I know > there're ways around it, I've not had a chance to get aroudn that). I see a > lot of application frameworks that would be better implemented on a real > dynamic language. People is struggling to fix some C# limitations with weird > things like TypeDescriptors, DynamicProxies, AOP, Code Generation, etc. > > > > However, the lack of support from tools like the Visual Studio Designer and > Blend is another showstopper. I'm happy to handcode my XAML or even add > elements from ruby code, but for bigger proejects we might have a designer > working in Blend, creating controls in XAML, probably even using Attached > Properties, this are all things that won't work ATM with IronRuby so we have > to fault back to a statically type language to define this. So we gain > productivity in some areasb, but loose it in others, I guess for some apps > we would end up with a mixed approach, but I would ike to use IR as the main > language and C# for those thigns that I can't do in IR and not the > otherway around. > > > > > > > -- > 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 jdeville at microsoft.com Wed Jan 27 21:47:17 2010 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 28 Jan 2010 02:47:17 +0000 Subject: [Ironruby-core] Code Review: Basename In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C8B3FEC@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C3848C691@TK5EX14MBXC122.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C8B3FEC@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: Doesn't case sensitive need to be true for Unix and OS X? JD -----Original Message----- From: Shri Borde Sent: Wednesday, January 27, 2010 4:01 PM To: Tomas Matousek; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: Basename Looks good. -----Original Message----- From: Tomas Matousek Sent: Wednesday, January 27, 2010 3:48 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: Basename tfpt review "/shelveset:Basename;REDMOND\tomat" File.basename fix Tomas From adam.burmister at gmail.com Thu Jan 28 14:53:27 2010 From: adam.burmister at gmail.com (Adam Burmister) Date: Thu, 28 Jan 2010 19:53:27 +0000 Subject: [Ironruby-core] Looking for more information on rubifying C# classes Message-ID: Hello IronRubyists, I'm currently hunting around trying to find references on rubifying a C# class for something I'm writing. I have a few questions: - Can you confirm this summary of the process to be correct (am I missing any steps): The generate class intialiser exe parses the attributes out and generates the initializer file. Then you recompile the library with the added initializer class included. When using load_assembly you pass in the name of the initializer class name as the second parameter. Under the covers that initializer tells IronRuby how to create the ruby API. - Is there any documentation for the Ruby* attributes? (RubyMethod, RubyConstant, etc) I can easily guess at what these are/do, but I just wanted to know if there is a definitive source. - What are the differences between require and load_assembly (besides load_assembly loading the file on every call) Any answers or comments would be greatly appreciated. Thank you, Adam Burmister From Shri.Borde at microsoft.com Thu Jan 28 15:17:47 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 28 Jan 2010 20:17:47 +0000 Subject: [Ironruby-core] Looking for more information on rubifying C# classes In-Reply-To: References: Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C8B6FC8@TK5EX14MBXC134.redmond.corp.microsoft.com> The steps sound correct. The attributes are pretty easy to understand if you search for existing uses. The harder part is how to declare the arguments with annotations for Ruby semantics. http://wiki.github.com/ironruby/ironruby/modifying-the-sources has some info. Please add to it if you can. Could you provide info about why you need to Rubyify your C# class? IronRuby already exposes a Rubified view for all .NET classes (for example, allowing you to use "lower_case" names for methods)? You need to rubyify your code mainly if you want strict Ruby semantics as is needed by the builtin library types. load_assembly is just more explicit. See http://ironruby.net/Documentation/.NET/Assemblies. load_assembly does not load the assembly on every call as .NET does not support reloading an assembly multiple times. Perhaps it should have been called require_assembly... -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Adam Burmister Sent: Thursday, January 28, 2010 11:53 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Looking for more information on rubifying C# classes Hello IronRubyists, I'm currently hunting around trying to find references on rubifying a C# class for something I'm writing. I have a few questions: - Can you confirm this summary of the process to be correct (am I missing any steps): The generate class intialiser exe parses the attributes out and generates the initializer file. Then you recompile the library with the added initializer class included. When using load_assembly you pass in the name of the initializer class name as the second parameter. Under the covers that initializer tells IronRuby how to create the ruby API. - Is there any documentation for the Ruby* attributes? (RubyMethod, RubyConstant, etc) I can easily guess at what these are/do, but I just wanted to know if there is a definitive source. - What are the differences between require and load_assembly (besides load_assembly loading the file on every call) Any answers or comments would be greatly appreciated. Thank you, Adam Burmister _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Shri.Borde at microsoft.com Thu Jan 28 15:48:29 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 28 Jan 2010 20:48:29 +0000 Subject: [Ironruby-core] Looking for more information on rubifying C# classes In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C8B6FC8@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C8B6FC8@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C8B7053@TK5EX14MBXC134.redmond.corp.microsoft.com> Also, load_assembly calls the library initializers if called with a second argument which is the namespace within the assembly to look in for the attributes (RubyMethod, RubyConstant, etc). See Merlin\Main\Languages\Ruby\Libs\thread.rb as an example for this usage of load_library. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Thursday, January 28, 2010 12:18 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Looking for more information on rubifying C# classes The steps sound correct. The attributes are pretty easy to understand if you search for existing uses. The harder part is how to declare the arguments with annotations for Ruby semantics. http://wiki.github.com/ironruby/ironruby/modifying-the-sources has some info. Please add to it if you can. Could you provide info about why you need to Rubyify your C# class? IronRuby already exposes a Rubified view for all .NET classes (for example, allowing you to use "lower_case" names for methods)? You need to rubyify your code mainly if you want strict Ruby semantics as is needed by the builtin library types. load_assembly is just more explicit. See http://ironruby.net/Documentation/.NET/Assemblies. load_assembly does not load the assembly on every call as .NET does not support reloading an assembly multiple times. Perhaps it should have been called require_assembly... -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Adam Burmister Sent: Thursday, January 28, 2010 11:53 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Looking for more information on rubifying C# classes Hello IronRubyists, I'm currently hunting around trying to find references on rubifying a C# class for something I'm writing. I have a few questions: - Can you confirm this summary of the process to be correct (am I missing any steps): The generate class intialiser exe parses the attributes out and generates the initializer file. Then you recompile the library with the added initializer class included. When using load_assembly you pass in the name of the initializer class name as the second parameter. Under the covers that initializer tells IronRuby how to create the ruby API. - Is there any documentation for the Ruby* attributes? (RubyMethod, RubyConstant, etc) I can easily guess at what these are/do, but I just wanted to know if there is a definitive source. - What are the differences between require and load_assembly (besides load_assembly loading the file on every call) Any answers or comments would be greatly appreciated. Thank you, Adam Burmister _______________________________________________ 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 Thu Jan 28 19:30:43 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 29 Jan 2010 00:30:43 +0000 Subject: [Ironruby-core] Updated Rails instructions In-Reply-To: References: <1B42307CD4AADD438CDDA2FE1121CC920AD3C5@TK5EX14MBXC141.redmond.corp.microsoft.com> <7f8eb63283ae60694a5991ca1a6165e5@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920B5EF6@TK5EX14MBXC141.redmond.corp.microsoft.com> <67568604a7b3287bee0833857e0524fa@ruby-forum.com> <54f4c996c12c23fe54d99979d61cb191@ruby-forum.com> <1B42307CD4AADD438CDDA2FE1121CC920BC9EA@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920D6A92@TK5EX14MBXC138.redmond.corp.microsoft.com> I think they will work as a good enough repro. I'll let you know when we have a fix. Ivan, are you looking into this? ~Jimmy > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Sam Clopton > Sent: Tuesday, January 26, 2010 2:18 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Updated Rails instructions > > The database has information that is FOUO. Even though to me it seems that > none of the source code has any of that information (why should it), I don't > really want to send any of it other than snippets just to protect myself. I > should be able to put together a different case at home that has the same > problems as mine. > > If the ActiveRecord unit tests noted above by Shri will work, let me know. > > > > Ivan Porto carrero wrote: > > I'm not seeing that issue atm but I'll work on ironruby-sqlserver > > tonight. > > So if Sam wants to send me a repro I can also look at the cause for his > > problem and hopefully fix it. > > --- > > Met vriendelijke groeten - Best regards - Salutations > > Ivan Porto Carrero > > Blog: http://flanders.co.nz > > Twitter: http://twitter.com/casualjim > > Author of IronRuby in Action (http://manning.com/carrero) > > > > > > > > On Tue, Jan 26, 2010 at 10:06 AM, Jimmy Schementi < > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Thu Jan 28 20:06:12 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 29 Jan 2010 01:06:12 +0000 Subject: [Ironruby-core] Code Review: Y2 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C3848E1B1@TK5EX14MBXC122.redmond.corp.microsoft.com> tfpt review "/shelveset:Y2;REDMOND\tomat" Comment : Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3307 and related issues. Improves YAML error reporting. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Y2.diff Type: application/octet-stream Size: 42632 bytes Desc: Y2.diff URL: From thibaut.barrere at gmail.com Fri Jan 29 03:58:17 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Fri, 29 Jan 2010 09:58:17 +0100 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C8B007F@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B30C@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B398@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B3B0@TK5EX14MBXC140.redmond.corp.microsoft.com> <4a68b8cf1001270233m43cd4fcbg436bfe6b771a32@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C8B007F@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: <4a68b8cf1001290058v4edef285p5c2ea4f5b1e5185f@mail.gmail.com> > > With yesterday's fix for System.UnauthorizedAccessException and another fix > I will do today for File.basename, "igem install" works in either elevated > or unelevated mode. In the former case, it will install to %ProgramFiles% > allowing for sharing with other users. In the second mode, it falls back to > installing to ~/.gems. This sounds like good behavior. > yep - sounds perfect. I'll be able to do more test once the new MSI is pushed out. thanks for the discussion and fixes :) -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Fri Jan 29 12:40:25 2010 From: will at hotgazpacho.org (Will Green) Date: Fri, 29 Jan 2010 12:40:25 -0500 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C8B007F@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B30C@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B398@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B3B0@TK5EX14MBXC140.redmond.corp.microsoft.com> <4a68b8cf1001270233m43cd4fcbg436bfe6b771a32@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C8B007F@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: <398d3e0e1001290940p34a9575ahff261525b7776449@mail.gmail.com> In MRI, when you attempt to gem install, but don't have access to the system gems path, you get a warning before putting them in ~/.gems Is this behavior preserved for IronRuby? -- Will Green http://hotgazpacho.org/ On Wed, Jan 27, 2010 at 1:26 PM, Shri Borde wrote: > With yesterday's fix for System.UnauthorizedAccessException and another fix > I will do today for File.basename, "igem install" works in either elevated > or unelevated mode. In the former case, it will install to %ProgramFiles% > allowing for sharing with other users. In the second mode, it falls back to > installing to ~/.gems. This sounds like good behavior. > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re > Sent: Wednesday, January 27, 2010 2:34 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > Hi, > > I'll be able to do another test tomorrow if it's still needed (is it > ?), I'll have access to my W7 machine then. > > On the whole thing: I believe that the newcomer, using a regular > account, installing the MSI for IronRuby 1.0 (not RC) in the default > provided path, should be able to use "igem install xxx" (on xp, vista, > w7) without any specific tweak. > > I'm not saying that it's easy to enable this though :), just that it > will be the expected polish from people trying IR out, in my opinion. > > Is this behaviour the target ? > > -- Thibaut > > > On Tue, Jan 26, 2010 at 9:47 PM, Shri Borde > wrote: > > The following raises System.UnauthorizedAccessException with IronRuby, > but > > works with MRI. > > > > > > > > require "fileutils" > > > > FileUtils.mkdir_p "c:/Program Files/foo" > > > > > > > > If we make this work with IronRuby or atleast throw Errno::EACCES, I > think > > -user-install will work from non-elevated prompt > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > > Sent: Tuesday, January 26, 2010 12:40 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] "igem install rake" raise an > > System.UnauthorizedAccessException (Windows 7) > > > > > > > > With RC1 (installed to Program Files by default), I was able to do "igem > > install" from an elevated Command Prompt. > > > > > > > > From a normal prompt, "igem install" failed with the > > System.UnauthorizedAccessException with or without -user-install. We > should > > track down why this is happening. > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > > Sent: Tuesday, January 26, 2010 12:18 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] "igem install rake" raise an > > System.UnauthorizedAccessException (Windows 7) > > > > > > > > So how does RubyGems know that the target location is restricted? I can't > > just call File.open and catch the exception. Perhaps it eagerly checks > for > > permissions. > > > > > > > > So where does this leave us? Sounds like we can keep installing to > > ProgramFiles by default. Users can then run "gem install" from an > elevated > > Command Prompt if they want to share gems with other users, or they can > use > > -user-install if they prefer not to elevate. Sounds like we are good as > is > > if Thibaut (or someone else) can confirm that -user-install does work as > > expected. > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > > Sent: Tuesday, January 26, 2010 12:10 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] "igem install rake" raise an > > System.UnauthorizedAccessException (Windows 7) > > > > > > > > Technically, the virtual store is an OS level feature, however, not using > > --user-install could imply to people that we are installing in a shared > > location when we aren't. > > > > > > > > JD > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > > Sent: Tuesday, January 26, 2010 12:06 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] "igem install rake" raise an > > System.UnauthorizedAccessException (Windows 7) > > > > > > > > Might be a .NET issue, but we should work around it in that case. > > > > > > > > What I am curious about though is if MRI is installed to Program Files, > will > > "gem install" also silently install to the virtual store if it is run > > without elevation. If the redirecting is done at the Ruby/OS level, then > > RubyGems does not need to do anything, and so -user-install should not be > > needed at all. > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > > Sent: Tuesday, January 26, 2010 11:54 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] "igem install rake" raise an > > System.UnauthorizedAccessException (Windows 7) > > > > > > > > Hm, that's interesting. MRI gets redirected to the virtual store but > > IronRuby does not, I wonder if that is more of a .NET issue than a > IronRuby > > problem. > > > > > > > > JD > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > > Sent: Tuesday, January 26, 2010 11:44 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] "igem install rake" raise an > > System.UnauthorizedAccessException (Windows 7) > > > > > > > > There indeed is a difference in behavior between IronRuby and MRI when > > creating a file in %ProgramFiles% from a non-elevated process. MRI > silently > > writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened > > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track > > this. I don't see the System.UnauthorizedAccessException though. > > > > > > > > D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" > > > > > > > > D:\>dir "c:\Program Files\foo.txt" > > > > File Not Found > > > > > > > > D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" > > > > 01/26/2010 11:39 AM 0 foo.txt > > > > 1 File(s) 0 bytes > > > > 0 Dir(s) 122,124,869,632 bytes free > > > > > > > > D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" > > > > mscorlib:0:in `WinIOError': Access to the path 'c:\\Program > Files\\foo.txt' > > is denied. (Errno::EACCES) > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > > Sent: Tuesday, January 26, 2010 11:09 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] "igem install rake" raise an > > System.UnauthorizedAccessException (Windows 7) > > > > > > > > Another way to simulate "sudo" is to use an elevated Command Prompt. > > http://www.sevenforums.com/tutorials/11841-run-administrator.html tells > you > > how. If you are using the command prompt a lot, you only need to deal > with > > the UAC dialog box once when you open the elevated Command Prompt. After > > that, all commands executed from the Command Prompt run elevated. > > > > > > > > Jim, from an elevated Command prompt, I was able to create a new file in > > %ProgramFiles% using notepad, and did not get any UAC dialog box. This > would > > mean that "gem install" should also be able to install gems to > > %ProgramFiles%. Not sure how this reconciles with your comment about > > TrustedInstaller. > > > > > > > > Thibaut, could you try using "igem install -user-install"? (I wonder if > > IronRuby needs to catch the System.UnauthorizedAccessException exception > and > > raise a Ruby exception for RubyGems to do the right thing.) > > > > > > > > Could you also separately try running from an elevated Command Prompt? > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > > Sent: Tuesday, January 26, 2010 9:18 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] "igem install rake" raise an > > System.UnauthorizedAccessException (Windows 7) > > > > > > > > There are a couple of differences that would be apparent for this > proposed > > solution: > > > > 1) Runas /user.. Is much longer than sudo ;) > > > > 2) The normal installation directory is owned by TrustedInstaller > and > > Admins have no rights by default. We wouldn't have a supported way to > share > > gems at this time, since that does have security risks. Each user would > have > > to install their own gems, but (unsupported) you should be able to move > > GEM_PATH (assuming we can figure out how to share between IronRuby and > Ruby) > > to a shared location and change permissions on it. > > > > > > > > JD > > > > > > > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green > > Sent: Tuesday, January 26, 2010 9:03 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] "igem install rake" raise an > > System.UnauthorizedAccessException (Windows 7) > > > > > > > > Yes, that occurred to me this morning. ;-) > > > > > > > > So, runas /user:mymachine\administrator igem install foo for globals > gems, > > right? > > > > -- > > Will Green > > http://hotgazpacho.org/ > > > > On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re < > thibaut.barrere at gmail.com> > > wrote: > > > >> Per-user gems should not be the default. In RubyInstaller (mingw MRI), > as > >> well as MRI on Linux, and I believe OS X, system-wide gems are > >> the default. This, of course, would require elevation (sudo gem install > >> xxx). > > > > I believe per-user gems is now the default (it wasn't in the past, but > > if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - > > http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now > > installs gems into ~/.gem if GEM_HOME is not writable. Use > > --no-user-install command-line switch to disable this behavior.'). > > > > Here's what happens on my machine (OS X): > > > > ~$ gem list | grep less > > ~$ sudo gem list | grep less > > ~$ gem install less > > (...) > > ~$ gem list | grep less > > less (1.2.21) > > ~$ sudo gem list | grep less > > (empty) > > > > ~$ gem -v > > 1.3.5 > > ~$ ruby -v > > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] > > > > -- Thibaut > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Fri Jan 29 13:25:05 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 29 Jan 2010 18:25:05 +0000 Subject: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In-Reply-To: <398d3e0e1001290940p34a9575ahff261525b7776449@mail.gmail.com> References: <4a68b8cf1001250256q651b00b1q7cbf602199871d60@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B1E4@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B285@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B30C@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B398@TK5EX14MBXC140.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C89B3B0@TK5EX14MBXC140.redmond.corp.microsoft.com> <4a68b8cf1001270233m43cd4fcbg436bfe6b771a32@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C8B007F@TK5EX14MBXC134.redmond.corp.microsoft.com> <398d3e0e1001290940p34a9575ahff261525b7776449@mail.gmail.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C8C878B@TK5EX14MBXC132.redmond.corp.microsoft.com> Yup, it is. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green Sent: Friday, January 29, 2010 9:40 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) In MRI, when you attempt to gem install, but don't have access to the system gems path, you get a warning before putting them in ~/.gems Is this behavior preserved for IronRuby? -- Will Green http://hotgazpacho.org/ On Wed, Jan 27, 2010 at 1:26 PM, Shri Borde > wrote: With yesterday's fix for System.UnauthorizedAccessException and another fix I will do today for File.basename, "igem install" works in either elevated or unelevated mode. In the former case, it will install to %ProgramFiles% allowing for sharing with other users. In the second mode, it falls back to installing to ~/.gems. This sounds like good behavior. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Wednesday, January 27, 2010 2:34 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] "igem install rake" raise an System.UnauthorizedAccessException (Windows 7) Hi, I'll be able to do another test tomorrow if it's still needed (is it ?), I'll have access to my W7 machine then. On the whole thing: I believe that the newcomer, using a regular account, installing the MSI for IronRuby 1.0 (not RC) in the default provided path, should be able to use "igem install xxx" (on xp, vista, w7) without any specific tweak. I'm not saying that it's easy to enable this though :), just that it will be the expected polish from people trying IR out, in my opinion. Is this behaviour the target ? -- Thibaut On Tue, Jan 26, 2010 at 9:47 PM, Shri Borde > wrote: > The following raises System.UnauthorizedAccessException with IronRuby, but > works with MRI. > > > > require "fileutils" > > FileUtils.mkdir_p "c:/Program Files/foo" > > > > If we make this work with IronRuby or atleast throw Errno::EACCES, I think > -user-install will work from non-elevated prompt > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 12:40 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > With RC1 (installed to Program Files by default), I was able to do "igem > install" from an elevated Command Prompt. > > > > From a normal prompt, "igem install" failed with the > System.UnauthorizedAccessException with or without -user-install. We should > track down why this is happening. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 12:18 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > So how does RubyGems know that the target location is restricted? I can't > just call File.open and catch the exception. Perhaps it eagerly checks for > permissions. > > > > So where does this leave us? Sounds like we can keep installing to > ProgramFiles by default. Users can then run "gem install" from an elevated > Command Prompt if they want to share gems with other users, or they can use > -user-install if they prefer not to elevate. Sounds like we are good as is > if Thibaut (or someone else) can confirm that -user-install does work as > expected. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 26, 2010 12:10 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Technically, the virtual store is an OS level feature, however, not using > --user-install could imply to people that we are installing in a shared > location when we aren't. > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 12:06 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Might be a .NET issue, but we should work around it in that case. > > > > What I am curious about though is if MRI is installed to Program Files, will > "gem install" also silently install to the virtual store if it is run > without elevation. If the redirecting is done at the Ruby/OS level, then > RubyGems does not need to do anything, and so -user-install should not be > needed at all. > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 26, 2010 11:54 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Hm, that's interesting. MRI gets redirected to the virtual store but > IronRuby does not, I wonder if that is more of a .NET issue than a IronRuby > problem. > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 11:44 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > There indeed is a difference in behavior between IronRuby and MRI when > creating a file in %ProgramFiles% from a non-elevated process. MRI silently > writes to USERPROFILE. IronRuby raises Errno::EACCES. I have opened > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3685 to track > this. I don't see the System.UnauthorizedAccessException though. > > > > D:\>ruby -e "File.open('c:/Program Files/foo.txt', 'w+') {}" > > > > D:\>dir "c:\Program Files\foo.txt" > > File Not Found > > > > D:\>dir "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\foo.txt" > > 01/26/2010 11:39 AM 0 foo.txt > > 1 File(s) 0 bytes > > 0 Dir(s) 122,124,869,632 bytes free > > > > D:\>rbx -e "File.open('c:/Program Files/foo.txt', 'w+') {}" > > mscorlib:0:in `WinIOError': Access to the path 'c:\\Program Files\\foo.txt' > is denied. (Errno::EACCES) > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Tuesday, January 26, 2010 11:09 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Another way to simulate "sudo" is to use an elevated Command Prompt. > http://www.sevenforums.com/tutorials/11841-run-administrator.html tells you > how. If you are using the command prompt a lot, you only need to deal with > the UAC dialog box once when you open the elevated Command Prompt. After > that, all commands executed from the Command Prompt run elevated. > > > > Jim, from an elevated Command prompt, I was able to create a new file in > %ProgramFiles% using notepad, and did not get any UAC dialog box. This would > mean that "gem install" should also be able to install gems to > %ProgramFiles%. Not sure how this reconciles with your comment about > TrustedInstaller. > > > > Thibaut, could you try using "igem install -user-install"? (I wonder if > IronRuby needs to catch the System.UnauthorizedAccessException exception and > raise a Ruby exception for RubyGems to do the right thing.) > > > > Could you also separately try running from an elevated Command Prompt? > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Tuesday, January 26, 2010 9:18 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > There are a couple of differences that would be apparent for this proposed > solution: > > 1) Runas /user.. Is much longer than sudo ;) > > 2) The normal installation directory is owned by TrustedInstaller and > Admins have no rights by default. We wouldn't have a supported way to share > gems at this time, since that does have security risks. Each user would have > to install their own gems, but (unsupported) you should be able to move > GEM_PATH (assuming we can figure out how to share between IronRuby and Ruby) > to a shared location and change permissions on it. > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Will Green > Sent: Tuesday, January 26, 2010 9:03 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] "igem install rake" raise an > System.UnauthorizedAccessException (Windows 7) > > > > Yes, that occurred to me this morning. ;-) > > > > So, runas /user:mymachine\administrator igem install foo for globals gems, > right? > > -- > Will Green > http://hotgazpacho.org/ > > On Tue, Jan 26, 2010 at 4:16 AM, Thibaut Barr?re > > wrote: > >> Per-user gems should not be the default. In RubyInstaller (mingw MRI), as >> well as MRI on Linux, and I believe OS X, system-wide gems are >> the default. This, of course, would require elevation (sudo gem install >> xxx). > > I believe per-user gems is now the default (it wasn't in the past, but > if I'm right a rubygems update changed that behaviour. Maybe 1.3.0 - > http://rubyforge.org/forum/forum.php?forum_id=27728 => 'RubyGems now > installs gems into ~/.gem if GEM_HOME is not writable. Use > --no-user-install command-line switch to disable this behavior.'). > > Here's what happens on my machine (OS X): > > ~$ gem list | grep less > ~$ sudo gem list | grep less > ~$ gem install less > (...) > ~$ gem list | grep less > less (1.2.21) > ~$ sudo gem list | grep less > (empty) > > ~$ gem -v > 1.3.5 > ~$ ruby -v > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] > > -- Thibaut > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Fri Jan 29 15:46:34 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 29 Jan 2010 20:46:34 +0000 Subject: [Ironruby-core] Code Review: dash_r Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C8CD73F@TK5EX14MBXC132.redmond.corp.microsoft.com> tfpt review "/shelveset:dash_r;REDMOND\sborde" Comment : Config::CONFIG["libdir"] was not normalized in non-dev environments. This was causing "igem install" to install bat files for the gems to a less than ideal location. Adds some dash_r specs -------------- next part -------------- A non-text attachment was scrubbed... Name: dash_r.diff Type: application/octet-stream Size: 4083 bytes Desc: dash_r.diff URL: From Tomas.Matousek at microsoft.com Fri Jan 29 21:59:28 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 30 Jan 2010 02:59:28 +0000 Subject: [Ironruby-core] Code Review: YY1 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C384AB317@TK5EX14MBXC122.redmond.corp.microsoft.com> tfpt review "/shelveset:YY1;REDMOND\tomat" Comment : Fixes: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3306 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3307 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3616 and related issues. Enables some tests in active_support suite. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: YY1.diff Type: application/octet-stream Size: 66575 bytes Desc: YY1.diff URL: From thibaut.barrere at gmail.com Sat Jan 30 07:19:12 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Sat, 30 Jan 2010 13:19:12 +0100 Subject: [Ironruby-core] Cannot require 'liquid' (workitem created) Message-ID: <4a68b8cf1001300419k51271160iff46424ef114b0e6@mail.gmail.com> Hi, I wanted to see if liquid (http://www.liquidmarkup.org => non evaling templating system) would work with IronRuby, but apparently it doesn't. require 'liquid' is raising this: Expression of type 'System.Boolean' cannot be used for parameter of type 'System.Object' of method 'System.Object DefineMethod(System.Object, IronRuby.Runtime.RubyScope, IronRuby.Runtime.Calls.RubyMethodBody)' (ArgumentError) Work-item: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3754 Repro: http://github.com/thbar/ironruby-labs/tree/master/bug-tracking/ -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Sat Jan 30 08:09:30 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Sat, 30 Jan 2010 14:09:30 +0100 Subject: [Ironruby-core] Differences between 1/ MRI and 2/ IronRuby+JRuby Message-ID: <4a68b8cf1001300509o48862decme0a7fb9b91145db4@mail.gmail.com> Hello, maybe someone can shed some light on that - the question is: is there a setting to make IronRuby works the same way MRI Ruby does by default for what I'm describing below ? I don't think it's a bug (but well maybe it is, just wondering). Using this script http://gist.github.com/290538 , MRI has a different behaviour than JRuby or IronRuby. The script will work just fine in MRI, whereas in JR/IR you'll get: (erb):2: undefined local variable or method `version' for main:Object (NameError) from :1:in `eval' from /opt/local/share/java/jruby/lib/ruby/1.8/erb.rb:743:in `result' from binding-error.rb:19 (erb):1: undefined method `version' for main:Object (NoMethodError) from C:/IronRuby/lib/ruby/1.8/erb.rb:716:in `result' from binding-error.rb:19 from :0:in `eval' It's just like values.send(:binding) is doing nothing. any thoughts ? thanks, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at whiterabbitconsulting.eu Sat Jan 30 08:17:06 2010 From: ivan at whiterabbitconsulting.eu (Ivan Porto Carrero) Date: Sat, 30 Jan 2010 14:17:06 +0100 Subject: [Ironruby-core] Differences between 1/ MRI and 2/ IronRuby+JRuby In-Reply-To: <4a68b8cf1001300509o48862decme0a7fb9b91145db4@mail.gmail.com> References: <4a68b8cf1001300509o48862decme0a7fb9b91145db4@mail.gmail.com> Message-ID: AFAIK that shouldn't work in MRI either + C:\dev ? irb irb(main):001:0> require 'erb' => true irb(main):002:0> irb(main):003:0* data = { :version => RUBY_PLATFORM } => {:version=>"i386-mingw32"} irb(main):004:0> irb(main):005:0* class Hash irb(main):006:1> def method_missing(method,*args) irb(main):007:2> if (keys.include?(method) && args.empty?) irb(main):008:3> self[method] irb(main):009:3> else irb(main):010:3* super irb(main):011:3> end irb(main):012:2> end irb(main):013:1> end => nil irb(main):014:0> irb(main):015:0* x = 42 => 42 irb(main):016:0> template = ERB.new <<-EOF irb(main):017:0" The value of x is: <%= version %> irb(main):018:0" EOF => #, @filename=nil> irb(main):019:0> puts template.result(data.send(:binding)) NameError: undefined local variable or method `version' for main:Object from (erb):1 from C:/Ruby/lib/ruby/1.9.1/erb.rb:753:in `eval' from C:/Ruby/lib/ruby/1.9.1/erb.rb:753:in `result' from (irb):19 from C:/Ruby/bin/irb:12:in `
' irb(main):020:0> --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sat, Jan 30, 2010 at 2:09 PM, Thibaut Barr?re wrote: > Hello, > > maybe someone can shed some light on that - the question is: is there a > setting to make IronRuby works the same way MRI Ruby does by default for > what I'm describing below ? I don't think it's a bug (but well maybe it is, > just wondering). > > Using this script http://gist.github.com/290538 , MRI has a different > behaviour than JRuby or IronRuby. > > The script will work just fine in MRI, whereas in JR/IR you'll get: > > (erb):2: undefined local variable or method `version' for main:Object > (NameError) > from :1:in `eval' > from /opt/local/share/java/jruby/lib/ruby/1.8/erb.rb:743:in `result' > from binding-error.rb:19 > > (erb):1: undefined method `version' for main:Object (NoMethodError) > from C:/IronRuby/lib/ruby/1.8/erb.rb:716:in `result' > from binding-error.rb:19 > from :0:in `eval' > > It's just like values.send(:binding) is doing nothing. > > any thoughts ? > > thanks, > > -- Thibaut > > _______________________________________________ > 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 thibaut.barrere at gmail.com Sat Jan 30 08:41:13 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Sat, 30 Jan 2010 14:41:13 +0100 Subject: [Ironruby-core] Differences between 1/ MRI and 2/ IronRuby+JRuby In-Reply-To: References: <4a68b8cf1001300509o48862decme0a7fb9b91145db4@mail.gmail.com> Message-ID: <4a68b8cf1001300541k13078764q7dead922dc3238bc@mail.gmail.com> Hey Ivan, thanks for your answer. I redid the test on: - Mac OS X (mri ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0]) => http://gist.github.com/290538#file_test_on_mac_os_x.txt - Windows 7 (mri ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]) => http://gist.github.com/290538#file_test_on_windows.txt And it works on both apparently... There must be a reason... Which version of Ruby/IRB are you using ? -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at whiterabbitconsulting.eu Sat Jan 30 09:00:08 2010 From: ivan at whiterabbitconsulting.eu (Ivan Porto Carrero) Date: Sat, 30 Jan 2010 15:00:08 +0100 Subject: [Ironruby-core] Differences between 1/ MRI and 2/ IronRuby+JRuby In-Reply-To: <4a68b8cf1001300541k13078764q7dead922dc3238bc@mail.gmail.com> References: <4a68b8cf1001300509o48862decme0a7fb9b91145db4@mail.gmail.com> <4a68b8cf1001300541k13078764q7dead922dc3238bc@mail.gmail.com> Message-ID: mine was on windows with ruby 1.9.1 though.. I don't have a 1.8 around to see if that same test works with 1.8 on windows. In 1.9.1 the tweaked stuff works too + C:\dev ? irb irb(main):001:0> require 'erb' => true irb(main):002:0> require 'ostruct' => true irb(main):003:0> irb(main):004:0* class OpenStruct irb(main):005:1> def get_our_own_binding irb(main):006:2> binding irb(main):007:2> end irb(main):008:1> end => nil irb(main):009:0> irb(main):010:0* class Templator irb(main):011:1> def self.render(template,values) irb(main):012:2> template = ERB.new(template) irb(main):013:2> context = OpenStruct.new(values) irb(main):014:2> template.result(context.get_our_own_binding) irb(main):015:2> end irb(main):016:1> end => nil irb(main):017:0> irb(main):018:0* template = <<-EOF irb(main):019:0" The value of x is: <%= version %> irb(main):020:0" EOF => " The value of x is: <%= version %>\n" irb(main):021:0> irb(main):022:0* puts Templator.render(template, { :version => RUBY_PLATFORM }) The value of x is: i386-mingw32 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sat, Jan 30, 2010 at 2:41 PM, Thibaut Barr?re wrote: > Hey Ivan, > > thanks for your answer. > > I redid the test on: > - Mac OS X (mri ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0]) > => http://gist.github.com/290538#file_test_on_mac_os_x.txt > - Windows 7 (mri ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]) > => http://gist.github.com/290538#file_test_on_windows.txt > > And it works on both apparently... > > There must be a reason... Which version of Ruby/IRB are you using ? > > -- Thibaut > > > _______________________________________________ > 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 thibaut.barrere at gmail.com Sat Jan 30 09:09:00 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Sat, 30 Jan 2010 15:09:00 +0100 Subject: [Ironruby-core] Differences between 1/ MRI and 2/ IronRuby+JRuby In-Reply-To: References: <4a68b8cf1001300509o48862decme0a7fb9b91145db4@mail.gmail.com> <4a68b8cf1001300541k13078764q7dead922dc3238bc@mail.gmail.com> Message-ID: <4a68b8cf1001300609r2f8172cch83f968d357f44c60@mail.gmail.com> Thanks - that's probably a 1.8 specific thing... We'll see what others have to say on Monday :) Thanks for your tests! -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sat Jan 30 12:53:52 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 30 Jan 2010 17:53:52 +0000 Subject: [Ironruby-core] Code Review: FixLiquid Message-ID: <4B342496A3EFEB48839E10BB4BF5964C384ADA85@TK5EX14MBXC122.redmond.corp.microsoft.com> tfpt review "/shelveset:FixLiquid;REDMOND\tomat" Fixes target object boxing in singleton method definition. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: FixLiquid.diff Type: application/octet-stream Size: 2707 bytes Desc: FixLiquid.diff URL: From Tomas.Matousek at microsoft.com Sat Jan 30 12:54:46 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 30 Jan 2010 17:54:46 +0000 Subject: [Ironruby-core] Cannot require 'liquid' (workitem created) In-Reply-To: <4a68b8cf1001300419k51271160iff46424ef114b0e6@mail.gmail.com> References: <4a68b8cf1001300419k51271160iff46424ef114b0e6@mail.gmail.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C384ADAA5@TK5EX14MBXC122.redmond.corp.microsoft.com> This fixes it. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Saturday, January 30, 2010 4:19 AM To: ironruby-core Subject: [Ironruby-core] Cannot require 'liquid' (workitem created) Hi, I wanted to see if liquid (http://www.liquidmarkup.org => non evaling templating system) would work with IronRuby, but apparently it doesn't. require 'liquid' is raising this: Expression of type 'System.Boolean' cannot be used for parameter of type 'System.Object' of method 'System.Object DefineMethod(System.Object, IronRuby.Runtime.RubyScope, IronRuby.Runtime.Calls.RubyMethodBody)' (ArgumentError) Work-item: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3754 Repro: http://github.com/thbar/ironruby-labs/tree/master/bug-tracking/ -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: Tomas Matousek Subject: Code Review: FixLiquid Date: Sat, 30 Jan 2010 17:53:52 +0000 Size: 5455 URL: From thibaut.barrere at gmail.com Sat Jan 30 13:05:41 2010 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Sat, 30 Jan 2010 19:05:41 +0100 Subject: [Ironruby-core] Cannot require 'liquid' (workitem created) In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C384ADAA5@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <4a68b8cf1001300419k51271160iff46424ef114b0e6@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C384ADAA5@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: <4a68b8cf1001301005q16402213k2cf02d670edc3e3d@mail.gmail.com> That was fast! Thanks :) -- Thibaut On Sat, Jan 30, 2010 at 6:54 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > This fixes it. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Thibaut Barr?re > *Sent:* Saturday, January 30, 2010 4:19 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] Cannot require 'liquid' (workitem created) > > > > Hi, > > I wanted to see if liquid (http://www.liquidmarkup.org => non evaling > templating system) would work with IronRuby, but apparently it doesn't. > > require 'liquid' is raising this: > > Expression of type 'System.Boolean' cannot be used for parameter of type > 'System.Object' of method 'System.Object DefineMethod(System.Object, > IronRuby.Runtime.RubyScope, IronRuby.Runtime.Calls.RubyMethodBody)' > (ArgumentError) > > Work-item: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3754 > Repro: http://github.com/thbar/ironruby-labs/tree/master/bug-tracking/ > > -- Thibaut > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sat Jan 30 15:39:49 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 30 Jan 2010 14:39:49 -0600 Subject: [Ironruby-core] File.symlink Message-ID: While working with Ivan on the amp project, I came across a windows error when trying to create symlinks using File.symlink. This is well-documentedand has a few fixes, but nothing realistic. The Windows-only implementation of Ruby, wuby, uses the mklink in Vista and Win7 to create symlinks. While this isn't necessarily a consideration for IronRuby, I was wondering if any of you have come across a decent solution to this problem. Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Jan 30 17:18:42 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sat, 30 Jan 2010 22:18:42 +0000 Subject: [Ironruby-core] File.symlink In-Reply-To: References: Message-ID: Wasn?t Wuby an April Fool?s joke? I would love to see us support Junctions and links down the road, but I don?t see that happening until post 1.0. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, January 30, 2010 12:40 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] File.symlink While working with Ivan on the amp project, I came across a windows error when trying to create symlinks using File.symlink. This is well-documented and has a few fixes, but nothing realistic. The Windows-only implementation of Ruby, wuby, uses the mklink in Vista and Win7 to create symlinks. While this isn't necessarily a consideration for IronRuby, I was wondering if any of you have come across a decent solution to this problem. Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Jan 30 17:23:32 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sat, 30 Jan 2010 22:23:32 +0000 Subject: [Ironruby-core] File.symlink In-Reply-To: References: Message-ID: Note, that when I say this, I mean it as me, not as some official word from the team ;) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Saturday, January 30, 2010 2:19 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] File.symlink Wasn?t Wuby an April Fool?s joke? I would love to see us support Junctions and links down the road, but I don?t see that happening until post 1.0. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Saturday, January 30, 2010 12:40 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] File.symlink While working with Ivan on the amp project, I came across a windows error when trying to create symlinks using File.symlink. This is well-documented and has a few fixes, but nothing realistic. The Windows-only implementation of Ruby, wuby, uses the mklink in Vista and Win7 to create symlinks. While this isn't necessarily a consideration for IronRuby, I was wondering if any of you have come across a decent solution to this problem. Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Sat Jan 30 17:38:20 2010 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Sat, 30 Jan 2010 16:38:20 -0600 Subject: [Ironruby-core] File.symlink In-Reply-To: References: Message-ID: Yes, I found the link at the bottom to the definition of gullible. Hmm ... maybe not gullible, but certainly not journalistic material. :) At the moment, I found a work-around, but I'd be interested into looking into this further down the road. Thanks, Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Sat, Jan 30, 2010 at 4:18 PM, Jim Deville wrote: > Wasn?t Wuby an April Fool?s joke? > > > > I would love to see us support Junctions and links down the road, but I > don?t see that happening until post 1.0. > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ryan Riley > *Sent:* Saturday, January 30, 2010 12:40 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] File.symlink > > > > While working with Ivan on the amp project, I came across a windows error > when trying to create symlinks using File.symlink. This is well-documentedand has a > few fixes, > but nothing realistic. The Windows-only implementation of Ruby, wuby, uses > the mklink in Vista and Win7 to create symlinks. While this isn't > necessarily a consideration for IronRuby, I was wondering if any of you have > come across a decent solution to this problem. > > > > Thanks, > > > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Twitter: @panesofglass > Website: http://panesofglass.org/ > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Sun Jan 31 01:23:08 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sun, 31 Jan 2010 06:23:08 +0000 Subject: [Ironruby-core] Code Review: rc2fixes Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920EBA9E@TK5EX14MBXC136.redmond.corp.microsoft.com> tfpt review "/shelveset:rc2fixes;REDMOND\jimmysch" Comment : Couple of easy fixes for IronRuby 1.0 RC2: "NoOf" does not mangle to "no_of" http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3562 exec cant run a batch file http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3619 ir.exe -e doesn't treat arguments correctly http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=462 IO.pipe and IP.sysopen not defined http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1919 Zlib::Deflate missing constructors http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3319 See bugs for more info. -------------- next part -------------- A non-text attachment was scrubbed... Name: rc2fixes.diff Type: application/octet-stream Size: 19717 bytes Desc: rc2fixes.diff URL: From jdeville at microsoft.com Sun Jan 31 17:15:48 2010 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 31 Jan 2010 22:15:48 +0000 Subject: [Ironruby-core] Code Review: bugfixrc2 Message-ID: tfpt review "/shelveset:bugfixrc2;REDMOND\jdeville" Comment : Closes: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2146 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2959 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2949 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2907 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2765 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2753 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2686 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2462 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1357 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3183 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2913 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=957 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1849 * Also adds a spec for CP# 3834 * Adds the ComTest project and exe, and modifies InstallAndRun.bat to register it * Deletes the ADODB specs in favor of the COMTest specs Also includes the IR Release queue files that are live on MerlinSnap1 to check them in. -------------- next part -------------- A non-text attachment was scrubbed... Name: bugfixrc2.diff Type: application/octet-stream Size: 127097 bytes Desc: bugfixrc2.diff URL: