Re: [Ironruby-core] Need help building IronRuby on Mono 2 + OS X

2008-12-29 Thread jirapong.na...@gmail.com

Hello Sidu,

quick fix to open Rakefile then change 'rake\xxx' to 'rake/xxx'.

however, you will get another error.

Macintosh-2:ironruby-r180 Jirapong$ rake compile mono=2.0
(in /Users/Jirapong/ironruby-r180)
---
dlr_core
---
---
dlr_core
---
Exception caught by the compiler while compiling:
   Block that caused the problem begin at: ast/ 
LambdaExpression.cs(121,38):
 Block being compiled: [ast/ 
LambdaExpression.cs(121,72):,ast/LambdaExpression.cs(123,9):]
System.NullReferenceException: Object reference not set to an instance  
of an object
Internal compiler error at ast/LambdaExpression.cs(121,38):: exception  
caught while emitting MethodBuilder [Expression`1::Accept]


Unhandled Exception: System.NullReferenceException: Object reference  
not set to an instance of an object
  at Mono.CSharp.TypeInferenceContext.FixIndependentTypeArguments  
(ParameterData methodParameters, System.Boolean& fixed_any) [0x0]
  at Mono.CSharp.TypeInferenceV3.InferInPhases  
(Mono.CSharp.EmitContext ec, Mono.CSharp.TypeInferenceContext tic,  
ParameterData methodParameters) [0x0]



Hope this helps,
-Jirapong


On Dec 30, 2008, at 11:46 AM, C. K. Ponnappa wrote:


Hey guys,

I'm running on OS X 10.5.5 with Mono 2.0 (installed via Ports). I ran

rake compile mono=1

I do have pathname2 installed and am using IronRuby trunk revision  
180.


I get the following error:
~/Work/ruby/ironruby$ rake compile mono=1  --trace
(in /Users/schonira/Work/ruby/ironruby)
rake aborted!
no such file to load -- /Users/schonira/Work/ruby/ironruby/rake 
\test.rake

/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1598:in `load'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1598:in `load'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2413:in  
`load_imports'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2356:in  
`raw_load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1985:in  
`load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in  
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1984:in  
`load_rakefile'

/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1969:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in  
`standard_exception_handling'

/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

Can someone help me out please?

Thanks!
Sidu.
http://blog.sidu.in
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


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


Re: [Ironruby-core] Need help building IronRuby on Mono 2 + OS X

2008-12-29 Thread jirapong.na...@gmail.com

Hi JD,
yes. but follow error was throw.

Macintosh-2:ironruby Jirapong$ rake compile mono=1 --trace
(in /Users/Jirapong/ironruby)
** Invoke compile (first_time)
** Invoke happy (first_time)
** Execute happy
** Invoke clean_build (first_time)
** Invoke happy
** Execute clean_build
** Invoke compile_dlr (first_time)
** Invoke compile_extension_attributes (first_time)
** Invoke clean_build
** Execute compile_extension_attributes
---
dlr_core
---
** Execute compile_dlr
---
dlr_core
---
Exception caught by the compiler while compiling:
   Block that caused the problem begin at: ast/ 
LambdaExpression.cs(121,38):
 Block being compiled: [ast/ 
LambdaExpression.cs(121,72):,ast/LambdaExpression.cs(123,9):]
System.NullReferenceException: Object reference not set to an instance  
of an object
Internal compiler error at ast/LambdaExpression.cs(121,38):: exception  
caught while emitting MethodBuilder [Expression`1::Accept]


Unhandled Exception: System.NullReferenceException: Object reference  
not set to an instance of an object
  at Mono.CSharp.TypeInferenceContext.FixIndependentTypeArguments  
(ParameterData methodParameters, System.Boolean& fixed_any) [0x0]
  at Mono.CSharp.TypeInferenceV3.InferInPhases  
(Mono.CSharp.EmitContext ec, Mono.CSharp.TypeInferenceContext tic,  
ParameterData methodParameters) [0x0]
  at Mono.CSharp.TypeInferenceV3.InferMethodArguments  
(Mono.CSharp.EmitContext ec, System.Reflection.MethodBase method)  
[0x0]
  at Mono.CSharp.TypeManager.InferTypeArguments  
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments,  
System.Reflection.MethodBase& method) [0x0]
  at Mono.CSharp.MethodGroupExpr.IsApplicable  
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments,  
Int32 arg_count, System.Reflection.MethodBase& method, System.Boolean&  
params_expanded_form) [0x0]
  at Mono.CSharp.MethodGroupExpr.OverloadResolve  
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList& Arguments,  
Boolean may_fail, Location loc) [0x0]
  at Mono.CSharp.Invocation.DoResolveOverload  
(Mono.CSharp.EmitContext ec) [0x0]
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext ec)  
[0x0]
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,  
ResolveFlags flags) [0x0]
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec)  
[0x0]
  at Mono.CSharp.Return.DoResolve (Mono.CSharp.EmitContext ec)  
[0x0]
  at Mono.CSharp.ExitStatement.Resolve (Mono.CSharp.EmitContext ec)  
[0x0]

  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x0]
  at Mono.CSharp.ExplicitBlock.Resolve (Mono.CSharp.EmitContext ec)  
[0x0]
  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext  
anonymous_method_host, Mono.CSharp.ToplevelBlock block,  
Mono.CSharp.Parameters ip, IMethodData md, System.Boolean&  
unreachable) [0x0]

rake aborted!
Command failed with status (1): [gmcs /noconfig @/var/folders/yx/yx- 
i1r2PFU...]



Thank you,
-Jirapong

On Dec 30, 2008, at 12:37 PM, Jim Deville wrote:

That would be a mistake on my part it looks like. If you switch the  
"\" in the Rakefile imports with "/", does it work? If so, I'll make  
the change and push it out tonight or tomorrow.


JD

-Original Message-
From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of C. K. Ponnappa

Sent: Monday, December 29, 2008 8:46 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Need help building IronRuby on Mono 2 + OS X

Hey guys,

I'm running on OS X 10.5.5 with Mono 2.0 (installed via Ports). I ran

rake compile mono=1

I do have pathname2 installed and am using IronRuby trunk revision  
180.


I get the following error:
~/Work/ruby/ironruby$ rake compile mono=1  --trace
(in /Users/schonira/Work/ruby/ironruby)
rake aborted!
no such file to load -- /Users/schonira/Work/ruby/ironruby/rake 
\test.rake

/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1598:in `load'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1598:in `load'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2413:in  
`load_imports'

/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2356:in
`raw_load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1985:in  
`load_rakefile'

/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1984:in  
`load_rakefile'

/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1969:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1

Re: [Ironruby-core] Need help building IronRuby on Mono 2 + OS X

2008-12-30 Thread jirapong.na...@gmail.com

Yes, I install mono by MacPort. going to get mono source to try out.

Thank you,
-Jirapong

On Dec 30, 2008, at 1:19 PM, Michael Letterle wrote:

There are some bugs in mono 2.0 that will prevent you from compiling  
IronRuby, your best bet is to use the SVN trunk, though I believe  
2.2 works as well.  Also, my github linux branch includes various  
fixes for linux that may be necessairy for OSX as well.


On Tue, Dec 30, 2008 at 1:11 AM, jirapong.na...@gmail.com > wrote:

Hi JD,
   yes. but follow error was throw.

Macintosh-2:ironruby Jirapong$ rake compile mono=1 --trace
(in /Users/Jirapong/ironruby)
** Invoke compile (first_time)
** Invoke happy (first_time)
** Execute happy
** Invoke clean_build (first_time)
** Invoke happy
** Execute clean_build
** Invoke compile_dlr (first_time)
** Invoke compile_extension_attributes (first_time)
** Invoke clean_build
** Execute compile_extension_attributes
---
dlr_core
---
** Execute compile_dlr

---
dlr_core
---
Exception caught by the compiler while compiling:
  Block that caused the problem begin at: ast/ 
