ruby-next 0.5.1 → 0.5.2
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +11 -0
- 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: 63d6bfc1327a86e6977c1283ea155719ed3ff775ec8f5b82a0b90b8e2a5bcec5
|
4
|
+
data.tar.gz: d312998ef1f2468489c817b0fd2da87156b4564e7db60cbed768ace9d78834be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 348389892842f7193a752058d25c047aa009b887c7bfd97a7c7cc5a9817264258fe3c251a5062c97249e754a5d1716a84c01799a054b98fcd17fc0ac770af9d1
|
7
|
+
data.tar.gz: 75873db6c71af522958350ff1533909852923c5fb4c27e784f204ecefa49a544e8d932f6273c8e8a426cc13d83afd2a6b37f0e1568fe74a3047c6928dd0a1059
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## 0.5.2 (2020-03-25)
|
6
|
+
|
7
|
+
- Enhance logging. ([@palkan][])
|
8
|
+
|
9
|
+
Use `RUBY_NEXT_WARN=false` to disable warnings.
|
10
|
+
Use `RUBY_NEXT_DEBUG=path.rb` to display the transpiler output only for matching files
|
11
|
+
in the runtime mode.
|
12
|
+
|
5
13
|
## 0.5.1 (2020-03-20)
|
6
14
|
|
7
15
|
- Add RuboCop integration. ([@palkan][])
|
data/README.md
CHANGED
@@ -35,6 +35,7 @@ That's why Ruby Next implements the `master` features as fast as possible.
|
|
35
35
|
- [Runtime usage](#runtime-usage)
|
36
36
|
- [Bootsnap integration](#using-with-bootsnap)
|
37
37
|
- [`ruby -ruby-next`](#uby-next)
|
38
|
+
- [Logging & Debugging](#logging-and-debugging)
|
38
39
|
- [RuboCop](#rubocop)
|
39
40
|
- [Proposed & edge features](#proposed-and-edge-features)
|
40
41
|
|
@@ -307,6 +308,16 @@ RUBYOPT="-ruby-next" ruby my_ruby_script.rb
|
|
307
308
|
ruby -ruby-next -e "puts [2, 4, 5].tally"
|
308
309
|
```
|
309
310
|
|
311
|
+
## Logging and debugging
|
312
|
+
|
313
|
+
Ruby Next prints some debugging information when fails to load a file in the runtime mode (and fallbacks to the built-in loading mechanism).
|
314
|
+
|
315
|
+
You can disable these warnings either by providing the `RUBY_NEXT_WARN=false` env variable or by setting `RubyNext.silence_warnings = true` in your code.
|
316
|
+
|
317
|
+
You can also enable transpiled source code debugging by setting the `RUBY_NEXT_DEBUG=true` env variable. When it's set, Ruby Next prints the transpiled code before loading it.
|
318
|
+
|
319
|
+
You can use a file pattern as the value for the env var to limit the output: for example, `RUBY_NEXT_DEBUG=my_script.rb`.
|
320
|
+
|
310
321
|
## RuboCop
|
311
322
|
|
312
323
|
Since Ruby Next provides support for features not available in RuboCop yet, you need to add a patch for compatibility.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-next
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-next-core
|