jquery.fileupload-rails 1.8.0 → 1.8.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bf21e6407433ab2910ed3579e010eca9f350626
4
- data.tar.gz: 4879e8e4dfd53fa02cb9a5e92a87ee2798a5f75d
3
+ metadata.gz: 6ba3def84aaf253857ac5d6b97d5ec7972b06e17
4
+ data.tar.gz: 7d6ab39c52a6023a6d4e274ec7f05793e85d8600
5
5
  SHA512:
6
- metadata.gz: a42d4ce5e2fb2cdccff283ecfb56628afc19f5b5fc57120fcb97cf9e753d1261890e6d5c31d6c493ccfe5838cace5a16ddf8b782316706a83079dc8382ab8bb7
7
- data.tar.gz: 75d2ec6fa20bb3eefdda82cd079542a367f1e969d1cb1d3bd961cf2cbef770a6bd4e7e348aafc00b126c37329ec155d2770bd4c41edce626b7d55f1009a75fe6
6
+ metadata.gz: cf1b23d3b4cd589c30adb6f080871f859ab0d02652ad9818bef8c9719649636283bec25514c9d093272677da1d11470b583afc6b366c42e90c8ef86d5f64c1d7
7
+ data.tar.gz: 00726559ee983ff61dbaca0cd99602d61675e0fd860d49a8e8d2d7d39d60f47725126aedf133563762cff8ad151e9a718faeee6f98d3cfe4760bb207e86b3f13
data/Readme.md CHANGED
@@ -39,6 +39,8 @@ If you downloaded jquery.ui assets into your project, delete them and use [jquer
39
39
 
40
40
  ## Changelog
41
41
 
42
+ 1.8.1. Core 5.40.1.
43
+
42
44
  1.8.0. Core 5.40.0, updated demo app.
43
45
 
44
46
  1.7.0. Core 5.34.0.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "jquery.fileupload-rails"
5
- s.version = "1.8.0"
5
+ s.version = "1.8.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.40.0
5
+ * jQuery File Upload Plugin 5.40.1
6
6
  * https://github.com/blueimp/jQuery-File-Upload
7
7
  *
8
8
  * Copyright 2010, Sebastian Tschan
@@ -1310,15 +1310,21 @@
1310
1310
 
1311
1311
  _initDataAttributes: function () {
1312
1312
  var that = this,
1313
- options = this.options;
1313
+ options = this.options,
1314
+ clone = $(this.element[0].cloneNode(false));
1314
1315
  // Initialize options set via HTML5 data-attributes:
1315
1316
  $.each(
1316
- $(this.element[0].cloneNode(false)).data(),
1317
+ clone.data(),
1317
1318
  function (key, value) {
1318
- if (that._isRegExpOption(key, value)) {
1319
- value = that._getRegExp(value);
1319
+ var dataAttributeName = 'data-' +
1320
+ // Convert camelCase to hyphen-ated key:
1321
+ key.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
1322
+ if (clone.attr(dataAttributeName)) {
1323
+ if (that._isRegExpOption(key, value)) {
1324
+ value = that._getRegExp(value);
1325
+ }
1326
+ options[key] = value;
1320
1327
  }
1321
- options[key] = value;
1322
1328
  }
1323
1329
  );
1324
1330
  },
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.8.0
4
+ version: 1.8.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: 2014-01-08 00:00:00.000000000 Z
11
+ date: 2014-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.2.0
109
+ rubygems_version: 2.2.2
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Use jQuery File Upload plugin with Rails 3