bootsy 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27b663d973185f6a2ea2f0b028af0f89438e115f
4
- data.tar.gz: 32029064e1888368223bf99e8e428089765773a4
3
+ metadata.gz: 38317843402b621be259f6551df33fc4f6d78426
4
+ data.tar.gz: d26e71b5358a806f8661f3648f6f1a6a27b401b1
5
5
  SHA512:
6
- metadata.gz: a4f9366cf44693f59579830135117516db34a783b0c2da2494ad264ab8ec2e6e752db3632f758069de48faec69a5a6de19f2a8886437e3dad1a6f557d51e2a67
7
- data.tar.gz: 53e3dafe4aa45a23627db6a9297aeb89efb515c704deac9d4f257a2aec6934cc6ad13d627d032fb260d0da83eb5366ff6837fdf7564a31789753fd1cf0b84909
6
+ metadata.gz: 1b6d4c208570553fa5ab4d537fda186086e00e0a410bbdbf5015ce79267018627c12f26b47f82c399a55187736d5d8463243e2f3250c25c8c79840afa0497bd2
7
+ data.tar.gz: 9722243acb3bc86e7f5377db035a87d7a14153ccd961f95af306ab59da0a4977ab9b62f362a925d950584e264676dcee7dfdef092168754910a2c1346e8b3bec
data/README.md CHANGED
@@ -18,22 +18,30 @@
18
18
  ## Requirements
19
19
 
20
20
  * ImageMagick or GraphicsMagick (for MiniMagick);
21
- * Rails >= 4;
22
21
  * [Bootstrap 3](http://getbootstrap.com/) fully installed in your app.
23
22
 
24
23
 
25
24
  ## Installation
26
25
 
27
- 1. Add Bootsy to your Gemfile:
26
+ 1. Add Bootsy to your Gemfile and `bundle install` it:
28
27
  ```ruby
29
28
  gem 'bootsy'
30
29
  ```
31
30
 
32
- 2. Run the bundle command to install it:
33
31
  ```console
34
32
  bundle install
35
33
  ```
36
34
 
35
+ 2. Mount Bootsy at the beginning of your `config/routes.rb`:
36
+ ```ruby
37
+ Rails.application.routes.draw do
38
+ mount Bootsy::Engine => '/bootsy', as: 'bootsy'
39
+
40
+ ...
41
+
42
+ end
43
+ ```
44
+
37
45
  3. Require Bootsy in the asset pipeline:
38
46
 
39
47
  In your `app/assets/javascripts/application.js`, put this **after**
@@ -24,6 +24,7 @@ Bootsy.Area = function($el) {
24
24
  events: {
25
25
  change: function() {
26
26
  self.unsavedChanges = true;
27
+ $el.trigger('change');
27
28
  }
28
29
  }
29
30
  };
@@ -31,8 +31,6 @@ $(function() {
31
31
  Bootsy.init();
32
32
 
33
33
  /* Reload Bootsy on page load when using Turbolinks. */
34
- if (window.Turbolinks) {
35
- $(document).on('page:load', Bootsy.init);
36
- }
34
+ document.addEventListener('turbolinks:load', Bootsy.init);
37
35
  });
38
36
  });
@@ -1,4 +1,4 @@
1
1
  # Public: The gem version
2
2
  module Bootsy
3
- VERSION = '2.3.0'.freeze
3
+ VERSION = '2.3.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volmer Soares
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-08 00:00:00.000000000 Z
11
+ date: 2016-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick