<commit_before>Spree Banner [![Build Status](https://travis-ci.org/zaeznet/spree_zaez_banner.svg?branch=master)](https://travis-ci.org/zaeznet/spree_zaez_banner)
============

Adds a way to manage banners to Spree Commerce.


Installation
------------

1. Add the following to your Gemfile

```ruby
gem 'spree_zaez_banner'
```

2. Run `bundle install`

3. To copy and apply migrations run:

```
rails g spree_banner:install
```


Configuration
-------------

Preferences can be updated within the admin panel "Banner box settings".
Or you may set them with an initializer within your application:

```ruby
SpreeBanner::Config.tap do |config|<commit_msg>Include in readme.md the old version url.<commit_after>Spree Banner [![Build Status](https://travis-ci.org/zaeznet/spree_zaez_banner.svg?branch=master)](https://travis-ci.org/zaeznet/spree_zaez_banner)
============

Adds a way to manage banners to Spree Commerce.


Old versions of Spree
------------

For old version of Spree (before 3-0-stable), go to [old extension](https://github.com/zaeznet/spree_banner) (fork of [<NAME>](https://github.com/damianogiacomello/spree_banner)).


Installation
------------

1. Add the following to your Gemfile

```ruby
gem 'spree_zaez_banner'
```

2. Run `bundle install`

3. To copy and apply migrations run:

```
rails g spree_banner:install
```


Configuration
-------------

Preferences can be updated within the admin panel "Banner box settings".
Or you may set them with an initializer within your application:

```ruby
SpreeBanner::Config.tap do |config|
{'fraction_non_alphanumeric': 0.15721649484536082, 'fraction_numerical': 0.005154639175257732, 'mean_word_length': 4.042207792207792, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2576299', 'n_tokens_mistral': 523, 'n_tokens_neox': 510, 'n_words': 153}