{"id":19680096,"url":"https://github.com/drewolson/diggr","last_synced_at":"2025-08-22T15:04:05.515Z","repository":{"id":426400,"uuid":"46512","full_name":"drewolson/diggr","owner":"drewolson","description":"ruby wrapper for the digg api with nice syntax","archived":false,"fork":false,"pushed_at":"2009-06-28T21:25:07.000Z","size":185,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-28T13:24:19.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://drewolson.github.com/diggr","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drewolson.png","metadata":{"files":{"readme":"README.rdoc","changelog":"History.txt","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-08-27T04:54:41.000Z","updated_at":"2023-07-25T13:41:03.000Z","dependencies_parsed_at":"2022-07-08T04:56:38.173Z","dependency_job_id":null,"html_url":"https://github.com/drewolson/diggr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drewolson/diggr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewolson%2Fdiggr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewolson%2Fdiggr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewolson%2Fdiggr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewolson%2Fdiggr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drewolson","download_url":"https://codeload.github.com/drewolson/diggr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewolson%2Fdiggr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271403141,"owners_count":24753441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T18:03:58.457Z","updated_at":"2025-08-22T15:04:05.471Z","avatar_url":"https://github.com/drewolson.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= diggr\n\n* Documentation - http://diggr.rubyforge.org\n* Source - http://github.com/drewolson/diggr/tree/master\n* Issue Tracking - http://drewolson.lighthouseapp.com/projects/16743/home\n\n== DESCRIPTION:\n\nDiggr is a ruby wrapper for the Digg API.\n\nDiggr strives to remain consistent with the Digg API endpoints listed here: \nhttp://apidoc.digg.com/CompleteList. Endpoints are created in Diggr with method calls. \nEach node in an endpoint becomes a method call and each node which is an argument becomes \nan argument to the previous method. As an example, the following endpoint\n\n/user/{user name}\n\nin which the user name is \"johndoe\" would be created with this Diggr call:\n\ndiggr.user(\"johndoe\")\n\nTo send the request to the Digg API and retrieve the results of the call, Diggr requests are\nterminated in one of two ways.\n\n1. Using the fetch method. By ending your request with the fetch method, your result will be\n   returned to you. If the request is singular, you will receive a single object as a\n   response. If the request is plural, you will receive a collection of objects stored in an\n   array.\n\n2. Using any Enumerable method. In this case, it is unnecessary to use the fetch method.\n\nSee the synopsis for examples of each of these types of calls.\n\nOptions such as count or offset can be set using the options method and providing a hash of \narguments. See synopsis for more information.\n\nNote: In an effort to remain consistent with the Digg API, some method names do not follow\nthe ruby idiom of underscores. Although somewhat ugly, this allows a user to read the Digg\nAPI and understand the exact methods to call in Diggr to achieve their desired results.\n\n== FEATURES/PROBLEMS:\n\n* Diggr wraps the Digg API and returns both single elements and collections based on the request\n\n== SYNOPSIS:\n\n  require 'rubygems'\n  require 'diggr'\n  \n  diggr = Diggr::API.new\n  \n  # retrieve a single user by user name and print the number of profile views\n  user = diggr.user(\"johndoe\").fetch\n  puts user.profileviews\n\n  # iterator over the most recent 10 stories (default return size) and print their titles\n  diggr.stories.each do |story|\n    puts story.title\n  end\n\n  # print the title of the 3 most recent hot stories\n  diggr.stories.hot.options(:count =\u003e 3).each do |story|\n    puts story.title\n  end\n\n  # build an array of stories whos title contains \"foo\"\n  diggr.stories.inject([]) do |array,story|\n    array \u003c\u003c story if story.title =~ /foo/\n    array\n  end\n\n  # print the title of the 2nd and 3rd most recent stories\n  diggr.stories.options(:count =\u003e 2, :offset =\u003e 2).each do |story|\n    puts story.title\n  end\n\n== REQUIREMENTS:\n\n* need 1.0.2 or greater\n* json 1.1.3 or greater\n* activesupport 2.1.1 or greater\n\n== INSTALL:\n\n* install from rubyforge (major releases)\n* sudo gem install diggr\n\n* install from github (major and minor releases)\n* sudo gem install drewolson-diggr --source=http://gems.github.com\n\n== LICENSE:\n\n(The MIT License)\n\nCopyright (c) 2008 FIX\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewolson%2Fdiggr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrewolson%2Fdiggr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewolson%2Fdiggr/lists"}