bootsy 2.2.1 → 2.2.2

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: bc0d3d886ed83b6d649b9fb22d4a6298a59f0254
4
- data.tar.gz: d85216d19292829dcc8a2eae22bef6e558f561c8
3
+ metadata.gz: 6f1957bbe60a7a4bfadafed8047f4658eb39ee93
4
+ data.tar.gz: ac5b53a2c8e6c03bf9566e3ccef91c0d5ab87c70
5
5
  SHA512:
6
- metadata.gz: 5dcce405cb0d224ea4c9fde9577df2b99bc8c69e1b6bf702978a5cfbfcee3c93818b673bf16e0b681cfce3dcd0e84b13d2961c4fc60796d2e4d8a6f516772a54
7
- data.tar.gz: f011a536e7034442c36d268913539475a4a64baf5b2487ece5d0f72ec5a72cb15bae2a464b10a7214d462dcb6b6793cc34d690c7795ada05514ac54325b2b57c
6
+ metadata.gz: f4506e96075bc21d611c1c0bf834613aecff4be208b595fe4a4173f96d89e4b6d490cf681ac227df589001146936c0dd328b45969840d95d60d7f67ff2c8a246
7
+ data.tar.gz: 0ccbba8b3fe80b608b51d00e346c921ff7d0c827cd429187e2521419e04511ab3fbc7b2f357b33ff30067f05a67b957bd458144b1e5eb92a2cecbb2f07ba4694
@@ -134,6 +134,7 @@ Bootsy.Modal.prototype.imageUploadFailed = function(_e, xhr, _status, error) {
134
134
  this.validation.text(invalidErrors.image_file[0]);
135
135
  this.$el.find('.bootsy-upload-form').append(this.validation);
136
136
  } else {
137
+ this.hideGalleryLoadingAnimation();
137
138
  alert($.fn.wysihtml5.locale[this.area.locale].bootsy.error);
138
139
  }
139
140
 
