I have been attempting to get an existing Ruby lib running under
IronRuby.  The first problem I hit was that there was no definition for
the ETIMEDOUT error code in IR, so I added it and humbly submit my
changes as a patch for your consideration.

I'm currently running into problems because the library I'm using makes
HTTPS calls and from my point of view as a raw noob to both IR and Ruby
itself it appears that HTTPS support (via OpenSSL?) is missing from
IronRuby.  Is this the case? (I'm sure there's a better than zero chance
that I'm just missing a dependency of some sort as well).

Jason


--- 
a/ironruby/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/errno.cs
    Sat Mar 20 12:53:19 2010
+++ 
b/ironruby/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/Errno.cs
    Fri Mar 05 21:02:27 2010
@@ -299,7 +299,24 @@
             protected 
InvalidSeekError(System.Runtime.Serialization.SerializationInfo info, 
System.Runtime.Serialization.StreamingContext context)
                 : base(info, context) { }
 #endif
         }
 
+        [RubyClass("ETIMEDOUT"), Serializable]
+        public class TimedoutError : ExternalException
+        {
+            private const string/*!*/ M = "Timed out";
+
+            public TimedoutError() : this(null, null) { }
+            public TimedoutError(string message) : this(message, null) { }
+            public TimedoutError(string message, Exception inner) : 
base(RubyExceptions.MakeMessage(message, M), inner) { }
+            public TimedoutError(MutableString message) : 
base(RubyExceptions.MakeMessage(ref message, M)) { 
RubyExceptionData.InitializeException(this, message); }
+
+#if !SILVERLIGHT
+            protected 
TimedoutError(System.Runtime.Serialization.SerializationInfo info, 
System.Runtime.Serialization.StreamingContext context)
+                : base(info, context) { }
+#endif
+        }
+
+
     }
 }

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to