为什么(Poignant)Ruby指南:我在哪里可以找到一个有效的preeventualist.org镜像(或类似的东西)?

Kev*_* L. 4 ruby web-services

我一直在研究为什么(Poignant)Ruby指南.在第6章中,_why引导读者使用open-uri与简单的Web服务("Preeventualist的丢失和查找注册表")进行交互:

正在搜索
=========
要搜索遗失物品,请使用以下地址:

http://preeventualist.org/lost/search?q= {搜索字词}

您可以使用搜索字词替换{search word}.例如,要搜索"杯子":

http://preeventualist.org/lost/search?q=cup

您将获得一份丢失或找到的杯子清单.

如果您只想搜索丢失的杯子或只找到杯子,请使用'searchlost'和'searchfound'页面:

http://preeventualist.org/lost/searchlost?q=cup

哪个不起作用.

在原来的静态内容的的Preeventualist已经反映在_why的房地产,但不幸的是搜索服务尚未配置:

http://viewsourcecode.org/why/preeventualist/search?q=bacon

是否有_why以前的preeventualist网络服务的工作镜像?如果没有,那么类似的模拟怎么样:一个服务返回换行符分隔的原始文本列表以响应不同的搜索?

小智 5

https://github.com/mistydemeo/preeventualist

显然,mistydemeo根据_why的尖锐指南第6章重新创建了整个规范.

该重新生成的服务版本与Poignant Guide中指定的API 100%兼容,但也添加了一些新功能,如JSON和Brooklyn Integer支持.