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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +11 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82e10ab8f26647a65fbcf9bdc507e71fc45a06ea34cee760bcfddb2fc9e2e5ad
4
- data.tar.gz: 39342adac0f93e8ebe9cc7b1b7c80ee6a9f4bdff7719d68c23705dc137c4b3f1
3
+ metadata.gz: 63d6bfc1327a86e6977c1283ea155719ed3ff775ec8f5b82a0b90b8e2a5bcec5
4
+ data.tar.gz: d312998ef1f2468489c817b0fd2da87156b4564e7db60cbed768ace9d78834be
5
5
  SHA512:
6
- metadata.gz: f5eef5eecb93c0c5083662f993610641f89c4a6bb9b527974a49deea1246c2d6683ecd992d6861bfa0d6a1bd64910dca0df8ef0f3f66975076e1b260a71d4d86
7
- data.tar.gz: 8bfb427e8ca9611dea007112b7c3679c5cf1dac783ba5af8b549396993d8884566f8aeb3b8eea967ffe1a22f2e00cdb9b5dc991271999b8602bbfbcc0f50fe4c
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.1
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-20 00:00:00.000000000 Z
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