Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-10-03 Thread Badr A.
[http://www.anisaty.com/vb/ منتدى انستي] [http://www.anisaty.com/vb/t71806.html العاب باربي الصينية] [http://www.anisaty.com/vb/t71783.html العاب باربي] [http://www.anisaty.com/vb/t71821 العاب تلبيس باربي الدلوعه] [http://www.anisaty.com/vb/f8/ منتديات عالم حواء] [http://www.anisaty.com/vb/f9/

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-22 Thread Nathan Standiford
rg [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion Edwards Sent: Tuesday, June 19, 2012 4:20 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem with using OpenStruct and ERB Ahh I see. I don't have a copy of 1.8.6 handy to test on, but this definitely fail

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Orion Edwards
PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co From: Nathan Standiford To: Date: 20/06/2012 10:53 a.m. Subject:Re: [Ironruby-core] Problem with using OpenStruct and ERB Sent by:ironruby-core-boun...@rubyforge.org I

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Nathan Standiford
2:23 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem with using OpenStruct and ERB I notice that in your example, you don't declare the local variable foo anywhere: If I run it verbatim, both MRI and IronRuby fail with undefined method foo (and fair enough, foo

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Orion Edwards
ne for me. __ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co From: Nathan Standiford To: Date: 20/06/2012 04:55 a.m. Subject: [Ironruby-core] Problem

[Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Nathan Standiford
I am using OpenStructs and ERB for template generation. In this simple example, ruby 1.8.6 runs this fine: require "erb" require "ostruct" puts ERB.new("<%=foo%>", 0, "%<>").result(OpenStruct.new({ :foo => "bar" }).send(:binding)) However, it generates the following error when I run this in

[Ironruby-core] problem with igem/gem in latest ironruby from github?

2010-09-24 Thread Davy Brion
Hi, i'm using the latest ironruby from github, and when i try to run igem install it just fails with the following message: D:\Projects\ironruby\bin\Debug>igem install rspec ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Could not find a valid gem 'rspec' (>= 0) in any re

Re: [Ironruby-core] Problem building source - misleading information in Wiki (dev.bat)

2010-07-30 Thread Jim Deville
] On Behalf Of Jonas Follesø Sent: Thursday, July 29, 2010 11:56 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Problem building source - misleading information in Wiki (dev.bat) Hi guys, I'm planning to make some changes to the IronPython Silverlight hosting, to enable a wri

[Ironruby-core] Problem building source - misleading information in Wiki (dev.bat)

2010-07-30 Thread Jonas Follesø
Hi guys, I'm planning to make some changes to the IronPython Silverlight hosting, to enable a writable virtual file system. So in order to do that I tried to set up a new development environment (virtual machine) from scratch, but ran into some issues. The Wiki references a "deb.bat" file that wi

Re: [Ironruby-core] Problem with Marshal.load in Silverlight

2010-07-26 Thread Charles Strahan
D'oh! I didn't test that code snippet - sorry. It should probably be something more along the lines of if (typeof(ISerializable).IsAssignableFrom(baseType) && !!typeof(RubyObject).IsAssignableFrom(baseType)) { or if (typeof(ISerializable).IsAssignableFrom(baseType) && !(baseType == typeof(RubyO

Re: [Ironruby-core] Problem with Marshal.load in Silverlight

2010-07-26 Thread Charles Strahan
t; Tomas > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Charles Strahan > *Sent:* Monday, July 26, 2010 6:26 PM > *To:* ironruby-core@rubyforge.org > *Subject:* Re: [Ironruby-core] Problem with Marshal.load

Re: [Ironruby-core] Problem with Marshal.load in Silverlight

2010-07-26 Thread Tomas Matousek
-core@rubyforge.org Subject: Re: [Ironruby-core] Problem with Marshal.load in Silverlight Alright, I know I'm not supposed to send in patch's for the runtime, but this is a bug in the Silverlight build. Classes implemented in Ruby cannot be created using RubyUtils.CreateObject, as I me

Re: [Ironruby-core] Problem with Marshal.load in Silverlight

2010-07-26 Thread Charles Strahan
Alright, I know I'm not *supposed* to send in patch's for the runtime, but this is a bug in the Silverlight build. Classes implemented in Ruby cannot be created using RubyUtils.CreateObject, as I mentioned in my previous email. As a result, Marshal.load will fail when trying to deserialize classe

[Ironruby-core] Problem with Marshal.load in Silverlight

2010-07-25 Thread Charles Strahan
I've run into a problem when using Marshal.load in Silverlight - the following exception is thrown: NotSupportedException: Class IronRuby.Builtins.RubyObject does not have a valid deserializing constructor I tracked the code down to RubyUtils.CreateObject(RubyClass/*!*/ theclass, IEnumerable>/*!

Re: [Ironruby-core] Problem with latest github commits

2010-07-17 Thread Shay Friedman
ight away. > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Shay Friedman > *Sent:* Saturday, July 17, 2010 5:27 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] Problem with latest github commits > > &g

Re: [Ironruby-core] Problem with latest github commits

2010-07-17 Thread Jim Deville
Behalf Of Shay Friedman Sent: Saturday, July 17, 2010 5:27 AM To: ironruby-core Subject: [Ironruby-core] Problem with latest github commits Hi guys, I've just pulled the latest bits from the github repository. Now when I open the solution I get an error that a project cannot be l

[Ironruby-core] Problem with latest github commits

2010-07-17 Thread Shay Friedman
Hi guys, I've just pulled the latest bits from the github repository. Now when I open the solution I get an error that a project cannot be loaded - Microsoft.Scripting.Metadata. It turns out that this project does not exist in the repository at all... It is not possible to build the project becau

Re: [Ironruby-core] problem setting .NET member variables

2010-03-01 Thread Andrew Warner
I believe this was an internal object reference issue - in .NET, not in Ruby. thanks! -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

[Ironruby-core] problem setting .NET member variables

2010-02-26 Thread Andrew Warner
Hello, can anyone help me with this issue? I have the following code running in C#: ScriptRuntime runtime = Ruby.CreateRuntime(); ScriptEngine engine = Ruby.GetEngine(runtime); ScriptScope scope = runtime.CreateScope(); scope.SetVariable("model", model); StreamReader sr = new StreamReader(Configur

Re: [Ironruby-core] Problem with FolderBrowserDialog

2010-01-05 Thread Robert Rouse
ge.org > [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Robert Rouse > Sent: Tuesday, January 05, 2010 8:01 AM > To: ironruby-core@rubyforge.org > Subject: [Ironruby-core] Problem with FolderBrowserDialog > > Hello, > > I have an interesting problem that

[Ironruby-core] Problem with FolderBrowserDialog

2010-01-05 Thread Robert Rouse
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 actua

Re: [Ironruby-core] Problem with Arrays

2009-12-16 Thread Jimmy Schementi
ironruby-core- > boun...@rubyforge.org] On Behalf Of Pascal Normandin > Sent: Tuesday, December 15, 2009 8:18 PM > To: ironruby-core@rubyforge.org > Subject: [Ironruby-core] Problem with Arrays > > Hello, > > I think I have found a problem with the Array delete_if method.

[Ironruby-core] Problem with Arrays

2009-12-15 Thread Pascal Normandin
Hello, I think I have found a problem with the Array delete_if method. If I do the following when a do the arr2 = Array.new arr I get a nil value >>> arr = ["asd", "qwe", "zxc"] => ["asd", "qwe", "zxc"] >>> arr.delete_if{|x| x == "qwe"} => ["asd", "zxc"] >>> arr2 = Array.new arr => [nil, "asd"]

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-15 Thread Immo Wache
Hi Ivan, here are same thoghts from me: To integrate IronRubyMvc into Umbraco CMS a configuration file (e.g. ironrubymvc.config) would be fine. In Umbraco is a subfolder "/config" used for such settings files. Usual way for additional modules is a reference from web.config to the location of t

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-15 Thread Immo Wache
Hello Tomas, thanks for take a look, and shed some light in this issue. When "require" Kernel method is privat we should keep the way to use a small Ruby scipt "require '[[controllerpath]]'" as the final solution. So this issue is solved from my POV. Thanks again for care, Immo Tomas Matousek

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-14 Thread Tomas Matousek
- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Immo Wache Sent: Tuesday, October 13, 2009 11:18 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 Hi Tomas, No success so far, all

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-14 Thread Ivan Porto Carrero
How do you want to provide different development environments for ironrubymvc ? I can either do it by creating the configuration section I've been planning, this would be used to provide load paths for example for libraries outside of the web project. I can have a parameter there something like Mv

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-14 Thread Immo Wache
Hi Ivan, thanks for sharing your solution. I slightly extended it with PathProvider.MapPath. Also I fixed a bug with my added xunit tests. http://github.com/iwache/ironrubymvc/commit/b6c6e425343925b9f7a464ee43c3f80cf93c8cec Immo -- Posted via http://www.ruby-forum.com/. _

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-14 Thread Tomas Matousek
Seems like a bug. I'll take a look. Tomas -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Immo Wache Sent: Tuesday, October 13, 2009 11:18 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-14 Thread Ivan Porto Carrero
done these are the changes I made, almost none :) http://github.com/casualjim/ironrubymvc/commit/bc80a3057f48c3064ddb99f5700d8279f0455189 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-14 Thread Immo Wache
Hi Ivan, good news. If you got it ready, yes please check in. So I can update my branch and test it. Immo Ivan Porto carrero wrote: > I can check that in becuase that require is working for me now. -- Posted via http://www.ruby-forum.com/. ___ Ironr

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-14 Thread Ivan Porto Carrero
I can check that in becuase that require is working for me now. I didn't use the way Tomas suggested because that didn't work for me either. It complained about the scope not being the global scope or the global scope being empty. I just execute a script. This fixes your issue but will require you

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-14 Thread Immo Wache
Hi Ivan, I see you have alot to do with your book and things. Neverless thank you for your help. May be I can support you in my issue with help of others from this forum. Meanwhile I managed to get the tip from Tomas working by execute a plain Ruby script (I know its not a professional solutio

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-14 Thread Ivan Porto Carrero
Hi Immo, I've been able to merge your changes, will push them later. I'll see what I can do about reloading, but can't promise anything as I don't have a lot of time to spend on this. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://fla

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-13 Thread Immo Wache
Hi Tomas, No success so far, all variants produce the same exception: "InvalidOperationException: Empty scope has no global scope." ??? I tried following variants: Engine.Operations.InvokeMember(null, "require", PathProvider.MapPath(path)); Engine.Operations.InvokeMember(Context, "require",

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-13 Thread Immo Wache
Hi Tomas, thanks alot for joining the discussion. Your idea sounds interesting. I'll try it out now. Immo Tomas Matousek wrote: > “The extension method RequireFile for ruby does that respect when I > would redefine the require statement to keep track of classes contained > in a file and reloa

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-13 Thread Immo Wache
Hi Ivan, many thanks again to care about this problem. Ivan Porto carrero wrote: > I pulled in your changes Immo but ... complained about not being able > to find the correct IronRuby yada yada. Oh, my fault, sorry. I merged my local copy to my (first!) github fork (the one from you) slightly t

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-13 Thread Tomas Matousek
: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 I've updated the ironruby libraries to what's in github currently. I pulled in your changes Immo but when i compiled the app I couldn't serve any pages up it complained about not being able to find the correct IronRuby yada yada.

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-13 Thread Ivan Porto Carrero
I've updated the ironruby libraries to what's in github currently. I pulled in your changes Immo but when i compiled the app I couldn't serve any pages up it complained about not being able to find the correct IronRuby yada yada. Anyway the fix I had in mind was removing 1 line of code and reload

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-11 Thread Immo Wache
Hi Ivan, be imressed about your prompt reply. Good to read you can reproduce the issue. To be honest, I fiddeled around with the code some nights now, so I don't expect a solution from today to now. Meanwhile I learned (Almost Everything I never ever wanted to know) about Ruby, and it seams now

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-11 Thread Ivan Porto Carrero
oic.. yes that is my fault I have to change the way I deal with requiring files and clearing out old classes. I'll go for a load strategy instead of removing them from the Globals collection, but won't be today though. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Bl

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-11 Thread Immo Wache
Hi casualjim, thanks alot for your reply. Yes it is the plain source from your master fork, with the ironruby assemblies from its dependencies folder (IR 0.9.1 ones). Calling once the Home page works fine. But when I recall it later again it fails. Reason why is the matter about the global var

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-11 Thread Jimmy Schementi
ro [i...@flanders.co.nz] Sent: Sunday, October 11, 2009 11:39 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 I use an ironruby built on 28/09/2009 that is the one in the github repo if you build ironruby mvc. I can see the Home bpage of the test site.

Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-11 Thread Ivan Porto Carrero
I use an ironruby built on 28/09/2009 that is the one in the github repo if you build ironruby mvc. I can see the Home bpage of the test site. Did you build ironruby mvc from source recently? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz

[Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

2009-10-11 Thread Immo Wache
Hi, tried to get running casualjim/ironrubymvc master from github to work. (I'm about to write a IronRuby MVC plugin for OpenSource CMS Umbraco with this, see: http://www.umbraco.org) Problem is calling a controller more than once. With IR 0.9.0 it worked quite well. But now when I recall the sam

Re: [Ironruby-core] Problem checking out iron ruby source

2009-04-14 Thread Antti Karanta
On Wed, 15 Apr 2009 02:25:42 +0300, Jim Deville wrote: If the cygwin installation keeps messing up, try the Msysgit one at http://code.google.com/p/msysgit. If you select the second option when it asks you where to run Git from, you can use it from CMD. Thanks for the tip. I actually

Re: [Ironruby-core] Problem checking out iron ruby source

2009-04-14 Thread Jim Deville
onruby-core- > boun...@rubyforge.org] On Behalf Of Antti Karanta > Sent: Tuesday, April 14, 2009 12:49 AM > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] Problem checking out iron ruby source > > > On Tue, 07 Apr 2009 21:45:21 +0300, Shri Borde > wrote: &g

Re: [Ironruby-core] Problem checking out iron ruby source

2009-04-14 Thread Antti Karanta
On Tue, 07 Apr 2009 21:45:21 +0300, Shri Borde wrote: No idea. Can you clone any other GIT repo? No, iron ruby is my first contact with git. Now that you mentioned it I tried to clone a random project from github and it gives the same error, so the problem is probably with my git in

Re: [Ironruby-core] Problem checking out iron ruby source

2009-04-07 Thread Shri Borde
...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Antti Karanta Sent: Tuesday, April 07, 2009 5:25 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Problem checking out iron ruby source Hi! I tried to check out iron ruby sources following the

[Ironruby-core] Problem checking out iron ruby source

2009-04-07 Thread Antti Karanta
Hi! I tried to check out iron ruby sources following the instructions in http://www.ironruby.net/Download but bumped into problems: n...@nw32 /cygdrive/c/programs/dotnet/ironruby $ git clone git://github.com/ironruby/ironruby.git Initialized empty Git repository in /

Re: [Ironruby-core] Problem getting IronRuby running - it won't compile

2009-03-23 Thread Jimmy Schementi
09 11:58 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem getting IronRuby running - it won't compile Oooh, yeah I was using the svn repository. I guess I have to go get Git Jim Deville wrote: > Open ruby.sln. IronRuby.sln is deprecated, and should be deleted

Re: [Ironruby-core] Problem getting IronRuby running - it won't compile

2009-03-22 Thread George Mauer
Oooh, yeah I was using the svn repository. I guess I have to go get Git Jim Deville wrote: > Open ruby.sln. IronRuby.sln is deprecated, and should be deleted (I > thought it was). Are you using the old SVN sources? If so you should be > using the Git repo, or the binary we just released at Ruby

Re: [Ironruby-core] Problem getting IronRuby running - it won't compile

2009-03-21 Thread Jim Deville
: ironruby-core@rubyforge.org Subject: [Ironruby-core] Problem getting IronRuby running - it won't compile I would like to play around with IronRuby and am following the series here http://www.rubyinside.com/ironruby-tutorials-by-justin-etheredge-964.html and am getting stumped on step 2 (co

[Ironruby-core] Problem getting IronRuby running - it won't compile

2009-03-21 Thread George Mauer
I would like to play around with IronRuby and am following the series here http://www.rubyinside.com/ironruby-tutorials-by-justin-etheredge-964.html and am getting stumped on step 2 (compile IronRuby) I open IronRuby.sln in VS2008 and compiling and I get 956 errors starting with 400 or so The ty

Re: [Ironruby-core] Problem with generic method resolution

2009-03-18 Thread Tomas Matousek
PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem with generic method resolution There are two different Expression classes in the Expressions namespace - a templated one and an untemplated one. You need to force the untemplated one, which you can do by saying System:

Re: [Ironruby-core] Problem with generic method resolution

2009-03-18 Thread Curt Hagenlocher
-core-boun...@rubyforge.org] On Behalf Of Stefan Dobrev Sent: Wednesday, March 18, 2009 4:35 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem with generic method resolution Nope. Nobody replied except you :) Bug report is filed: http://rubyforge.org/tracker/?func=detail&

Re: [Ironruby-core] problem

2009-03-18 Thread Nathan Stott
>>> >>> >>> *From:* ironruby-core-boun...@rubyforge.org [mailto: >>> ironruby-core-boun...@rubyforge.org] *On Behalf Of *Nathan Stott >>> *Sent:* Wednesday, March 18, 2009 12:55 PM >>> *To:* ironruby-core@rubyforge.org >>> *Subject:* Re:

Re: [Ironruby-core] Problem with generic method resolution

2009-03-18 Thread Stefan Dobrev
gt; *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Stefan Dobrev > *Sent:* Monday, March 09, 2009 7:57 PM > *To:* ironruby-core@rubyforge.org > *Subject:* [Ironruby-core] Problem with generic method resolution > > > > Hi, >

Re: [Ironruby-core] problem

2009-03-18 Thread Ivan Porto Carrero
s the right list – we don’t have any other. >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-boun...@rubyforge.org [mailto: >> ironruby-core-boun...@rubyforge.org] *On Behalf Of *Nathan Stott >> *Sent:* Wednesday, March 18, 2009 12:55 PM >> *To:*

Re: [Ironruby-core] problem

2009-03-18 Thread Nathan Stott
2:55 PM > *To:* ironruby-core@rubyforge.org > *Subject:* Re: [Ironruby-core] problem > > > > Good call Ivan. > > > > The LoadAssembly apparently was doing the trick! > > > > Thanks for the help. > > > BTW, was this the right mailing list for this qu

Re: [Ironruby-core] problem

2009-03-18 Thread Tomas Matousek
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, March 18, 2009 12:23 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] problem Are you using resharper for your unit tests? 2009/3/18 Nathan Stott mailto:nrst...@gmail.com>> I dont know i

Re: [Ironruby-core] problem

2009-03-18 Thread Nathan Stott
entRegistration = >>>>>> Castle::MicroKernel::Registration::ComponentRegistration >>>>>> ComponentModel = Castle::Core::ComponentModel >>>>>> Parameter = Castle::MicroKernel::Registration::Parameter >>>>>> Component = Castle::MicroKernel::Registration

Re: [Ironruby-core] problem

2009-03-18 Thread Ivan Porto Carrero
t;>>> name = klass.class.name.underscore.lowercase >>>> end >>>> model = ComponentModel.new(name, service, klass) >>>> if options.has_key?(:parameters) >>>> parameters = options[:parameters] >>>> parameters.each do |p| >>

Re: [Ironruby-core] problem

2009-03-18 Thread Ivan Porto Carrero
.has_key?(:class) >>>>> klass = options[:class].to_clr_type >>>>> if options.has_key?(:service) >>>>> service = options[:service].to_clr_type >>>>> else >>>>> service = klass >>>>> end >>>>> i

Re: [Ironruby-core] problem

2009-03-18 Thread Nathan Stott
header); >> headerSource.Execute(); >> >> string containerScript = reader.ReadToEnd(); >> ScriptSource source = >> engine.CreateScriptSourceFromString(containerScript); >> source.Execute(); >> } >> } >> >> 2009/3/18 Tomas Matousek >> >

