https://github.com/librariesio/languages
:ideograph_advantage: Just the language names and colors from github-lingust
https://github.com/librariesio/languages
Last synced: about 1 year ago
JSON representation
:ideograph_advantage: Just the language names and colors from github-lingust
- Host: GitHub
- URL: https://github.com/librariesio/languages
- Owner: librariesio
- License: mit
- Archived: true
- Created: 2015-02-20T02:01:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T09:38:20.000Z (about 8 years ago)
- Last Synced: 2025-03-24T05:47:28.407Z (about 1 year ago)
- Language: Ruby
- Homepage: http://libraries.io/rubygems/languages
- Size: 169 KB
- Stars: 24
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# [Languages](http://libraries.io/rubygems/languages)
Just the language names and colors extracted from [github-lingust](https://github.com/github/linguist), avoiding the heavy dependencies like `charlock_holmes` which doesn't install well on heroku.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'languages'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install languages
## Usage
```ruby
Languages::Language['ruby'] #=>
Languages::Language.all #=> [#, ..]
Languages::Language.by_extension('.rb') #=>
```
## 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