es6-promise-rails 2.0.2 → 2.0.2.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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/es6/promise/rails/version.rb +1 -1
- data/vendor/assets/javascripts/es6-promise.js +7 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2285fa5f38d5c44b624c05dd47fc6e1d94e802b7
|
4
|
+
data.tar.gz: 50f7c16ce76148c471f391d3aa2e6fe2d6e507b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a81a48131ac8885f30910ba931a5b9eff13f8c71bb902945dded67fe75b5c3ed9a15e787d1dec479af95c166849cef529481280375f191201459e14dada1ef9
|
7
|
+
data.tar.gz: 8dab67429cbecd92e0bc592be9a53e586de9e7279b65dd8bd1a05b5e89aa4516d0e9cbda17183b5cb5c820c8f563cdabd393a439487ef36ada23c6923b4b91f8
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
es6-promise-rails (2.0.2)
|
4
|
+
es6-promise-rails (2.0.2.1)
|
5
5
|
railties (>= 3.1.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
activesupport (= 4.1.8)
|
36
36
|
rake (>= 0.8.7)
|
37
37
|
thor (>= 0.18.1, < 2.0)
|
38
|
-
rake (10.
|
38
|
+
rake (10.4.2)
|
39
39
|
thor (0.19.1)
|
40
40
|
thread_safe (0.3.4)
|
41
41
|
tzinfo (1.2.2)
|
@@ -634,13 +634,11 @@
|
|
634
634
|
|
635
635
|
@class Promise
|
636
636
|
@param {function} resolver
|
637
|
-
@param {String} label optional string for labeling the promise.
|
638
637
|
Useful for tooling.
|
639
638
|
@constructor
|
640
639
|
*/
|
641
|
-
function $$es6$promise$promise$$Promise(resolver
|
640
|
+
function $$es6$promise$promise$$Promise(resolver) {
|
642
641
|
this._id = $$es6$promise$promise$$counter++;
|
643
|
-
this._label = label;
|
644
642
|
this._state = undefined;
|
645
643
|
this._result = undefined;
|
646
644
|
this._subscribers = [];
|
@@ -856,11 +854,10 @@
|
|
856
854
|
@method then
|
857
855
|
@param {Function} onFulfilled
|
858
856
|
@param {Function} onRejected
|
859
|
-
@param {String} label optional string for labeling the promise.
|
860
857
|
Useful for tooling.
|
861
858
|
@return {Promise}
|
862
859
|
*/
|
863
|
-
then: function(onFulfillment, onRejection
|
860
|
+
then: function(onFulfillment, onRejection) {
|
864
861
|
var parent = this;
|
865
862
|
var state = parent._state;
|
866
863
|
|
@@ -868,9 +865,7 @@
|
|
868
865
|
return this;
|
869
866
|
}
|
870
867
|
|
871
|
-
|
872
|
-
|
873
|
-
var child = new this.constructor($$$internal$$noop, label);
|
868
|
+
var child = new this.constructor($$$internal$$noop);
|
874
869
|
var result = parent._result;
|
875
870
|
|
876
871
|
if (state) {
|
@@ -909,12 +904,11 @@
|
|
909
904
|
|
910
905
|
@method catch
|
911
906
|
@param {Function} onRejection
|
912
|
-
@param {String} label optional string for labeling the promise.
|
913
907
|
Useful for tooling.
|
914
908
|
@return {Promise}
|
915
909
|
*/
|
916
|
-
'catch': function(onRejection
|
917
|
-
return this.then(null, onRejection
|
910
|
+
'catch': function(onRejection) {
|
911
|
+
return this.then(null, onRejection);
|
918
912
|
}
|
919
913
|
};
|
920
914
|
|
@@ -951,8 +945,8 @@
|
|
951
945
|
};
|
952
946
|
|
953
947
|
var es6$promise$umd$$ES6Promise = {
|
954
|
-
Promise: $$es6$promise$promise$$default,
|
955
|
-
polyfill: $$es6$promise$polyfill$$default
|
948
|
+
'Promise': $$es6$promise$promise$$default,
|
949
|
+
'polyfill': $$es6$promise$polyfill$$default
|
956
950
|
};
|
957
951
|
|
958
952
|
/* global define:true module:true window: true */
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: es6-promise-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.2
|
4
|
+
version: 2.0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonid Beder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|