Re: [Ironruby-core] problem

2009-03-18 Thread Nathan Stott
;>> parameters.each do |p| >>> model.Parameters.Add(p.key, p.value) >>> end >>> end >>> $container.Register(ComponentRegistration.new(model)) >>> end"; >>> >>> ScriptSource headerSource = engine.CreateScriptSourceFromStr

Re: [Ironruby-core] problem

2009-03-18 Thread Ivan Porto Carrero
source.Execute(); > } > } > > 2009/3/18 Tomas Matousek > >> How do you run this script? From command line (ir.exe script.rb) or do >> you use hosting API? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-boun...@rubyforge.org

Re: [Ironruby-core] problem

2009-03-18 Thread Nathan Stott
an Stott > *Sent:* Wednesday, March 18, 2009 8:33 AM > *To:* ironruby-core@rubyforge.org > *Subject:* [Ironruby-core] problem > > > > Hi all. I have a question that probably belongs on a users mailing list > but I could not find one. > > > > I get the following error

Re: [Ironruby-core] problem

2009-03-18 Thread Tomas Matousek
: [Ironruby-core] problem Hi all. I have a question that probably belongs on a users mailing list but I could not find one. I get the following error when trying to use my IronRuby windsor registration script: System.InvalidOperationException: can't convert Castle::Core::ComponentModel into C