LambdaExpression.cs(121,38):
Block being compiled: [ast/ 
LambdaExpression.cs(121,72):,ast/LambdaExpression.cs(123,9):]
System.NullReferenceException: Object reference not set to an  
instance of an object
Internal compiler error at ast/LambdaExpression.cs(121,38)::  
exception caught while emitting MethodBuilder [Expression`1::Accept]


Unhandled Exception: System.NullReferenceException: Object reference  
not set to an instance of an object
 at Mono.CSharp.TypeInferenceContext.FixIndependentTypeArguments  
(ParameterData methodParameters, System.Boolean& fixed_any) [0x0]
 at Mono.CSharp.TypeInferenceV3.InferInPhases  
(Mono.CSharp.EmitContext ec, Mono.CSharp.TypeInferenceContext tic,  
ParameterData methodParameters) [0x0]
 at Mono.CSharp.TypeInferenceV3.InferMethodArguments  
(Mono.CSharp.EmitContext ec, System.Reflection.MethodBase method)  
[0x0]
 at Mono.CSharp.TypeManager.InferTypeArguments  
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments,  
System.Reflection.MethodBase& method) [0x0]
 at Mono.CSharp.MethodGroupExpr.IsApplicable  
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments,  
Int32 arg_count, System.Reflection.MethodBase& method,  
System.Boolean& params_expanded_form) [0x0]
 at Mono.CSharp.MethodGroupExpr.OverloadResolve  
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList&  
Arguments, Boolean may_fail, Location loc) [0x0]
 at Mono.CSharp.Invocation.DoResolveOverload  
(Mono.CSharp.EmitContext ec) [0x0]
 at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext ec)  
[0x0]
 at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,  
ResolveFlags flags) [0x0]
 at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec)  
[0x0]
 at Mono.CSharp.Return.DoResolve (Mono.CSharp.EmitContext ec)  
[0x0]
 at Mono.CSharp.ExitStatement.Resolve (Mono.CSharp.EmitContext ec)  
[0x0]

 at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x0]
 at Mono.CSharp.ExplicitBlock.Resolve (Mono.CSharp.EmitContext ec)  
[0x0]
 at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext  
anonymous_method_host, Mono.CSharp.ToplevelBlock block,  
Mono.CSharp.Parameters ip, IMethodData md, System.Boolean&  
unreachable) [0x0]

rake aborted!
Command failed with status (1): [gmcs /noconfig @/var/folders/yx/yx- 
i1r2PFU...]



Thank you,
-Jirapong


On Dec 30, 2008, at 12:37 PM, Jim Deville wrote:

That would be a mistake on my part it looks like. If you switch the  
"\" in the Rakefile imports with "/", does it work? If so, I'll make  
the change and push it out tonight or tomorrow.


JD

-Original Message-
From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of C. K. Ponnappa

Sent: Monday, December 29, 2008 8:46 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Need help building IronRuby on Mono 2 + OS X

Hey guys,

I'm running on OS X 10.5.5 with Mono 2.0 (installed via Ports). I ran

rake compile mono=1

I do have pathname2 installed and am using IronRuby trunk revision  
180.


I get the following error:
~/Work/ruby/ironruby$ rake compile mono=1  --trace
(in /Users/schonira/Work/ruby/ironruby)
rake aborted!
no such file to load -- /Users/schonira/Work/ruby/ironruby/rake 
\test.rake

/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1598:in `load'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1598:in `load'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2413:in  
`load_i

Re: [Ironruby-core] Need help building IronRuby on Mono 2 + OS X

2008-12-30 Thread jirapong.na...@gmail.com

try out but get another error.

(in /Users/Jirapong/ironruby-jim/merlin/main/Languages/Ruby)
---
dlr_core
---
---
dlr_core
---
Actions/DynamicObject.cs(411,32): error CS0121: The call is ambiguous  
between the following methods or properties:  
`System.Linq.Expressions.Expression.Block(params  
System.Linq.Expressions.Expression[])' and  
` 
System 
.Linq 
.Expressions 
.Expression 
.Block 
(System 
.Collections 
.Generic.IEnumerable,  
params System.Linq.Expressions.Expression[])'
Ast/BlockExpression.cs(568,39): (Location of the symbol related to  
previous error)
Ast/BlockExpression.cs(588,39): (Location of the symbol related to  
previous error)
Actions/DynamicObject.cs(463,32): error CS0121: The call is ambiguous  
between the following methods or properties:  
`System.Linq.Expressions.Expression.Block(params  
System.Linq.Expressions.Expression[])' and  
` 
System 
.Linq 
.Expressions 
.Expression 
.Block 
(System 
.Collections 
.Generic.IEnumerable,  
params System.Linq.Expressions.Expression[])'
Ast/BlockExpression.cs(568,39): (Location of the symbol related to  
previous error)
Ast/BlockExpression.cs(588,39): (Location of the symbol related to  
previous error)

Compilation failed: 2 error(s), 0 warnings
rake aborted!
Command failed with status (1): [gmcs /noconfig @/var/folders/yx/yx- 
i1r2PFU...]



On Dec 30, 2008, at 8:27 PM, Ivan Porto Carrero wrote:

Ok now that I know what that error message means i went ahead and  
forked ironruby also.
I created a branch called mono and it builds successfully on my mac  
with mono.


I basically applied many of the fixes from seo's patch but for the  
git layout and with the sources from 18/12/2008.


I think you also have to set the MERLIN_ROOT environment variable if  
you're using the git layout.

I use a .bashrc file and there I added the line
export MERLIN_ROOT='/Users/ivan/src/ironruby/merlin/main'

To get ironruby from my fork and compile it:

git clone git://github.com/casualjim/ironruby.git
cd ironruby
git checkout -b mono
git pull origin mono
cd merlin/main/Languages/Ruby
rake compile mono=1

I tried using Michael's branch but it didn't want to work for me.

Thanks Seo, Michael :)

On Tue, Dec 30, 2008 at 1:04 PM, Seo Sanghyeon   
wrote:

2008/12/30 Ivan Porto Carrero :
> I've tried to build from source on OSX too.. with the latest trunk  
from mono

> but it won't compile I get the same error.

Try the latest patch on
http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/

(Or equivalently, Michael Letterle's git tree on github)

--
Seo Sanghyeon
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

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


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


Re: [Ironruby-core] Need help building IronRuby on Mono 2 + OS X

2008-12-31 Thread jirapong.na...@gmail.com
I was able to build with Ivan's instruction base on mono 2.2 RC1. You  
can get an installer from http://mono.ximian.com/monobuild/preview/archive/2.2/macos-10-universal/4/MonoFramework-2.2_4.macos10.novell.universal.dmg


Hope this helps,
-Jirapong

On Dec 31, 2008, at 4:14 PM, C. K. Ponnappa wrote:

Ok, I switched to building Mono from source instead of through ports  
- ran into some trouble building mono itself, but I'll get that  
sorted out and then try building Ivan's fork and let you guys know  
how that goes.


And a big thank you to all for helping out so much - it really  
pushes someone new to IronRuby like me to actually get things  
working and not simply give up :-)


Thanks again and here's wishing all of you a very happy new year.
Best,
Sidu.
http://blog.sidu.in

Ivan Porto Carrero wrote:
Ok now that I know what that error message means i went ahead and  
forked ironruby also.
I created a branch called mono and it builds successfully on my mac  
with mono.


I basically applied many of the fixes from seo's patch but for the  
git layout and with the sources from 18/12/2008.
I think you also have to set the MERLIN_ROOT environment variable  
if you're using the git layout.

I use a .bashrc file and there I added the line
export MERLIN_ROOT='/Users/ivan/src/ironruby/merlin/main'

To get ironruby from my fork and compile it:

git clone git://github.com/casualjim/ironruby.git 

cd ironruby
git checkout -b mono
git pull origin mono
cd merlin/main/Languages/Ruby
rake compile mono=1

I tried using Michael's branch but it didn't want to work for me.

Thanks Seo, Michael :)

On Tue, Dec 30, 2008 at 1:04 PM, Seo Sanghyeon mailto:sanx...@gmail.com 
>> wrote:


   2008/12/30 Ivan Porto Carrero mailto:i...@flanders.co.nz>>:
   > I've tried to build from source on OSX too.. with the latest
   trunk from mono
   > but it won't compile I get the same error.

   Try the latest patch on
   http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/
   

   (Or equivalently, Michael Letterle's git tree on github)

   --
   Seo Sanghyeon
   ___
   Ironruby-core mailing list
   Ironruby-core@rubyforge.org 
   http://rubyforge.org/mailman/listinfo/ironruby-core




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


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


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


Re: [Ironruby-core] Error retrieving from github

2009-01-05 Thread jirapong.na...@gmail.com

Hi Colin,
	You might want to check with this guide http://github.com/guides/getting-a-copy-of-your-github-repo 
  first.


Hope this helps,
-Jirapong


On Jan 5, 2009, at 5:47 PM, Colin Jack wrote:


Hi,

I've been trying to get IronRuby from GIT using the steps in Ben's  
blog
(http://blog.benhall.me.uk/2008/12/downloading-ironruby-from-github.html 
)

but keep getting this error:

github.com[0: 65.74.177.129]: errno=Invalid argument
fatal: unable to connect a socket (Invalid argument)

I was wondering if anyone else has seen this or could point me in the
right direction?

Thanks,

Colin
--
Posted via http://www.ruby-forum.com/.
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


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


Re: [Ironruby-core] SVN __AND__ Git revisions pushed

2009-01-09 Thread jirapong.na...@gmail.com

I get svn.exe error...on Mac + Mono

Macintosh-2:Ruby Jirapong$ rake compile mono=1 --trace
(in /Users/Jirapong/ironruby/merlin/main/Languages/Ruby)
** Invoke compile (first_time)
** Invoke happy (first_time)
** Execute happy
Cannot find svn.exe on system path.

* Missing commands! You must have the .NET redist and the SDK
* (for resgen.exe) installed. If you are synchronizing source
* trees *inside* Microsoft, you must have both tfs.exe and
* svn.exe on your path.
Macintosh-2:Ruby Jirapong$ vim

believe that need to fix  line#107 in rake/misc.rake

104 task :happy do
105   IronRuby.source_context do
106 commands = !mono? ? ['resgen.exe', 'csc.exe'] : ['resgen',  
'gmcs']

107 commands += ['svn.exe'] if IronRuby.is_merlin? and !mono?


On Jan 9, 2009, at 3:48 PM, Jim Deville wrote:

My changes went in this morning, so I have pushed SVN 183 and Git  
revision 69815c7.


Two things:
1)  Git may be in a bad state due to CRLF issues and casing. Can  
I get a confirmation that it compiles and runs?
2)  This release includes support for local variables in the ir  
console. Enjoy J

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


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


Re: [Ironruby-core] Git changes

2009-01-11 Thread jirapong.na...@gmail.com

Hi all,
	on windows. I found that rake-0.7.3 (installed on  Ruby One-click   
installer) give following error.  should it be require like the  
"pathname2"?


C:\dotNET\ironruby\Merlin\Main\Languages\Ruby>rake compile
(in C:/dotNET/ironruby/Merlin/Main/Languages/Ruby)
rake aborted!
wrong number of arguments (2 for 1)
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1944:in  
`raw_load_rakefile'

(See full trace by running task with --trace)

C:\dotNET\ironruby\Merlin\Main\Languages\Ruby>gem update rake
Updating installed gems
Updating rake
Successfully installed rake-0.8.3
Gems updated: rake

C:\dotNET\ironruby\Merlin\Main\Languages\Ruby>rake compile
(in C:/dotNET/ironruby/Merlin/Main/Languages/Ruby)
c:\dotnet\ironruby\merlin\main\languages\ruby
c:\dotnet\ironruby\merlin\main\languages\ruby
---
dlr_core
---
---
dlr_core
---

   
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
, 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3;0 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0-h:mm:ss tt:000AMPMM/d/


On Jan 11, 2009, at 2:52 AM, Jim Deville wrote:


Pete,

Do you have MERLIN_ROOT set in your env vars? It needs to be set to  
D:\dev\ruby\ironruby\git_ironruby\Merlin\Main


This is going to be a requirement until we close the SVN repo and  
start pulling out the supporting code.


JD

From: ironruby-core-boun...@rubyforge.org [ironruby-core-boun...@rubyforge.org 
] On Behalf Of Pete Bacon Darwin [bacondar...@googlemail.com]

Sent: Saturday, January 10, 2009 5:52 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Git changes

Just in case anyone is getting stuck with this too:
- You need rake 0.8.3 to compile IronRuby.  (It doesn't like the
parameterized tasks in git.rake with 0.8.1.)
- Also gems.rubyforge.org is no longer compatible with gem 1.1 so  
you have

to manually upgrade gem before you can do gem update rake.
Phew!

Now my rake compile is failing on building dlr_core:
- It can't find the file
"merlin\main\languages\ruby\src\microsoft.scripting.core"
Since it doesn't exist...
Trace from rake is below.
Pete

D:\dev\ruby\ironruby\git_ironruby\merlin\main\Languages\Ruby>rake  
compile

--trace
(in D:/dev/ruby/ironruby/git_ironruby/merlin/main/Languages/Ruby)
** Invoke compile (first_time)
** Invoke happy (first_time)
** Execute happy
** Invoke clean_build (first_time)
** Invoke happy
** Execute clean_build
** Invoke compile_dlr (first_time)
** Invoke compile_extension_attributes (first_time)
** Invoke clean_build
** Execute compile_extension_attributes

---
dlr_core

---
rake aborted!
No such file or directory -
d:\dev\ruby\ironruby\git_ironruby\merlin\main\languages\ruby\src\micr
./context.rb:5

Re: [Ironruby-core] Congratulations to IronRuby MVPs: Peter Bacon Darwin and Michael Letterle

2009-01-12 Thread jirapong.na...@gmail.com

Congratulation guys!

On Jan 13, 2009, at 5:32 AM, Jimmy Schementi wrote:


All,

I want to congratulate two new "Microsoft Most Valuable  
Professionals" (MVP), Michael Letterle and Peter Bacon Darwin! They  
are IronRuby MVPs, though officially it says "Visual C#". =P


Thanks for your hard work!

While you're waiting for a build, or just need some mindless  
activity, here's some information about the MVP program: https://mvp.support.microsoft.com


~Jimmy
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


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


[Ironruby-core] igem.bat

2009-01-30 Thread jirapong.na...@gmail.com

How can i get igem.bat work correctly? right now, I get following error.

C:\dotNET\ironruby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>SET  
GEM_PATH=C:\ruby\lib\ruby\gems\1.8


C:\dotNET\ironruby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>set  
path=%path%;C:\dotNET\ironruby\ironruby\Merlin\Ma

in\bin\debug;C:\ruby\lib\ruby\gems\1.8

C:\dotNET\ironruby\ironruby\Merlin\Main\Languages\Ruby\Scripts 
\bin>igem.bat list
c:\dotNET\ironruby\ironruby\Merlin\Main\Languages\Ruby 
\Libraries.LCA_RESTRICTED\Builtins\KernelOps.cs:406:in `require':

no such file to load -- rubygems (LoadError)
from :0

Use latest version from GitHub (1ee05cdd)

Thank you,
-Jirapong

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


Re: [Ironruby-core] igem.bat

2009-02-01 Thread jirapong.na...@gmail.com

Hello Ivan,
ok, now i put




two errors after that.
c:\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED 
\Builtins\KernelOps.cs:406:in `require': no such file to load --  
thread.so (LoadError)
#this one resolve by put C:\ruby\lib\ruby\1.8\i386-mswin32  on  
LibraryPaths


I cannot get around this error
c:\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED 
\Builtins\KernelOps.cs:406:in `require':
The module was expected to contain an assembly manifest. (Exception  
from HRESULT: 0x80131018) (LoadError)


Any advice?

Thank you,
-Jirapong 
  



On Jan 31, 2009, at 3:16 PM, Ivan Porto Carrero wrote:

You have to edit ir.exe.config and change the paths to reflect your  
installation.

---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
GSM: +32.486.787.582
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim



On Sat, Jan 31, 2009 at 8:30 AM, jirapong.na...@gmail.com > wrote:
How can i get igem.bat work correctly? right now, I get following  
error.


C:\dotNET\ironruby\ironruby\Merlin\Main\Languages\Ruby\Scripts 
\bin>SET GEM_PATH=C:\ruby\lib\ruby\gems\1.8


C:\dotNET\ironruby\ironruby\Merlin\Main\Languages\Ruby\Scripts 
\bin>set path=%path%;C:\dotNET\ironruby\ironruby\Merlin\Ma

in\bin\debug;C:\ruby\lib\ruby\gems\1.8

C:\dotNET\ironruby\ironruby\Merlin\Main\Languages\Ruby\Scripts 
\bin>igem.bat list
c:\dotNET\ironruby\ironruby\Merlin\Main\Languages\Ruby 
\Libraries.LCA_RESTRICTED\Builtins\KernelOps.cs:406:in `require':

no such file to load -- rubygems (LoadError)
from :0

Use latest version from GitHub (1ee05cdd)

Thank you,
-Jirapong


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


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


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


Re: [Ironruby-core] Status of rubygems unit tests

2009-03-17 Thread jirapong.na...@gmail.com

Hello Shri,
I would like to help on this.

please include my email/IM:
+ msn: jirap...@msn.com
+ Skype: jirapong.nanta

Thank you,
-Jirapong

On Mar 17, 2009, at 1:10 PM, Shri Borde wrote:

I have been working on making  the rubygem unit tests (from git:// 
github.com/vvs/rubygems.git) pass with IronRuby. When I started, the  
results looked like this.


707 tests, 1170 assertions, 9 failures, 352 errors, 1 skips

Half the tests (9+352/707) were failing (or half were passing  
depending on how you want to look at it). The main culprits were  
Zlib::GzipWriter, YAML.quick_emit and Zlib::Deflate. After fixing  
these issues, the results look like this:


707 tests, 1881 assertions, 40 failures, 53 errors, 4 skips

It’s a good improvement. Errors (where the tests cannot even run  
properly) account for 8% (53/707), and failures (functionality  
defects) can now show through – in 5% (40/707) of the tests, for a  
pass rate of 87%. The errors are because of the following exceptions  
in descending order of occurrence. The number at the start is the  
count of how often the error happened.


9: dump format error(9)
8: ERROR: Failed to build gem native extension.
5: dump format error(8)
5: marshal data too short
4: uninitialized constant OpenSSL::X509
2: uninitialized constant OpenSSL::PKey
2: trying to seek on a non-existent stream?
2: ERROR: Failed to build gem native extension.
2: SSL is not installed on this system
2: SocketError: An established connection was aborted by the  
software in your host machine


I will keep pushing on the tests. The failures will be a bit more  
work to narrow down as some expectation fails, possibly much after a  
bug introduced a bad result in the system. If anyone wants to help  
dig into the failures, let me know, and I can help you get set up.


Thanks,
Shri

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


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


Re: [Ironruby-core] Status of rubygems unit tests

2009-03-18 Thread jirapong.na...@gmail.com

Hello Shri,
Following is a result from my laptop.

1. Getting latest source and build with rake successfully (I did clone)
2. try first test with MRI
C:\rubygems>ruby.exe c:\rubygems\test\test_gem.rb
Loaded suite c:/rubygems/test/test_gem
Started
...
Finished in 15.828000 seconds.

51 tests, 79 assertions, 0 failures, 0 errors, 0 skips

3. I have to change c: to C:  in gem_test.rb because error

	c:/ruby/lib/ruby/1.8/pathname.rb:709:in `relative_path_from':  
different prefix: "c:/" and "C:/" (ArgumentError)
from c:/ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/ 
minitest/unit.rb:17
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/ 
custom_require.rb:31:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/ 
custom_require.rb:31:in `require'

from C:/rubygems/gem_tests.rb:3

	4. run ruby c:\rubygems\gem_tests.rb get result: 728 tests, 1714  
assertions, 13 failures, 229 errors, 4 skips

5. SET GEM_PATH=C:\ruby\lib\ruby\gems\1.8
6. edit unit.rb line 47 and location e method
	7. run ir.exe gem_tests.rb result: 728 tests, 1130 assertions, 4  
failures, 415 errors, 4 skips


my gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.1
  - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
  - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: c:/ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: c:/ruby/bin
  - RUBYGEMS PLATFORMS:
- ruby
- x86-mswin32-60
  - GEM PATHS:
 - c:/ruby/lib/ruby/gems/1.8
 - C:/ruby/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
 - :update_sources => true
 - :verbose => true
 - :benchmark => false
 - :backtrace => false
 - :bulk_threshold => 1000
  - REMOTE SOURCES:
 - http://gems.rubyforge.org/

Thank you,
-Jirapong

On Mar 18, 2009, at 1:04 PM, Shri Borde wrote:

Hi Jirapong, It will be great to pair up with you to push on getting  
RubyGems tests working with IronRuby. I have written up the  
instructions for running the tests at http://www.ironruby.net/index.php?title=Documentation/How_do_I_install_additional_gems%3F 
. Can you build IronRuby (http://wiki.github.com/ironruby/ironruby  
has instructions, and we are trying to improve it, so do let us know  
if there are any rough edges), and then walk through the steps to  
get to the same number of failures. Once both of us have the same  
setup, we can split up the failures for investigation. Let me know  
if you run into problems and I can help you through it.


Thanks,
Shri

From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Tuesday, March 17, 2009 12:13 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Status of rubygems unit tests

Hello Shri,
I would like to help on this.

please include my email/IM:
+ msn: jirap...@msn.com
+ Skype: jirapong.nanta

Thank you,
-Jirapong

On Mar 17, 2009, at 1:10 PM, Shri Borde wrote:


I have been working on making  the rubygem unit tests (from git:// 
github.com/vvs/rubygems.git) pass with IronRuby. When I started, the  
results looked like this.


707 tests, 1170 assertions, 9 failures, 352 errors, 1 skips

Half the tests (9+352/707) were failing (or half were passing  
depending on how you want to look at it). The main culprits were  
Zlib::GzipWriter, YAML.quick_emit and Zlib::Deflate. After fixing  
these issues, the results look like this:


707 tests, 1881 assertions, 40 failures, 53 errors, 4 skips

It’s a good improvement. Errors (where the tests cannot even run  
properly) account for 8% (53/707), and failures (functionality  
defects) can now show through – in 5% (40/707) of the tests, for a  
pass rate of 87%. The errors are because of the following exceptions  
in descending order of occurrence. The number at the start is the  
count of how often the error happened.


9: dump format error(9)
8: ERROR: Failed to build gem native extension.
5: dump format error(8)
5: marshal data too short
4: uninitialized constant OpenSSL::X509
2: uninitialized constant OpenSSL::PKey
2: trying to seek on a non-existent stream?
2: ERROR: Failed to build gem native extension.
2: SSL is not installed on this system
2: SocketError: An established connection was aborted by the  
software in your host machine


I will keep pushing on the tests. The failures will be a bit more  
work to narrow down as some expectation fails, possibly much after a  
bug introduced a bad result in the system. If anyone wants to help  
dig into the failures, let me know, and I can help you get set up.


Thanks,
Shri

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

___

Re: [Ironruby-core] Pair debugging

2009-03-26 Thread jirapong.na...@gmail.com
Yes!, It has been very helpful to me. I can see what i need to prepare  
and looking for when get an error.


I found the debugger method is very powerful - http://gist.github.com/61605 
 >> and would be nice if It can auto load when Ruby.Console is start?


encourage everyone to try & contribute
Thank you,
-Jirapong

On Mar 27, 2009, at 6:06 AM, Shri Borde wrote:

I spent a couple of hours this morning debugging RubyGems unit test  
failures along with Jirapong Nanta. It was a fun exercise. We  
tracked down two issues and hopefully Jirapong found the experience  
useful to jump start his exploration of the IronRuby code base.


I am open to helping others too. I have put the following notes at  
the bottom ofhttp://wiki.github.com/ironruby/ironruby/debugging to  
ensure that we can have a productive session. Jirapong had done his  
homework, gotten RubyGems to work cleanly with MRI, and done a bit  
of debugging himself, which is why we had a productive session.

Pair debugging with experienced IronRuby developers

Some experienced IronRuby developers may be available to debug a  
problem with you. Watching over their shoulder can help a newcomer  
to the code base learn debugging tips and techniques. To make this a  
fruitful exercise, please follow the following guidelines:


· Send email to ironruby-core@rubyforge.org asking if any  
experienced developer is available to help you
· Ensure that you can build and successfully run all of the  
RubySpec tests.
· Restrict the problems to pure Ruby code which is known to  
work with MRI. Ensuring a clean working baseline functionality in  
MRI ensures that the problem truly in IronRuby. Without a known  
clean MRI baseline, the problem can be in a component other than  
IronRuby which you are as well-equipped to diagnose as anyone else.
· Set up a clean repro. Spend time ensuring that it is not a  
configuration issue, and that the problem can be easily reproduced  
on other machines. Document detailed information about your  
platform, version of IronRuby, and the steps to repro the problem.
· Do basic debugging by yourself beforehand. This will  
ensure that you get the most out of the session and can keep up with  
what’s going on over Live Meeting.
· Set up Live Meeting on your machine, which will allow you  
to watch the debugging session.
· Add the experienced developer as a friend/buddy in some  
Chat program so that you can ask questions during the debugging  
session.

Thanks,
Shri

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


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


[Ironruby-core] Kernel.open

2009-04-08 Thread jirapong.na...@gmail.com

Hi,
This snippet seems to be a bug in IronRuby.

file = Kernel.open("test.bin", "wb", 0444)

Error:
wrong number of arguments (5 for 3) (ArgumentError)nfo/ironruby-core


Re: [Ironruby-core] Some feedback on the compile/test process

2009-04-16 Thread jirapong.na...@gmail.com
I got 14 warning as well, My workaround was to change a Target  
Framework to .NET 3.5


Thanks,
-Jirapong

On Apr 15, 2009, at 8:15 PM, Thibaut Barrère wrote:


Some notes as I go though the contributing process, in hope that will
be useful to make it smoother:
- after a clean checkout and launching dev.bat, brbd would not compile
(today). I believe it reported a missing microsoft.scripting.dll
issue.
- opening the solution in VS2008 shows 14 warnings about referenced
components that cannot be found (System, mscorlib, System.Net), not
sure if that's an issue or not
- compiling through VS2008 makes the compile using brbd works  
afterwards.

- first pass at launching irtests opens a bunch of windows - most of
them fail with failure to load default.mspec (see [1]) - after
searching, the message was caused by an old .mspecrc that was sitting
in my home folder. Removing it solved the issue.
- I noticed a runfirst.cmd, should I actually run it or is it obsolete
? It seems to have an error in it (references default.mspec.rb which
has been renamed to default.mspec since).
- on a french machine, the MiscTests/NumericLiterals1 fails see [2] -
sounds like a missing InvariantCulture in a float ToString call. I'll
look into it unless someone fixes it in between.

On irtests execution: the end of irtests launches irtest.bat, run.bat
and 4 mspec in parallels ("start" calls). Is there a need for that (ie
one process that monitors the others) or could it be run sequentially
if it's more comfortable for me ? The load is putting my machine down
on its knees.

cheers,

-- Thibaut

= [1] mspec error =

IronRuby 0.3 0.3.0.0 on .NET 2.0.0.0
:0:in `load': no such file to load --
C:\git\ironruby\Merlin\Main\..\External\Languages\IronRuby\mspec 
\default.mspec

(LoadError)

= [2] NumericLiterals1 failure =

1) NumericLiterals1
c:\git\ironruby\Merlin\Main\Languages\Ruby\IronRuby.Tests\Runtime 
\MiscTests.cs

: 411
Unexpected output:

'1\r\n-1\r\n1\r\n1,1\r\n-1,1\r\n1,1\r\n2.0\r\n2.0\r\n2,156\r\n'.

First difference (8):
actual = ','
expected = '.'

Repro: C:\git\ironruby\Merlin\Main\bin\debug\IronRuby.Tests.exe  
NumericLiterals1

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


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


[Ironruby-core] File.new spec fixes

2009-04-17 Thread jirapong.na...@gmail.com

http://github.com/Jirapong/ironruby/commit/929e07e27183e70a6e4bed8197430ff533610762

Fixes for core\file\new_spec.rb:
File.new raises an Errorno::EEXIST if the file exists when create a  
new file with File::CREAT|File::EXCL

File.new raises an Errno::EINVAL error with File::APPEND
File.new raises an Errno::EINVAL error with File::RDONLY|File::APPEND

Files changed:
	• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby- 
tags/core/file/new_tags.txt
	• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/ 
core/file/new_spec.rb
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/ 
FileOps.cs

• Merlin/Main/Languages/Ruby/Ruby/Builtins/File.cs

Thank you,
-Jirapong

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


Re: [Ironruby-core] File.new spec fixes

2009-04-17 Thread jirapong.na...@gmail.com

Thank you for your review.  please find formatted version at 9942b24

I just do a pull request for 929e07 and 9942b24.

please see my answer inline.

Thank you,
-Jirapong

On Apr 18, 2009, at 5:51 AM, Shri Borde wrote:

Some blocks are not indented as in the second line in this example.  
Could you indent those please?

+lambda {
+@fh = File.new(@file, File::CREAT|File::EXCL)
+  }.should raise_error(Errno::EEXIST)
0

You added try-catch to one of the overloads of  
RubyFileOps.CreateFile. Could you add it to all?
Yes, It must be, but this will not longer need if we move Errno to  
Ruby project.


Btw, I discussed with Tomas about the fact that many of the IO  
exceptions are defined in IronRuby.Libraries.dll, but RubyFile needs  
to throw those exception from IronRuby.dll. We can move the  
exceptions that are needed in IronRuby.dll into IronRuby.dll. That  
will avoid having to do a try-catch to translate the exception  
type.  Do you want to add Languages\Ruby\Ruby\Builtins\Errno.cs and  
move some of the exception types there?
I'm trying to add Errno.cs with EEXIST exception in IronRuby.dll, but  
I can't get its initialize code in Initializers.Generated.cs file  
after run geninit.  Is it possible to define [RubyClass("EEXIST")] in  
IronRuby.dll?




Thanks,
Shri

From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Friday, April 17, 2009 11:40 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] File.new spec fixes

http://github.com/Jirapong/ironruby/commit/929e07e27183e70a6e4bed8197430ff533610762

Fixes for core\file\new_spec.rb:
File.new raises an Errorno::EEXIST if the file exists when create a  
new file with File::CREAT|File::EXCL

File.new raises an Errno::EINVAL error with File::APPEND
File.new raises an Errno::EINVAL error with File::RDONLY|File::APPEND

Files changed:
• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/ 
mspec/ironruby-tags/core/file/new_tags.txt
• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/ 
mspec/rubyspec/core/file/new_spec.rb
• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Builtins/FileOps.cs

• Merlin/Main/Languages/Ruby/Ruby/Builtins/File.cs

Thank you,
-Jirapong

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


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


Re: [Ironruby-core] Proposal: Moving IronRuby bugs to CodePlex

2009-04-18 Thread jirapong.na...@gmail.com

Oops, This is too late but Github's issue tracker! 
http://github.com/blog/411-github-issue-tracker

On Apr 10, 2009, at 6:38 AM, Jimmy Schementi wrote:

http://ironruby.codeplex.com is live. Please direct any bug  
submissions and downloads of IronRuby to this site, rather than  
RubyForge. RubyForge bugs will be moved (as appropriate) to CodePlex  
over time, and v0.3 is on CodePlex, along with sources. Releases may  
be posted to both sites, simply for exposure, but please link to the  
CodePlex copy (as http://ironruby.net/Download does).


RubyForge’s only use is now the mailing list, though I’m looking to  
move that as well (with minimal downtime to this list). I’ll keep  
you all posted.


~Jimmy

From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of Jimmy Schementi

Sent: Tuesday, April 07, 2009 5:02 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Proposal: Moving IronRuby bugs to  
CodePlex




No objections/concerns/thoughts/concerns/praises/gifts-of-gold- 
frankincense-and-myrrh? Ok then ...


http://ironruby.codeplex.com/ has been created, and once live all  
bugs will be stored there. Jim is going through RubyForge bugs  
slowly, closing ones that are fixed, and possibly moving important  
ones over to CodePlex. I'll let you all know when CodePlex is open  
for business.


~js

From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of Jimmy Schementi

Sent: Thursday, April 02, 2009 3:36 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Proposal: Moving IronRuby bugs to CodePlex



(I originally planned on sending this yesterday, but I waited until  
today to remove the “April Fools” possibility =P)


I’d like to propose moving IronRuby’s bugs off of RubyForge.  
CodePlex looks like the best option, mainly due to the voting  
feature for bugs. Here are some possible options for defect  
tracking, and what I think about them:


Lighthouse: http://lighthouseapp.com
Sample site: http://silverline.lighthouseapp.com

Very usable, nice UI, and I’m a sucker for those types of things.  
They support multiple projects, so splitting up the project into  
Compiler, Libraries, Silverlight, etc, would be very clear. There’s  
also a nice UI for milestone progress, making it fairly clear how  
the progress is going. Also, other Ruby projects are moving here, so  
a move to Lighthouse would follow the logic of why we started on  
RubyForge.


Lighthouse also has integration with GitHub, keeping our lighthouse  
page up-to-date with any changes in git.


Lighthouse is usually a pay-service, but I believe they have free  
hosting for open-source projects. However, there might be limits on  
how many projects can be created, or users can be admins, so it’d be  
good to find out these details.


Unfortunately, there’s no good way to prioritize tickets other than  
milestones, and non-project-admins can’t change the milestone, so we  
can’t accomplish any type of user-prioritization (voting) on tickets.


RubyForge: http://rubyforge.org
Sample site: http://rubyforge.org/projects/ironruby

We’re on RubyForge currently, so switching to RubyForge would be  
easy. =P Unfortunately, that’s about the only benefit it provides.  
While RubyForge has been instrumental in shaping the Ruby community,  
it appears that its heydays have passed, in favor of GitHub and  
lighthouse. RubyForge also appears to be unmaintained, especially in  
light of our crazy mailing list delays. File releases are still  
being used by the Ruby community, mainly because of it being a Ruby  
Gems repository, so we should keep releasing on it.


CodePlex: http://codeplex.com
Sample site: http://ironpython.codeplex.com

CodePlex has turned into a pretty awesome open-source project site.  
In the past I wouldn’t have wanted to move to CodePlex, but now  
there defect tracking features seem like the best, and much faster  
than they use to be. You can use the web interface, the team  
foundation client, or CodePlex client to look at bugs, which makes  
it pretty easy to keep on-top of them. Since CodePlex uses TFS  
underneath to store work-items and bugs, we can use the TFS API to  
do git commit integration and things like that (though the TFS API  
isn’t the greatest, it exists =P). But mainly the web interface has  
voting support, so our tickets can be prioritized by community  
feedback very easily … this is definitely the killer feature for me.


As I said, I’m leaning heavily towards CodePlex, mainly for the  
voting support. IronPython uses this very successfully, and it would  
help prioritize IronRuby’s work, especially post-1.0.


So here’s the proposal:
1.   Go through open RubyForge bugs, closing bugs as necessary,  
and narrowing in on a subset to move to CodePlex (jdeville has begun  
closing bugs).


2.   Create http://ironruby.codeplex.com (already reserved, just  
waiting to set things up and turn it on), 

Re: [Ironruby-core] File.new spec fixes

2009-04-18 Thread jirapong.na...@gmail.com

Hi Shri,
Thank you for quick reply.  Could you please review it at af4acea ?

Note: VS.NET ProductVersion seems to be difference on my machine.
Thank you,
-Jirapong

On Apr 19, 2009, at 12:48 AM, Shri Borde wrote:

You  will need to add the exception classes in IronRuby.dll, and  
then define XXXOps classes in IronRuby.Libraries.dll with the  
[RubyClass] attribute. See FileNotFoundExceptionOps in  
Libraries.LCA_RESTRICTED\Builtins\Errno.cs for an example of how  
this is done.


From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Friday, April 17, 2009 11:25 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] File.new spec fixes

Thank you for your review.  please find formatted version at 9942b24

I just do a pull request for 929e07 and 9942b24.

please see my answer inline.

Thank you,
-Jirapong

On Apr 18, 2009, at 5:51 AM, Shri Borde wrote:


Some blocks are not indented as in the second line in this example.  
Could you indent those please?

+lambda {
+@fh = File.new(@file, File::CREAT|File::EXCL)
+  }.should raise_error(Errno::EEXIST)
0

You added try-catch to one of the overloads of  
RubyFileOps.CreateFile. Could you add it to all?
Yes, It must be, but this will not longer need if we move Errno to  
Ruby project.



Btw, I discussed with Tomas about the fact that many of the IO  
exceptions are defined in IronRuby.Libraries.dll, but RubyFile needs  
to throw those exception from IronRuby.dll. We can move the  
exceptions that are needed in IronRuby.dll into IronRuby.dll. That  
will avoid having to do a try-catch to translate the exception  
type.  Do you want to add Languages\Ruby\Ruby\Builtins\Errno.cs and  
move some of the exception types there?
I'm trying to add Errno.cs with EEXIST exception in IronRuby.dll,  
but I can't get its initialize code in Initializers.Generated.cs  
file after run geninit.  Is it possible to define  
[RubyClass("EEXIST")] in IronRuby.dll?




Thanks,
Shri

From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Friday, April 17, 2009 11:40 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] File.new spec fixes

http://github.com/Jirapong/ironruby/commit/929e07e27183e70a6e4bed8197430ff533610762

Fixes for core\file\new_spec.rb:
File.new raises an Errorno::EEXIST if the file exists when create a  
new file with File::CREAT|File::EXCL

File.new raises an Errno::EINVAL error with File::APPEND
File.new raises an Errno::EINVAL error with File::RDONLY|File::APPEND

Files changed:
• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/ 
mspec/ironruby-tags/core/file/new_tags.txt
• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/ 
mspec/rubyspec/core/file/new_spec.rb
• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Builtins/FileOps.cs

• Merlin/Main/Languages/Ruby/Ruby/Builtins/File.cs

Thank you,
-Jirapong

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

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


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


Re: [Ironruby-core] File.new spec fixes

2009-04-20 Thread jirapong.na...@gmail.com


http://github.com/Jirapong/ironruby/commit/e5dfbef094e4712d8859f5cda142b608dafe3b16

Makes Code refactor as reviewed.  see inline answer.

Files changed:
	• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/ 
core/kernel/open_spec.rb

• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/Errno.cs
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/ 
KernelOps.cs
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Initializers.Generated.cs

• Merlin/Main/Languages/Ruby/Ruby/Builtins/Exceptions.cs
• Merlin/Main/Languages/Ruby/Ruby/Builtins/RubyErrno.cs
Thanks,
-Jirapong

On Apr 19, 2009, at 4:43 AM, Shri Borde wrote:

Looks good! The only comment is that in IronRuby.dll (an in the  
libraries too wherever possible), the code should be “good” C# code,  
and should have as few Ruby-isms in it as possible. In RubyErrno.cs,  
you added a static class IronRuby.Builtins.RubyErrno with inner  
exception classes like ExistError. You would normally not declare  
exceptions as inner classes, and so you should not do that here  
either. Instead, just keep ExistError etc in the IronRuby.Builtins  
namespace (just like SystemExit, etc in Ruby\Builtins\Exceptions.cs)  
or use a namespace like “IronRuby.Builtins.RubyErrno” if you want.  
But using a static class serves no useful purpose and so should be  
avoided.
I have move Errno's exceptions to exceptions.cs and makes RubyErrno.cs  
to be only a helper class like IronRuby.Runtime.RubyExceptions class. - 
JN




Ofcourse, in Libraries.LCA_RESTRICTED\Builtins\Errno.cs, you will  
need to use inner classes to match the Ruby class hierarchy, but  
that is a different matter…


I see that you removed “if (path.Empty)” from FileOps.cs and moved  
it to File.cs, which is great! Couldn’t you do the same in KernelOps  
too? You changed how KernelOps throws the exception, but the whole  
“if (path.IsEmpty)” could be removed…

Done - JN



From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Saturday, April 18, 2009 1:35 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] File.new spec fixes

Hi Shri,
Thank you for quick reply.  Could you please review it  
at af4acea ?


Note: VS.NET ProductVersion seems to be difference on my machine.
Thank you,
-Jirapong

On Apr 19, 2009, at 12:48 AM, Shri Borde wrote:


You  will need to add the exception classes in IronRuby.dll, and  
then define XXXOps classes in IronRuby.Libraries.dll with the  
[RubyClass] attribute. See FileNotFoundExceptionOps in  
Libraries.LCA_RESTRICTED\Builtins\Errno.cs for an example of how  
this is done.


From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Friday, April 17, 2009 11:25 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] File.new spec fixes

Thank you for your review.  please find formatted version at 9942b24

I just do a pull request for 929e07 and 9942b24.

please see my answer inline.

Thank you,
-Jirapong

On Apr 18, 2009, at 5:51 AM, Shri Borde wrote:



Some blocks are not indented as in the second line in this example.  
Could you indent those please?

+lambda {
+@fh = File.new(@file, File::CREAT|File::EXCL)
+  }.should raise_error(Errno::EEXIST)
0

You added try-catch to one of the overloads of  
RubyFileOps.CreateFile. Could you add it to all?
Yes, It must be, but this will not longer need if we move Errno to  
Ruby project.




Btw, I discussed with Tomas about the fact that many of the IO  
exceptions are defined in IronRuby.Libraries.dll, but RubyFile needs  
to throw those exception from IronRuby.dll. We can move the  
exceptions that are needed in IronRuby.dll into IronRuby.dll. That  
will avoid having to do a try-catch to translate the exception  
type.  Do you want to add Languages\Ruby\Ruby\Builtins\Errno.cs and  
move some of the exception types there?
I'm trying to add Errno.cs with EEXIST exception in IronRuby.dll,  
but I can't get its initialize code in Initializers.Generated.cs  
file after run geninit.  Is it possible to define  
[RubyClass("EEXIST")] in IronRuby.dll?





Thanks,
Shri

From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Friday, April 17, 2009 11:40 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] File.new spec fixes

http://github.com/Jirapong/ironruby/commit/929e07e27183e70a6e4bed8197430ff533610762

Fixes for core\file\new_spec.rb:
File.new raises an Errorno::EEXIST if the file exists when create a  
new file with File::CREAT|File::EXCL

File.new raises an Errno::EINVAL error with File::APPEND
File.new raises an Errno::EINVAL error with File::RDONLY|File::APPEND

Files changed:
• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/ 
mspec/ironruby-ta

Re: [Ironruby-core] Proposal: Moving IronRuby bugs to CodePlex

2009-04-21 Thread jirapong.na...@gmail.com

That's make sense :-)

On Apr 22, 2009, at 3:29 AM, Jimmy Schementi wrote:

Yeah, me and Jim were hitting our heads when we saw this =P Though,  
using CodePlex has definite benefits for exposure to the .NET  
community, while just having our source-code on github gives great  
exposure to the Ruby community. So the best of both worlds =)


From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Saturday, April 18, 2009 11:04 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Proposal: Moving IronRuby bugs to  
CodePlex


Oops, This is too late but Github's issue tracker! 
http://github.com/blog/411-github-issue-tracker

On Apr 10, 2009, at 6:38 AM, Jimmy Schementi wrote:


http://ironruby.codeplex.com is live. Please direct any bug  
submissions and downloads of IronRuby to this site, rather than  
RubyForge. RubyForge bugs will be moved (as appropriate) to CodePlex  
over time, and v0.3 is on CodePlex, along with sources. Releases may  
be posted to both sites, simply for exposure, but please link to the  
CodePlex copy (as http://ironruby.net/Download does).
RubyForge’s only use is now the mailing list, though I’m looking to  
move that as well (with minimal downtime to this list). I’ll keep  
you all posted.

~Jimmy
From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of Jimmy Schementi

Sent: Tuesday, April 07, 2009 5:02 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Proposal: Moving IronRuby bugs to  
CodePlex


No objections/concerns/thoughts/concerns/praises/gifts-of-gold- 
frankincense-and-myrrh? Ok then ...
http://ironruby.codeplex.com/ has been created, and once live all  
bugs will be stored there. Jim is going through RubyForge bugs  
slowly, closing ones that are fixed, and possibly moving important  
ones over to CodePlex. I'll let you all know when CodePlex is open  
for business.

~js
From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of Jimmy Schementi

Sent: Thursday, April 02, 2009 3:36 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Proposal: Moving IronRuby bugs to CodePlex

(I originally planned on sending this yesterday, but I waited until  
today to remove the “April Fools” possibility =P)
I’d like to propose moving IronRuby’s bugs off of RubyForge.  
CodePlex looks like the best option, mainly due to the voting  
feature for bugs. Here are some possible options for defect  
tracking, and what I think about them:

Lighthouse: http://lighthouseapp.com
Sample site: http://silverline.lighthouseapp.com
Very usable, nice UI, and I’m a sucker for those types of things.  
They support multiple projects, so splitting up the project into  
Compiler, Libraries, Silverlight, etc, would be very clear. There’s  
also a nice UI for milestone progress, making it fairly clear how  
the progress is going. Also, other Ruby projects are moving here, so  
a move to Lighthouse would follow the logic of why we started on  
RubyForge.
Lighthouse also has integration with GitHub, keeping our lighthouse  
page up-to-date with any changes in git.
Lighthouse is usually a pay-service, but I believe they have free  
hosting for open-source projects. However, there might be limits on  
how many projects can be created, or users can be admins, so it’d be  
good to find out these details.
Unfortunately, there’s no good way to prioritize tickets other than  
milestones, and non-project-admins can’t change the milestone, so we  
can’t accomplish any type of user-prioritization (voting) on tickets.

RubyForge: http://rubyforge.org
Sample site: http://rubyforge.org/projects/ironruby
We’re on RubyForge currently, so switching to RubyForge would be  
easy. =P Unfortunately, that’s about the only benefit it provides.  
While RubyForge has been instrumental in shaping the Ruby community,  
it appears that its heydays have passed, in favor of GitHub and  
lighthouse. RubyForge also appears to be unmaintained, especially in  
light of our crazy mailing list delays. File releases are still  
being used by the Ruby community, mainly because of it being a Ruby  
Gems repository, so we should keep releasing on it.

CodePlex: http://codeplex.com
Sample site: http://ironpython.codeplex.com
CodePlex has turned into a pretty awesome open-source project site.  
In the past I wouldn’t have wanted to move to CodePlex, but now  
there defect tracking features seem like the best, and much faster  
than they use to be. You can use the web interface, the team  
foundation client, or CodePlex client to look at bugs, which makes  
it pretty easy to keep on-top of them. Since CodePlex uses TFS  
underneath to store work-items and bugs, we can use the TFS API to  
do git commit integration and things like that (though the TFS API  
isn’t the greatest, it exists =P). But mainly the web interface has  
voting 

Re: [Ironruby-core] Requiring standard libraries within hosted DLR Runtime

2009-04-22 Thread jirapong.na...@gmail.com

Hi Kevin,
	Let's assume you have ironruby at c:\ironruby . add App.config from http://gist.github.com/99910 
 to your project.


Hope this helps,
-Jirapong

On Apr 22, 2009, at 10:59 PM, Kevin Radcliffe wrote:


Hello,

I previously tried sending this to the mailing list (on 04/17), but it
doesn't appear to have arrived there.

I did a git pull today (04/22/09), and rake compile, so I am using the
very latest sources..
I'm trying to attempt something simple but I can't seem to get the
hosted environment do to what I'm expecting.
I'm trying to require any of the standard libraries (socket, digest,
bigdecimal, etc.) from within the hosted runtime.
Within my C# app:

var engine = IronRuby.Ruby.CreateEngine();
engine.Execute("puts 'A'");
engine.Execute("require 'socket'");

So the "A" prints as expected, but I get an
"IronRuby.Builtins.LoadError" when I am at the require.
The error message is: {"no such file to load -- socket"}

Do I need to do something special to get at the libraries within
IronRuby.Libraries?
require 'socket' does work just fine when running from the ir.exe
console...

I've attached the program.cs and the
details of the stack trace to this forum post as a zip.

Thanks,
Kevin Radcliffe

Attachments:
http://www.ruby-forum.com/attachment/3607/DLRHosted.zip

--
Posted via http://www.ruby-forum.com/.
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


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


Re: [Ironruby-core] Rails ActionPack tests

2009-04-22 Thread jirapong.na...@gmail.com

Hello Shri,
	sounds good. I will start on OpenSSL implementation this weekend. The  
information will share to everyone here on Monday.


Thanks,
-Jirapong

On Apr 23, 2009, at 12:32 PM, Shri Borde wrote:

It is now possible to run the Rails ActionPack tests to completion  
without any hangs or fatal crashes! The full instructions are at the  
bottom ofhttp://www.ironruby.net/Documentation/Rails. Note that this  
is not the full test suite (have not tried to run that yet). The  
result summary for the ActionPack tests is:


2306 tests, 10539 assertions, 85 failures, 50 errors

http://gist.github.com/100329 has the full output if you want to  
browse the kinds of errors IronRuby is running into. The numbers  
look pretty good for now, but there is still work to be done to  
drive it to 0.


Actually the results with MRI are “2306 tests, 10823 assertions, 28  
failures, 3 errors”, which means that there are some configuration  
issues. If anyone has experience running Rails tests with MRI, it  
will be very useful to know how to get this MRI baseline to be clean  
(or to know if these issues are known issues in MRI or the Rails  
tests)


For folks who are working on fixing RubySpec bugs (and for others  
who are interested too), it will be great to have your help fixing  
Rails bugs. Jirapong, some of the failures are due to a missing  
OpenSSL::Random. This could be a good place to start with your  
OpenSSL work. Some of the bugs seem easy to spot from the output,  
like a missing File::stat. Other bugs might need more digging in.  
Let me know if there is


PS: Note that you will need to pull changes from my repo which are  
still not in the main repo (git pull git://github.com/shri/ 
ironruby.git master)


Thanks,
Shri

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


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


[Ironruby-core] Time class instance

2009-04-24 Thread jirapong.na...@gmail.com

Hi
Time class instance in IronRuby act as static. Given following code:

t = Time.new
t.utc
t.utc? # should be true behave

t.localtime
t.utc? # should be false

"t" should convert itself into UTC type after method "utc" being  
called. There are three methods must modifying the receiver; utc,  
gmtime, and localtime


It also effect to Time.rfc2882 formating  as you can run MRI vs  
IronRuby at - http://gist.github.com/101229


I have propose my fix at - 
http://github.com/Jirapong/ironruby/commit/937a8c4aea048dd20ddea8aa6e27b0055bf6907d

File changes:
	• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby- 
tags/library/time/rfc2822_tags.txt
	• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/ 
core/time/utc_spec.rb
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/ 
FileOps.cs
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/ 
TimeOps.cs
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Initializers.Generated.cs

• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Zlib/zlib.cs
• Merlin/Main/Languages/Ruby/Ruby/Builtins/RubyDateTime.cs
• Merlin/Main/Languages/Ruby/Ruby/Ruby.csproj

Note: Shri, this push should fix
23) Failure:
test_request_unmodifed(TestGemRemoteFetcher)  
[test_gem_remote_fetcher.rb:604]:
Expected "Mon, 13 Apr 2009 13:22:16 -0700", not "Mon, 13 Apr 2009  
20:22:16 -"


Thank you,
-Jirapong___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


[Ironruby-core] Status of OpenSSL

2009-04-25 Thread jirapong.na...@gmail.com
I am working on OpenSSL implementation for IronRuby. base on ruby  
spec, the results looked like this.


4 files, 8 examples, 2 expectations, 2 failures, 6 errors

My first implementation is 
http://github.com/Jirapong/ironruby/commit/975853418ba31ba51354db2ba79f3786270a3941
After that, results:

4 files, 8 examples, 770 expectations, 0 failures, 2 errors

There are more methods and specs require in order to make rubygems and  
rails work.


e.g. From rubygems unit tests

4: uninitialized constant OpenSSL::X509
2: uninitialized constant OpenSSL::PKey
2: SSL is not installed on this system

I will keep working on the implementation.

Thanks,
-Jirapong___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


Re: [Ironruby-core] Status of OpenSSL

2009-04-25 Thread jirapong.na...@gmail.com

Hi Tomas,
That's work! please find change at cf5883e

Thank you,
-Jirapong

On Apr 26, 2009, at 1:35 AM, Tomas Matousek wrote:


Instead of
var result = new StringBuilder(length);
byte[] data = new byte[length];

var generator = new Crypto.RNGCryptoServiceProvider();

generator.GetBytes(data);
for (int i = 0; i < length; i++) {
  result.Append(Convert.ToChar(data[i]));
}
return MutableString.Create(result.ToString());

you should create binary mutable string directly from the bytes:

byte[] data = new byte[length];
var generator = new Crypto.RNGCryptoServiceProvider();
generator.GetBytes(data);

return MutableString.CreateBinary(data);

Tomas

From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Saturday, April 25, 2009 10:35 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Status of OpenSSL

I am working on OpenSSL implementation for IronRuby. base on ruby  
spec, the results looked like this.


4 files, 8 examples, 2 expectations, 2 failures, 6 errors

My first implementation is 
http://github.com/Jirapong/ironruby/commit/975853418ba31ba51354db2ba79f3786270a3941
After that, results:

4 files, 8 examples, 770 expectations, 0 failures, 2 errors

There are more methods and specs require in order to make rubygems  
and rails work.


e.g. From rubygems unit tests

4: uninitialized constant OpenSSL::X509
2: uninitialized constant OpenSSL::PKey
2: SSL is not installed on this system

I will keep working on the implementation.

Thanks,
-Jirapong
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


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


[Ironruby-core] Fixes hexdigest and digest specs (SHA1)

2009-04-26 Thread jirapong.na...@gmail.com

http://github.com/Jirapong/ironruby/commit/de4e34e1530b382e5e76b484d5e6ba4b2322667a
This should make digest and hexgest spec passed, however it only  
support SHA1. I'm going to create more spec for other encode methods.


Files changes:
	• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby- 
tags/library/openssl/hmac/digest_tags.txt
	• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby- 
tags/library/openssl/hmac/hexdigest_tags.txt
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Initializers.Generated.cs
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/OpenSSL/ 
OpenSSL.cs


Thank you,
-Jirapong

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


[Ironruby-core] mspec error undefined method `filtered' for MSpecScript:Class

2009-04-29 Thread jirapong.na...@gmail.com

Have any one got this error? and to fix it :-)

