opal 0.11.3 → 0.11.4

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
  SHA256:
3
- metadata.gz: 206d69c8a5b5af087d8edcd1d2dd71512e0b44ff7a081fa7c0d805eaf10d0842
4
- data.tar.gz: f6b4b25d76017687636e40eaf2e6c1f357633231e5333c4ebbe91fe87dff4669
3
+ metadata.gz: 0dd9bf25bc58ff22bbaec8cce2c2e2c2a682540aa8b22fe3b4dfbaced5ad4d5a
4
+ data.tar.gz: eaef5d2e47e98859d5fe480836b957fb9c2ca3e513515f943236946105ea6c8b
5
5
  SHA512:
6
- metadata.gz: 7ee41b62c275819d7ad34ee4346a9adc1aecffe69e4680d673e499f30791efe285507f182a52115219d120c186199d088e1a2d9424d6e0242f0dfa19310828a8
7
- data.tar.gz: 1cecc2aa94cb8886495b08400090d601d25270e9b0c33469a1d98341a5939905a1b08efa8e5ca949f446a9ea4e69b27254f78f1902a991c526594f9511244d98
6
+ metadata.gz: f9dd4773f2d648ba234f007d219b7ba38a88f8579763755dae6e427b9001de8ed46589a1819d3da2121a24b0c64d0ff4db278914c6600d5808fbb480b1051662
7
+ data.tar.gz: 8c16846e5f4980d7d73cbdb6f585541a446583726f477dbc59b3b02b5b25c7f65bf50f508a0e307ef421d7a8dcc1c1edb120e948392495b5e641c72d74dc1ef7
@@ -21,6 +21,18 @@ Whitespace conventions:
21
21
 
22
22
 
23
23
 
24
+ <!-- generated-content-beyond-this-comment -->
25
+
26
+ ## [0.11.4](https://github.com/opal/opal/compare/v0.11.3...v0.11.4) - 2018-11-07
27
+
28
+
29
+ ### Fixed
30
+
31
+ - `Kernel#exit` was using status 0 when a number or a generic object was provided, now accepts numbers and tries to convert objects with `#to_int`.
32
+
33
+
34
+
35
+
24
36
  ## [0.11.3](https://github.com/opal/opal/compare/v0.11.2...v0.11.3) - 2018-08-28
25
37
 
26
38
 
data/bin/opal CHANGED
@@ -1,3 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- exec "#{__dir__}/../exe/#{File.basename($0)}", *ARGV
3
+ require 'bundler/setup'
4
+
5
+ load "#{__dir__}/../exe/opal"
@@ -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.3'
5
+ VERSION = '0.11.4'
6
6
  end
@@ -1,8 +1,8 @@
1
1
  RUBY_PLATFORM = 'opal'
2
2
  RUBY_ENGINE = 'opal'
3
- RUBY_VERSION = '2.4.0'
4
- RUBY_ENGINE_VERSION = '0.11.3'
5
- RUBY_RELEASE_DATE = '2018-08-28'
3
+ RUBY_VERSION = '2.4.5'
4
+ RUBY_ENGINE_VERSION = '0.11.4'
5
+ RUBY_RELEASE_DATE = '2018-11-07'
6
6
  RUBY_PATCHLEVEL = 0
7
7
  RUBY_REVISION = 0
8
8
  RUBY_COPYRIGHT = 'opal - Copyright (C) 2013-2015 Adam Beynon'
@@ -187,14 +187,10 @@ module Kernel
187
187
  end
188
188
 
189
189
  %x{
190
- if (status == null) {
191
- status = 0
192
- } else if (status.$$is_boolean) {
190
+ if (status.$$is_boolean) {
193
191
  status = status ? 0 : 1;
194
- } else if (status.$$is_numeric) {
195
- status = status.$to_i();
196
192
  } else {
197
- status = 0
193
+ status = #{Opal.coerce_to(status, Integer, :to_int)}
198
194
  }
199
195
 
200
196
  Opal.exit(status);
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.3
4
+ version: 0.11.4
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-28 00:00:00.000000000 Z
13
+ date: 2018-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sourcemap