0.0
No commit activity in last 3 years
No release in over 3 years
Provides an interface via HTTParty to Fedora's Datagrepper API: https://apps.fedoraproject.org/datagrepper/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

datagrepper-gem

A rubygem for interacting with the public Datagrepper API.

Examples

datagrepper-gem provides a very simple syntax. In fact, currently, the entire public-facing gem is just one method, query, which takes a hash.

dg = Datagrepper.new
dg.query :delta => 1.hour, :user => ['codeblock', 'toshio', 'ralph']
dg.query :delta => 3.weeks, :package => ['python-requests', 'httpie']

As you can see, when you want to query with multiple parameters (for ORing filters), just pass an Array.

We use the awesome time-lord gem to provide a nice time-period-based syntax for delta (e.g. 2.hours or 1.year).

You can use something like the promise gem to execute searches and get a future back, because searches can take some time, and you might not want to block.

License

© 2013 Red Hat, Inc. MIT License (see LICENSE for details).