c:\ironruby\Merlin\External.LCA_RESTRICTED\Languages\IronRuby\mspec 
\default.mspec:12: undefined method `filtered' for MSpecScript:Class  
(NoMethodError)
from C://Documents and Settings/Administrator/.mspecrc:15:in  
`load'

from C://Documents and Settings/Administrator/.mspecrc:15
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/ 
utils/script.rb:72:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/ 
utils/script.rb:72:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/ 
utils/script.rb:71:in `each'
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/ 
utils/script.rb:71:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/ 
utils/script.rb:213:in `main'

from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/bin/mspec:7
from c:/ruby/bin/mspec:16:in `load'
from c:/ruby/bin/mspec:16

Thanks in advance.
-Jirapong 
___

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


Re: [Ironruby-core] mspec error undefined method `filtered' for MSpecScript:Class

2009-04-29 Thread jirapong.na...@gmail.com
Thank you, I did run the dev.bat but still get same error.  I'm  
investigating why it load from gems rather than what get in .mspecrc  
file.


Bests,
- Jirapong

On Apr 30, 2009, at 1:58 AM, Jimmy Schementi wrote:

Sounds like you're not running Dev.bat. Before doing anything with  
IronRuby (when you get it from the git repo), please run Merlin/Main/ 
Languages/Ruby/Scripts/Dev.bat. That will make sure things are all  
set up properly. To make this easy, just create a ironruby.bat file  
somewhere which calls Dev.bat. I even add that as the first shortcut  
in my quicklaunch toolbar so WIN+1 will launch a dev.bat cmd.exe  
window.


