<commit_before># ColorAdjuster

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'ColorAdjuster'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ColorAdjuster

## Usage

Drop this module in a model or class that responds to `color` and returns a Hex string:

```ruby
class Status
  include ColorAdjuster

  def color
    "#ff0000"
  end
end
```

Now you can ask it to darken or lighten the color:

```ruby
status = Status.new
status.darken_color      # => "#660000"
status.lighten_color     # => "#ff4d4d"
status.contrasting_color # => "#ff9999"
```

Thanks to [this blog post](http://www.redguava.com.au/2011/10/lighten-or-darken-a-hexadecimal-color-in-ruby-on-rails/) for the code.

## Contributing

1. Fork it ( https://github.com/[my-github-username]/ColorAdjuster/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<commit_msg>added description<commit_after># ColorAdjuster

A tiny module mixin for adding color adjusting methods to a class that responds to `color`.

## Installation

Add this line to your application's Gemfile:

    gem 'ColorAdjuster'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ColorAdjuster

## Usage

Drop this module in a model or class that responds to `color` and returns a hex string:

```ruby
class Status
  include ColorAdjuster

  def color
    "#ff0000"
  end
end
```

Now you can ask it to darken or lighten the color:

```ruby
status = Status.new
status.darken_color      # => "#660000"
status.lighten_color     # => "#ff4d4d"
status.contrasting_color # => "#ff9999"
```

Thanks to [this blog post](http://www.redguava.com.au/2011/10/lighten-or-darken-a-hexadecimal-color-in-ruby-on-rails/) for the code.

## Contributing

1. Fork it ( https://github.com/[my-github-username]/ColorAdjuster/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
{'fraction_non_alphanumeric': 0.11101163831692032, 'fraction_numerical': 0.024171888988361683, 'mean_word_length': 3.735169491525424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4057056', 'n_tokens_mistral': 789, 'n_tokens_neox': 707, 'n_words': 259}