opal 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/opal/version.rb +1 -1
- data/opal/corelib/array.rb +1 -1
- data/opal/corelib/constants.rb +2 -2
- data/opal/corelib/helpers.rb +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 206d69c8a5b5af087d8edcd1d2dd71512e0b44ff7a081fa7c0d805eaf10d0842
|
4
|
+
data.tar.gz: f6b4b25d76017687636e40eaf2e6c1f357633231e5333c4ebbe91fe87dff4669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ee41b62c275819d7ad34ee4346a9adc1aecffe69e4680d673e499f30791efe285507f182a52115219d120c186199d088e1a2d9424d6e0242f0dfa19310828a8
|
7
|
+
data.tar.gz: 1cecc2aa94cb8886495b08400090d601d25270e9b0c33469a1d98341a5939905a1b08efa8e5ca949f446a9ea4e69b27254f78f1902a991c526594f9511244d98
|
data/CHANGELOG.md
CHANGED
@@ -21,6 +21,16 @@ Whitespace conventions:
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
+
## [0.11.3](https://github.com/opal/opal/compare/v0.11.2...v0.11.3) - 2018-08-28
|
25
|
+
|
26
|
+
|
27
|
+
### Fixed
|
28
|
+
|
29
|
+
- Fixed `Array#dup` when `method_missing` support was disabled
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
24
34
|
## [0.11.2](https://github.com/opal/opal/compare/v0.11.1...v0.11.2) - 2018-08-24
|
25
35
|
|
26
36
|
|
data/lib/opal/version.rb
CHANGED
data/opal/corelib/array.rb
CHANGED
@@ -871,7 +871,7 @@ class Array < `Array`
|
|
871
871
|
%x{
|
872
872
|
if (
|
873
873
|
self.$$class === Opal.Array &&
|
874
|
-
self.$allocate.$$pristine &&
|
874
|
+
self.$$class.$allocate.$$pristine &&
|
875
875
|
self.$copy_instance_variables.$$pristine &&
|
876
876
|
self.$initialize_dup.$$pristine
|
877
877
|
) return self.slice(0);
|
data/opal/corelib/constants.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
RUBY_PLATFORM = 'opal'
|
2
2
|
RUBY_ENGINE = 'opal'
|
3
3
|
RUBY_VERSION = '2.4.0'
|
4
|
-
RUBY_ENGINE_VERSION = '0.11.
|
5
|
-
RUBY_RELEASE_DATE = '2018-08-
|
4
|
+
RUBY_ENGINE_VERSION = '0.11.3'
|
5
|
+
RUBY_RELEASE_DATE = '2018-08-28'
|
6
6
|
RUBY_PATCHLEVEL = 0
|
7
7
|
RUBY_REVISION = 0
|
8
8
|
RUBY_COPYRIGHT = 'opal - Copyright (C) 2013-2015 Adam Beynon'
|
data/opal/corelib/helpers.rb
CHANGED
@@ -150,12 +150,15 @@ module Opal
|
|
150
150
|
# @param owner_class [Class] the class owning the methods
|
151
151
|
# @param method_names [Array<Symbol>] the list of methods names to mark
|
152
152
|
# @return [nil]
|
153
|
-
def self.pristine
|
153
|
+
def self.pristine(owner_class, *method_names)
|
154
154
|
%x{
|
155
|
-
var method_name;
|
155
|
+
var method_name, method;
|
156
156
|
for (var i = method_names.length - 1; i >= 0; i--) {
|
157
157
|
method_name = method_names[i];
|
158
|
-
owner_class.$$proto['$'+method_name]
|
158
|
+
method = owner_class.$$proto['$'+method_name];
|
159
|
+
if (method && !method.$$stub) {
|
160
|
+
method.$$pristine = true;
|
161
|
+
}
|
159
162
|
}
|
160
163
|
}
|
161
164
|
nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elia Schito
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-08-
|
13
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sourcemap
|