~js


-Original Message-
From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-
boun...@rubyforge.org] On Behalf Of Jim Deville
Sent: Wednesday, April 29, 2009 11:53 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] mspec error undefined method `filtered'
for MSpecScript:Class

The gem won't work for now. Make sure that the mspec that runs is the
Mspec in Merlin/External.LCA_RESTRICTED.

JD

-Original Message-----
From: jirapong.na...@gmail.com 
Sent: April 29, 2009 11:12 AM
To: ironruby-core@rubyforge.org 
Subject: [Ironruby-core] mspec error undefined method `filtered' for
MSpecScript:Class


Have any one got this error? and to fix it :-)

c:\ironruby\Merlin\External.LCA_RESTRICTED\Languages\IronRuby\mspec
\default.mspec:12: undefined method `filtered' for MSpecScript:Class
(NoMethodError)
from C://Documents and Settings/Administrator/.mspecrc:15:in
`load'
from C://Documents and Settings/Administrator/.mspecrc:15
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:72:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:72:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:71:in `each'
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:71:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:213:in `main'
from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/bin/mspec:7
from c:/ruby/bin/mspec:16:in `load'
from c:/ruby/bin/mspec:16

Thanks in advance.
-Jirapong
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

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


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


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


Re: [Ironruby-core] mspec error undefined method `filtered' for MSpecScript:Class

