vuejs 1.0.24 → 1.0.25

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: 35cc0574531cf578c2a4c17ba481c8a995e0e64b
4
- data.tar.gz: 0eb7c790bd6fb881528a093927d607e25e2c1f08
3
+ metadata.gz: 3cf999a581453ab61637b9fd0a201a59ee27de40
4
+ data.tar.gz: 056762dd930a7dc0b35562c3a709ec110669848d
5
5
  SHA512:
6
- metadata.gz: 4298bd0e5f57c2a2cc246f47ad28e80ca1a9c35cc37e24ab240215102715f4ca25da1c41fa6842edde2060300d8272aaebfd749424e5a2f6e58cf0f7c2d0e148
7
- data.tar.gz: f89c58b398ab03d10a66477cd46ae1d6a8afa253d3e204d4d209b17a44afa410ea589c62e38e70655c2ce488edda133d85bdcebea206dd54ffe92c2afb6ceb0d
6
+ metadata.gz: 4491279770eeda3b9b05ddd1ffa04808947cad984171d710d320c1f6900c095f85700c08576acaca5d300e3b912772e4881fe5dac784b7c2917238786139d8cb
7
+ data.tar.gz: 41b105e5f6587e8043b66ed449f72513c773d74ea1a5bd90cf50c66d4f6073c6b36e94dfa2f28bc4b38c40efa59919324e5f865d58d347a5dc7e6602664a2439
@@ -1,3 +1,3 @@
1
1
  module Vuejs
2
- VERSION = "1.0.24"
2
+ VERSION = "1.0.25"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue-resource v0.7.0
2
+ * vue-resource v0.7.2
3
3
  * https://github.com/vuejs/vue-resource
4
4
  * Released under the MIT License.
5
5
  */
