Test sous Windows

0 views
Skip to first unread message

Gregoire LEJEUNE

unread,
Oct 17, 2009, 8:18:38 AM10/17/09
to rubyfr...@googlegroups.com
Bonjour,

j'aurais besoin d'un peu d'aide pour tester un Gem sous Windows. J'ai
fait quelques corrections dans Ruby/GraphViz qui font que dorénavant
j'utilise Open3. Or sous Windows, il semble qu'il faille installer
win32-open3 pour pouvoir en bénéficier. J'ai donc modifié mon Rackfile
de façon à pouvoir générer un Gem "Ruby" et un autre spécifique pour
Windows qui ajoute la dépendance à win32-open3.

J'ai fait tout cela en aveugle, car n'aillant pas de Windows, je suis
dans l'incapacité de tester le résultat.

Si l'un d'entre vous pouvait me dire si cela fonctionne, cela
m'aiderait bien. Le Gem est téléchargable ici :
http://dl.getdropbox.com/u/72629/ruby-graphviz-0.9.3-x86-mswin32.gem

Par avance merci

Greg

Mathieu Chappuis

unread,
Oct 19, 2009, 7:59:42 AM10/19/09
to rubyfr...@googlegroups.com
It rocks :

>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

>gem -v
1.3.1



>gem install ruby-graphviz-0.9.3-x86-mswin32.gem

Since version 0.9.2, Ruby/GraphViz use Open3.popen3.
On Windows, you need to install ruby-graphviz-0.9.3-x86-mswin32.gem

You need to install GraphViz (http://graphviz.org/) to use this Gem.

Successfully installed polyglot-0.2.9
Successfully installed treetop-1.4.2
Successfully installed win32-open3-0.3.1-x86-mswin32-60
Successfully installed ruby-graphviz-0.9.3-x86-mswin32
4 gems installed
Installing ri documentation for polyglot-0.2.9...
Installing ri documentation for treetop-1.4.2...
Installing ri documentation for win32-open3-0.3.1-x86-mswin32-60...
Installing ri documentation for ruby-graphviz-0.9.3-x86-mswin32...
Installing RDoc documentation for polyglot-0.2.9...
Installing RDoc documentation for treetop-1.4.2...
Installing RDoc documentation for win32-open3-0.3.1-x86-mswin32-60...
Installing RDoc documentation for ruby-graphviz-0.9.3-x86-mswin32...

>ver /r

TCC 10,00,76 Windows XP [Version 5,1,2600]
TCC Build 76 Windows XP Build 2600 Service Pack 3


2009/10/17 Gregoire LEJEUNE <gregoire...@gmail.com>:

Gregoire LEJEUNE

unread,
Oct 19, 2009, 9:07:32 AM10/19/09
to rubyfr...@googlegroups.com
Merci !

Le 19 octobre 2009 13:59, Mathieu Chappuis
<mathieu.cha...@gmail.com> a écrit :

Gregoire LEJEUNE

unread,
Oct 19, 2009, 2:28:56 PM10/19/09
to rubyfr...@googlegroups.com
Merci encore pour ton aide Mathieu, mais en faite la version
"spécifique" Windows n'a plus de raison d'être. En effet, si
win32-open3 n'est pas installé sur Windows je passe par IO.popen.

Greg

Le 19 octobre 2009 15:07, Gregoire LEJEUNE
<gregoire...@gmail.com> a écrit :

Mathieu Chappuis

unread,
Oct 19, 2009, 2:59:04 PM10/19/09
to rubyfr...@googlegroups.com
Pourtant :

Successfully installed ruby-graphviz-0.9.3-x86-mswin32

C'est bien le gem d'origine qui s'installe. avec sa dépendance :

Successfully installed win32-open3-0.3.1-x86-mswin32-60



2009/10/19 Gregoire LEJEUNE <gregoire...@gmail.com>:

Gregoire LEJEUNE

unread,
Oct 19, 2009, 3:02:44 PM10/19/09
to rubyfr...@googlegroups.com
Oui, mais en fait je n'avais pas envie de faire un gem spécifique pour
Windows uniquement pour une histoire de dépendance, donc sous Windows,
si win32-open3 est installé, je l'utilise, sinon non...

Greg

Le 19 octobre 2009 20:59, Mathieu Chappuis
Reply all
Reply to author
Forward
0 new messages