ruby-next 0.14.0 → 0.15.1

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 +22 -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: 83cba15364cdf7a70449a2516549ba4d824fb06cdfdb6a49add645ab5ce6cc7a
4
- data.tar.gz: fc131a17d022a4fd367ad58eda5e8a4c0eaf49cbd122a1151cd4bb72a3462406
3
+ metadata.gz: 2b2699cdf9f01e514789dbef5d69e2706a68277e635473748bed993271b91692
4
+ data.tar.gz: 725be64c1454529c2a126fff08531ad877aa56e8018b9d9654ee3ae8c95b1b29
5
5
  SHA512:
6
- metadata.gz: 8cebc2b5299b23a16ba5f303219b32ce5d90d9636778220ef6254a1743122b433ce57da1f887daaa1b90f78184c59df8c8684ef1656d26031057e6b492071c03
7
- data.tar.gz: 5e98223fa663a2bca82819e6cb9275ead0c7ff2709fb2c49c050203b8441226d03acba611ef5c530f2aae44d996338f311db987b9ab31ea50b7843434e535361
6
+ metadata.gz: afc743d3359491511eead5157ce6224a37ff74faa7905254b66ed0f739edc19ac0453d22223443d3e44c98c5bfc6ec50a256f4f218f597ab527376ef41ec231e
7
+ data.tar.gz: 300cb0f207bf6bc3ea706c57401e269a1572ba3b2c16dfce6a268cb047c96c188e8288c272163cab50d44965e96fef0b54b9ca91ebaf762217e1a9b3d5235b09
data/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.15.1 (2022-04-05)
6
+
7
+ - Fix transpiling `rescue` within nested blocks. ([@palkan][])
8
+
9
+ ## 0.15.0 (2022-03-21)
10
+
11
+ - Support IRB ([@palkan][])
12
+
13
+ - Create empty `.rbnext` folder during `nextify` if nothing to transpile. ([@palkan][])
14
+
15
+ This would prevent from auto-transpiling a library every time when no files should be transpiled.
16
+
17
+ - Auto-transpile using the current Ruby version. ([@palkan][])
18
+
19
+ - Support Pry. ([@baygeldin][])
20
+
21
+ - Add `rescue/ensure/else` within block rewriter for Ruby < 2.5. ([@fargelus][])
22
+
23
+ ## 0.14.1 (2022-01-21)
24
+
25
+ - Fix nested find patterns transpiling. ([@palkan][])
26
+
5
27
  ## 0.14.0 🎄
6
28
 
7
29
  - Add `Integer.try_convert`. ([@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.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-29 00:00:00.000000000 Z
11
+ date: 2022-04-05 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.0
19
+ version: 0.15.1
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.0
26
+ version: 0.15.1
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