@@ -64,7 +64,11 @@ return /******/ (function(modules) { // webpackBootstrap
64
64
  * Install plugin.
65
65
  */
66
66
 
67
- function install(Vue) {
67
+ function plugin(Vue) {
68
+
69
+ if (plugin.installed) {
70
+ return;
71
+ }
68
72
 
69
73
  var _ = __webpack_require__(1);
70
74
 
@@ -80,50 +84,55 @@ return /******/ (function(modules) { // webpackBootstrap
80
84
  Object.defineProperties(Vue.prototype, {
81
85
 
82
86
  $url: {
83
- get: function () {
87
+ get: function get() {
84
88
  return _.options(Vue.url, this, this.$options.url);
85
89
  }
86
90
  },
87
91
 
88
92
  $http: {
89
- get: function () {
93
+ get: function get() {
90
94
  return _.options(Vue.http, this, this.$options.http);
91
95
  }
92
96
  },
93
97
 
94
98
  $resource: {
95
- get: function () {
99
+ get: function get() {
96
100
  return Vue.resource.bind(this);
97
101
  }
98
102
  },
99
103
 
100
104
  $promise: {
101
- get: function () {
105
+ get: function get() {
106
+ var _this = this;
107
+
102
108
  return function (executor) {
103
- return new Vue.Promise(executor, this);
104
- }.bind(this);
109
+ return new Vue.Promise(executor, _this);
110
+ };
105
111
  }
106
112
  }
107
113
 
108
114
  });
109
115
  }
110
116
 
111
- if (window.Vue) {
112
- Vue.use(install);
117
+ if (typeof window !== 'undefined' && window.Vue) {
118
+ window.Vue.use(plugin);
113
119
  }
114
120
 
115
- module.exports = install;
116
-
121
+ module.exports = plugin;
117
122
 
118
123
  /***/ },
119
124
  /* 1 */
120
125
  /***/ function(module, exports) {
121
126
 
127
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
128
+
122
129
  /**
123
130
  * Utility functions.
124
131
  */
125
132
 
126
- var _ = exports, array = [], console = window.console;
133
+ var _ = exports,
134
+ array = [],
135
+ console = window.console;
127
136
 
128
137
  _.warn = function (msg) {
129
138
  if (console && _.warning && (!_.config.silent || _.config.debug)) {
@@ -156,7 +165,7 @@ return /******/ (function(modules) { // webpackBootstrap
156
165
  };
157
166
 
158
167
  _.isObject = function (obj) {
159
- return obj !== null && typeof obj === 'object';
168
+ return obj !== null && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object';
160
169
  };
161
170
 
162
171
  _.isPlainObject = function (obj) {
@@ -171,7 +180,7 @@ return /******/ (function(modules) { // webpackBootstrap
171
180
  options = options.call(obj);
172
181
  }
173
182
 
174
- return _.merge(fn.bind({$vm: obj, $options: options}), fn, {$options: options});
183
+ return _.merge(fn.bind({ $vm: obj, $options: options }), fn, { $options: options });
175
184
  };
176
185
 
177
186
  _.each = function (obj, iterator) {
@@ -242,7 +251,6 @@ return /******/ (function(modules) { // webpackBootstrap
242
251
  }
243
252
  }
244
253
 
245
-
246
254
  /***/ },
247
255
  /* 2 */
248
256
  /***/ function(module, exports, __webpack_require__) {
@@ -257,10 +265,11 @@ return /******/ (function(modules) { // webpackBootstrap
257
265
 
258
266
  function Url(url, params) {
259
267
 
260
- var options = url, transform;
268
+ var options = url,
269
+ transform;
261
270
 
262
271
  if (_.isString(url)) {
263
- options = {url: url, params: params};
272
+ options = { url: url, params: params };
264
273
  }
265
274
 
266
275
  options = _.merge({}, Url.options, this.$options, options);
@@ -286,12 +295,7 @@ return /******/ (function(modules) { // webpackBootstrap
286
295
  * Url transforms.
287
296
  */
288
297
 
289
- Url.transforms = [
290
- __webpack_require__(3),
291
- __webpack_require__(5),
292
- __webpack_require__(6),
293
- __webpack_require__(7)
294
- ];
298
+ Url.transforms = [__webpack_require__(3), __webpack_require__(5), __webpack_require__(6), __webpack_require__(7)];
295
299
 
296
300
  /**
297
301
  * Encodes a Url parameter string.
@@ -301,7 +305,8 @@ return /******/ (function(modules) { // webpackBootstrap
301
305
 
302
306
  Url.params = function (obj) {
303
307
 
304
- var params = [], escape = encodeURIComponent;
308
+ var params = [],
309
+ escape = encodeURIComponent;
305
310
 
306
311
  params.add = function (key, value) {
307
312
 
@@ -356,7 +361,9 @@ return /******/ (function(modules) { // webpackBootstrap
356
361
 
357
362
  function serialize(params, obj, scope) {
358
363
 
359
- var array = _.isArray(obj), plain = _.isPlainObject(obj), hash;
364
+ var array = _.isArray(obj),
365
+ plain = _.isPlainObject(obj),
366
+ hash;
360
367
 
361
368
  _.each(obj, function (value, key) {
362
369
 
@@ -378,7 +385,6 @@ return /******/ (function(modules) { // webpackBootstrap
378
385
 
379
386
  module.exports = _.url = Url;
380
387
 
381
-
382
388
  /***/ },
383
389
  /* 3 */
384
390
  /***/ function(module, exports, __webpack_require__) {
@@ -391,7 +397,8 @@ return /******/ (function(modules) { // webpackBootstrap
391
397
 
392
398
  module.exports = function (options) {
393
399
 
394
- var variables = [], url = UrlTemplate.expand(options.url, options.params, variables);
400
+ var variables = [],
401
+ url = UrlTemplate.expand(options.url, options.params, variables);
395
402
 
396
403
  variables.forEach(function (key) {
397
404
  delete options.params[key];
@@ -400,7 +407,6 @@ return /******/ (function(modules) { // webpackBootstrap
400
407
  return url;
401
408
  };
402
409
 
403
-
404
410
  /***/ },
405
411
  /* 4 */
406
412
  /***/ function(module, exports) {
@@ -411,7 +417,8 @@ return /******/ (function(modules) { // webpackBootstrap
411
417
 
412
418
  exports.expand = function (url, params, variables) {
413
419
 
414
- var tmpl = this.parse(url), expanded = tmpl.expand(params);
420
+ var tmpl = this.parse(url),
421
+ expanded = tmpl.expand(params);
415
422
 
416
423
  if (variables) {
417
424
  variables.push.apply(variables, tmpl.vars);
@@ -422,15 +429,17 @@ return /******/ (function(modules) { // webpackBootstrap
422
429
 
423
430
  exports.parse = function (template) {
424
431
 
425
- var operators = ['+', '#', '.', '/', ';', '?', '&'], variables = [];
432
+ var operators = ['+', '#', '.', '/', ';', '?', '&'],
433
+ variables = [];
426
434
 
427
435
  return {
428
436
  vars: variables,
429
- expand: function (context) {
437
+ expand: function expand(context) {
430
438
  return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
431
439
  if (expression) {
432
440
 
433
- var operator = null, values = [];
441
+ var operator = null,
442
+ values = [];
434
443
 
435
444
  if (operators.indexOf(expression.charAt(0)) !== -1) {
436
445
  operator = expression.charAt(0);
@@ -457,7 +466,6 @@ return /******/ (function(modules) { // webpackBootstrap
457
466
  } else {
458
467
  return values.join(',');
459
468
  }
460
-
461
469
  } else {
462
470
  return exports.encodeReserved(literal);
463
471
  }
@@ -468,7 +476,8 @@ return /******/ (function(modules) { // webpackBootstrap
468
476
 
469
477
  exports.getValues = function (context, operator, key, modifier) {
470
478
 
471
- var value = context[key], result = [];
479
+ var value = context[key],
480
+ result = [];
472
481
 
473
482
  if (this.isDefined(value) && value !== '') {
474
483
  if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
@@ -538,7 +547,7 @@ return /******/ (function(modules) { // webpackBootstrap
538
547
 
539
548
  exports.encodeValue = function (operator, value, key) {
540
549
 
541
- value = (operator === '+' || operator === '#') ? this.encodeReserved(value) : encodeURIComponent(value);
550
+ value = operator === '+' || operator === '#' ? this.encodeReserved(value) : encodeURIComponent(value);
542
551
 
543
552
  if (key) {
544
553
  return encodeURIComponent(key) + '=' + value;
@@ -556,7 +565,6 @@ return /******/ (function(modules) { // webpackBootstrap
556
565
  }).join('');
557
566
  };
558
567
 
559
-
560
568
  /***/ },
561
569
  /* 5 */
562
570
  /***/ function(module, exports, __webpack_require__) {
@@ -569,7 +577,8 @@ return /******/ (function(modules) { // webpackBootstrap
569
577
 
570
578
  module.exports = function (options, next) {
571
579
 
572
- var variables = [], url = next(options);
580
+ var variables = [],
581
+ url = next(options);
573
582
 
574
583
  url = url.replace(/(\/?):([a-z]\w*)/gi, function (match, slash, name) {
575
584
 
@@ -592,23 +601,14 @@ return /******/ (function(modules) { // webpackBootstrap
592
601
 
593
602
  function encodeUriSegment(value) {
594
603
 
595
- return encodeUriQuery(value, true).
596
- replace(/%26/gi, '&').
597
- replace(/%3D/gi, '=').
598
- replace(/%2B/gi, '+');
604
+ return encodeUriQuery(value, true).replace(/%26/gi, '&').replace(/%3D/gi, '=').replace(/%2B/gi, '+');
599
605
  }
600
606
 
601
607
  function encodeUriQuery(value, spaces) {
602
608
 
603
- return encodeURIComponent(value).
604
- replace(/%40/gi, '@').
605
- replace(/%3A/gi, ':').
606
- replace(/%24/g, '$').
607
- replace(/%2C/gi, ',').
608
- replace(/%20/g, (spaces ? '%20' : '+'));
609
+ return encodeURIComponent(value).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, spaces ? '%20' : '+');
609
610
  }
610
611
 
611
-
612
612
  /***/ },
613
613
  /* 6 */
614
614
  /***/ function(module, exports, __webpack_require__) {
@@ -621,9 +621,11 @@ return /******/ (function(modules) { // webpackBootstrap
621
621
 
622
622
  module.exports = function (options, next) {
623
623
 
624
- var urlParams = Object.keys(_.url.options.params), query = {}, url = next(options);
624
+ var urlParams = Object.keys(_.url.options.params),
625
+ query = {},
626
+ url = next(options);
625
627
 
626
- _.each(options.params, function (value, key) {
628
+ _.each(options.params, function (value, key) {
627
629
  if (urlParams.indexOf(key) === -1) {
628
630
  query[key] = value;
629
631
  }
@@ -638,7 +640,6 @@ return /******/ (function(modules) { // webpackBootstrap
638
640
  return url;
639
641
  };
640
642
 
641
-
642
643
  /***/ },
643
644
  /* 7 */
644
645
  /***/ function(module, exports, __webpack_require__) {
@@ -660,7 +661,6 @@ return /******/ (function(modules) { // webpackBootstrap
660
661
  return url;
661
662
  };
662
663
 
663
-
664
664
  /***/ },
665
665
  /* 8 */
666
666
  /***/ function(module, exports, __webpack_require__) {
@@ -673,22 +673,24 @@ return /******/ (function(modules) { // webpackBootstrap
673
673
  var Client = __webpack_require__(9);
674
674
  var Promise = __webpack_require__(10);
675
675
  var interceptor = __webpack_require__(13);
676
- var jsonType = {'Content-Type': 'application/json'};
676
+ var jsonType = { 'Content-Type': 'application/json' };
677
677
 
678
678
  function Http(url, options) {
679
+ var _this = this;
679
680
 
680
- var client = Client, request, promise;
681
+ var client = Client,
682
+ request,
683
+ promise;
681
684
 
682
685
  Http.interceptors.forEach(function (handler) {
683
- client = interceptor(handler, this.$vm)(client);
684
- }, this);
686
+ client = interceptor(handler, _this.$vm)(client);
687
+ });
685
688
 
686
- options = _.isObject(url) ? url : _.extend({url: url}, options);
689
+ options = _.isObject(url) ? url : _.extend({ url: url }, options);
687
690
  request = _.merge({}, Http.options, this.$options, options);
688
691
  promise = client(request).bind(this.$vm).then(function (response) {
689
692
 
690
693
  return response.ok ? response : Promise.reject(response);
691
-
692
694
  }, function (response) {
693
695
 
694
696
  if (response instanceof Error) {
@@ -724,23 +726,15 @@ return /******/ (function(modules) { // webpackBootstrap
724
726
  timeout: 0
725
727
  };
726
728
 
727
- Http.interceptors = [
728
- __webpack_require__(14),
729
- __webpack_require__(15),
730
- __webpack_require__(16),
731
- __webpack_require__(18),
732
- __webpack_require__(19),
733
- __webpack_require__(20),
734
- __webpack_require__(21)
735
- ];
729
+ Http.interceptors = [__webpack_require__(14), __webpack_require__(15), __webpack_require__(16), __webpack_require__(18), __webpack_require__(19), __webpack_require__(20), __webpack_require__(21)];
736
730
 
737
731
  Http.headers = {
738
732
  put: jsonType,
739
733
  post: jsonType,
740
734
  patch: jsonType,
741
735
  delete: jsonType,
742
- common: {'Accept': 'application/json, text/plain, */*'},
743
- custom: {'X-Requested-With': 'XMLHttpRequest'}
736
+ common: { 'Accept': 'application/json, text/plain, */*' },
737
+ custom: { 'X-Requested-With': 'XMLHttpRequest' }
744
738
  };
745
739
 
746
740
  ['get', 'put', 'post', 'patch', 'delete', 'jsonp'].forEach(function (method) {
@@ -758,13 +752,12 @@ return /******/ (function(modules) { // webpackBootstrap
758
752
  success = undefined;
759
753
  }
760
754
 
761
- return this(url, _.extend({method: method, data: data, success: success}, options));
755
+ return this(url, _.extend({ method: method, data: data, success: success }, options));
762
756
  };
763
757
  });
764
758
 
765
759
  module.exports = _.http = Http;
766
760
 
767
-
768
761
  /***/ },
769
762
  /* 9 */
770
763
  /***/ function(module, exports, __webpack_require__) {
@@ -795,19 +788,20 @@ return /******/ (function(modules) { // webpackBootstrap
795
788
 
796
789
  return headers;
797
790
  };
798
-
799
791
  }
800
792
 
801
793
  response.ok = response.status >= 200 && response.status < 300;
802
794
 
803
795
  return response;
804
796
  });
805
-
806
797
  };
807
798
 
808
799
  function parseHeaders(str) {
809
800
 
810
- var headers = {}, value, name, i;
801
+ var headers = {},
802
+ value,
803
+ name,
804
+ i;
811
805
 
812
806
  if (_.isString(str)) {
813
807
  _.each(str.split('\n'), function (row) {
@@ -823,19 +817,16 @@ return /******/ (function(modules) { // webpackBootstrap
823
817
  } else {
824
818
  headers[name] = [headers[name], value];
825
819
  }
826
-
827
820
  } else {
828
821
 
829
822
  headers[name] = value;
830
823
  }
831
-
832
824
  });
833
825
  }
834
826
 
835
827
  return headers;
836
828
  }
837
829
 
838
-
839
830
  /***/ },
840
831
  /* 10 */
841
832
  /***/ function(module, exports, __webpack_require__) {
@@ -910,13 +901,12 @@ return /******/ (function(modules) { // webpackBootstrap
910
901
  p.finally = function (callback) {
911
902
 
912
903
  return this.then(function (value) {
913
- callback.call(this);
914
- return value;
915
- }, function (reason) {
916
- callback.call(this);
917
- return PromiseObj.reject(reason);
918
- }
919
- );
904
+ callback.call(this);
905
+ return value;
906
+ }, function (reason) {
907
+ callback.call(this);
908
+ return PromiseObj.reject(reason);
909
+ });
920
910
  };
921
911
 
922
912
  p.success = function (callback) {
@@ -941,7 +931,7 @@ return /******/ (function(modules) { // webpackBootstrap
941
931
 
942
932
  _.warn('The `always` method has been deprecated. Use the `finally` method instead.');
943
933
 
944
- var cb = function (response) {
934
+ var cb = function cb(response) {
945
935
  return callback.call(this, response.data, response.status, response) || response;
946
936
  };
947
937
 
@@ -950,11 +940,12 @@ return /******/ (function(modules) { // webpackBootstrap
950
940
 
951
941
  module.exports = Promise;
952
942
 
953
-
954
943
  /***/ },
955
944
  /* 11 */
956
945
  /***/ function(module, exports, __webpack_require__) {
957
946
 
947
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
948
+
958
949
  /**
959
950
  * Promises/A+ polyfill v1.1.4 (https://github.com/bramstein/promis)
960
951
  */
@@ -963,7 +954,7 @@ return /******/ (function(modules) { // webpackBootstrap
963
954
 
964
955
  var RESOLVED = 0;
965
956
  var REJECTED = 1;
966
- var PENDING = 2;
957
+ var PENDING = 2;
967
958
 
968
959
  function Promise(executor) {
969
960
 
@@ -998,7 +989,8 @@ return /******/ (function(modules) { // webpackBootstrap
998
989
 
999
990
  Promise.all = function all(iterable) {
1000
991
  return new Promise(function (resolve, reject) {
1001
- var count = 0, result = [];
992
+ var count = 0,
993
+ result = [];
1002
994
 
1003
995
  if (iterable.length === 0) {
1004
996
  resolve(result);
@@ -1044,13 +1036,12 @@ return /******/ (function(modules) { // webpackBootstrap
1044
1036
  try {
1045
1037
  var then = x && x['then'];
1046
1038
 
1047
- if (x !== null && typeof x === 'object' && typeof then === 'function') {
1039
+ if (x !== null && (typeof x === 'undefined' ? 'undefined' : _typeof(x)) === 'object' && typeof then === 'function') {
1048
1040
  then.call(x, function (x) {
1049
1041
  if (!called) {
1050
1042
  promise.resolve(x);
1051
1043
  }
1052
1044
  called = true;
1053
-
1054
1045
  }, function (r) {
1055
1046
  if (!called) {
1056
1047
  promise.reject(r);
@@ -1135,7 +1126,6 @@ return /******/ (function(modules) { // webpackBootstrap
1135
1126
 
1136
1127
  module.exports = Promise;
1137
1128
 
1138
-
1139
1129
  /***/ },
1140
1130
  /* 12 */
1141
1131
  /***/ function(module, exports, __webpack_require__) {
@@ -1150,7 +1140,9 @@ return /******/ (function(modules) { // webpackBootstrap
1150
1140
  module.exports = function (request) {
1151
1141
  return new Promise(function (resolve) {
1152
1142
 
1153
- var xhr = new XMLHttpRequest(), response = {request: request}, handler;
1143
+ var xhr = new XMLHttpRequest(),
1144
+ response = { request: request },
1145
+ handler;
1154
1146
 
1155
1147
  request.cancel = function () {
1156
1148
  xhr.abort();
@@ -1158,7 +1150,7 @@ return /******/ (function(modules) { // webpackBootstrap
1158
1150
 
1159
1151
  xhr.open(request.method, _.url(request), true);
1160
1152
 
1161
- handler = function (event) {
1153
+ handler = function handler(event) {
1162
1154
 
1163
1155
  response.data = xhr.responseText;
1164
1156
  response.status = xhr.status;
@@ -1191,7 +1183,6 @@ return /******/ (function(modules) { // webpackBootstrap
1191
1183
  });
1192
1184
  };
1193
1185
 
1194
-
1195
1186
  /***/ },
1196
1187
  /* 13 */
1197
1188
  /***/ function(module, exports, __webpack_require__) {
@@ -1242,7 +1233,6 @@ return /******/ (function(modules) { // webpackBootstrap
1242
1233
  return promise.then(fulfilled, rejected);
1243
1234
  }
1244
1235
 
1245
-
1246
1236
  /***/ },
1247
1237
  /* 14 */
1248
1238
  /***/ function(module, exports, __webpack_require__) {
@@ -1255,18 +1245,17 @@ return /******/ (function(modules) { // webpackBootstrap
1255
1245
 
1256
1246
  module.exports = {
1257
1247
 
1258
- request: function (request) {
1248
+ request: function request(_request) {
1259
1249
 
1260
- if (_.isFunction(request.beforeSend)) {
1261
- request.beforeSend.call(this, request);
1250
+ if (_.isFunction(_request.beforeSend)) {
1251
+ _request.beforeSend.call(this, _request);
1262
1252
  }
1263
1253
 
1264
- return request;
1254
+ return _request;
1265
1255
  }
1266
1256
 
1267
1257
  };
1268
1258
 
1269
-
1270
1259
  /***/ },
1271
1260
  /* 15 */
1272
1261
  /***/ function(module, exports) {
@@ -1281,28 +1270,27 @@ return /******/ (function(modules) { // webpackBootstrap
1281
1270
 
1282
1271
  return {
1283
1272
 
1284
- request: function (request) {
1273
+ request: function request(_request) {
1285
1274
 
1286
- if (request.timeout) {
1275
+ if (_request.timeout) {
1287
1276
  timeout = setTimeout(function () {
1288
- request.cancel();
1289
- }, request.timeout);
1277
+ _request.cancel();
1278
+ }, _request.timeout);
1290
1279
  }
1291
1280
 
1292
- return request;
1281
+ return _request;
1293
1282
  },
1294
1283
 
1295
- response: function (response) {
1284
+ response: function response(_response) {
1296
1285
 
1297
1286
  clearTimeout(timeout);
1298
1287
 
1299
- return response;
1288
+ return _response;
1300
1289
  }
1301
1290
 
1302
1291
  };
1303
1292
  };
1304
1293
 
1305
-
1306
1294
  /***/ },
1307
1295
  /* 16 */
1308
1296
  /***/ function(module, exports, __webpack_require__) {
@@ -1315,18 +1303,17 @@ return /******/ (function(modules) { // webpackBootstrap
1315
1303
 
1316
1304
  module.exports = {
1317
1305
 
1318
- request: function (request) {
1306
+ request: function request(_request) {
1319
1307
 
1320
- if (request.method == 'JSONP') {
1321
- request.client = jsonpClient;
1308
+ if (_request.method == 'JSONP') {
1309
+ _request.client = jsonpClient;
1322
1310
  }
1323
1311
 
1324
- return request;
1312
+ return _request;
1325
1313
  }
1326
1314
 
1327
1315
  };
1328
1316
 
1329
-
1330
1317
  /***/ },
1331
1318
  /* 17 */
1332
1319
  /***/ function(module, exports, __webpack_require__) {
@@ -1341,11 +1328,14 @@ return /******/ (function(modules) { // webpackBootstrap
1341
1328
  module.exports = function (request) {
1342
1329
  return new Promise(function (resolve) {
1343
1330
 
1344
- var callback = '_jsonp' + Math.random().toString(36).substr(2), response = {request: request, data: null}, handler, script;
1331
+ var callback = '_jsonp' + Math.random().toString(36).substr(2),
1332
+ response = { request: request, data: null },
1333
+ handler,
1334
+ script;
1345
1335
 
1346
1336
  request.params[request.jsonp] = callback;
1347
1337
  request.cancel = function () {
1348
- handler({type: 'cancel'});
1338
+ handler({ type: 'cancel' });
1349
1339
  };
1350
1340
 
1351
1341
  script = document.createElement('script');
@@ -1357,7 +1347,7 @@ return /******/ (function(modules) { // webpackBootstrap
1357
1347
  response.data = data;
1358
1348
  };
1359
1349
 
1360
- handler = function (event) {
1350
+ handler = function handler(event) {
1361
1351
 
1362
1352
  if (event.type === 'load' && response.data !== null) {
1363
1353
  response.status = 200;
@@ -1380,7 +1370,6 @@ return /******/ (function(modules) { // webpackBootstrap
1380
1370
  });
1381
1371
  };
1382
1372
 
1383
-
1384
1373
  /***/ },
1385
1374
  /* 18 */
1386
1375
  /***/ function(module, exports) {
@@ -1391,19 +1380,18 @@ return /******/ (function(modules) { // webpackBootstrap
1391
1380
 
1392
1381
  module.exports = {
1393
1382
 
1394
- request: function (request) {
1383
+ request: function request(_request) {
1395
1384
 
1396
- if (request.emulateHTTP && /^(PUT|PATCH|DELETE)$/i.test(request.method)) {
1397
- request.headers['X-HTTP-Method-Override'] = request.method;
1398
- request.method = 'POST';
1385
+ if (_request.emulateHTTP && /^(PUT|PATCH|DELETE)$/i.test(_request.method)) {
1386
+ _request.headers['X-HTTP-Method-Override'] = _request.method;
1387
+ _request.method = 'POST';
1399
1388
  }
1400
1389
 
1401
- return request;
1390
+ return _request;
1402
1391
  }
1403
1392
 
1404
1393
  };
1405
1394
 
1406
-
1407
1395
  /***/ },
1408
1396
  /* 19 */
1409
1397
  /***/ function(module, exports, __webpack_require__) {
@@ -1416,36 +1404,35 @@ return /******/ (function(modules) { // webpackBootstrap
1416
1404
 
1417
1405
  module.exports = {
1418
1406
 
1419
- request: function (request) {
1407
+ request: function request(_request) {
1420
1408
 
1421
- if (request.emulateJSON && _.isPlainObject(request.data)) {
1422
- request.headers['Content-Type'] = 'application/x-www-form-urlencoded';
1423
- request.data = _.url.params(request.data);
1409
+ if (_request.emulateJSON && _.isPlainObject(_request.data)) {
1410
+ _request.headers['Content-Type'] = 'application/x-www-form-urlencoded';
1411
+ _request.data = _.url.params(_request.data);
1424
1412
  }
1425
1413
 
1426
- if (_.isObject(request.data) && /FormData/i.test(request.data.toString())) {
1427
- delete request.headers['Content-Type'];
1414
+ if (_.isObject(_request.data) && /FormData/i.test(_request.data.toString())) {
1415
+ delete _request.headers['Content-Type'];
1428
1416
  }
1429
1417
 
1430
- if (_.isPlainObject(request.data)) {
1431
- request.data = JSON.stringify(request.data);
1418
+ if (_.isPlainObject(_request.data)) {
1419
+ _request.data = JSON.stringify(_request.data);
1432
1420
  }
1433
1421
 
1434
- return request;
1422
+ return _request;
1435
1423
  },
1436
1424
 
1437
- response: function (response) {
1425
+ response: function response(_response) {
1438
1426
 
1439
1427
  try {
1440
- response.data = JSON.parse(response.data);
1428
+ _response.data = JSON.parse(_response.data);
1441
1429
  } catch (e) {}
1442
1430
 
1443
- return response;
1431
+ return _response;
1444
1432
  }
1445
1433
 
1446
1434
  };
1447
1435
 
1448
-
1449
1436
  /***/ },
1450
1437
  /* 20 */
1451
1438
  /***/ function(module, exports, __webpack_require__) {
@@ -1458,26 +1445,21 @@ return /******/ (function(modules) { // webpackBootstrap
1458
1445
 
1459
1446
  module.exports = {
1460
1447
 
1461
- request: function (request) {
1448
+ request: function request(_request) {
1462
1449
 
1463
- request.method = request.method.toUpperCase();
1464
- request.headers = _.extend({}, _.http.headers.common,
1465
- !request.crossOrigin ? _.http.headers.custom : {},
1466
- _.http.headers[request.method.toLowerCase()],
1467
- request.headers
1468
- );
1450
+ _request.method = _request.method.toUpperCase();
1451
+ _request.headers = _.extend({}, _.http.headers.common, !_request.crossOrigin ? _.http.headers.custom : {}, _.http.headers[_request.method.toLowerCase()], _request.headers);
1469
1452
 
1470
- if (_.isPlainObject(request.data) && /^(GET|JSONP)$/i.test(request.method)) {
1471
- _.extend(request.params, request.data);
1472
- delete request.data;
1453
+ if (_.isPlainObject(_request.data) && /^(GET|JSONP)$/i.test(_request.method)) {
1454
+ _.extend(_request.params, _request.data);
1455
+ delete _request.data;
1473
1456
  }
1474
1457
 
1475
- return request;
1458
+ return _request;
1476
1459
  }
1477
1460
 
1478
1461
  };
1479
1462
 
1480
-
1481
1463
  /***/ },
1482
1464
  /* 21 */
1483
1465
  /***/ function(module, exports, __webpack_require__) {
@@ -1493,22 +1475,22 @@ return /******/ (function(modules) { // webpackBootstrap
1493
1475
 
1494
1476
  module.exports = {
1495
1477
 
1496
- request: function (request) {
1478
+ request: function request(_request) {
1497
1479
 
1498
- if (request.crossOrigin === null) {
1499
- request.crossOrigin = crossOrigin(request);
1480
+ if (_request.crossOrigin === null) {
1481
+ _request.crossOrigin = crossOrigin(_request);
1500
1482
  }
1501
1483
 
1502
- if (request.crossOrigin) {
1484
+ if (_request.crossOrigin) {
1503
1485
 
1504
1486
  if (!xhrCors) {
1505
- request.client = xdrClient;
1487
+ _request.client = xdrClient;
1506
1488
  }
1507
1489
 
1508
- request.emulateHTTP = false;
1490
+ _request.emulateHTTP = false;
1509
1491
  }
1510
1492
 
1511
- return request;
1493
+ return _request;
1512
1494
  }
1513
1495
 
1514
1496
  };
@@ -1517,10 +1499,9 @@ return /******/ (function(modules) { // webpackBootstrap
1517
1499
 
1518
1500
  var requestUrl = _.url.parse(_.url(request));
1519
1501
 
1520
- return (requestUrl.protocol !== originUrl.protocol || requestUrl.host !== originUrl.host);
1502
+ return requestUrl.protocol !== originUrl.protocol || requestUrl.host !== originUrl.host;
1521
1503
  }
1522
1504
 
1523
-
1524
1505
  /***/ },
1525
1506
  /* 22 */
1526
1507
  /***/ function(module, exports, __webpack_require__) {
@@ -1535,7 +1516,9 @@ return /******/ (function(modules) { // webpackBootstrap
1535
1516
  module.exports = function (request) {
1536
1517
  return new Promise(function (resolve) {
1537
1518
 
1538
- var xdr = new XDomainRequest(), response = {request: request}, handler;
1519
+ var xdr = new XDomainRequest(),
1520
+ response = { request: request },
1521
+ handler;
1539
1522
 
1540
1523
  request.cancel = function () {
1541
1524
  xdr.abort();
@@ -1543,7 +1526,7 @@ return /******/ (function(modules) { // webpackBootstrap
1543
1526
 
1544
1527
  xdr.open(request.method, _.url(request), true);
1545
1528
 
1546
- handler = function (event) {
1529
+ handler = function handler(event) {
1547
1530
 
1548
1531
  response.data = xdr.responseText;
1549
1532
  response.status = xdr.status;
@@ -1563,7 +1546,6 @@ return /******/ (function(modules) { // webpackBootstrap
1563
1546
  });
1564
1547
  };
1565
1548
 
1566
-
1567
1549
  /***/ },
1568
1550
  /* 23 */
1569
1551
  /***/ function(module, exports, __webpack_require__) {
@@ -1576,16 +1558,14 @@ return /******/ (function(modules) { // webpackBootstrap
1576
1558
 
1577
1559
  function Resource(url, params, actions, options) {
1578
1560
 
1579
- var self = this, resource = {};
1561
+ var self = this,
1562
+ resource = {};
1580
1563
 
1581
- actions = _.extend({},
1582
- Resource.actions,
1583
- actions
1584
- );
1564
+ actions = _.extend({}, Resource.actions, actions);
1585
1565
 
1586
1566
  _.each(actions, function (action, name) {
1587
1567
 
1588
- action = _.merge({url: url, params: params || {}}, options, action);
1568
+ action = _.merge({ url: url, params: params || {} }, options, action);
1589
1569
 
1590
1570
  resource[name] = function () {
1591
1571
  return (self.$http || _.http)(opts(action, arguments));
@@ -1597,7 +1577,11 @@ return /******/ (function(modules) { // webpackBootstrap
1597
1577
 
1598
1578
  function opts(action, args) {
1599
1579
 
1600
- var options = _.extend({}, action), params = {}, data, success, error;
1580
+ var options = _.extend({}, action),
1581
+ params = {},
1582
+ data,
1583
+ success,
1584
+ error;
1601
1585
 
1602
1586
  switch (args.length) {
1603
1587
 
@@ -1621,7 +1605,6 @@ return /******/ (function(modules) { // webpackBootstrap
1621
1605
 
1622
1606
  success = args[1];
1623
1607
  error = args[2];
1624
-
1625
1608
  } else {
1626
1609
 
1627
1610
  params = args[0];
@@ -1668,18 +1651,17 @@ return /******/ (function(modules) { // webpackBootstrap
1668
1651
 
1669
1652
  Resource.actions = {
1670
1653
 
1671
- get: {method: 'GET'},
1672
- save: {method: 'POST'},
1673
- query: {method: 'GET'},
1674
- update: {method: 'PUT'},
1675
- remove: {method: 'DELETE'},
1676
- delete: {method: 'DELETE'}
1654
+ get: { method: 'GET' },
1655
+ save: { method: 'POST' },
1656
+ query: { method: 'GET' },
1657
+ update: { method: 'PUT' },
1658
+ remove: { method: 'DELETE' },
1659
+ delete: { method: 'DELETE' }
1677
1660
 
1678
1661
  };
1679
1662
 
1680
1663
  module.exports = _.resource = Resource;
1681
1664
 
1682
-
1683
1665
  /***/ }
1684
1666
  /******/ ])
1685
1667
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vuejs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.24
4
+ version: 1.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Lim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-12 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,8 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description: Unofficial Vue.js 1.0.20 integration with Asset Pipeline with latest
42
- router + resource.
41
+ description: Latest Vue.js + latest router + resource for rails 3.x & 4.x
43
42
  email:
44
43
  - ytbryan@gmail.com
45
44
  executables: []
@@ -80,6 +79,5 @@ rubyforge_project:
80
79
  rubygems_version: 2.5.1
81
80
  signing_key:
82
81
  specification_version: 4
83
- summary: Unofficial Vue.js 1.0.20 integration with Asset Pipeline with latest router
84
- + resource.
82
+ summary: Latest Vue.js + latest router + resource for rails 3.x & 4.x
85
83
  test_files: []