[Ironruby-core] problem

2009-03-18 Thread Nathan Stott
Hi all. I have a question that probably belongs on a users mailing list but I could not find one. I get the following error when trying to use my IronRuby windsor registration script: System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel I

Re: [Ironruby-core] Problem with generic method resolution

2009-03-17 Thread Jimmy Schementi
Did anyone reply to you? If you haven't submitted a bug on RubyForge, please do. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Stefan Dobrev Sent: Monday, March 09, 2009 7:57 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Pr

[Ironruby-core] Problem with generic method resolution

2009-03-09 Thread Stefan Dobrev
Hi, I have found out the following problem: >>> require 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' => true >>> include System => Object >>> include System::Linq::Expressions >>> Expression.Call :0: wrong number of arguments (2 for 4) (ArgumentError) >>> Expre

Re: [Ironruby-core] problem with WPF animation.Duration= and TimeSpan

2009-02-16 Thread Jimmy Schementi
To: ironruby-core Subject: [Ironruby-core] problem with WPF animation.Duration= and TimeSpan Hi all, Once again I am hitting some unexpected behavior in IronRuby. Might be a bug ;) >>> animation = System::Windows::Media::Animation::DoubleAnimation.new() => # >>> animation.D

[Ironruby-core] problem with WPF animation.Duration= and TimeSpan

