prism 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/docs/releasing.md +4 -1
- data/ext/prism/extension.c +3 -0
- data/ext/prism/extension.h +1 -1
- data/include/prism/version.h +2 -2
- data/lib/prism/serialize.rb +1 -1
- data/prism.gemspec +1 -1
- data/rbi/prism.rbi +5536 -5540
- data/rbi/prism_static.rbi +138 -142
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a4a6459265bca653fd8db970fcf2d3863bca8bf0b839629beff1a2a8bed68df
|
4
|
+
data.tar.gz: 3b309ffb711f9f6a5b57e3b130a66ed8c3ffc172c903642e74b00d4729d41016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 631a5028085ce1c853ab38b2e82462c869ba70860d8b8fc0532e1fdc5a53329f4aa582b0f2be58363d4c642f8d576751b14fa76e685aa90b68e854c6c51a38c3
|
7
|
+
data.tar.gz: e2f7601d879b9f4d81e8e80d8ddf4776fca36395e38e460798635810ab229054753ad172dce8577174253b3353cc99d3176a7c1bdc31e1205a2f4e000a7ae3b3
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.17.1] - 2023-11-03
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Do not use constant nesting in RBI files.
|
14
|
+
|
9
15
|
## [0.17.0] - 2023-11-03
|
10
16
|
|
11
17
|
### Added
|
@@ -233,7 +239,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
233
239
|
|
234
240
|
- 🎉 Initial release! 🎉
|
235
241
|
|
236
|
-
[unreleased]: https://github.com/ruby/prism/compare/v0.17.
|
242
|
+
[unreleased]: https://github.com/ruby/prism/compare/v0.17.1...HEAD
|
243
|
+
[0.17.1]: https://github.com/ruby/prism/compare/v0.17.0...v0.17.1
|
237
244
|
[0.17.0]: https://github.com/ruby/prism/compare/v0.16.0...v0.17.0
|
238
245
|
[0.16.0]: https://github.com/ruby/prism/compare/v0.15.1...v0.16.0
|
239
246
|
[0.15.1]: https://github.com/ruby/prism/compare/v0.15.0...v0.15.1
|
data/docs/releasing.md
CHANGED
@@ -4,7 +4,7 @@ To release a new version of Prism, perform the following steps:
|
|
4
4
|
|
5
5
|
## Preparation
|
6
6
|
|
7
|
-
* Update the CHANGELOG.md file.
|
7
|
+
* Update the `CHANGELOG.md` file.
|
8
8
|
* Add a new section for the new version at the top of the file.
|
9
9
|
* Fill in the relevant changes — it may be easiest to click the link for the `Unreleased` heading to find the commits.
|
10
10
|
* Update the links at the bottom of the file.
|
@@ -24,4 +24,7 @@ To release a new version of Prism, perform the following steps:
|
|
24
24
|
|
25
25
|
## Publishing
|
26
26
|
|
27
|
+
* Update the GitHub release page with a copy of the latest entry in the `CHANGELOG.md` file.
|
27
28
|
* Run `bundle exec rake release` to publish the gem to [rubygems.org](rubygems.org). Note that you must have access to the `prism` gem to do this.
|
29
|
+
* Either download the `wasm` artifact from GitHub actions or generate it yourself with `make wasm`.
|
30
|
+
* Run `npm publish` to publish the JavaScript package to [npmjs.com](npmjs.com). Note that you must have access to the `ruby-prism` package to do this.
|
data/ext/prism/extension.c
CHANGED
@@ -331,6 +331,9 @@ parser_comments(pm_parser_t *parser, VALUE source) {
|
|
331
331
|
case PM_COMMENT___END__:
|
332
332
|
type = rb_cPrismDATAComment;
|
333
333
|
break;
|
334
|
+
default:
|
335
|
+
type = rb_cPrismInlineComment;
|
336
|
+
break;
|
334
337
|
}
|
335
338
|
|
336
339
|
VALUE comment_argv[] = { rb_class_new_instance(3, location_argv, rb_cPrismLocation) };
|
data/ext/prism/extension.h
CHANGED
data/include/prism/version.h
CHANGED
@@ -19,11 +19,11 @@
|
|
19
19
|
/**
|
20
20
|
* The patch version of the Prism library as an int.
|
21
21
|
*/
|
22
|
-
#define PRISM_VERSION_PATCH
|
22
|
+
#define PRISM_VERSION_PATCH 1
|
23
23
|
|
24
24
|
/**
|
25
25
|
* The version of the Prism library as a constant string.
|
26
26
|
*/
|
27
|
-
#define PRISM_VERSION "0.17.
|
27
|
+
#define PRISM_VERSION "0.17.1"
|
28
28
|
|
29
29
|
#endif
|
data/lib/prism/serialize.rb
CHANGED
@@ -31,7 +31,7 @@ module Prism
|
|
31
31
|
|
32
32
|
# The patch version of prism that we are expecting to find in the serialized
|
33
33
|
# strings.
|
34
|
-
PATCH_VERSION =
|
34
|
+
PATCH_VERSION = 1
|
35
35
|
|
36
36
|
# Deserialize the AST represented by the given string into a parse result.
|
37
37
|
def self.load(input, serialized)
|