<commit_before>#JqueryNotifyBar

This is a simple ruby gem to include jquery.nofityBar from [<NAME>](http://github.com/dknight/jQuery-Notify-bar) to your rails app.

jquery.notifyBar is a twitter like notification bar.

With this gem, all your flash messages will be showed in the nofity bar.

## Installation

In your gem file add:

```ruby
gem 'jquery_notify_bar'
```

## Usage

### Rails 3.0
	
Add this files to your javascripts and stylesheets folders
```
https://raw.github.com/ustrajunior/jquery_notify_bar/master/app/assets/javascripts/jquery.notify_bar.js
https://raw.github.com/ustrajunior/jquery_notify_bar/master/app/assets/stylesheets/jquery.notify_bar.css
```

in the head section of your application.html.erb add this helper
	
```rhtml
<%= jquery_notify_bar_assets %>
```

### Rails 3.1
On your application.js add

```
//= require jquery.notify_bar
```
	
On your application.css add

```
*= require jquery.notify_bar
```

### In your application.html

```rhtml
<%= jquery_notify_bar(flash) %>
```

Remember to add the helper after

```rhtml
<%= javascript_include_tag "application" %>
```

Because it depends of jQuery.

### Parameters<commit_msg>improving readme<commit_after>#JqueryNotifyBar

This is a simple ruby gem to include jquery.nofityBar from [<NAME>](http://github.com/dknight/jQuery-Notify-bar) to your rails app.

jquery.notifyBar is a twitter like notification bar.

With this gem, all your flash messages will be showed in the nofity bar.

## Installation

In your gem file add:

```ruby
gem 'jquery_notify_bar'
```

## Usage

### Rails 3.0
	
Add this files to your javascripts and stylesheets folders
```
https://raw.github.com/ustrajunior/jquery_notify_bar/master/app/assets/javascripts/jquery.notify_bar.js
https://raw.github.com/ustrajunior/jquery_notify_bar/master/app/assets/stylesheets/jquery.notify_bar.css
```

in the head section of your application.html.erb add this helper
	
```rhtml
<%= jquery_notify_bar_assets %>
```

### Rails 3.1
On your application.js add

```
//= require jquery.notify_bar
```
	
On your application.css add

```
*= require jquery.notify_bar
```

### In your application.html.erb
Add the helper to show the flash message. Remember to add after `<%= javascript_include_tag "application" %>`, because it depends on the jQuery plugin.

```rhtml
<%= jquery_notify_bar(flash) %>
```

### Parameters
{'fraction_non_alphanumeric': 0.12425784563189143, 'fraction_numerical': 0.0033927056827820186, 'mean_word_length': 4.711864406779661, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '6753055', 'n_tokens_mistral': 829, 'n_tokens_neox': 738, 'n_words': 219}