alertifyjs-rails 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # alertifyjs-rails
2
2
 
3
- This gem provides [alertify.js](http://alertifyjs.com/) (v0.9) for Rails.
3
+ This gem provides [alertify.js](http://alertifyjs.com/) (v1.0.1) for Rails.
4
4
 
5
5
 
6
6
  ## Installation
@@ -28,7 +28,7 @@ The alertify files will be added to the asset pipeline and available for you to
28
28
 
29
29
  Optional js(coffe script) replace browser confirm dialog
30
30
  ```javascript
31
- //= require alertify/alertify/confirm-modal
31
+ //= require alertify/confirm-modal
32
32
  ```
33
33
 
34
34
  In order to get the CSS, add the following line to `app/assets/stylesheets/application.css.scss`
@@ -48,3 +48,6 @@ flash helper, add the following line in layout
48
48
  <%= alertify_flash %>
49
49
  </head>
50
50
  ```
51
+
52
+ More? read [alertify.js](http://alertifyjs.com/) documentation [here](http://alertifyjs.com/)
53
+
@@ -1,6 +1,6 @@
1
1
  module Alertifyjs #:nodoc:
2
2
  module Rails #:nodoc:
3
- VERSION = "0.1.5"
4
- ALERTIFYJS_VERSION = "0.10.2"
3
+ VERSION = "0.1.6"
4
+ ALERTIFYJS_VERSION = "1.0.1"
5
5
  end
6
6
  end
@@ -3,11 +3,11 @@
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
- * @copyright 2014
6
+ * @copyright 2015
7
7
  * @license MIT <http://opensource.org/licenses/mit-license.php>
8
8
  * @link http://alertifyjs.com
9
9
  * @module AlertifyJS
10
- * @version 0.10.2
10
+ * @version 1.0.1
11
11
  */
12
12
  ( function ( window ) {
13
13
  'use strict';
@@ -2238,8 +2238,10 @@
2238
2238
  element = document.createElement('DIV');
2239
2239
 
2240
2240
  updatePosition(instance);
2241
+ }
2241
2242
 
2242
- //add to DOM tree.
2243
+ //add to DOM tree.
2244
+ if (element.parentNode != document.body) {
2243
2245
  document.body.appendChild(element);
2244
2246
  }
2245
2247
  }
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alertifyjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - mkhairi
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-12-02 00:00:00.000000000 Z
12
+ date: 2015-01-11 00:00:00.000000000 Z
12
13
  dependencies: []
13
14
  description: Use Alertify.js (alertifyjs.com) with Rails 3 and 4
14
15
  email:
@@ -17,7 +18,7 @@ executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
- - ".gitignore"
21
+ - .gitignore
21
22
  - Gemfile
22
23
  - LICENSE.txt
23
24
  - README.md
@@ -42,25 +43,26 @@ files:
42
43
  homepage: https://github.com/mkhairi/alertifyjs-rails.git
43
44
  licenses:
44
45
  - MIT
45
- metadata: {}
46
46
  post_install_message:
47
47
  rdoc_options: []
48
48
  require_paths:
49
49
  - lib
50
50
  required_ruby_version: !ruby/object:Gem::Requirement
51
+ none: false
51
52
  requirements:
52
- - - ">="
53
+ - - ! '>='
53
54
  - !ruby/object:Gem::Version
54
55
  version: '0'
55
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
+ none: false
56
58
  requirements:
57
- - - ">="
59
+ - - ! '>='
58
60
  - !ruby/object:Gem::Version
59
61
  version: '0'
60
62
  requirements: []
61
63
  rubyforge_project:
62
- rubygems_version: 2.4.4
64
+ rubygems_version: 1.8.23
63
65
  signing_key:
64
- specification_version: 4
66
+ specification_version: 3
65
67
  summary: This gem provides the Alertify.js (alertifyjs.com) for Rails applications
66
68
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 7ca53d8a430d1a6482ff288e1b3c4bbe083c348b
4
- data.tar.gz: cdf819e7fec0e42d62e3e892fcfc03842c8c263c
5
- SHA512:
6
- metadata.gz: 5dfc7777cc4d2b89478c5d9257e69409ddb0b0b07cbe6009e975ef42a0203fa7850b217a869a1014b1f3817f43c6142e093d31f9069318d3ca7894ad4e966f0d
7
- data.tar.gz: f83c19d29a5bc9b0460fa754ee8d9f93fe68bf3655c13ba1824314d3cdeebf6866bcd75188ccd44864ca83d101aba2ab4a267c20c3cf7834485a8afac324957b