<commit_before>= RangeScopes

This gem adds scopes that can be used for selecting objects, that contains scoped values.

== Still didn't get it?

Consider this example: you have active record model that has price (or any other field) range: price_from and price_till. You have three objects:
item #1: price_from: 50, price_to: 100
item #2: price_from: 100, price_till: 150
ietm #3: price_from: 150, price_till: 200

* If you look for items that has price less than 110, you will expect to get item #1 and #2.
* If you look for items that has price more than 110, you will expect to get item #2 and #3.

== And how about if item contains nil values?

By default range_scopes threat nil as no value - model without any value are always returned

== Usage

The only thing you need to do is to include Range scopes in active record model where would like to have range scopes:
  class Item < ActiveRecord::Base<commit_msg>Update description<commit_after>= RangeScopes

This gem adds scopes that can be used for selecting objects, that contains scoped values.

== Still didn't get it?

Consider this example: you have active record model that has price (or any other field) range: price_from and price_till. You have three objects:
* item #1: price_from: 50, price_to: 100
* item #2: price_from: 100, price_till: 150
* item #3: price_from: 150, price_till: 200

* If you look for items that has price less than 110, you will expect to get item #1 and #2.
* If you look for items that has price more than 110, you will expect to get item #2 and #3.

== And how about if item contains nil values?

By default range_scopes threat nil as no value - model without any value are always returned

== Usage

The only thing you need to do is to include Range scopes in active record model where would like to have range scopes:
  class Item < ActiveRecord::Base
{'fraction_non_alphanumeric': 0.0568489442338928, 'fraction_numerical': 0.03248511099079589, 'mean_word_length': 4.264957264957265, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5026861', 'n_tokens_mistral': 566, 'n_tokens_neox': 513, 'n_words': 304}