alertifyjs-rails 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # alertifyjs-rails
2
2
 
3
- This gem provides [alertify.js](http://alertifyjs.com/) (v1.2.0) for Rails.
3
+ This gem provides [alertify.js](http://alertifyjs.com/) (v1.2.1) for Rails.
4
4
 
5
5
 
6
6
  ## Installation
@@ -31,7 +31,7 @@ Optional js(coffe script) replace browser confirm dialog
31
31
  //= require alertify/confirm-modal
32
32
  ```
33
33
 
34
- In order to get the CSS, add the following line to `app/assets/stylesheets/application.css.scss`
34
+ In order to get the CSS, add the following line to `app/assets/stylesheets/application.css`
35
35
 
36
36
  ```css
37
37
  /*
@@ -41,6 +41,14 @@ In order to get the CSS, add the following line to `app/assets/stylesheets/appli
41
41
  */
42
42
  ```
43
43
 
44
+ or if you using scss `app/assets/stylesheets/application.scss`
45
+
46
+ ```scss
47
+ @import "alertify";
48
+ @import "alertify/default";
49
+ @import "alertify/bootstrap";
50
+ ```
51
+
44
52
  flash helper, add the following line in layout
45
53
 
46
54
  ```html
@@ -49,5 +57,5 @@ flash helper, add the following line in layout
49
57
  </head>
50
58
  ```
51
59
 
52
- More? read [alertify.js](http://alertifyjs.com/) documentation [here](http://alertifyjs.com/)
60
+ More option? read [alertify.js](http://alertifyjs.com/) documentation [here](http://alertifyjs.com/)
53
61
 
@@ -1,13 +1,13 @@
1
1
  /**
2
- * AlertifyJS
2
+ * alertifyjs
3
3
  * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4
4
  *
5
5
  * @author Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
6
6
  * @copyright 2015
7
7
  * @license MIT <http://opensource.org/licenses/mit-license.php>
8
8
  * @link http://alertifyjs.com
9
- * @module AlertifyJS
10
- * @version 1.2.0
9
+ * @module alertifyjs
10
+ * @version 1.2.1
11
11
  */
12
12
  ( function ( window ) {
13
13
  'use strict';
@@ -3252,7 +3252,7 @@
3252
3252
  if ( typeof module === 'object' && typeof module.exports === 'object' ) {
3253
3253
  module.exports = alertify;
3254
3254
  // AMD
3255
- } else if ( typeof define === 'function' ) {
3255
+ } else if ( typeof define === 'function' && define.amd) {
3256
3256
  define( [], function () {
3257
3257
  return alertify;
3258
3258
  } );
@@ -1,6 +1,11 @@
1
1
  module Alertifyjs #:nodoc:
2
2
  module Rails #:nodoc:
3
3
  class Engine < ::Rails::Engine
4
+ initializer 'alertifyjs-rails.assets.precompile' do |app|
5
+ %w(stylesheets javascripts).each do |sub|
6
+ app.config.assets.paths << root.join('app/assets', sub).to_s
7
+ end
8
+ end
4
9
  end
5
10
  end
6
11
  end
@@ -1,6 +1,5 @@
1
1
  module Alertifyjs #:nodoc:
2
2
  module Rails #:nodoc:
3
- VERSION = "1.2.0"
4
- ALERTIFYJS_VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
5
4
  end
6
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alertifyjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-22 00:00:00.000000000 Z
12
+ date: 2015-03-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Use Alertify.js (alertifyjs.com) with Rails 3 and 4
15
15
  email:
@@ -24,22 +24,22 @@ files:
24
24
  - README.md
25
25
  - Rakefile
26
26
  - alertifyjs-rails.gemspec
27
+ - app/assets/javascripts/alertify.js
28
+ - app/assets/javascripts/alertify/confirm-modal.js.coffee
29
+ - app/assets/stylesheets/alertify.css
30
+ - app/assets/stylesheets/alertify.rtl.css
31
+ - app/assets/stylesheets/alertify/bootstrap.css
32
+ - app/assets/stylesheets/alertify/bootstrap.rtl.css
33
+ - app/assets/stylesheets/alertify/default.css
34
+ - app/assets/stylesheets/alertify/default.rtl.css
35
+ - app/assets/stylesheets/alertify/semantic.css
36
+ - app/assets/stylesheets/alertify/semantic.rtl.css
27
37
  - app/helpers/alertifyjs_helper.rb
28
38
  - lib/alertifyjs-rails.rb
29
39
  - lib/alertifyjs/rails.rb
30
40
  - lib/alertifyjs/rails/engine.rb
31
41
  - lib/alertifyjs/rails/railtie.rb
32
42
  - lib/alertifyjs/rails/version.rb
33
- - vendor/assets/javascripts/alertify.js
34
- - vendor/assets/javascripts/alertify/confirm-modal.js.coffee
35
- - vendor/assets/stylesheets/alertify.css
36
- - vendor/assets/stylesheets/alertify.rtl.css
37
- - vendor/assets/stylesheets/alertify/bootstrap.css
38
- - vendor/assets/stylesheets/alertify/bootstrap.rtl.css
39
- - vendor/assets/stylesheets/alertify/default.css
40
- - vendor/assets/stylesheets/alertify/default.rtl.css
41
- - vendor/assets/stylesheets/alertify/semantic.css
42
- - vendor/assets/stylesheets/alertify/semantic.rtl.css
43
43
  homepage: https://github.com/mkhairi/alertifyjs-rails.git
44
44
  licenses:
45
45
  - MIT