librariesio/languages

Name: languages

Owner: Libraries.io

Description: :ideograph_advantage: Just the language names and colors from github-lingust

Created: 2015-02-20 02:01:54.0

Updated: 2018-04-10 10:06:45.0

Pushed: 2018-03-29 09:38:20.0

Homepage: http://libraries.io/rubygems/languages

Size: 173

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Languages

Just the language names and colors extracted from github-lingust, avoiding the heavy dependencies like charlock_holmes which doesn't install well on heroku.

Installation

Add this line to your application's Gemfile:

'languages'

And then execute:

$ bundle

Or install it yourself as:

$ gem install languages
Usage
uages::Language['ruby'] #=> <Languages::Language name=Ruby color=#701516>

uages::Language.all #=> [#<Languages::Language name=ActionScript color=#e3491a>, ..]

uages::Language.by_extension('.rb')  #=> <Languages::Language name=Ruby color=#701516>
Testing

Run the tests with:

$ bundle exec rake
Contributing
  1. Fork it ( https://github.com/librariesio/languages/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.