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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0e261174d8f538e6e522e9a5ff6b981c92a9c5f8cdb57ef94d8ef10c5b3cd89
4
- data.tar.gz: c073e7dc36aec005e967cffe687b14545dca7af701d418393f1818436666ed36
3
+ metadata.gz: 206d69c8a5b5af087d8edcd1d2dd71512e0b44ff7a081fa7c0d805eaf10d0842
4
+ data.tar.gz: f6b4b25d76017687636e40eaf2e6c1f357633231e5333c4ebbe91fe87dff4669
5
5
  SHA512:
6
- metadata.gz: b90b4f59f1673722eafd01086297b430f7d4eea790ca4edf339d0358e338a42e5ae990464215a415ccd6560805f417f352c9966fe24450bd42693a1f8ae92777
7
- data.tar.gz: 4f0d91d3a9d494e6b63562bbdb13c2615686d6c0b799424e2b0f84d50f247f1ccd3b7dc4bb05c29891912a6ed67aba62fe511f4babf52c7098595fb0bd052d8d
6
+ metadata.gz: 7ee41b62c275819d7ad34ee4346a9adc1aecffe69e4680d673e499f30791efe285507f182a52115219d120c186199d088e1a2d9424d6e0242f0dfa19310828a8
7
+ data.tar.gz: 1cecc2aa94cb8886495b08400090d601d25270e9b0c33469a1d98341a5939905a1b08efa8e5ca949f446a9ea4e69b27254f78f1902a991c526594f9511244d98
@@ -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
 
@@ -2,5 +2,5 @@
2
2
  module Opal
3
3
  # WHEN RELEASING:
4
4
  # Remember to update RUBY_ENGINE_VERSION in opal/corelib/constants.rb too!
5
- VERSION = '0.11.2'
5
+ VERSION = '0.11.3'
6
6
  end
@@ -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);
@@ -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.2'
5
- RUBY_RELEASE_DATE = '2018-08-24'
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'
@@ -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 owner_class, *method_names
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].$$pristine = true
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.2
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-24 00:00:00.000000000 Z
13
+ date: 2018-08-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sourcemap