The current sources also has a fix for open(“| cmd”) which was discussed in the
attached thread.
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tomas Matousek
Sent: Thursday, February 04, 2010 2:26 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] autospec
Does autospec use END block? If so, you need the latest IronRuby build (from
source code) where this feature is implemented.
Tomas
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tim Hoolihan
Sent: Thursday, February 04, 2010 12:59 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] autospec
Thanks for the response.
I have C:\ironruby\lib\ironruby\gems\1.8\bin\ in my path and can run spec
commands fine.
However, I followed the post anyway, and created iautospec, iautospec.bat,
ispec, and ispec.bat in C:\ironruby\bin
ispec runs fine as does spec, but autospec just returns to the command line.
D:\workspace\ruby\rspec_tutorial>ispec spec --format specdoc
User
- should be an any assigned roles
- should NOT be in any unassigned roles
Finished in 0.2180125 seconds
2 examples, 0 failures
D:\workspace\ruby\rspec_tutorial>iautospec
D:\workspace\ruby\rspec_tutorial>iautospec spec
D:\workspace\ruby\rspec_tutorial>
From: Ivan Porto Carrero<mailto:i...@whiterabbitconsulting.eu>
Sent: Thursday, February 04, 2010 3:38 PM
To: ironruby-core@rubyforge.org<mailto:ironruby-core@rubyforge.org>
Subject: Re: [Ironruby-core] autospec
you'll have to do this for the ironruby version.
http://flanders.co.nz/2009/10/26/creating-launcher-scripts-for-ironruby/
when RC2 is there it becomes
ir -S autospec
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
On Thu, Feb 4, 2010 at 9:10 PM, Tim Hoolihan
<t...@hoolihan.net<mailto:t...@hoolihan.net>> wrote:
autospec (part of ZenTest gem) does not work for me with Ironruby. Is this a
known issue? I am using a relatively simple example that works fine on ubuntu
with traditional ruby. I'm using 1.0RC1 (version number on the assembly is
out of date).
D:\workspace\ruby\rspec_tutorial>dir lib\* spec\*
Volume in drive D is FILES
Volume Serial Number is AC2C-C255
Directory of D:\workspace\ruby\rspec_tutorial\lib
02/03/2010 01:13 PM <DIR> .
02/03/2010 01:13 PM <DIR> ..
02/03/2010 11:22 AM 109 user.rb
1 File(s) 109 bytes
Directory of D:\workspace\ruby\rspec_tutorial\spec
02/03/2010 01:14 PM <DIR> .
02/03/2010 01:14 PM <DIR> ..
02/03/2010 01:22 PM 354 user_spec.rb
1 File(s) 354 bytes
2 Dir(s) 125,102,854,144 bytes free
D:\workspace\ruby\rspec_tutorial>ir -v
IronRuby 0.9.3.0 on .NET 2.0.0.0
D:\workspace\ruby\rspec_tutorial>autospec
D:\workspace\ruby\rspec_tutorial>spec --autospec spec
..
Finished in 0.2330133 seconds
2 examples, 0 failures
D:\workspace\ruby\rspec_tutorial>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org>
http://rubyforge.org/mailman/listinfo/ironruby-core
________________________________
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org>
http://rubyforge.org/mailman/listinfo/ironruby-core
--- Begin Message ---
open with a "|" seems to be the same as popen/popen3. We support both of those,
so it should not be too hard to support open with a "|". Could even be written
in Ruby code building on top of popen/popen3 (if you want a workaround right
away).
-----Original Message-----
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Jimmy Schementi
Sent: Wednesday, January 20, 2010 2:22 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] AutoSpec exits after executing
> Hello,
>
> I've been trying to get AutoSpec to work again.
>
> I execute it using the following command:
> pretty:Kona Ben$ ir autospec
>
> However, it just exits.
>
> Any ideas why?
>
> Thanks
>
> Ben
So after doing this:
> igem install ZenTest
> cd C:\ironruby\lib\ironruby\gems\1.8\gems\ZenTest-4.1.4
> ir -Ilib bin\autospec
Autospec tries to execute this command:
C:\ironruby\bin\ir.exe -I.;lib;test:../../minitest/dev/lib -rubygems -e
"%w[minitest/autorun test/test_focus.rb test/test_autotest.rb
test/test_zentest_mapping.rb test/test_unit_diff.rb test/test_zentest.rb].each
{ |f| require f }" | unit_diff -u
The problem is unit_diff will fail to load, since there is no unit_diff.bat or
something like that on the path. To get past that I just commented out the
unit_diff part of lib/autospec.rb#422. However, it still quits, though the
command that is generated does run on its own.
It quits because IronRuby doesn't support the call to open it is using (open
with a "|"), and they are swallowing the error msg. Here's a smaller repro:
>>> open("| ir.exe -e \"puts 'hi'\"", 'r')
:0:in `open': Exception of type 'IronRuby.Builtins.NotImplementedError' was
thrown. (NotImplementedError)
from :0:in `open'
from (ir):1
Tomas, is there any work-around to this? ... reading a process like a file,
character by character?
To get autotest working right now, you can replace the entire open(){} call in
lib/autotest.rb#243 with simply this:
puts `#{cmd}`
It won't print out the test results as they happen, but it'll at least show the
results when done, and rerun the tests when you change something.
~Jimmy
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core
--- End Message ---
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core