ruby-next 1.0.3 → 1.1.0

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 +4 -0
  3. data/README.md +15 -1
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e404053f4c0ea48bfed4dca7cd28446c912b3371f2a318dae6da890ff0764be4
4
- data.tar.gz: 4f520ce514d2a4d1b9ec5491e3d47fedf821ecb0841038e4f49b96f44ea7ddfd
3
+ metadata.gz: 8d02021cba138ffde5ada984fd1d3848a6fe666128bf9f61ae8fd4d16ea3e762
4
+ data.tar.gz: c9b212735494e26f9ccfe759e5cd039f1d8217e705b97fcde118698ab43d97a3
5
5
  SHA512:
6
- metadata.gz: 17e38527a8ba3423c0c7f0605d0bdf76e32fbbed8c95608b1af708bba5ed00f8292d5e863a6a96af05a73e3217b168ce6c2508be033e52e6caeb0f0847962f29
7
- data.tar.gz: 71b6e39a4b334728d96c5f62170bd80675475d10280b200da743dde105473ea52571c41a8e52504ac80065ec0e24e69b5a999d53601750736cec5d51ac3e750b
6
+ metadata.gz: a4e958626a9c250e4425a64a233bd9923035421046241a34b293118716e9c4e5704173b4cb258b213e3010ebdae6796b262bc0346a33dc63d1a45838c6e76897
7
+ data.tar.gz: 4c4969d33ccee6113a0d4e1a2c5eb7e3392340479e836fb2970e651b1dad1a91eecaafef11950a7f063f6c1fba0c1c4419734d6e0079dc9e3e5f6564ea942194
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.1.0 (2025-01-15)
6
+
7
+ - Prepare for Ruby 3.5.
8
+
5
9
  ## 1.0.3 (2024-04-18)
6
10
 
7
11
  - Fix RuboCop compatibility.
data/README.md CHANGED
@@ -364,6 +364,20 @@ If the command fails we warn the end user.
364
364
 
365
365
  This feature, _auto-transpiling_, is **disabled** by default (will likely be enabled in future versions). You can enable it by calling `RubyNext::Language.setup_gem_load_path(transpile: true)`.
366
366
 
367
+ ### Dependency-less setup
368
+
369
+ If you want to avoid adding `ruby-next-core` to your gem's dependencies, you can tweak the `$LOAD_PATH` yourself. It's much easier to do if you go with a single transpiled version per source file (i.e., use `--single-version` or specify particular rewriters using the `--rewrite` option of the `ruby-next nextify` command). If so, you can drop the following snippet to your gem's entrypoint:
370
+
371
+ ```ruby
372
+ # lib/my_gem.rb
373
+ $LOAD_PATH.unshift "#{__dir__}/.rbnext"
374
+
375
+ # Then go `require` statements
376
+ # ...
377
+ ```
378
+
379
+ That's it! Keep in mind that in this cases there is no auto-transpiling support (so, you may want to keep the transpiled files in the repository to allow installing the gem from source).
380
+
367
381
  ## Runtime usage
368
382
 
369
383
  It is also possible to transpile Ruby source code in run-time via Ruby Next.
@@ -552,7 +566,7 @@ require "ruby-next/language/runtime"
552
566
 
553
567
  ### Supported edge features
554
568
 
555
- - Implicit `it` block parameter ([#19890](https://bugs.ruby-lang.org/issues/18980)).
569
+ None yet.
556
570
 
557
571
  ### Supported proposed features
558
572
 
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: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-18 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-next-core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.3
19
+ version: 1.1.0
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: 1.0.3
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-next-parser
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.2.0
33
+ version: 3.4.0.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 3.2.2.0
40
+ version: 3.4.0.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: require-hooks
43
43
  requirement: !ruby/object:Gem::Requirement