ruby-next 0.14.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +36 -2
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7556a69e35b372fca28871d14d2282b0eaa46d6426cbc7edc0cf6234212e15b
4
- data.tar.gz: de3bc4fd558d1f784a4869dc438f486d284a4cfa92cb390cf11251efa6993b82
3
+ metadata.gz: e1f34b0bd4357df2465f232f9e22a2b114cf9ec8035fc84644121963407235c2
4
+ data.tar.gz: 550fa4cd56bed82e0bde62732dd748ff8cf04390c12e324fd162de3c9bb52ee3
5
5
  SHA512:
6
- metadata.gz: ef72bad3d3f90c5068b011bfdc0889f4f522c4f171656f9860fc5503deaa238f42e0c51913de166ab73cedf4b119699615ac4a2a9658fcdcbc52f9653ed74199
7
- data.tar.gz: e9d56f824694173d8747fa7cd7dcc366399c21765516b6109db35fd4dda9e5056b2239da034c7524af2e715a1589649d867ad719c575a6e85ec14174be906a7d
6
+ metadata.gz: 0bc1f704ce497bffae620200c9dffd7c91a97680e47495a5b5557b7a3bca3af8d6ac7720cf207c35af22ae6b34247b5081f6a32c1461f92303c431b96ddcbabc
7
+ data.tar.gz: b5bbd483969a71c55b4f2550a6b2e52224a2d67a517e15381fce5d2f11760b413494f3ecc2c8110edb9b4be82394231f7eeb7f2fdb2b00b865514b189dc039a4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.15.2 (2022-08-02)
6
+
7
+ - Fix loading transpiled in TruffleRuby. ([@palkan][])
8
+
9
+ TruffleRuby doesn't support all Ruby 3.0 features yet, so we should treat as an older Ruby.
10
+
11
+ - Use `ruby2_keywords` when transpiling arguments forwarding. ([@palkan][])
12
+
13
+ That makes transpiled code forward compatible with the modern Ruby versions.
14
+
15
+ ## 0.15.1 (2022-04-05)
16
+
17
+ - Fix transpiling `rescue` within nested blocks. ([@palkan][])
18
+
19
+ ## 0.15.0 (2022-03-21)
20
+
21
+ - Support IRB ([@palkan][])
22
+
23
+ - Create empty `.rbnext` folder during `nextify` if nothing to transpile. ([@palkan][])
24
+
25
+ This would prevent from auto-transpiling a library every time when no files should be transpiled.
26
+
27
+ - Auto-transpile using the current Ruby version. ([@palkan][])
28
+
29
+ - Support Pry. ([@baygeldin][])
30
+
31
+ - Add `rescue/ensure/else` within block rewriter for Ruby < 2.5. ([@fargelus][])
32
+
5
33
  ## 0.14.1 (2022-01-21)
6
34
 
7
35
  - Fix nested find patterns transpiling. ([@palkan][])
data/README.md CHANGED
@@ -71,6 +71,8 @@ _Please, submit a PR to add your project to the list!_
71
71
  - [`ruby -ruby-next`](#uby-next)
72
72
  - [Logging & Debugging](#logging-and-debugging)
73
73
  - [RuboCop](#rubocop)
74
+ - [Using with IRB](#irb)
75
+ - [Using with Pry](#pry)
74
76
  - [Using with EOL Rubies](#using-with-eol-rubies)
75
77
  - [Proposed & edge features](#proposed-and-edge-features)
76
78
  - [Known limitations](#known-limitations)
@@ -454,6 +456,38 @@ AllCops:
454
456
 
455
457
  **NOTE:** you need `ruby-next` gem available in the environment where you run RuboCop (having `ruby-next-core` is not enough).
456
458
 
459
+ ## IRB
460
+
461
+ Ruby Next supports IRB. In order to enable edge Ruby features for your REPL, add the following line to your `.irbrc`:
462
+
463
+ ```ruby
464
+ require "ruby-next/irb"
465
+ ```
466
+
467
+ Alternatively, you can require it at startup:
468
+
469
+ ```sh
470
+ irb -r ruby-next/irb
471
+ # or
472
+ irb -ruby-next/irb
473
+ ```
474
+
475
+ ## Pry
476
+
477
+ Ruby Next supports Pry. In order to enable edge Ruby features for your REPL, add the following line to your `.pryrc`:
478
+
479
+ ```ruby
480
+ require "ruby-next/pry"
481
+ ```
482
+
483
+ Alternatively, you can require it at startup:
484
+
485
+ ```sh
486
+ pry -r ruby-next/pry
487
+ # or
488
+ pry -ruby-next/pry
489
+ ```
490
+
457
491
  ## Using with EOL Rubies
458
492
 
459
493
  We currently provide support for Ruby 2.2, 2.3 and 2.4.
@@ -510,9 +544,9 @@ These features are disabled by default, you must opt-in in one of the following
510
544
  # It's important to load language module first
511
545
  require "ruby-next/language"
512
546
 
513
- require "ruby-next/language/edge"
547
+ require "ruby-next/language/rewriters/edge"
514
548
  # or
515
- require "ruby-next/language/proposed"
549
+ require "ruby-next/language/rewriters/proposed"
516
550
 
517
551
  # and then activate the runtime mode
518
552
  require "ruby-next/language/runtime"
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.14.1
4
+ version: 0.15.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: 2022-01-21 00:00:00.000000000 Z
11
+ date: 2022-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-next-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.1
19
+ version: 0.15.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.14.1
26
+ version: 0.15.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-next-parser
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.2.22
91
+ rubygems_version: 3.3.7
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Make older Rubies quack like edge Ruby