2009-04-29 Thread jirapong.na...@gmail.com

Thank you Jimmy. That's work!

> gem uninstall mspec
> del c:\ruby\bin\mspec*

Bests,
-Jirapong

On Apr 30, 2009, at 2:29 AM, Jimmy Schementi wrote:

It's because the "mspec" command you're running lives in your C:\ruby 
\bin directory, not C:\...\ironruby\Merlin\External.LCA_RESTRICTED 
\Languages\IronRuby\mspec\mspec\bin. Running "where mspec" should  
show something like this:


C:\dev\jschementi-ironruby\Merlin\Main\Languages\Ruby>where mspec
C:\dev\jschementi-ironruby\Merlin\External.LCA_RESTRICTED\Languages 
\IronRuby\mspec\mspec\bin\mspec
C:\dev\jschementi-ironruby\Merlin\External.LCA_RESTRICTED\Languages 
\IronRuby\mspec\mspec\bin\mspec.bat


If you don't really need the mspec gem installed, removing that  
would probably remedy this.



-Original Message-
From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-
boun...@rubyforge.org] On Behalf Of jirapong.na...@gmail.com
Sent: Wednesday, April 29, 2009 12:23 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] mspec error undefined method `filtered'
for MSpecScript:Class

Thank you, I did run the dev.bat but still get same error.  I'm
investigating why it load from gems rather than what get in .mspecrc
file.

Bests,
- Jirapong

On Apr 30, 2009, at 1:58 AM, Jimmy Schementi wrote:


Sounds like you're not running Dev.bat. Before doing anything with
IronRuby (when you get it from the git repo), please run Merlin/ 
Main/

Languages/Ruby/Scripts/Dev.bat. That will make sure things are all
set up properly. To make this easy, just create a ironruby.bat file
somewhere which calls Dev.bat. I even add that as the first shortcut
in my quicklaunch toolbar so WIN+1 will launch a dev.bat cmd.exe
window.

~js


-Original Message-
From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-
boun...@rubyforge.org] On Behalf Of Jim Deville
Sent: Wednesday, April 29, 2009 11:53 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] mspec error undefined method  
`filtered'

