Github Favorite Language
Find out any GitHub user's favorite programming language!
Installation
Add this line to your application's Gemfile:
gem 'github_favorite_language'And then execute:
$ bundleOr install it yourself as:
$ gem install github_favorite_languageUsage
The gem comes with the command line tool, but can be also called inside the ruby code.
Example:
Bash or Windows Command prompt:
$ github_favorite_language vfonicRuby:
require 'github_favorite_language'
puts GithubFavoriteLanguage.new(username: 'vfonic').favorite_languageOr:
require 'github_favorite_language'
GithubFavoriteLanguage.new(username: 'vfonic').print_favorite_languageThis will fetch vfonic repos and return the name of the main language of most repositories. For GitHub documentation refer to: https://developer.github.com/v3/
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake rspec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To fix an issue, update the version number in version.rb, and then create a pull request.
License
The gem is available as open source under the terms of the MIT License.