dropzonejs-rails 0.4.13 → 0.4.14

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: a01bf02af1fb57afc98313e4cfe4c9378e26c1ba
4
- data.tar.gz: 41e17d7c03ba5c2ae4dfbb6b986f0978d85a0b56
3
+ metadata.gz: 38cb81f37f74448c84d6833887e40a201323537b
4
+ data.tar.gz: 573b27ece4d569f44f8527ad88c2ce4fbf3cd640
5
5
  SHA512:
6
- metadata.gz: ec1dc1cb6eef290b3ad37c15d43196663a0c15fd832b57a152698b4a009bf72316cb3eaede7f25115a50aaae56b7fbfae455b0dd7358b8ed034b97f448fa381e
7
- data.tar.gz: cef97940155de5fd987cfcb62c8b31fec3088e240f60a6440294582ebd1c660df7a526776a69f69e4ad297b74c6877d705a0ebda8d80ff22731272c8574bb805
6
+ metadata.gz: 8ccbab0d0b89f6e3ff86a27910d3a8570a7d18abc1fc11c16d8379eed744b7bb5739cc0669b6d76d80938a4b06a4ad44a0baa0d871ed091f77155205cbb50606
7
+ data.tar.gz: 7743abe05f81a4806986d497f467f98d73c6957d5c033fec1a5942039eaae34b517271f5dffdabf45a323d0981b191cb94b5b16f3a3e0b0399d4e7bf160874aa
data/README.md CHANGED
@@ -4,7 +4,7 @@ Integrate [Matias Meno's Dropzone](http://www.dropzonejs.com/) awesome file uplo
4
4
 
5
5
  ## Version
6
6
 
7
- The latest version of this gem bundles **Dropzone v3.8.3**.
7
+ The latest version of this gem bundles **Dropzone v3.8.4**.
8
8
 
9
9
  ## Installation and usage
10
10
 
@@ -1,4 +1,4 @@
1
1
  module DropzonejsRails
2
- VERSION = '0.4.13'
3
- DROPZONE_VERSION = '3.8.3'
2
+ VERSION = '0.4.14'
3
+ DROPZONE_VERSION = '3.8.4'
4
4
  end
@@ -242,8 +242,7 @@ function mixin(obj) {
242
242
  * @api public
243
243
  */
244
244
 
245
- Emitter.prototype.on =
246
- Emitter.prototype.addEventListener = function(event, fn){
245
+ Emitter.prototype.on = function(event, fn){
247
246
  this._callbacks = this._callbacks || {};
248
247
  (this._callbacks[event] = this._callbacks[event] || [])
249
248
  .push(fn);
@@ -269,7 +268,7 @@ Emitter.prototype.once = function(event, fn){
269
268
  fn.apply(this, arguments);
270
269
  }
271
270
 
272
- on.fn = fn;
271
+ fn._off = on;
273
272
  this.on(event, on);
274
273
  return this;
275
274
  };
@@ -286,17 +285,8 @@ Emitter.prototype.once = function(event, fn){
286
285
 
287
286
  Emitter.prototype.off =
288
287
  Emitter.prototype.removeListener =
289
- Emitter.prototype.removeAllListeners =
290
- Emitter.prototype.removeEventListener = function(event, fn){
288
+ Emitter.prototype.removeAllListeners = function(event, fn){
291
289
  this._callbacks = this._callbacks || {};
292
-
293
- // all
294
- if (0 == arguments.length) {
295
- this._callbacks = {};
296
- return this;
297
- }
298
-
299
- // specific event
300
290
  var callbacks = this._callbacks[event];
301
291
  if (!callbacks) return this;
302
292
 
@@ -307,14 +297,8 @@ Emitter.prototype.removeEventListener = function(event, fn){
307
297
  }
308
298
 
309
299
  // remove specific handler
310
- var cb;
311
- for (var i = 0; i < callbacks.length; i++) {
312
- cb = callbacks[i];
313
- if (cb === fn || cb.fn === fn) {
314
- callbacks.splice(i, 1);
315
- break;
316
- }
317
- }
300
+ var i = callbacks.indexOf(fn._off || fn);
301
+ if (~i) callbacks.splice(i, 1);
318
302
  return this;
319
303
  };
320
304
 
@@ -891,10 +875,6 @@ require.register("dropzone/lib/dropzone.js", function(exports, require, module){
891
875
  },
892
876
  "dragend": function(e) {
893
877
  return _this.emit("dragend", e);
894
- },
895
- "paste": function(e) {
896
- noPropagation(e);
897
- return _this.paste(e);
898
878
  }
899
879
  }
900
880
  }
@@ -1100,7 +1080,6 @@ require.register("dropzone/lib/dropzone.js", function(exports, require, module){
1100
1080
 
1101
1081
  Dropzone.prototype.paste = function(e) {
1102
1082
  var items, _ref;
1103
- return;
1104
1083
  if ((e != null ? (_ref = e.clipboardData) != null ? _ref.items : void 0 : void 0) == null) {
1105
1084
  return;
1106
1085
  }
@@ -1586,7 +1565,7 @@ require.register("dropzone/lib/dropzone.js", function(exports, require, module){
1586
1565
 
1587
1566
  })(Em);
1588
1567
 
1589
- Dropzone.version = "3.8.3";
1568
+ Dropzone.version = "3.8.4";
1590
1569
 
1591
1570
  Dropzone.options = {};
1592
1571
 
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropzonejs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.13
4
+ version: 0.4.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Nahuel Cuesta Luengo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-27 00:00:00.000000000 Z
11
+ date: 2014-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>'
31
+ - - ">"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>'
38
+ - - ">"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.1'
41
41
  description: Adds Dropzone, a great JS File upload by Matias Meno, to the Rails Asset
@@ -46,18 +46,18 @@ executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
+ - LICENSE
50
+ - README.md
51
+ - Rakefile
52
+ - lib/dropzonejs-rails.rb
49
53
  - lib/dropzonejs-rails/engine.rb
50
54
  - lib/dropzonejs-rails/version.rb
51
- - lib/dropzonejs-rails.rb
52
55
  - lib/generators/dropzonejs-rails/install/install_generator.rb
53
56
  - vendor/assets/images/dropzone/spritemap.png
54
57
  - vendor/assets/images/dropzone/spritemap@2x.png
55
58
  - vendor/assets/javascripts/dropzone.js
56
59
  - vendor/assets/stylesheets/dropzone/basic.css.scss
57
60
  - vendor/assets/stylesheets/dropzone/dropzone.css.scss
58
- - LICENSE
59
- - Rakefile
60
- - README.md
61
61
  homepage: http://www.github.com/ncuesta/dropzonejs-rails
62
62
  licenses: []
63
63
  metadata: {}
@@ -67,17 +67,17 @@ require_paths:
67
67
  - lib
68
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - '>='
70
+ - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.1.11
80
+ rubygems_version: 2.2.2
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Integrates Dropzone JS File upload into Rails Asset pipeline.