2009-02-16 Thread Meinrad Recheis
Hi all, Once again I am hitting some unexpected behavior in IronRuby. Might be a bug ;) >>> animation = System::Windows::Media::Animation::DoubleAnimation.new() => # >>> animation.Duration= System::Windows::Duration.new( System::TimeSpan.FromSeconds(2)) => # >>> animation.Duration= System::Wind

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Shri Borde
e App::IFoo(cls).bar(). Thanks, Shri -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tomas Matousek Sent: Thursday, January 08, 2009 8:50 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem ca

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Tomas Matousek
Not yet. obj.as(IFoo1).Bar() might be one option. Tomas -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Alex 2k8 Sent: Thursday, January 08, 2009 8:54 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core

Re: [Ironruby-core] Problem calling CLR method

2009-01-08 Thread Alex 2k8
Btw, IronPython can call same method: http://farnet.googlecode.com/files/IronPythonFar.1.0.35.rar IronPythonFar\Scripts\calc.py - - - far.RegisterTool(ipy, "IronPython calculator", calc, FarManager.ToolOptions.F11Menus) - - - -- Posted via http://www.ruby-forum.com/. __

Re: [Ironruby-core] Problem calling CLR method

2009-01-08 Thread Alex 2k8
> Could you sent source code for FarNet class (RegisterTool method > declaration)? http://code.google.com/p/farnet/source/browse/trunk/FarNet/FarNetIntf/Far.cs http://code.google.com/p/farnet/source/browse/trunk/FarNet/FarNetPlugin/Far.h http://code.google.com/p/farnet/source/browse/trunk/FarNet/

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Alex 2k8
Curious, how it is expected to work (or nobody thinked it over yet?) Example to consider: - - - - public interface IFoo1 { void Bar(); } public interface IFoo2 { void Bar(); } public class Cls : IFoo1, IFoo2 { void IFoo1.Bar() {}

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Tomas Matousek
: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem calling explicit interface methods I'm not convinced this is exactly a bug. There is no public 'bar' method on Cls after all. I think IronPython would require you to say something like App::IFoo::bar(App::Cls.new()) i

Re: [Ironruby-core] Problem calling CLR method

2009-01-08 Thread Tomas Matousek
Subject: [Ironruby-core] Problem calling CLR method Hello, I can't call the object's method, thought it exists. My ruby script: - - - - - # Let's dump .Net methods far.get_type.get_methods.each { |m| p m.name } # Try to call 'RegisterTool' method begin far.register_t

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Curt Hagenlocher
nruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tomas Matousek Sent: Thursday, January 08, 2009 7:56 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem calling explicit interface methods Filed bug #23494. Tomas -Original Message- From: iro

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Tomas Matousek
Filed bug #23494. Tomas -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Alex 2k8 Sent: Thursday, January 08, 2009 2:25 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Problem calling explicit interface

[Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Alex 2k8
Hello, I am trying to call explicitly implemented interface method, but get such error undefined method `bar' for # C# code: public interface IFoo { void Bar(); } public class Cls : IFoo { void IFoo.Bar() { } } Ruby code: x = App::Cls.new x.bar

[Ironruby-core] Problem calling CLR method

2009-01-07 Thread Alex 2k8
Hello, I can't call the object's method, thought it exists. My ruby script: - - - - - # Let's dump .Net methods far.get_type.get_methods.each { |m| p m.name } # Try to call 'RegisterTool' method begin far.register_tool rescue => err p err end begin far.RegisterTool rescue => err p err