{"id":14991379,"url":"https://github.com/bih/yo-ruby","last_synced_at":"2025-04-12T03:31:17.720Z","repository":{"id":18861798,"uuid":"22078482","full_name":"bih/yo-ruby","owner":"bih","description":"🌈 ✨ A super awesome Ruby wrapper of the Yo API.","archived":true,"fork":false,"pushed_at":"2016-03-21T13:58:10.000Z","size":38,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T23:23:11.829Z","etag":null,"topics":["gem","rspec","ruby","yo"],"latest_commit_sha":null,"homepage":"http://bilaw.al/the-unofficial-yo-api-for-ruby","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"snapframework/heist","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bih.png","metadata":{"files":{"readme":"readme.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-21T20:12:04.000Z","updated_at":"2025-03-05T00:50:51.000Z","dependencies_parsed_at":"2022-07-25T06:46:59.566Z","dependency_job_id":null,"html_url":"https://github.com/bih/yo-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bih%2Fyo-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bih%2Fyo-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bih%2Fyo-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bih%2Fyo-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bih","download_url":"https://codeload.github.com/bih/yo-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018859,"owners_count":21034155,"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","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":["gem","rspec","ruby","yo"],"created_at":"2024-09-24T14:27:38.147Z","updated_at":"2025-04-12T03:31:15.729Z","avatar_url":"https://github.com/bih.png","language":"Ruby","readme":"![Yo for Ruby](http://i.imgur.com/N0L8m9P.png)\n\n# Yo! API for Ruby (v1.0.0)\n\n[![Build Status](https://travis-ci.org/bih/yo-ruby.svg?branch=master)](https://travis-ci.org/bih/yo-ruby)\n[![Code Climate](https://codeclimate.com/github/bih/yo-ruby/badges/gpa.svg)](https://codeclimate.com/github/bih/yo-ruby)\n[![Coverage Status](https://coveralls.io/repos/github/bih/yo-ruby/badge.svg?branch=master)](https://coveralls.io/github/bih/yo-ruby?branch=master)\n\nThis is a Ruby API wrapper [that's fully tested](https://travis-ci.org/bih/yo-ruby). It works on Ruby 2.1 and above. This was originally written for the [Yo! hackathon in New York](http://www.eventbrite.com/e/yo-hackathon-nyc-2-letters-2-hours-ready-set-yo-tickets-12145608843?aff=eorg) (which I later won first place with [YoAuth](http://yoauth.herokuapp.com)).\n\n\n### Installation\n\nDo it through your terminal, yo.\n\n```\n$ gem install yo-ruby\n```\n\nNo? Stick it in your Gemfile, yo.\n\n```\ngem 'yo-ruby', '~\u003e 1.0'\n```\n\n### Documentation\n\nBefore using the Yo! API, you need to obtain a free [API key](http://dev.justyo.co/). It takes a few seconds.\n\n**Required:** Now you need to include the library and set your API key.\n\n```ruby\nrequire 'yo-ruby'\n\nYo::Configuration.setup do |config|\n  config.api_key = \"[insert api key here]\"\nend\n\n# Alternatively: Yo::Configuration.api_key = \"[insert api key here]\"\n```\n\n**Method:** Send a yo to someone\n\n```ruby\nyo = Yo.yo!(\"username\")\nyo.ok? # =\u003e true\n```\n\n**Method:** Send a yo to someone with a URL\n\n```ruby\nyo = Yo.link!(\"username\", \"http://github.com/bih/yo-ruby\")\nyo.ok? # =\u003e true\n```\n\n**Method:** Subscriber count\n\n```ruby\nYo.subscribers\n```\n\n**Method:** Send a yo to all your subscribers\n\n```ruby\nYo.all!\n```\n\n\n**Method:** Send a yo to all your subscribers with a URL (New)\n\n```ruby\nYo.all!(\"http://github.com/bih/yo-ruby\")\n```\n\n### Lazy Documentation\n```ruby\nrequire 'sinatra'\nrequire 'yo-ruby'\n\nYo::Configuration.setup do |config|\n  config.api_key = \"[insert api key here]\"\nend\n\nget '/yo/:username' do\n  yo = Yo.yo!(params[:username])\n  yo.ok?\nend\n\nget '/yoall' do\n  yo = Yo.all!\n  yo.ok?\nend\n\nget '/subscribers' do\n  puts \"Subscribers: #{Yo.subscribers}\"\nend\n```\n\n### Testing\n\nThis gem is fully tested and you can find all the tests in the `spec/yo-ruby/` folder.\nYou can also execute them by running the `rake` command.\n\n```\n$ rake\n```\n\n### Who made this?\n[Bilawal Hameed](http://github.com/bih). Released freely under the [MIT License](http://bih.mit-license.org/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbih%2Fyo-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbih%2Fyo-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbih%2Fyo-ruby/lists"}