dropzonejs-rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjYwZWZlZmU2MjdjOGNmYWM4MzFjMGVhMDBkMzUwYWU2YTAxYmUzZQ==
4
+ MDg5ZDdkNzZiNjA1YWMyODg5ZWMwMWU0MzA1NTg3NDI3ZTAyNmM2ZQ==
5
5
  data.tar.gz: !binary |-
6
- ZWY2Yjk4NjE1NDJlMzlkNjkxNzc3NzU1ZjU4YzFhMzMzMDUzMDFmZg==
6
+ MDliMTUyMTk0NDNhNGRiOTIxMGYwODc1NzRiNzk3YzU1OTU5ODQ5YQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjE3OTRiNWFkZDg0MDM0ODc0NDJjY2ViYmMyZDRmNmVhMTM0YjMwMWQ3MWM4
10
- YmFmYzZkMzBmZWE3MDI3YzAyMTk0ZTk3MTFjN2VlNzA1ODhlNWIxODFmNDdm
11
- NGQxNmEwOTZiMWUxM2EyYmU3ODFkMjRhZTAwMDc1Zjg2MjhiMjI=
9
+ ZTg5ZDdhNTdjOWM5NmExMzBmNmI3YjllM2FjYTFmN2JjMTNiYWQyODNjMjUy
10
+ NzUzZDNlNjNhMTQwMDJjOTQxMWE1MzIyZDJlMTBlYmZkNGI0YjQwMGZkNmIy
11
+ YmFjZjY3N2EwMTA1MmMzODI4NTQ3OWIxYWZiOTU2ODU3NDM5NTM=
12
12
  data.tar.gz: !binary |-
13
- YzYwNDY4OThhNGU1YjQ0YTJjZTQ5MmZhM2E3NWNhNDVjNGIzOWZlMDk1ZGNl
14
- YjU0YTI2Yjc0MDdmZTE4MWRkNWVhNmE2YTI1Y2U5NzY0NWJkMjBjZTBhNzMx
15
- ZjMxM2Y0ZjQyZjZmNDFlNGE2Zjg2ZGU0ZWZkMTA5M2M1N2IxMmI=
13
+ ZDYxYzc1ZmZkODk4ZWI1Nzg1ZmRlODU4YjliZmUwNGY1MDU1YmJkODRkOWEx
14
+ MzZkZWJhYzFjMjNiMzA5MTFlMjY4YWVkMWFlYTZmZmMyYjkxNzg2YTUyZWEy
15
+ YjIxNTZhNDcxOGRlMGVhN2VhMzU3NTExMmIwNDAyYzg5YzUxYWQ=
@@ -1,4 +1,4 @@
1
1
  module DropzonejsRails
2
- VERSION = '0.1.0'
3
- DROPZONE_VERSION = '2.0.0'
2
+ VERSION = '0.1.1'
3
+ DROPZONE_VERSION = '2.0.1'
4
4
  end
@@ -70,6 +70,7 @@ require.aliases = {};
70
70
  */
71
71
 
72
72
  require.resolve = function(path) {
73
+ if (path.charAt(0) === '/') path = path.slice(1);
73
74
  var index = path + '/index.js';
74
75
 
75
76
  var paths = [
@@ -182,17 +183,18 @@ require.relative = function(parent) {
182
183
  */
183
184
 
184
185
  localRequire.resolve = function(path) {
186
+ var c = path.charAt(0);
187
+ if ('/' == c) return path.slice(1);
188
+ if ('.' == c) return require.normalize(p, path);
189
+
185
190
  // resolve deps by returning
186
191
  // the dep in the nearest "deps"
187
192
  // directory
188
- if ('.' != path.charAt(0)) {
189
- var segs = parent.split('/');
190
- var i = lastIndexOf(segs, 'deps') + 1;
191
- if (!i) i = 0;
192
- path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
193
- return path;
194
- }
195
- return require.normalize(p, path);
193
+ var segs = parent.split('/');
194
+ var i = lastIndexOf(segs, 'deps') + 1;
195
+ if (!i) i = 0;
196
+ path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
197
+ return path;
196
198
  };
197
199
 
198
200
  /**
@@ -409,7 +411,7 @@ require.register("dropzone/lib/dropzone.js", function(exports, require, module){
409
411
 
410
412
  __extends(Dropzone, _super);
411
413
 
412
- Dropzone.prototype.version = "2.0.0";
414
+ Dropzone.prototype.version = "2.0.1";
413
415
 
414
416
  /*
415
417
  This is a list of all available events you can register on a dropzone object.
@@ -891,8 +893,8 @@ require.register("dropzone/lib/dropzone.js", function(exports, require, module){
891
893
  return _this.errorProcessing(file, xhr.responseText || ("Server responded with " + xhr.status + " code."));
892
894
  };
893
895
  xhr.onload = function(e) {
894
- var response;
895
- if (xhr.status !== 200) {
896
+ var response, _ref;
897
+ if (!((200 <= (_ref = xhr.status) && _ref < 300))) {
896
898
  return handleError();
897
899
  } else {
898
900
  _this.emit("uploadprogress", file, 100);
@@ -1121,7 +1123,7 @@ require.alias("component-emitter/index.js", "dropzone/deps/emitter/index.js");
1121
1123
  if (typeof exports == "object") {
1122
1124
  module.exports = require("dropzone");
1123
1125
  } else if (typeof define == "function" && define.amd) {
1124
- define(require("dropzone"));
1126
+ define(function(){ return require("dropzone"); });
1125
1127
  } else {
1126
1128
  window["Dropzone"] = require("dropzone");
1127
1129
  }})();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropzonejs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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: 2013-03-12 00:00:00.000000000 Z
11
+ date: 2013-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails