Sha256: 343bd6351080a156aae9af615ff23b843aea91614294cf645d95ff98ff5c31d8

Contents?: true

Size: 1.04 KB

Versions: 21

Compression:

Stored size: 1.04 KB

Contents

# [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 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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
languages-2.0.0 README.md
languages-1.4.9 README.md
languages-1.4.8 README.md
languages-1.4.7 README.md
languages-1.4.6 README.md
languages-1.4.5 README.md
languages-1.4.4 README.md
languages-1.4.3 README.md
languages-1.4.2 README.md
languages-1.4.1 README.md
languages-1.4.0 README.md
languages-1.3.9 README.md
languages-1.3.8 README.md
languages-1.3.7 README.md
languages-1.3.6 README.md
languages-1.3.5 README.md
languages-1.3.4 README.md
languages-1.3.3 README.md
languages-1.3.2 README.md
languages-1.3.1 README.md