Sha256: 17ecf66e0c36b4363025a1decbde2af102dc236acab5a9c64131c497c8fcf95a

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

Rails asset-pipeline gem to provide [Noty](http://needim.github.com/noty/)

# Deprecation Note
There are multiple ways for managing this JS library already (or any library that is supported by bower):
- [bower-rails](https://github.com/rharriso/bower-rails)
- [Rails Assets](https://rails-assets.org/)

This gem will be updated until a major release is done in the upstream.

# Install
```ruby
gem 'noty-rails'
```

# Usage

Look at the [official installation instructions](http://needim.github.com/noty/#installation)

## Where to put require statement
Since you can set some default config of Noty including layout  
I think it is more sensible to put the require statements in the same file  
As you have to require the layout and theme files you need
```coffeescript
# app/assets/javascripts/shared/flashes/noty-config.js.coffee
#= require noty/jquery.noty
#= require noty/layouts/bottom
#= require noty/themes/default

$ = jQuery

$.noty.defaults.timeout = 8000
$.noty.defaults.layout = 'bottom'
```

# Changelog

### 2.3.4

- Update Noty to `2.3.4`

### 2.2.9

- Update Noty to `2.2.9`

### 2.2.2

- Update Noty to `2.2.2`

### 2.2.0

- Update Noty to `2.2.0`

### 2.1.4

- Update Noty to `2.1.4`

### 2.1.0.1

- Add MIT Licence to gemspec

### 2.1.0

- Update Noty to `2.1.0`

### 2.0.3.1

- Make it compatible with Rails 4 version (Now is an instance of `Gem::Version`)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
noty-rails-2.3.4 README.md