Archive for October, 2008

scRUBYt! on GitHub and LightHouse

The release is almost ready - I have to finish one more important feature (print the generated XPaths for patterns which were specified by an example - Extractor#export() is not supported at the moment since RubyInline, ParseTree and ruby2ruby were dropped to make the installation smoother possible :-). Until it will be added back, at least you can substitute the examples manually - not a great, but at least working solution). Also I’ll test the whole stuff once again, fix some minor bugs, create some nice examples (if you have suggestions, drop me a comment and let’s see what can I do) - I guess this should be done until the weekend.

Until then, if you’d like to check out the present state, check out scRUBYt! on github and I have just set up a LightHouse tracker for scRUBYt! - if you find any bugs, have feature requests/ideas etc. just drop it there.

Installing FireWatir for Firefox 3.0+

After nearly a year of silence, a new version, firescRUBYt! (scRUBYt! integrated with FireWatir) is ready for release. In fact, firescRUBYt! is ready since a few months already - the problem was that FireWatir [1] was not ready for Firefox 3, (which I believe everyone is using for some time now) and forcing users to go back to FF2 just to try out the new release would have not been a bold move I guess :-).

To make a long story short: the release is coming in the next few days, until then get ready by installing the FireWatir (and jssh, it’s prerequisite). So let’s start with jssh.

Check out the files attached to the FireWatir project here (in case the link is broken, go to the FireWatir site and navigate from there). Select your Firefox version and OS (for example take this xpi if you are on OS X and using FF >3.0 - see all the combos in part 2) of the official installation guide) and install jssh which is an xpi file (unless opened automatically, open it with FF (File -> Open)). Restart Firefox after the installation to ensure that the add-on is activated.

To test whether jssh is working, close your current Firefox instance, go to the commandline and start FF with the -jssh option, i.e.:

  1. firefox -jssh

In a separate window, try to connect to Firefox via jssh with telnet:

  1. telnet 127.0.0.1 9997

You should see/try something similar:

  1. Macintosh-4:~ mbp$ telnet 127.0.0.1 9997
  2. Trying 127.0.0.1
  3. Connected to localhost.
  4. Escape character is ‘^]’.
  5. Welcome to the Mozilla JavaScript Shell!
  6.  
  7. > ‘Hello, world!’
  8. Hello, world!
  9. > exit()
  10. Goodbye!
  11. Connection closed by foreign host.

Which means jssh is properly installed! You are through with the hardest part. Now you need to install the firewatir gem:

  1. gem install firewatir

That’s it! - you are ready to roll with FireWatir! The official release of scRUBYt!, along with a few tutorials is coming soon - stay tuned!

[1] (or, to be more precise, jssh (a small component allowing other programs to establish JS connection to a running Firefox process)) back