All Projects â†’ bih â†’ yo-ruby

bih / yo-ruby

Licence: MIT License
🌈 ✨ A super awesome Ruby wrapper of the Yo API.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to yo-ruby

rspec n
A ruby gem that runs RSpec N times.
Stars: ✭ 37 (+146.67%)
Mutual labels:  gem, rspec
Pig Ci Rails
Monitor your Ruby Applications metrics (Memory, SQL Requests & Request Time) as part of your test suite.
Stars: ✭ 53 (+253.33%)
Mutual labels:  gem, rspec
rspec-json matchers
A collection of RSpec matchers for testing JSON data.
Stars: ✭ 23 (+53.33%)
Mutual labels:  gem, rspec
CtCI-with-Ruby-TDD
Cracking the Coding Interview with Ruby and TDD
Stars: ✭ 44 (+193.33%)
Mutual labels:  rspec
visual-call-graph
Visual Call Graph will help you visualize how a method works by creating a call graph of all the other methods called.
Stars: ✭ 46 (+206.67%)
Mutual labels:  gem
rails-countries
Integration between Rails and countries gem.
Stars: ✭ 17 (+13.33%)
Mutual labels:  gem
ae page objects
Page Objects for Capybara
Stars: ✭ 26 (+73.33%)
Mutual labels:  gem
zapier-REST-hooks
Rails engine that provides all the functionality/structure for Zapier REST hooks pattern.
Stars: ✭ 23 (+53.33%)
Mutual labels:  gem
pytest-it
Decorate your pytest suite with RSpec-style pytest markers, then run `pytest --it` to see a plaintext spec of the test structure.
Stars: ✭ 26 (+73.33%)
Mutual labels:  rspec
XCMetricsAggregator
Automation tool for Xcode Metrics Organizer with AppleScript
Stars: ✭ 53 (+253.33%)
Mutual labels:  gem
filtered
Filters ActiveRecord queries in a nice way
Stars: ✭ 28 (+86.67%)
Mutual labels:  gem
historical-bank-ruby
A Ruby Bank that serves historical exchange rates
Stars: ✭ 14 (-6.67%)
Mutual labels:  gem
reverse coverage
A tool to find the test examples which cover a specific line (or set of lines) of a Ruby project
Stars: ✭ 61 (+306.67%)
Mutual labels:  rspec
slow-down
A centralized Redis-based lock to help you wait on throttled resources
Stars: ✭ 21 (+40%)
Mutual labels:  gem
LocalSupport
A directory of local support services and volunteer opportunities
Stars: ✭ 60 (+300%)
Mutual labels:  rspec
graphql-rails logger
Display GraphQL queries in a more readable format
Stars: ✭ 102 (+580%)
Mutual labels:  gem
rudash
Rudash - Lodash for Ruby Apps
Stars: ✭ 27 (+80%)
Mutual labels:  gem
priora
An Object Prioritization Utility for Ruby
Stars: ✭ 30 (+100%)
Mutual labels:  gem
knapsack pro-ruby
Knapsack Pro gem splits tests across parallel CI nodes and makes sure that tests will run in optimal time on each node.
Stars: ✭ 101 (+573.33%)
Mutual labels:  rspec
rack-simple user agent
Rack::SimpleUserAgent is stupidly simple UA detector
Stars: ✭ 13 (-13.33%)
Mutual labels:  gem

Yo for Ruby

Yo! API for Ruby (v1.0.0)

Build Status Code Climate Coverage Status

This is a Ruby API wrapper that's fully tested. It works on Ruby 2.1 and above. This was originally written for the Yo! hackathon in New York (which I later won first place with YoAuth).

Installation

Do it through your terminal, yo.

$ gem install yo-ruby

No? Stick it in your Gemfile, yo.

gem 'yo-ruby', '~> 1.0'

Documentation

Before using the Yo! API, you need to obtain a free API key. It takes a few seconds.

Required: Now you need to include the library and set your API key.

require 'yo-ruby'

Yo::Configuration.setup do |config|
  config.api_key = "[insert api key here]"
end

# Alternatively: Yo::Configuration.api_key = "[insert api key here]"

Method: Send a yo to someone

yo = Yo.yo!("username")
yo.ok? # => true

Method: Send a yo to someone with a URL

yo = Yo.link!("username", "http://github.com/bih/yo-ruby")
yo.ok? # => true

Method: Subscriber count

Yo.subscribers

Method: Send a yo to all your subscribers

Yo.all!

Method: Send a yo to all your subscribers with a URL (New)

Yo.all!("http://github.com/bih/yo-ruby")

Lazy Documentation

require 'sinatra'
require 'yo-ruby'

Yo::Configuration.setup do |config|
  config.api_key = "[insert api key here]"
end

get '/yo/:username' do
  yo = Yo.yo!(params[:username])
  yo.ok?
end

get '/yoall' do
  yo = Yo.all!
  yo.ok?
end

get '/subscribers' do
  puts "Subscribers: #{Yo.subscribers}"
end

Testing

This gem is fully tested and you can find all the tests in the spec/yo-ruby/ folder. You can also execute them by running the rake command.

$ rake

Who made this?

Bilawal Hameed. Released freely under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].