opal 1.0.2 → 1.0.3

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: d3bfc53a5f324482e1829d0b4acbd8a7acbd9741c094748855ccd28504c02da9
4
- data.tar.gz: 303d15ecd3519aea8301e7193b983904edce9ff7dd2553a9c72d25653bc3dc26
3
+ metadata.gz: 985b2481b49e1f5e73e8d48116867ae48d190c0695d357323e970c3c69bb480b
4
+ data.tar.gz: afe0712eb58f479ca82f75f692ecf2db8ebc714bb1cfdc2ab5cbe14ecb93bae3
5
5
  SHA512:
6
- metadata.gz: a5c494071f37d2d1aa2a020389241cf87cb7162341c2e1dc6e9d295f6114568a639382f4f19cfbc4192689cf05ee456dca241d276b10736ef3c9bbc95b073348
7
- data.tar.gz: 3e45be2e316123c6d796326f4ad30b6da9d13926bf4862c9e9114efd30626e27d0879045b71b579795bb59449054cdfb19f5c710c7d84f26863b4175cb1ff015
6
+ metadata.gz: a83fd2f833d9ea72b5432e8e5684c7c655b0588f551453e9bc919fdc0a0aab887e8476f70e473ead3b26c376038415dd8d2887bbcb3d50f171b2ecf7c9ad28cb
7
+ data.tar.gz: 0ac9a594ac5d39c5ef179dabf5f034991ad768397651f6e6e186f9ddba597bc46a9e9fe3fb0be2540b82f880c456ebd96e972e26a72207c11805852e74b226be
@@ -15,15 +15,19 @@ Changes are grouped as follows:
15
15
 
16
16
 
17
17
 
18
- ## [Unreleased](https://github.com/opal/opal/compare/v1.0.1...HEAD) - unreleased
18
+ ## [Unreleased](https://github.com/opal/opal/compare/v1.0.2...HEAD) - unreleased
19
19
 
20
20
 
21
- <!--
22
- Whitespace conventions:
23
- - 4 spaces before ## titles
24
- - 2 spaces before ### titles
25
- - 1 spaces before normal text
26
- -->
21
+
22
+
23
+
24
+
25
+
26
+ ## [1.0.2](https://github.com/opal/opal/compare/v1.0.1...v1.0.2) - 2019-12-15
27
+
28
+
29
+ - Increase the timeout for starting Chrome within the Chrome runner ([#2037](https://github.com/opal/opal/pull/2037))
30
+ - Run the Opal code within the body inside Chrome runner, it fixes an issue in opal-rspec ([#2037](https://github.com/opal/opal/pull/2037))
27
31
 
28
32
 
29
33
 
@@ -1,2 +1,3 @@
1
- - Increase the timeout for starting Chrome within the Chrome runner (#2037)
2
- - Run the Opal code within the body inside Chrome runner, it fixes an issue in opal-rspec (#2037)
1
+ ### Fixed
2
+
3
+ - Fixed compiling code with Unicode chars from Opal with opal-parser (#2074)
@@ -1,6 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  if RUBY_ENGINE == 'opal'
4
+ class Parser::Lexer
5
+ def source_buffer=(source_buffer)
6
+ @source_buffer = source_buffer
7
+
8
+ if @source_buffer
9
+ source = @source_buffer.source
10
+ # Force UTF8 unpacking even if JS works with UTF-16/UCS-2
11
+ # See: https://mathiasbynens.be/notes/javascript-encoding
12
+ @source_pts = source.unpack('U*')
13
+ else
14
+ @source_pts = nil
15
+ end
16
+ end
17
+ end
18
+
4
19
  class Parser::Lexer::Literal
5
20
  undef :extend_string
6
21
 
@@ -3,5 +3,5 @@
3
3
  module Opal
4
4
  # WHEN RELEASING:
5
5
  # Remember to update RUBY_ENGINE_VERSION in opal/corelib/constants.rb too!
6
- VERSION = '1.0.2'
6
+ VERSION = '1.0.3'
7
7
  end
@@ -1,9 +1,9 @@
1
1
  RUBY_PLATFORM = 'opal'
2
2
  RUBY_ENGINE = 'opal'
3
- RUBY_VERSION = '2.5.5'
4
- RUBY_ENGINE_VERSION = '1.0.2'
5
- RUBY_RELEASE_DATE = '2019-12-15'
3
+ RUBY_VERSION = '2.5.7'
4
+ RUBY_ENGINE_VERSION = '1.0.3'
5
+ RUBY_RELEASE_DATE = '2020-02-01'
6
6
  RUBY_PATCHLEVEL = 0
7
7
  RUBY_REVISION = 0
8
- RUBY_COPYRIGHT = 'opal - Copyright (C) 2013-2019 Adam Beynon and the Opal contributors'
8
+ RUBY_COPYRIGHT = 'opal - Copyright (C) 2013-2020 Adam Beynon and the Opal contributors'
9
9
  RUBY_DESCRIPTION = "opal #{RUBY_ENGINE_VERSION} (#{RUBY_RELEASE_DATE} revision #{RUBY_REVISION})"
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: 1.0.2
4
+ version: 1.0.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: 2019-12-15 00:00:00.000000000 Z
13
+ date: 2020-02-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ast
@@ -735,10 +735,10 @@ licenses:
735
735
  - MIT
736
736
  metadata:
737
737
  bug_tracker_uri: https://github.com/opal/opal/issues
738
- changelog_uri: https://github.com/opal/opal/blob/v1.0.2/CHANGELOG.md
739
- readme_uri: https://github.com/opal/opal/blob/v1.0.2/README.md
740
- api_documentation_uri: http://opalrb.com/docs/api/v1.0.2/index.html
741
- guides_uri: http://opalrb.com/docs/guides/v1.0.2/index.html
738
+ changelog_uri: https://github.com/opal/opal/blob/v1.0.3/CHANGELOG.md
739
+ readme_uri: https://github.com/opal/opal/blob/v1.0.3/README.md
740
+ api_documentation_uri: http://opalrb.com/docs/api/v1.0.3/index.html
741
+ guides_uri: http://opalrb.com/docs/guides/v1.0.3/index.html
742
742
  homepage_uri: https://opalrb.com/
743
743
  chat_uri: https://gitter.im/opal/opal
744
744
  source_code_uri: https://github.com/opal/opal
@@ -757,7 +757,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
757
757
  - !ruby/object:Gem::Version
758
758
  version: '0'
759
759
  requirements: []
760
- rubygems_version: 3.0.3
760
+ rubygems_version: 3.1.2
761
761
  signing_key:
762
762
  specification_version: 4
763
763
  summary: Ruby runtime and core library for JavaScript