Project

languages

0.02
No commit activity in last 3 years
No release in over 3 years
Just the language names, details and colors from github-linguist
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 11.1
~> 3.4

Runtime

 Project Readme

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:

gem 'languages'

And then execute:

$ bundle

Or install it yourself as:

$ gem install languages

Usage

Languages::Language['ruby'] #=> <Languages::Language name=Ruby color=#701516>

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

Languages::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