opal 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/Gemfile +1 -1
- data/UNRELEASED.md +1 -132
- data/lib/opal/version.rb +1 -1
- data/opal.gemspec +1 -1
- data/opal/corelib/constants.rb +3 -3
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 397e10f91202a8b03ead1a7add2b885e5db7dac382acbabf9c3856390c19dd81
|
4
|
+
data.tar.gz: b1502f02e8811ad4d5ebbd0bc6eb19a4b109c73f6ce2822602048c41c6648576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d12ea1032bda9650a44022ecc207f94aea9bad554770f1507ec1a8323f36dd92988252132d294b3621c6adb8f808891d85ebebaf8917b08602646b11da53bd4
|
7
|
+
data.tar.gz: 89e4e3c43e943ac0b90c9820a0dde1a9c051bf0f947a73e21656871556e166c3974be9588395b88ee3339aa8f168711383d67b08ef4097c3c0a17e2a0dca8506
|
data/CHANGELOG.md
CHANGED
@@ -15,7 +15,8 @@ Changes are grouped as follows:
|
|
15
15
|
|
16
16
|
|
17
17
|
|
18
|
-
## [
|
18
|
+
## [Unreleased](https://github.com/opal/opal/compare/v1.0.0...HEAD) - unreleased
|
19
|
+
|
19
20
|
|
20
21
|
<!--
|
21
22
|
Whitespace conventions:
|
@@ -24,6 +25,12 @@ Whitespace conventions:
|
|
24
25
|
- 1 spaces before normal text
|
25
26
|
-->
|
26
27
|
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
## [1.0.0](https://github.com/opal/opal/compare/v0.11.4...v1.0.0) - 2019-05-12
|
32
|
+
|
33
|
+
|
27
34
|
### Added
|
28
35
|
|
29
36
|
- Added `Module#prepend` and completely overhauled the module and class inheritance system ([#1826](https://github.com/opal/opal/pull/1826))
|
data/Gemfile
CHANGED
data/UNRELEASED.md
CHANGED
@@ -5,137 +5,6 @@ Whitespace conventions:
|
|
5
5
|
- 1 spaces before normal text
|
6
6
|
-->
|
7
7
|
|
8
|
-
### Added
|
9
|
-
|
10
|
-
- Added `Module#prepend` and completely overhauled the module and class inheritance system (#1826)
|
11
|
-
- Methods and properties are now assigned with `Object.defineProperty()` as non-enumerable (#1821)
|
12
|
-
- Backtrace now includes the location inside the source file for syntax errors (#1814)
|
13
|
-
- Added support for a faster C-implemented lexer, it's enough to add `gem 'c_lexer` to the `Gemfile` (#1806)
|
14
|
-
- Added `Date#to_n` that returns the JavaScript Date object (in native.rb). (#1779, #1792)
|
15
|
-
- Added `Array#pack` (supports only `C, S, L, Q, c, s, l, q, A, a` formats). (#1723)
|
16
|
-
- Added `String#unpack` (supports only `C, S, L, Q, S>, L>, Q>, c, s, l, q, n, N, v, V, U, w, A, a, Z, B, b, H, h, u, M, m` formats). (#1723)
|
17
|
-
- Added `File#symlink?` for Node.js. (#1725)
|
18
|
-
- Added `Dir#glob` for Node.js (does not support flags). (#1727)
|
19
|
-
- Added support for a static folder in the "server" CLI runner via the `OPAL_CLI_RUNNERS_SERVER_STATIC_FOLDER` env var
|
20
|
-
- Added the CLI option `--runner-options` that allows passing arbitrary options to the selected runner, currently the only runner making use of them is `server` accepting `port` and `static_folder`
|
21
|
-
- Added a short helper to navigate constants manually: E.g. `Opal.$$.Regexp.$$.IGNORECASE` (see docs for "Compiled Ruby")
|
22
|
-
- Added initial support for OpenURI module (using XMLHttpRequest on browser and [xmlhttprequest](https://www.npmjs.com/package/xmlhttprequest) on Node). (#1735)
|
23
|
-
- Added `String#prepend` to the list of unsupported methods (because String are immutable in JavaScript)
|
24
|
-
- Added methods (most introduced in 2.4/2.5):
|
25
|
-
* `Array#prepend` (#1757)
|
26
|
-
* `Array#append` (#1757)
|
27
|
-
* `Array#max` (#1757)
|
28
|
-
* `Array#min` (#1757)
|
29
|
-
* `Complex#finite?` (#1757)
|
30
|
-
* `Complex#infinite?` (#1757)
|
31
|
-
* `Complex#infinite?` (#1757)
|
32
|
-
* `Date#to_time` (#1757)
|
33
|
-
* `Date#next_year` (#1885)
|
34
|
-
* `Date#prev_year` (#1885)
|
35
|
-
* `Hash#slice` (#1757)
|
36
|
-
* `Hash#transform_keys` (#1757)
|
37
|
-
* `Hash#transform_keys!` (#1757)
|
38
|
-
* `Numeric#finite?` (#1757)
|
39
|
-
* `Numeric#infinite?` (#1757)
|
40
|
-
* `Numeric#infinite?` (#1757)
|
41
|
-
* `Integer#allbits?` (#1757)
|
42
|
-
* `Integer#anybits?` (#1757)
|
43
|
-
* `Integer#digits` (#1757)
|
44
|
-
* `Integer#nobits?` (#1757)
|
45
|
-
* `Integer#pow` (#1757)
|
46
|
-
* `Integer#remainder` (#1757)
|
47
|
-
* `Integer.sqrt` (#1757)
|
48
|
-
* `Random.urandom` (#1757)
|
49
|
-
* `String#delete_prefix` (#1757)
|
50
|
-
* `String#delete_suffix` (#1757)
|
51
|
-
* `String#casecmp?` (#1757)
|
52
|
-
* `Kernel#yield_self` (#1757)
|
53
|
-
* `String#unpack1` (#1757)
|
54
|
-
* `String#to_r` (#1842)
|
55
|
-
* `String#to_c` (#1842)
|
56
|
-
* `String#match?` (#1842)
|
57
|
-
* `String#unicode_normalize` returns self (#1842)
|
58
|
-
* `String#unicode_normalized?` returns true (#1842)
|
59
|
-
* `String#[]=` throws `NotImplementedError`(#1836)
|
60
|
-
|
61
|
-
- Added support of the `pattern` argument for `Enumerable#all?`, `Enumerable#any?`, `Enumerable#none?`. (#1757)
|
62
|
-
- Added `ndigits` option support to `Number#floor`, `Number#ceil`, `Number#truncate`. (#1757)
|
63
|
-
- Added `key` and `receiver` attributes to the `KeyError`. (#1757)
|
64
|
-
- Extended `Struct.new` to support `keyword_init` option. (#1757)
|
65
|
-
- Added a new `Opal::Config.missing_require_severity` option and relative `--missing-require` CLI flag. This option will command how the builder will behave when a required file is missing. Previously the behavior was undefined and partly controlled by `dynamic_require_severity`. Not to be confused with the runtime config option `Opal.config.missing_require_severity;` which controls the runtime behavior.
|
66
|
-
- Added `Matrix` (along with the internal MRI utility `E2MM`)
|
67
|
-
- Use shorter helpers for constant lookups, `$$` for relative (nesting) lookups and `$$$` for absolute (qualified) lookups
|
68
|
-
- Add support for the Mersenne Twister random generator, the same used by CRuby/MRI (#657 & #1891)
|
69
|
-
- [Nodejs] Added support for binary data in `OpenURI` (#1911, #1920)
|
70
|
-
- [Nodejs] Added support for binary data in `File#read` (#1919, #1921)
|
71
|
-
- [Nodejs] Added support for `File#readlines` (#1882)
|
72
|
-
- [Nodejs] Added support for `ENV#[]`, `ENV#[]=`, `ENV#key?`, `ENV#has_key?`, `ENV#include?`, `ENV#member?`, `ENV#empty?`, `ENV#keys`, `ENV#delete` and `ENV#to_s` (#1928)
|
73
|
-
|
74
|
-
|
75
8
|
### Changed
|
76
9
|
|
77
|
-
-
|
78
|
-
* You're advised to always use [\s\S] instead of . in a multiline regexp, which is portable between Ruby and JavaScript
|
79
|
-
- **BREAKING** `Kernel#format` (and `sprintf` alias) are now in a dedicated module `corelib/kernel/format` and available exclusively in `opal` (#1930)
|
80
|
-
* Previously the methods were part of the `corelib/kernel` module and available in both `opal` and `opal/mini`
|
81
|
-
- Filename extensions are no longer stripped from filenames internally, resulting in better error reporting (#1804)
|
82
|
-
- The internal API for CLI runners has changed, now it's just a callable object
|
83
|
-
- The `--map` CLI option now works only in conjunction with `--compile` (or `--runner compiler`)
|
84
|
-
- The `node` CLI runner now adds its `NODE_PATH` entry instead of replacing the ENV var altogether
|
85
|
-
- Added `--disable-web-security` option flag to the Chrome headless runner to be able to do `XMLHttpRequest`
|
86
|
-
- Migrated parser to 2.5. Bump RUBY_VERSION to 2.5.0.
|
87
|
-
- Exceptions raised during the compilation now add to the backtrace the current location of the opal file if available (#1814).
|
88
|
-
- Better use of `displayName` on functions and methods and more readable temp variable names (#1910)
|
89
|
-
- Source-maps are now inlined and already contain sources, incredibly more stable and precise (#1856)
|
90
|
-
|
91
|
-
|
92
|
-
### Deprecated
|
93
|
-
|
94
|
-
- The CLI `--server-port 1234` option is now deprecated in favor of using `--runner-options='{"port": 1234}'`
|
95
|
-
- Including `::Native` is now deprecated because it generates conflicts with core classes in constant lookups (both `Native::Object` and `Native::Array` exist). Instead `Native::Werapper` should be used.
|
96
|
-
- Using `node_require 'my_module'` to access the native `require()` function in Node.js is deprecated in favor of <code>\`require('my_module')\`</code> because static builders need to parse the call in order to function (#1886).
|
97
|
-
|
98
|
-
|
99
|
-
### Removed
|
100
|
-
|
101
|
-
- The `node` CLI runner no longer supports passing extra node options via the `NODE_OPT` env var, instead Node.js natively supports the `NODE_OPTIONS` env var.
|
102
|
-
- The gem "hike" is no longer an external dependency and is now an internal dependency available as `Opal::Hike` (#1881)
|
103
|
-
- Removed the internal Opal class `Marshal::BinaryString` (#1914)
|
104
|
-
- Removed Racc, as it's now replaced by the parser gem (#1880)
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
### Fixed
|
109
|
-
|
110
|
-
- Fix handling of trailing semicolons and JavaScript returns inside x-strings, the behavior is now well defined and covered by proper specs (#1776)
|
111
|
-
- Fixed singleton method definition to return method name. (#1757)
|
112
|
-
- Allow passing number of months to `Date#next_month` and `Date#prev_month`. (#1757)
|
113
|
-
- Fixed `pattern` argument handling for `Enumerable#grep` and `Enumerable#grep_v`. (#1757)
|
114
|
-
- Raise `ArgumentError` instead of `TypeError` from `Numeric#step` when step is not a number. (#1757)
|
115
|
-
- At run-time `LoadError` wasn't being raised even with `Opal.config.missing_require_severity;` set to `'error'`.
|
116
|
-
- Fixed `Kernel#public_methods` to return instance methods if the argument is set to false. (#1848)
|
117
|
-
- Fixed an issue in `String#gsub` that made it start an infinite loop when used recursively. (#1879)
|
118
|
-
- `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` (#1898, #1808).
|
119
|
-
- Fixed metaclass inheritance in subclasses of Module (#1901)
|
120
|
-
- `Method#to_proc` now correctly sets parameters and arity on the resulting Proc (#1903)
|
121
|
-
- Fixed bridged classes having their prototype removed from the original chain by separating them from the Ruby class (#1909)
|
122
|
-
- Improve `String#to_proc` performance (#1888)
|
123
|
-
- Fixed/updated the examples (#1887)
|
124
|
-
- `Opal.ancestors()` now returns false for when provided with JS-falsy objects (#1839)
|
125
|
-
- When subclassing now the constant is set before calling `::inherited` (#1838)
|
126
|
-
- `String#to_sym` now returns the string literal (#1835)
|
127
|
-
- `String#center` now correctly checks length (#1833)
|
128
|
-
- `redo` inside `while` now works properly (#1820)
|
129
|
-
- Fixed compilation of empty/whitespace-only x-strings (#1811)
|
130
|
-
- Fix `||=` assignments on constants when the constant is not yet defined (#1935)
|
131
|
-
- Fix `String#chomp` to return an empty String when `arg == self` (#1936)
|
132
|
-
- Fix methods of `Comparable` when `<=>` does not return Numeric (#1945)
|
133
|
-
- Fix `Class#native_alias` error message (#1946)
|
134
|
-
- Fix `gmt_offset` (alias `utc_offset`) should return 0 if the date is UTC (#1941)
|
135
|
-
- `exceptionDetails.stackTrace` can be undefined (#1955)
|
136
|
-
- Implement `String#each_codepoint` and `String#codepoints` (#1944, #1947)
|
137
|
-
- [internal] Terminate statement with semi-colon and remove unecessary semi-colon (#1948)
|
138
|
-
- Some steps toward "strict mode" (#1953)
|
139
|
-
- Preserve `Exception.stack`, in some cases the backtrace was lost (#1963)
|
140
|
-
- Make `String#ascii_only?` a little less wrong (#1951)
|
141
|
-
- Minor fixes to `::Native` (#1957)
|
10
|
+
- Relaxed parser version requirement (#2013)
|
data/lib/opal/version.rb
CHANGED
data/opal.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.required_ruby_version = '>= 2.3'
|
37
37
|
|
38
38
|
spec.add_dependency 'ast', '>= 2.3.0'
|
39
|
-
spec.add_dependency 'parser', '
|
39
|
+
spec.add_dependency 'parser', '~> 2.6'
|
40
40
|
|
41
41
|
spec.add_development_dependency 'sourcemap', '~> 0.1.0'
|
42
42
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/opal/corelib/constants.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
RUBY_PLATFORM = 'opal'
|
2
2
|
RUBY_ENGINE = 'opal'
|
3
|
-
RUBY_VERSION = '2.5.
|
4
|
-
RUBY_ENGINE_VERSION = '1.0.
|
5
|
-
RUBY_RELEASE_DATE = '2019-
|
3
|
+
RUBY_VERSION = '2.5.5'
|
4
|
+
RUBY_ENGINE_VERSION = '1.0.1'
|
5
|
+
RUBY_RELEASE_DATE = '2019-12-08'
|
6
6
|
RUBY_PATCHLEVEL = 0
|
7
7
|
RUBY_REVISION = 0
|
8
8
|
RUBY_COPYRIGHT = 'opal - Copyright (C) 2013-2019 Adam Beynon and the Opal contributors'
|
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.
|
4
|
+
version: 1.0.1
|
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-
|
13
|
+
date: 2019-12-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ast
|
@@ -30,16 +30,16 @@ dependencies:
|
|
30
30
|
name: parser
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 2.
|
35
|
+
version: '2.6'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 2.
|
42
|
+
version: '2.6'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: sourcemap
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.
|
739
|
-
readme_uri: https://github.com/opal/opal/blob/v1.0.
|
740
|
-
api_documentation_uri: http://opalrb.com/docs/api/v1.0.
|
741
|
-
guides_uri: http://opalrb.com/docs/guides/v1.0.
|
738
|
+
changelog_uri: https://github.com/opal/opal/blob/v1.0.1/CHANGELOG.md
|
739
|
+
readme_uri: https://github.com/opal/opal/blob/v1.0.1/README.md
|
740
|
+
api_documentation_uri: http://opalrb.com/docs/api/v1.0.1/index.html
|
741
|
+
guides_uri: http://opalrb.com/docs/guides/v1.0.1/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
|