Could you try the latest build?
Also try:
host.method(:add_service_endpoint).clr_members.each { |m| puts m.to_string }
What does it print?
Tomas
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion Edwards
Sent: Wednesday, February 18, 2009
You can use ExceptionService:
var engine = Ruby.CreateEngine();
try {
engine.Execute(@"
def foo
goo
end
def goo
raise 'hello'
end
foo
");
} catch (Exception e) {
var exceptionService = engine.GetService();
string message, typeName;
Looks good.
Tomas
-Original Message-
From: Jim Deville
Sent: Wednesday, February 18, 2009 6:10 PM
To: Jim Deville; IronRuby External Code Reviewers
Cc: ironruby-core@rubyforge.org
Subject: RE: Code Review: esupport
Updated shelveset to add tests, and make __FILE__ work correctly.
tfp
We think in similar directions.
Tomas
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion Edwards
Sent: Wednesday, February 18, 2009 5:18 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Attributes
Fair enough:
Here's my thoug
Updated shelveset to add tests, and make __FILE__ work correctly.
tfpt review "/shelveset:esupport;REDMOND\jdeville"
Comment :
Adds -e support to IronRuby using CommonConsoleOptions.Command. Adds basic
tests for -e. Finally, it makes the parser set __FILE__ to -e when it parses a
SourceU
Thanks for answering that. I wrote a small C# interface and then implemented
that from IronRuby
On Thu, Feb 19, 2009 at 1:54 PM, Tomas Matousek <
tomas.matou...@microsoft.com> wrote:
> We currently don't support attributes. As a workaround you can define a
> class in C# that will have all the at
I have the following C# code, which I'm trying to translate to IronRuby
var host = new ServiceHost(typeof(MyService ));
host.AddServiceEndpoint(typeof(IWcfContract), new WSHttpBinding(), new
Uri("..."));
This compiles fine.
My ruby translation looks like this:
host = ServiceHost.new( MyService
Fair enough:
Here's my thoughts on what such a thing might look like:
module IMyService
clr_attribute ServiceContractAttribute.new("blah")
clr_attribute OperationContractAttribute.new, :on => "SomeMethod"
def SomeMethod; end
end
Could also have similar methods which map from string t
We currently don't support attributes. As a workaround you can define a class
in C# that will have all the attributes. The class can then forward all
functionality to Ruby (e.g. via abstract methods implemented in a class derived
in Ruby).
Tomas
From: ironruby-core-boun...@rubyforge.org
[mail
DLR: FYI on formatting change. No response needed.
tfpt review "/shelveset:esupport;REDMOND\jdeville"
Comment :
Adds -e support to IronRuby using CommonConsoleOptions.Command. Also fixes a
formatting error in ConsoleHost.cs
esupport.diff
Description: esupport.diff
AFAIK you can't yet. It's one of those interop things that are on the back
burner while language compatibility is worked on. There's still alot of
discussion needed about how to do this...
On Wed, Feb 18, 2009 at 7:20 PM, Orion Edwards wrote:
> I'd like to mock up a WCF service using IronRuby.
I'd like to mock up a WCF service using IronRuby.
This presents some stumbling blocks however, in that WCF ServiceContracts
are defined by creating an Interface and then applying attributes to it.
Interface ~= Module in IronRuby, so that would probably be fine, but how can
I apply attributes to t
I added a few photos to http://www.ironruby.net/About/People (using the
en.gravatar.com links from the github profile). There seems to be a bug to add
an image. So here is the process if others want to add their own.
* Goto http://www.ironruby.net/About/People.
* Edit Page
*
Do you pass -D to the ir.exe that runs the specs? The debugging is better that
way, although I admit it is not good at all in any case :(
Tomas
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Pete Bacon Darwin
Sent: Wednesday, February 18, 200
Here is what I added to http://wiki.github.com/ironruby/ironruby. This works
pretty well for me. If the paths are incorrect, feel free to update the wiki.
Debugging with Visual Studio
In the Debug tab of the Project properties for Ruby.Console.csproj, set the
fields as follows:
* Start Actio
You can pass the spec file to mspec itself like:
mspec run core/io/popen_close
Then I make a call to "debugger" http://gist.github.com/61605, which breaks on
a call to System::Diagnostics::Debugger when a debugger is attached to the app.
Unfortunately this breaks in a Ruby method, so you have t
The easiest way it appears is to stick a pause in the rubyspec of interest
and attach to the process while it is waiting. It does totally kill the
computer performance while you are debugging (like minutes to step through
each line!)
Pete
From: Pete Bacon Darwin [mailto:bacondar...@googlemail
Anybody know how to run rubyspecs under the Visual Studio debugger? If I
just set the rubyspec file as the command line argument in the debug
properties in VS then it just asks me to install mspec as a gem.
Pete
___
Ironruby-core mailing list
Ironruby-
Hi Ivan,
I'm interested - I'll get back to you next week (I'm currently on
holidays).
Cheers!
-- Thibaut
Envoyé de mon iPhone
Le 18 févr. 09 à 13:13, Ivan Porto Carrero a
écrit :
Great!
Other people I thought about were
Thibaut Barrère
Robert Brotherus
Cheers
On Wed, Feb 18, 2009
Great!
Other people I thought about were
Thibaut Barrère
Robert Brotherus
Cheers
On Wed, Feb 18, 2009 at 11:54 AM, Ben Hall wrote:
> Hi Ivan,
>
> Sounds like a great idea! I would be interested in writing a couple of
> pages, i'll contact you offline - if I don't, nudge me ;)
>
> Ben
>
> On We
Hi Ivan,
Sounds like a great idea! I would be interested in writing a couple of
pages, i'll contact you offline - if I don't, nudge me ;)
Ben
On Wed, Feb 18, 2009 at 6:49 AM, Ivan Porto Carrero wrote:
> Hi
>
> I would like to put a "real-world" IronRuby chapter in my book that is
> created by p
I've given it some thought. I would like to avoid wrapping the code in
"begin - rescue" and instead catch the exception in c#. Then just send the
ruby methods "message" and "backtrace" to the Ruby-exception-object from C#.
How would that be done?
Any other hints?-- Henon
On Tue, Feb 17, 2009 at 11
22 matches
Mail list logo