Theoretically it may be possible, but it's not something that I would recommend.
These are low power connections with no real protection to prevent damage to the Raspberry Pi:
The following are taken from the Wiki:
Extreme caution should be exercised when interfacing hardware at a low level, you may damage your RPi, your equipment and potentially yourself and others. Doing so is at your own risk!
and
GPIO voltage levels are 3v3 and are not 5v tolerant. There is no over-voltage protection on the board - the intention is that people interested in serious interfacing will use an external board with buffers, level conversion and analog I/O rather than soldering directly onto the main board.
saying that there is not much harm you can do with a banana, so perhaps it's possible.
The circuit works by charging and discharging the banana and measuring how long it retains it's charge for. I would have expected this to use analog ports, but whilst I don't know anything about spin the source files appear to suggest they are actually using digital ports.
The problem with using a digital port is that you have only a small threshold voltage that is classed as being high and the same as low, but then a large area in between that is unknown. So most likely the circuit is detecting when the voltage enters a certain point in that undefined voltage area. This probably works just fine for the purpose of detecting the charge of a banana, but would not be reliable for something that needs to be more accurate.
Whilst it may be possible to use the GPIO ports, but not recommended.
The following two pages from the Wiki may help:
http://elinux.org/Rpi_Low-level_peripherals
http://elinux.org/RPi_Tutorial_Easy_GPI ... 6_Software