ezdz-rails 0.4.2 → 0.4.3

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: b5e5d032009840fea60e00d63f1b044cdaa21de7
4
- data.tar.gz: d9727623474f9bc97ae4c45bb6a6b6d04122d329
3
+ metadata.gz: 36cbea46c28756e98ccca2362918fb0658675dbb
4
+ data.tar.gz: e7fad9012f943c7dab18e93d0791777dca569486
5
5
  SHA512:
6
- metadata.gz: 4656d2357c3b9b67e4e8946d6b2f0d6c0e78d60b4932c445ae53c693b173d2488f8471e31fd00d9f497a7928f6b282db548056c0b0a770cc0a2f5b393e5f7755
7
- data.tar.gz: ca64f1d61bcb3ed755b7b7e83350245999af0cff091751012dd799defa9e0d34bf110f2d88ec3c64ac211375a35c15688c26efbf1997c0c7a30d0e5537cf79a0
6
+ metadata.gz: 9a492f16edd4e0a9bea624e87fa72534a79f9e130779477c0aedd150430e8777e3e48cb3c3e11b2519548f1f571210214adc31a8c0c0dcdebbf8faf8e1c07a75
7
+ data.tar.gz: 1e0862915c6f5c326a7a44fb4b5e057c86efc1cc7243138f869b80130dc37e8f2a075a30e8a3e1fe5e22c4231ac8555fd1fd10a89c2a99e3732f4bb23ccb6d8e
@@ -1,5 +1,5 @@
1
1
  module Ezdz
2
2
  module Rails
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  // Ezdz [izy-dizy]
3
- // v0.4.2 - released 2014-10-20 13:45
3
+ // v0.4.3 - released 2014-12-16 11:29
4
4
  // Licensed under the MIT license.
5
5
  // https://github.com/jaysalvat/ezdz
6
6
  // ----------------------------------------------------------------------------
@@ -59,7 +59,6 @@
59
59
  $.ezdz = function(element, options) {
60
60
  this.settings = $.extend(true, {}, defaults, $.ezdz.defaults, options);
61
61
  this.$input = $(element);
62
-
63
62
  var self = this,
64
63
  settings = self.settings,
65
64
  $input = self.$input;
@@ -165,6 +164,11 @@
165
164
  $.each(types, function(i, type) {
166
165
  type = $.trim(type);
167
166
 
167
+ if ('.' + extension === type) {
168
+ accepted = true;
169
+ return false;
170
+ }
171
+
168
172
  if (file.type === type) {
169
173
  accepted = true;
170
174
  return false;
@@ -368,14 +372,18 @@
368
372
  // jQuery plugin
369
373
  $.fn.ezdz = function(options) {
370
374
  var args = arguments,
375
+ plugin;
376
+
377
+ return this.each(function () {
371
378
  plugin = $(this).data('ezdz');
372
379
 
373
- if (!plugin) {
374
- return $(this).data('ezdz', new $.ezdz(this, options));
375
- } if (plugin[options]) {
376
- return plugin[options].apply(plugin, Array.prototype.slice.call(args, 1));
377
- } else {
378
- $.error('Ezdz error - Method ' + options + ' does not exist.');
379
- }
380
+ if (!plugin) {
381
+ return $(this).data('ezdz', new $.ezdz(this, options));
382
+ } if (plugin[options]) {
383
+ return plugin[options].apply(plugin, Array.prototype.slice.call(args, 1));
384
+ } else {
385
+ $.error('Ezdz error - Method ' + options + ' does not exist.');
386
+ }
387
+ });
380
388
  };
381
389
  }));
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  // Ezdz [izy-dizy]
3
- // v0.4.2 - released 2014-10-20 13:45
3
+ // v0.4.3 - released 2014-12-16 11:29
4
4
  // Licensed under the MIT license.
5
5
  // https://github.com/jaysalvat/ezdz
6
6
  // ----------------------------------------------------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezdz-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedr Browne