for MSpecScript:Class

The gem won't work for now. Make sure that the mspec that runs is

the

Mspec in Merlin/External.LCA_RESTRICTED.

JD

-Original Message-
From: jirapong.na...@gmail.com 
Sent: April 29, 2009 11:12 AM
To: ironruby-core@rubyforge.org 
Subject: [Ironruby-core] mspec error undefined method `filtered'  
for

MSpecScript:Class


Have any one got this error? and to fix it :-)

c:\ironruby\Merlin\External.LCA_RESTRICTED\Languages\IronRuby\mspec
\default.mspec:12: undefined method `filtered' for  
MSpecScript:Class

(NoMethodError)
   from C://Documents and Settings/Administrator/.mspecrc:15:in
`load'
   from C://Documents and Settings/Administrator/.mspecrc:15
   from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:72:in `load'
   from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:72:in `load'
   from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:71:in `each'
   from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:71:in `load'
   from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/lib/mspec/
utils/script.rb:213:in `main'
   from c:/ruby/lib/ruby/gems/1.8/gems/mspec-1.5.11/bin/mspec:7
   from c:/ruby/bin/mspec:16:in `load'
   from c:/ruby/bin/mspec:16

Thanks in advance.
-Jirapong
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

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


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


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


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


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


[Ironruby-core] OpenSSL::X509::Certificate

2009-04-29 Thread jirapong.na...@gmail.com

Hi,
	I got following methods/attributes implement in  
OpenSSL::X509::Certificate


new -> certb
new(data) -> cert
subject
issuer
serial
to_s
inspect

Commits:
http://github.com/Jirapong/ironruby/commit/a907d58168b772cdf6f266a012f53236b7d56895
http://github.com/Jirapong/ironruby/commit/831f222e1b9be483d68f8e43755df918ee81e10f

Files change:
	• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/ 
library/openssl/shared/constants.rb
	• Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/ 
library/openssl/x509/certificate/new_spec.rb
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Initializers.Generated.cs
	• Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/OpenSSL/ 
OpenSSL.cs


more to come...

Thank you,
-Jirapong___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


Re: [Ironruby-core] Time class instance

2009-05-03 Thread jirapong.na...@gmail.com

Hi,
	It would be nice to have anyone to review my code :-). bug file in  
at  http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1021


Thanks,
-Jirapong

On May 4, 2009, at 8:43 AM, Jimmy Schementi wrote:

Doesn’t look like anyone has reviewed this yet. To make sure it  
doesn’t get lost, can you also make a bug on codeplex for this?


From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Friday, April 24, 2009 1:56 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Time class instance

Hi
  Time class instance in IronRuby act as static. Given  
following code:


t = Time.new
t.utc
t.utc? # should be true behave

t.localtime
t.utc? # should be false

"t" should convert itself into UTC type after method "utc" being  
called. There are three methods must modifying the receiver; utc,  
gmtime, and localtime


It also effect to Time.rfc2882 formating  as you can run MRI vs  
IronRuby at - http://gist.github.com/101229


I have propose my fix at - 
http://github.com/Jirapong/ironruby/commit/937a8c4aea048dd20ddea8aa6e27b0055bf6907d

File changes:
  • Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ 
ironruby-tags/library/time/rfc2822_tags.txt
  • Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ 
rubyspec/core/time/utc_spec.rb
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Builtins/FileOps.cs
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Builtins/TimeOps.cs
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Initializers.Generated.cs
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Zlib/ 
zlib.cs

  • Merlin/Main/Languages/Ruby/Ruby/Builtins/RubyDateTime.cs
  • Merlin/Main/Languages/Ruby/Ruby/Ruby.csproj

Note: Shri, this push should fix
23) Failure:
test_request_unmodifed(TestGemRemoteFetcher)  
[test_gem_remote_fetcher.rb:604]:
Expected "Mon, 13 Apr 2009 13:22:16 -0700", not "Mon, 13 Apr 2009  
20:22:16 -"


Thank you,
-Jirapong
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


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


Re: [Ironruby-core] Time class instance

2009-05-04 Thread jirapong.na...@gmail.com

Hello Shri,
	Thank you very much for code review. It is make sense about  
constructors and ToString methods. I will work on it.


p.s. please delete bug #1021 for me.

Thank you,
-Jirapong

On May 4, 2009, at 2:15 PM, Shri Borde wrote:


The approach looks good. I have some comments though...

You should do a search for “DateTime” in the code base to find all  
the places that might need updating. For example, Yaml.DateTimeOps  
needs to be changed (is there no spec for it?), and  
Converter.IsIntegral might need to be.


RubyDateTime should be a good .NET citizen. You should override  
Equals (and HashCode) – I suspect comparison might be broken without  
that since DateTime was a valuetype whereas RubyDateTime is not.  
Also ToString. You should define implicit operator converting from  
and to DateTime so that Ruby code can pass a Ruby Time object to a  
CLR method that expects DateTime. Would be nice to add constructors  
to RubyDateTime to match the contructors of DateTime so that you can  
directly create instances of RubyDateTime using “new  
RubyDateTime(args)” instead of using nested expressions like “new  
RubyDateTime(new DateTime(args))” which is harder to read. You  
should mark it as Serializable. Take a look at DateTime on msdn.com  
and see if there are any other interfaces or attributes you can  
propagate from DateTime to RubyDateTime.


The comment for RubyDateTime confused me a bit. Instead of  
“RubyDateTime to encapsulates DateTime type which support instance's  
variable”, should it not be “Encapsulates DateTime and supports  
mutating of instances (whereas DateTime is immutable)”


Creating bugs for code reviews is extra process for you. We can try  
to avoid it until there are too many code reviews. So do send a  
reminder if no one replies to your changes within 48 hours.


From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Sunday, May 03, 2009 7:12 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Time class instance

Hi,
It would be nice to have anyone to review my code :-).  
bug file in at  http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1021


Thanks,
-Jirapong

On May 4, 2009, at 8:43 AM, Jimmy Schementi wrote:


Doesn’t look like anyone has reviewed this yet. To make sure it  
doesn’t get lost, can you also make a bug on codeplex for this?


From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Friday, April 24, 2009 1:56 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Time class instance

Hi
  Time class instance in IronRuby act as static. Given  
following code:


t = Time.new
t.utc
t.utc? # should be true behave

t.localtime
t.utc? # should be false

"t" should convert itself into UTC type after method "utc" being  
called. There are three methods must modifying the receiver; utc,  
gmtime, and localtime


It also effect to Time.rfc2882 formating  as you can run MRI vs  
IronRuby at - http://gist.github.com/101229


I have propose my fix at - 
http://github.com/Jirapong/ironruby/commit/937a8c4aea048dd20ddea8aa6e27b0055bf6907d

File changes:
  • Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ 
ironruby-tags/library/time/rfc2822_tags.txt
  • Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ 
rubyspec/core/time/utc_spec.rb
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Builtins/FileOps.cs
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Builtins/TimeOps.cs
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Initializers.Generated.cs
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Zlib/ 
zlib.cs

  • Merlin/Main/Languages/Ruby/Ruby/Builtins/RubyDateTime.cs
  • Merlin/Main/Languages/Ruby/Ruby/Ruby.csproj

Note: Shri, this push should fix
23) Failure:
test_request_unmodifed(TestGemRemoteFetcher)  
[test_gem_remote_fetcher.rb:604]:
Expected "Mon, 13 Apr 2009 13:22:16 -0700", not "Mon, 13 Apr 2009  
20:22:16 -"


Thank you,
-Jirapong
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

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


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


Re: [Ironruby-core] Time class instance

2009-05-04 Thread jirapong.na...@gmail.com

Hello Shri,
	Because the spec passed by accident, I was checked result by this  
code snippet


require 'time'

t1 = (Time.utc(1976, 8, 26, 14, 30) + 4 * 3600)
t2 = Time.rfc2822("26 Aug 76 14:30 EDT")

puts "#{t1} == #{t2}? #{t1==t2}"

MRI:
Thu Aug 26 18:30:00 UTC 1976 == Fri Aug 27 01:30:00 +0700 1976 true

IrunRuby:
Thu Aug 26 18:30:00 Z 1976 == Thu Aug 26 18:30:00 Z 1976? true

According to rfc2822 section - 3.3. Date and Time Specification (http://www.ietf.org/rfc/rfc2822.txt 
) Timezone of rfc2822 should display in (( "+" / "-" ) 4DIGIT format.


Thank you,
-Jirapong


On May 4, 2009, at 2:25 PM, Shri Borde wrote:

Why did you need to disable two examples in rfc2822_spec.rb? We  
should not be disabling tests that worked before without a very good  
reason.


You added a test for Time.utc. That should actually be in the second  
describe block in the same file for Time#utc. The (grammatically  
correct) name of the examples should be “modifies the receiver”

[Thanks for correction :-)]


From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of Shri Borde

Sent: Monday, May 04, 2009 12:15 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Time class instance

The approach looks good. I have some comments though...

You should do a search for “DateTime” in the code base to find all  
the places that might need updating. For example, Yaml.DateTimeOps  
needs to be changed (is there no spec for it?), and  
Converter.IsIntegral might need to be.


RubyDateTime should be a good .NET citizen. You should override  
Equals (and HashCode) – I suspect comparison might be broken without  
that since DateTime was a valuetype whereas RubyDateTime is not.  
Also ToString. You should define implicit operator converting from  
and to DateTime so that Ruby code can pass a Ruby Time object to a  
CLR method that expects DateTime. Would be nice to add constructors  
to RubyDateTime to match the contructors of DateTime so that you can  
directly create instances of RubyDateTime using “new  
RubyDateTime(args)” instead of using nested expressions like “new  
RubyDateTime(new DateTime(args))” which is harder to read. You  
should mark it as Serializable. Take a look at DateTime on msdn.com  
and see if there are any other interfaces or attributes you can  
propagate from DateTime to RubyDateTime.


The comment for RubyDateTime confused me a bit. Instead of  
“RubyDateTime to encapsulates DateTime type which support instance's  
variable”, should it not be “Encapsulates DateTime and supports  
mutating of instances (whereas DateTime is immutable)”


Creating bugs for code reviews is extra process for you. We can try  
to avoid it until there are too many code reviews. So do send a  
reminder if no one replies to your changes within 48 hours.


From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Sunday, May 03, 2009 7:12 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Time class instance

Hi,
It would be nice to have anyone to review my code :-).  
bug file in at  http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1021


Thanks,
-Jirapong

On May 4, 2009, at 8:43 AM, Jimmy Schementi wrote:

Doesn’t look like anyone has reviewed this yet. To make sure it  
doesn’t get lost, can you also make a bug on codeplex for this?


From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of jirapong.na...@gmail.com

Sent: Friday, April 24, 2009 1:56 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Time class instance

Hi
  Time class instance in IronRuby act as static. Given  
following code:


t = Time.new
t.utc
t.utc? # should be true behave

t.localtime
t.utc? # should be false

"t" should convert itself into UTC type after method "utc" being  
called. There are three methods must modifying the receiver; utc,  
gmtime, and localtime


It also effect to Time.rfc2882 formating  as you can run MRI vs  
IronRuby at - http://gist.github.com/101229


I have propose my fix at - 
http://github.com/Jirapong/ironruby/commit/937a8c4aea048dd20ddea8aa6e27b0055bf6907d

File changes:
  • Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ 
ironruby-tags/library/time/rfc2822_tags.txt
  • Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ 
rubyspec/core/time/utc_spec.rb
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Builtins/FileOps.cs
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Builtins/TimeOps.cs
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/ 
Initializers.Generated.cs
  • Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Zlib/ 
zlib.cs

  • Merlin/Main/Languages/Ruby/Ruby/Builtins/RubyDateTime.cs
  • Merlin/Main/La

Re: [Ironruby-core] Review: Array\to_s fix for : properly handles recursive array

2009-05-11 Thread jirapong.na...@gmail.com

Hello Tim,
	I would like to share experience about code convention with you. You  
should set a braces on Same Line option (http://www.knowdotnet.com/articles/toolsoptionsnewlinesbraces.html 
).


Cheers,
-Jirapong

On May 12, 2009, at 8:03 AM, Tim Chen (SDO) wrote:

Forgot to mention that I deleted the tag files that has no more tags  
in it.


Tim

From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org 
] On Behalf Of Tim Chen (SDO)

Sent: Monday, May 11, 2009 6:02 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Review: Array\to_s fix for : properly  
handles recursive array


http://github.com/tnachen/ironruby/commit/eeaf82a8d833c763fc617b602cd7415cb228a0f6

Modified IListOps to fix the recursive array problem during to_s call.

It used to only print the values in the array, and skip over arrays  
in the array that contains the same values.


However, to conform with mri, I modified it so it will walk into the  
array and print the values for only one level deep, then print the  
remaining arrays with “[…]”.


Files Changed:
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby- 
tags/core/array/to_s_tags.txt  (deleted)
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby- 
tags/core/env/clear_tags.txt (deleted)
Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Extensions/ 
IListOps.cs (modified)


Thank you!
Tim




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


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


Re: [Ironruby-core] A couple of doubts (related to Time)

2009-08-18 Thread jirapong.na...@gmail.com

Hello Daniele,
	About the DateTime in ironruby, you might encountered same problem  
with me. The implementation in IronRuby use .NET DateTime struct which  
unable to maintain reference id.
	I was introduce RubyDateTime class to solve this problem, but  
unfortunately i didn't have time to finish it yet.


My todo list:
RubyDateTime.cs
- Replace DateTime in the codebase
- Converter.IsIntegral might need to be
- override Equals, HashCode, and ToString (remember this is immutable  
DateTime)

- Constructor as a DateTime
- Make it Serializable
- see msdn.com any other interfaces/attributes to propagate to
- define implicit operator converting from and to DateTime so that  
Ruby code can pass a Ruby Time object to a CLR method that expects  
DateTime.
- change comment "“Encapsulates DateTime and supports mutating of  
instances (whereas DateTime is immutable)”

- Time#utc spec should be "modifies the receiver"
- fix for rfc2822 spec

You can find more info at - 
http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1021

Bests,
-Jirapong


On Aug 18, 2009, at 9:04 PM, Daniele Alessandri wrote:


Hi,
I encountered a few bugs in IronRuby while running the specs for
rufus-scheduler (http://github.com/jmettraux/rufus-scheduler/). I'm
fixing some of them right now, but in the meanwhile I bumped into a
couple of issues running the rubyspecs for the Time class:

* Time.at creates a dup time object with the value given by time
See http://gist.github.com/169660 . The implementation of
DateTime.Create(object, DateTime) returns a new DateTime created from
self, but the two instances on the "ruby side" have the same
object_id. I investigated a little bit more and noticed that there is
only one DateTime element in the associated _valueTypeInstanceData of
the current RubyContext. Well, no wonder: DateTime is a ValueType, the
two values shares the same hashcode and _valueTypeInstanceData is a
Dictionary. Honestly I don't think this
poses any real problems, but still it is a different behaviour from
the MRI. Thoughts?

* Time.at converts to time object
There was a bug in Time#at which got already fixed on my local
repository, even so this spec is still failing. This time the problem
is related to the rubyspecs: if you take a look at the the localtime
method in rubyspec\core\time\fixtures\methods.rb (it returns the
current local time from the OS), you can note that it works only for
POSIX-systems. I can't think of a good and clean way to get this
fixed, hope to hear Jim's thoughts about this one.

Thanks,
Daniele

--
Daniele Alessandri
http://www.clorophilla.net/blog/
http://twitter.com/JoL1hAHN
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core


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


Re: [Ironruby-core] IronRuby, RubyZip and ZLib == error

2009-10-15 Thread jirapong.na...@gmail.com

Hi Benz,
IronRuby has Standard zlib built-in. Can you try this?

require 'zlib'

z = Zlib::Deflate.new
dst = z.deflate('foo', Zlib::FINISH)

Hope this helps,
-Jirapong

On Oct 15, 2009, at 10:48 PM, Ben Hall wrote:


Hello,

Just tried to use RubyZip with IronRuby (porting a rake task onto
irake) and I received the following error:

rake aborted!
wrong number of arguments (2 for 0)
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
1073:in

`initialize'
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
1000:in

