SpyGlass is a utility for defining web content transformation proxies. Be aware that the W3C guideline is not yet fully covered. For instance, X-Device-*
headers are not yet implemented. The API of this library is likely to change quite a bit before stabilizing.
The high-level goal of this project is to enable rapid development of adapter services. HTTP and caching concerns should be exposed to a minimal extent so the developer can focus on data transformation.
- Write tests!
- Provide clients with a way to retrieve fresh data
- Respect
Cache-Control
headers - Web framework adapters (currently roll-your-own, except for sinatra)
Add this line to your application's Gemfile:
gem 'spy_glass'
And then execute:
$ bundle
Or install it yourself as:
$ gem install spy_glass
See the examples.
- Fork it ( http://github.com/codeforamerica/spy_glass/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request