<commit_before># Activerecord Hstore Boolean

A activerecord extesion allow you use boolean in hstore.

## Installation

Add this line to your application's Gemfile:

    gem 'activerecord_hstore_boolean'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install activerecord_hstore_boolean

## Usage

Set boolean values.

```ruby
class Product < ActiveRecord::Base
  hstore_boolean_values :properties, :popular
end

```

Now you can use boolean values.

```ruby
product = Product.create(properties: { popular: true, color: 'white' })
product.properties['popular'] #=> true
```

Following values will be considered to be true, otherwise, to be false.

```ruby
TRUE_VALUES = [true, 1, '1', 't', 'T', 'y', 'Y', 'yes', 'YES', 'true', 'TRUE']
```

## Contributing

1. Fork it ( http://github.com/<my-github-username>/activerecord_hstore_boolean/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 new Pull Request<commit_msg>fix repo url<commit_after># Activerecord Hstore Boolean

A activerecord extesion allow you use boolean in hstore.

## Installation

Add this line to your application's Gemfile:

    gem 'activerecord_hstore_boolean'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install activerecord_hstore_boolean

## Usage

Set boolean values.

```ruby
class Product < ActiveRecord::Base
  hstore_boolean_values :properties, :popular
end

```

Now you can use boolean values.

```ruby
product = Product.create(properties: { popular: true, color: 'white' })
product.properties['popular'] #=> true
```

Following values will be considered to be true, otherwise, to be false.

```ruby
TRUE_VALUES = [true, 1, '1', 't', 'T', 'y', 'Y', 'yes', 'YES', 'true', 'TRUE']
```

## Contributing

1. Fork it ( http://github.com/yesmeck/activerecord_hstore_boolean/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 new Pull Request
{'fraction_non_alphanumeric': 0.12453874538745388, 'fraction_numerical': 0.006457564575645757, 'mean_word_length': 4.491139240506329, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2573115', 'n_tokens_mistral': 730, 'n_tokens_neox': 661, 'n_words': 251}