`get_compressor'
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
995:in

`init_next_entry'
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
957:in

`put_next_entry'
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
803:in

`write_to_zip_output_stream'
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
1482:in

`commit'
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
1123:in

`each'
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
1482:in

`commit'
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
937:in

`open'
c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: 
1479:in

`commit'

Line of code is: @zlibDeflater = Zlib::Deflate.new(level, - 
Zlib::MAX_WBITS)


Method:
   def initialize(outputStream, level = Zlib::DEFAULT_COMPRESSION)
 super()
 @outputStream = outputStream
 @zlibDeflater = Zlib::Deflate.new(level, -Zlib::MAX_WBITS)
 @size = 0
 @crc = Zlib::crc32
   end

Any ideas what is causing the problem?

My IronRuby version is irb 0.9.5(05/04/13)

Thanks

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


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


Re: [Ironruby-core] OpenSSL

2010-05-26 Thread jirapong.na...@gmail.com
Hi,
Sorry, I'm still busy with other stuff on my daily work. welcome to 
continue my work. You're right. There is no such a thing RubySpec for OpenSSL. 
Best API Document i found is http://technorama.net/~oss/ruby/openssl/doc/
and MRI source code /ruby_1_8/ext/openssl/*.c . The function's comment is very 
documented. 

Original project link - http://savannah.nongnu.org/projects/rubypki/

Hope this helps, I willing to find sometime to help next several months too.
-Jirapong

On May 27, 2010, at 9:47 AM, Will Green wrote:

> As I tweeted earlier (http://twitter.com/hotgazpacho/status/14799021492), I'm 
> putting my money where my mouth is. 
> As I understand it, the RubySpec project is missing specs for OpenSSL. If 
> someone will write (or point me to) the RubySpec specs for OpenSSL, I will 
> implement it for IronRuby.
> 
> Any takers?
> 
> --
> Will Green
> http://hotgazpacho.org/
> ___
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core

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


Re: [Ironruby-core] Issue Running igem

2010-10-27 Thread jirapong.na...@gmail.com
Hi Mike,
The issue has been found and file in at 
http://ironruby.codeplex.com/workitem/5326 . I'm investigating it. 

I found same error as you do "no such file to load -- gem_prelode.rb" this 
should appear when you try to call igem.bat  . It didn't happen when i use 
"ir.exe c:\githup\ironruby\Scripts\bin\gem  install rspec"

I should able to fully look at this issue over weekend.

Best,
-Jirapong

On Oct 27, 2010, at 5:55 PM, Mike Hatfield wrote:

> Hey guys,
> 
> I've been having a difficult time getting my IronRuny 1.1.1 working properly. 
>  ir.exe now seems to be working, but igem is giving me a "unknown: no such 
> file to load -- gem_prelude.rb (LoadError)" when I run it.
> 
> I'm not sure where to go from here.  Just in case, I have RUBYOPT set to 
> rubygems and even tried doing a "require 'rubygems'" in my 
> lib\ruby\1.9.1\gem_prelude.rb, to no avail.
> 
> Any ideas?
> 
> Mike
> ___
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core

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


Re: [Ironruby-core] Contributions

2010-10-27 Thread jirapong.na...@gmail.com
Hello Will,
Thank you for the link. I will check it out. My primary purpose/need 
for OpenSSL is to make it work for Rails (done) and RubyGems over SSL (in 
progress). so, In area any area of build in OpenSSL related to RubyGems will 
get implement first. I'm not sure if Rubygems can use jruby-ssl without modify 
the source.

Best,
-Jirapong

On Oct 28, 2010, at 12:22 AM, Will Green wrote:

> Jirapong,
> 
> What are your thoughts on wrapping the Bouncy Castle Crypto APIs: 
> http://www.bouncycastle.org/
> 
> I think this is what JRuby does, but rather than distributing it as part of 
> JRuby, they release it a a gem (jruby-ssl, I believe) and encourgae you to 
> install it.
> 
> --
> Will Green
> http://hotgazpacho.org/
> 
> 
> On Mon, Oct 25, 2010 at 6:18 AM, Jirapong Nanta  
> wrote:
> Hello Tomas,
>I would like to continue my work with OpenSSL. I will re-fork IronRuby and 
> update my progress here. 
> 
> Best,
> -Jirapong
> 
> On Sat, Oct 23, 2010 at 11:24 PM, Tomas Matousek 
>  wrote:
> Hi Gøran,
> 
> Good to see your interest.
> 
>  
> The Wiki might be a bit out of date. Some areas that need work and nobody’s 
> working on them afaik (if anyone works on it, speak up) are
> 
> -  Complex and Rational numbers (new to 1.9): to make stuff work I 
> took 1.8 implementations and loaded them to emulate builtin Complex and 
> Rational classes. This is a big hack. We need to implement these classes in 
> C# in the standard libraries. To support .NET interop the implementation 
> should also convert to the existing Complex type on the platform. This is a 
> good task for someone who likes hacking numbers.
> 
> -  Related one: although BigDecimal class is implemented it feels 
> like it needs some perf improvements – I noticed some specs are running quite 
> slower than MRI. There are also some failing specs in BigDecimal (and BigNum) 
> that would be good to fix so that we have fully compatible implementation.
> 
> -  If you are into cryptography one big missing piece is OpenSSL 
> implementation. There might be pieces that you can share with IronPython’s 
> ssl library implementation.
> 
> -  Then there is bunch of misc failing specs that need to be fixed. 
> One big area is ARGF but there are many others as well. See 
> External.LCA_RESTRICTED\Languages\IronRuby\mspec\ironruby-tags-19.
> 
> -  If you were more interested in compiler and runtime you can look 
> into implementing nested method parameters and optional block parameters. 
> This is quite tricky though you need to really understand how the runtime 
> works to implement it correctly.
> 
> -  VS integration always needs improvements. The VS is quite complex 
> environment so it takes a while to learn how it works.
> 
>  
> Then there is FFI implementation going on – maybe it needs some help?
> 
>  
> Let me know if you have any questions.
> 
>  
> Thanks,
> 
> Tomas
> 
>  
> From: ironruby-core-boun...@rubyforge.org 
> [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Gøran Hansen
> Sent: Saturday, October 23, 2010 12:31 AM
> To: IronRuby Group
> Subject: [Ironruby-core] Contributions
> 
>  
> Hi there
> 
> I would love to contribute to this open source project. I’ve been learning 
> Ruby for the last year, and I’ve fallen in love with the language. It’s not 
> in my way, it’s fun and productive. 
> 
> I’ve been a .NET developer for too many years, and it was really fun to 
> experience such a great language as Ruby outside the .NET world. 
> Nevertheless, I would love to be able to run Ruby upon the .NET runtime, 
> especially in my projects at work. For me to be able to use it in real world 
> projects, it has to become faster and more stable. My employer is a big fan 
> of standardization and well known solutions. They wouldn’t go for anything 
> except Java or .NET. I’m sure they don’t mind what language we use, but they 
> do care about the platform.
> 
> How can I help? Are the Contribution ideas still valid? 
> http://github.com/ironruby/ironruby/wiki/Contribution-Ideas
> 
> When things ended as they did, and Microsoft stopped to support the Iron* 
> languages, I was really happy how they made the handover to the community. 
> With Miguel and his team in charge, I’m sure this is going to end well. I 
> believe there are many .NET developers out there that would love to be able 
> to run Ruby code in .NET.
> 
> Hope to hear from you soon!
> 
> -- 
> Gøran Hansen
> Aspiring Software Craftsman
> Microsoft Regional Director 
> 
> http://twitter.com/goeran
> http://goeran.no
> m...@goeran.no
> +47 452 39 113
> 
> 
> ___
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
> 
> 
> 
> ___
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
> 
> 
> _