DEV Community

Davide Santangelo
Davide Santangelo

Posted on

cURL wrapper around RubyGems.org API

I just developed a basic cURL wrapper around RubyGems.org API. Enjoy!

GitHub: https://github.com/davidesantangelo/curl-gems

HELP:


curl -X GET https://curl-gems.herokuapp.com/gems -d 'method=help'

Enter fullscreen mode Exit fullscreen mode
+--------------+-------+---------------------------------------------------------------------+
| METHOD       | PARAM | EXAMPLE                                                             |
+--------------+-------+---------------------------------------------------------------------+
| about        | query | eg. curl -X GET /gems -d 'query=devise' -d 'method=about'           |
| search       | query | eg. curl -X GET /gems -d 'query=rails' -d 'method=search'           |
| owned        | query | eg. curl -X GET /gems -d 'query=davidesantangelo' -d 'method=owned' |
| latest       |       | eg. curl -X GET /gems -d 'method=latest'                            |
| just_updated |       | eg. curl -X GET /gems -d 'method=just_updated'                      |
+--------------+-------+---------------------------------------------------------------------+%     
Enter fullscreen mode Exit fullscreen mode

ABOUT

curl -X GET https://curl-gems.herokuapp.com/gems -d 'query=emailhunter' -d 'method=about'
Enter fullscreen mode Exit fullscreen mode
+-------------------+-----------------------------------------------------------------------------------------------------------------------------+
| ABOUT             | emailhunter                                                                                                                 |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------+
| name              | emailhunter                                                                                                                 |
| downloads         | 40872                                                                                                                       |
| version           | 0.8.1                                                                                                                       |
| version_downloads | 493                                                                                                                         |
| platform          | ruby                                                                                                                        |
| authors           | Davide Santangelo                                                                                                           |
| info              | A tiny ruby wrapper around Email Hunter API. Email Hunter helps sales people reach their targets and increase their sales.  |
| licenses          | ["MIT"]                                                                                                                     |
| metadata          |                                                                                                                             |
| yanked            | false                                                                                                                       |
| sha               | 1a86a67ec808a15bd0e3bf292a0a111a02dfa8a1db4b3a7b1612a8720aae374a                                                            |
| project_uri       | https://rubygems.org/gems/emailhunter                                                                                       |
| gem_uri           | https://rubygems.org/gems/emailhunter-0.8.1.gem                                                                             |
| homepage_uri      |                                                                                                                             |
| wiki_uri          |                                                                                                                             |
| documentation_uri | http://www.rubydoc.info/gems/emailhunter/0.8.1                                                                              |
| mailing_list_uri  |                                                                                                                             |
| source_code_uri   | https://github.com/davidesantangelo/emailhunter                                                                             |
| bug_tracker_uri   |                                                                                                                             |
| changelog_uri     |                                                                                                                             |
| dependencies      |                                                                                                                             |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------+%                     
Enter fullscreen mode Exit fullscreen mode

Top comments (0)