@@ -149,6 +150,7 @@ Bootsy.Modal.prototype.addImage = function(html) {
149
150
 
150
151
  // Set image gallery
151
152
  Bootsy.Modal.prototype.requestImageGallery = function() {
153
+ this.hideRefreshButton();
152
154
  this.showGalleryLoadingAnimation();
153
155
 
154
156
  $.ajax({
@@ -310,8 +310,7 @@ textarea.bootsy:required:invalid {
310
310
  }
311
311
 
312
312
  .bootsy-upload-loader {
313
- display: inline-block;
314
- padding-right: 5px;
313
+ margin: 0 10px -10px 0;
315
314
  }
316
315
 
317
316
  .bootsy-upload-spacer {
@@ -0,0 +1,39 @@
1
+ <svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-default <%= image_class %>">
2
+ <rect x="0" y="0" width="100" height="100" fill="none" class="bk"></rect>
3
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(0 50 50) translate(0 -30)">
4
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0s" repeatCount="indefinite"></animate>
5
+ </rect>
6
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(30 50 50) translate(0 -30)">
7
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.08333333333333333s" repeatCount="indefinite"></animate>
8
+ </rect>
9
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(60 50 50) translate(0 -30)">
10
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.16666666666666666s" repeatCount="indefinite"></animate>
11
+ </rect>
12
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(90 50 50) translate(0 -30)">
13
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.25s" repeatCount="indefinite"></animate>
14
+ </rect>
15
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(120 50 50) translate(0 -30)">
16
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.3333333333333333s" repeatCount="indefinite"></animate>
17
+ </rect>
18
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(150 50 50) translate(0 -30)">
19
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.4166666666666667s" repeatCount="indefinite"></animate>
20
+ </rect>
21
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(180 50 50) translate(0 -30)">
22
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.5s" repeatCount="indefinite"></animate>
23
+ </rect>
24
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(210 50 50) translate(0 -30)">
25
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.5833333333333334s" repeatCount="indefinite"></animate>
26
+ </rect>
27
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(240 50 50) translate(0 -30)">
28
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.6666666666666666s" repeatCount="indefinite"></animate>
29
+ </rect>
30
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(270 50 50) translate(0 -30)">
31
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.75s" repeatCount="indefinite"></animate>
32
+ </rect>
33
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(300 50 50) translate(0 -30)">
34
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.8333333333333334s" repeatCount="indefinite"></animate>
35
+ </rect>
36
+ <rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#ccc" transform="rotate(330 50 50) translate(0 -30)">
37
+ <animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.9166666666666666s" repeatCount="indefinite"></animate>
38
+ </rect>
39
+ </svg>
@@ -17,7 +17,7 @@
17
17
 
18
18
  <div class="row bootsy-gallery"></div>
19
19
 
20
- <%= image_tag 'bootsy/gallery-loader.gif', class: 'bootsy-gallery-loader' %>
20
+ <%= render 'bootsy/images/loader', image_class: 'bootsy-gallery-loader' %>
21
21
 
22
22
  <%= refresh_btn %>
23
23
  </div>
@@ -2,7 +2,7 @@
2
2
  html: { multipart: true, class: 'bootsy-upload-form form-inline' }, data: { type: 'json' }) do |f| %>
3
3
  <%= hidden_field_tag :authenticity_token, form_authenticity_token %>
4
4
 
5
- <%= image_tag 'bootsy/upload-loader.gif', class: 'bootsy-upload-loader' %>
5
+ <%= render 'bootsy/images/loader', image_class: 'bootsy-upload-loader' %>
6
6
 
7
7
  <div class="input-group">
8
8
  <%= f.url_field :remote_image_file_url, class: 'form-control', placeholder: t('bootsy.action.enter_image_url') %>
@@ -16,11 +16,7 @@ module Bootsy
16
16
  end
17
17
 
18
18
  config.after_initialize do
19
- if defined?(BOOTSY_ORM)
20
- orm = BOOTSY_ORM
21
- else
22
- orm = :activerecord
23
- end
19
+ orm = defined?(BOOTSY_ORM) ? BOOTSY_ORM : :activerecord
24
20
 
25
21
  # Require Active Record models. Other ORMs must
26
22
  # include their own Bootsy models.
@@ -71,9 +71,8 @@ module Bootsy
71
71
  end
72
72
 
73
73
  def bootsy_options(options)
74
- Bootsy.editor_options
75
- .merge(options[:editor_options] || {})
76
- .merge(uploader: enable_uploader?(options))
74
+ Bootsy.editor_options.merge(options[:editor_options] || {}).merge(
75
+ uploader: enable_uploader?(options))
77
76
  end
78
77
 
79
78
  def text_area_options(options)
@@ -1,4 +1,4 @@
1
1
  # Public: The gem version
2
2
  module Bootsy
3
- VERSION = '2.2.1'
3
+ VERSION = '2.2.2'.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.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volmer Soares
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-25 00:00:00.000000000 Z
11
+ date: 2016-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.3'
19
+ version: '4.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.3'
26
+ version: '4.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: carrierwave
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -62,8 +62,6 @@ files:
62
62
  - MIT-LICENSE
63
63
  - README.md
64
64
  - Rakefile
65
- - app/assets/images/bootsy/gallery-loader.gif
66
- - app/assets/images/bootsy/upload-loader.gif
67
65
  - app/assets/javascripts/bootsy.js
68
66
  - app/assets/javascripts/bootsy/area.js
69
67
  - app/assets/javascripts/bootsy/editor_options.js
@@ -82,6 +80,7 @@ files:
82
80
  - app/helpers/bootsy/application_helper.rb
83
81
  - app/uploaders/bootsy/image_uploader.rb
84
82
  - app/views/bootsy/images/_image.html.erb
83
+ - app/views/bootsy/images/_loader.html.erb
85
84
  - app/views/bootsy/images/_modal.html.erb
86
85
  - app/views/bootsy/images/_new.html.erb
87
86
  - config/locales/bootsy.en.yml