ruby-next 1.0.2 → 1.0.3

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 +4 -0
  3. data/README.md +4 -0
  4. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 582bed282b94d002360230275370e6ba44507ee75294ea0e5a892a0d991e4bb2
4
- data.tar.gz: 1e5a75bd9783c3e1f27b2285dbbbc9cc71e892bd4a4c2eab064beea568f32424
3
+ metadata.gz: e404053f4c0ea48bfed4dca7cd28446c912b3371f2a318dae6da890ff0764be4
4
+ data.tar.gz: 4f520ce514d2a4d1b9ec5491e3d47fedf821ecb0841038e4f49b96f44ea7ddfd
5
5
  SHA512:
6
- metadata.gz: 71d9afb628d2cff983b6a419c9bec6c8b1635af9aa70b40a8fd59e6e9daa95e78cc204fb84e02af2c6789e4f22622d093e04414b5618129c956fc3082b529090
7
- data.tar.gz: e76d9077c8a7cda3351a4bb96b3836236b7d0ec7d0efabbdc3f192c51bd538445254fe9c7a8085d7c00b72647280a3d7ed5e8f5174f5d6074c900ba1482ea422
6
+ metadata.gz: 17e38527a8ba3423c0c7f0605d0bdf76e32fbbed8c95608b1af708bba5ed00f8292d5e863a6a96af05a73e3217b168ce6c2508be033e52e6caeb0f0847962f29
7
+ data.tar.gz: 71b6e39a4b334728d96c5f62170bd80675475d10280b200da743dde105473ea52571c41a8e52504ac80065ec0e24e69b5a999d53601750736cec5d51ac3e750b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.0.3 (2024-04-18)
6
+
7
+ - Fix RuboCop compatibility.
8
+
5
9
  ## 1.0.2 (2024-02-23)
6
10
 
7
11
  - Automatically mark context as dirty if `#safe_rewrite` modifies source code. ([@palkan][])
data/README.md CHANGED
@@ -565,6 +565,9 @@ Wonder what would happen if Ruby get a null coalescing operator (`??=`) or some
565
565
 
566
566
  Ruby Next allows you to write your own syntax rewriters. Full-featured rewriters (used by Ruby Next itself) operate on AST and usually require parser modifications. However, we also support text-based rewriters which can be used to experiment with new syntax much quicker without dealing with grammars, parsers and syntax trees.
567
567
 
568
+ > [!TIP]
569
+ > You can experiment with Ruby Next rewriters at our [online playground][playground]!
570
+
568
571
  To implement a text-based rewriter, you need to create a new class inherited from `RubyNext::Language::Rewriters::Text` and implementing either `#rewrite` or `#safe_rewrite` method. For example, the method reference operator (`.:`) could be implemented as follows:
569
572
 
570
573
  ```ruby
@@ -704,3 +707,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
704
707
  [require-hooks]: https://github.com/ruby-next/require-hooks
705
708
  [Natalie]: https://natalie-lang.org
706
709
  [Paco]: https://github.com/ruby-next/paco
710
+ [playground]: https://ruby-next.github.io
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-23 00:00:00.000000000 Z
11
+ date: 2024-04-18 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: 1.0.2
19
+ version: 1.0.3
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.2
26
+ version: 1.0.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-next-parser
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -101,7 +101,7 @@ metadata:
101
101
  documentation_uri: https://github.com/ruby-next/ruby-next/blob/master/README.md
102
102
  homepage_uri: https://github.com/ruby-next/ruby-next
103
103
  source_code_uri: https://github.com/ruby-next/ruby-next
104
- post_install_message:
104
+ post_install_message:
105
105
  rdoc_options: []
106
106
  require_paths:
107
107
  - lib
@@ -116,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.4.20
120
- signing_key:
119
+ rubygems_version: 3.4.19
120
+ signing_key:
121
121
  specification_version: 4
122
122
  summary: Make older Rubies quack like edge Ruby
123
123
  test_files: []