jquery.fileupload-rails 1.5.0 → 1.5.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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Zjc5NzI4Zjc3YTMyMzM1YTAxZWU5YWUyM2U3NjZmMmMwYThjZTcwZA==
4
+ ZjgzMTExMGIwZTc2Y2U2Y2MzN2YwNzkxOThkYzEzMjg1NDI3YjRiYg==
5
5
  data.tar.gz: !binary |-
6
- MDliNDJmYTRlNGNjMDUzZGRkZjY2N2UyMTJjNmZkNGUwNDFiYWMyNg==
6
+ YzZlOWYyY2YzZWUxYmZhMjllZDI0N2RmNjY4NGNmYjJkY2Q1NmY1Yg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTNkMjZjMmMxZWI0MWFiMjI5MjIyMzFlZjViYzJjZTA0NmVmYWE2MjQ4OGFj
10
- ZTA3NWFiOGRlMWNiYWQ3NjJjMmEyMzJlZWI5N2EwZjEyZjM2ZjIyNjdhMTNi
11
- ZjFlNmFmNTEzZjg2OTVkMzViZTE1NWQzYjQzYzEzZTI5YmViOTU=
9
+ ZDkzYmRjMDdjZmZiYTE5MGZlMmRlZjQxM2IzNjJlMjQ5ZWIxODMxZmYxNjEy
10
+ N2IyNzNiMzFmMGUyMWIwNGNmNzdmMmYyMDY0YTgzYTkzYWJkMzRmMjQ5NjVj
11
+ MjE3MjM5MjI1YWM4ZDFlY2RiMmQ4MjZhYzBkMzMxZjJkNjVkY2Q=
12
12
  data.tar.gz: !binary |-
13
- YTU3ODQzNzU3ZGM3NDhkNGIxYjM3NjZhNzRhNzg3MmVlOTA2MDg4N2FiYjRh
14
- ZjNhODRiNTAxOGMxOGZlMzY3MWQwMTFlZTE3NzU3Yjg3ZGU0MzgyOGI2OTdm
15
- MDc0NDliYWE3YmJiOTg5MzJjM2ViOWE2MmZjYjBlOWQwOWU2Zjk=
13
+ YmI0YmY1ZGQ4MGYxMzEyNWJjMmZkZjNiZTNlOTRjMGRiYjQ0YTEyYjYyNTJk
14
+ Njc1MTgyNmEzN2M2YWM1MmE5OGZjZDhlODEyNTVmNTJmYzA5MmU1YjczMDQ0
15
+ MTQ3YjZlNWEyYTQxMGZkMWZiMjlhZDNkZGU5MWRiZWY0YmIzZDA=
data/Readme.md CHANGED
@@ -41,6 +41,8 @@ If you downloaded jquery.ui assets into your project, delete them and use [jquer
41
41
 
42
42
  ## Changelog
43
43
 
44
+ 1.5.1. Core 5.31.
45
+
44
46
  1.5.0. Core 5.30.
45
47
 
46
48
  1.4.1. Core 5.28.8.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "jquery.fileupload-rails"
5
- s.version = "1.5.0"
5
+ s.version = "1.5.1"
6
6
  s.author = "Semyon Perepelitsa"
7
7
  s.email = "sema@sema.in"
8
8
  s.homepage = "https://github.com/semaperepelitsa/jquery.fileupload-rails"
@@ -2,7 +2,7 @@
2
2
  //= require jquery.iframe-transport
3
3
 
4
4
  /*
5
- * jQuery File Upload Plugin 5.30
5
+ * jQuery File Upload Plugin 5.31
6
6
  * https://github.com/blueimp/jQuery-File-Upload
7
7
  *
8
8
  * Copyright 2010, Sebastian Tschan
@@ -226,8 +226,9 @@
226
226
  cache: false
227
227
  },
228
228
 
229
- // A list of options that require a refresh after assigning a new value:
230
- _refreshOptionsList: [
229
+ // A list of options that require reinitializing event listeners and/or
230
+ // special initialization code:
231
+ _specialOptions: [
231
232
  'fileInput',
232
233
  'dropZone',
233
234
  'pasteZone',
@@ -1153,12 +1154,12 @@
1153
1154
  },
1154
1155
 
1155
1156
  _setOption: function (key, value) {
1156
- var refresh = $.inArray(key, this._refreshOptionsList) !== -1;
1157
- if (refresh) {
1157
+ var reinit = $.inArray(key, this._specialOptions) !== -1;
1158
+ if (reinit) {
1158
1159
  this._destroyEventHandlers();
1159
1160
  }
1160
1161
  this._super(key, value);
1161
- if (refresh) {
1162
+ if (reinit) {
1162
1163
  this._initSpecialOptions();
1163
1164
  this._initEventHandlers();
1164
1165
  }
@@ -1187,6 +1188,11 @@
1187
1188
  return new RegExp(parts.join('/'), modifiers);
1188
1189
  },
1189
1190
 
1191
+ _isRegExpOption: function (key, value) {
1192
+ return key !== 'url' && $.type(value) === 'string' &&
1193
+ /^\/.*\/[igm]{0,3}$/.test(value);
1194
+ },
1195
+
1190
1196
  _initDataAttributes: function () {
1191
1197
  var that = this,
1192
1198
  options = this.options;
@@ -1194,9 +1200,7 @@
1194
1200
  $.each(
1195
1201
  $(this.element[0].cloneNode(false)).data(),
1196
1202
  function (key, value) {
1197
- // Initialize RegExp options:
1198
- if ($.type(value) === 'string' &&
1199
- value.charAt(0) === '/') {
1203
+ if (that._isRegExpOption(key, value)) {
1200
1204
  value = that._getRegExp(value);
1201
1205
  }
1202
1206
  options[key] = value;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery.fileupload-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Semyon Perepelitsa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-27 00:00:00.000000000 Z
11
+ date: 2013-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  prerelease: false