Closed whaatt closed 11 years ago
Looks good. At what platform(s) did you test this? How would you suggest testing the program on the remaining platforms? Consider #30 for an elaborate example.
Thanks for the pointer; I think something similar should work for installing my fork and the command. As of now, I've only tested on Windows, since I don't have a Linux box handy, but I'll fire up a VM later and try it if no one else wants to give it a shot. Same situation for any other platforms.
1. cd $RED_SPIDER_ROOT (for testing on Linux)
cd %RED_SPIDER_ROOT% (for testing on Windows)
2. # add me on git
git remote add whaatt git://github.com/whaatt/the-red-spider-project.git
3. git fetch whaatt
git checkout whaatt/fortune
4. ./setup.py (for Linux)
setup.py (for Windows)
5. rsshell
6. # now, attempt the tests from above
# if everything goes as planned...
7. exit
I now see that your first post already mentioned testing. Sorry for not reading thorough enough on the previous occasion!
OK, I tested this on OS X 10.8.4 with Python 2.7 and it worked like a charm. Sorry for making you wait for so long. I think in this case we have enough reason to trust that it'll also work on Linux so I'll just go ahead and merge this little perl.
Quote 8175 is a really good by the way!
This pull request adds a command,
fortune
(fortune.py), which randomly or specifically displays funny or witty IRC threads from #xkcd, using the XKCDB thread database. It also has the ability to locally access and cache these unconventional fortunes.This also adds two optional dependencies, the
lxml
andcssselect
libraries. The latter library was formerly included in the former, but in newer versions they have been split up into separate Python modules. Internet access is also optionally required, and all three dependencies need to exist to use the online database.After installing
rsshell
with this program, the following command tests should run without error, unless there is invalid input entered, in which case an appropriate error message should be displayed to the user.