librariesio / Languages
Licence: mit
🉐 Just the language names and colors from github-lingust
Stars: ✭ 22
Programming Languages
ruby
36898 projects - #4 most used programming language
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:
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
- Fork it ( https://github.com/librariesio/languages/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
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].