parlour 9.1.0 → 9.1.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/parlour/plugin.rb +4 -2
- data/lib/parlour/rbi_generator/rbi_object.rb +10 -5
- data/lib/parlour/rbs_generator/rbs_object.rb +8 -4
- data/lib/parlour/typed_object.rb +2 -1
- data/lib/parlour/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 906222c4fcb94c3f3596055c6b1468b1eeea54ef5931632a2645f14bf9742bfc
|
4
|
+
data.tar.gz: 609ec24f2ff46cec34d42def81ef5149e550c7f4bf2297fb0a909699e37b0e6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0088a07cdaa2bdd29111122b15c4631e7b50ffc909bfb001d043943ddb9eb7ced94ee330e87256a418aa81f11c737daf3b2eee121946c7b5393d4e990b2fcd8
|
7
|
+
data.tar.gz: cbdac77bdc86e9037456b98394ea0127214f049e6fe01bae8117eaa3d80eaad1fcfbbf96586a86a10fbccc236b1125fd2ee46bd7d7c950f64bc5ea4af5bff146
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
5
5
|
|
6
|
+
## [9.1.1] - 2025-05-28
|
7
|
+
### Fixed
|
8
|
+
- Replaced YARD `@abstract` directives, as they now conflict with Sorbet's `abstract!` directives
|
9
|
+
when using Tapioca
|
10
|
+
|
6
11
|
## [9.1.0] - 2025-03-03
|
7
12
|
### Added
|
8
13
|
- Constants can now be generated or parsed with heredoc strings. (Thanks @apiology)
|
data/lib/parlour/plugin.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# typed: true
|
2
2
|
module Parlour
|
3
3
|
# The base class for user-defined RBI generation plugins.
|
4
|
-
#
|
4
|
+
#
|
5
|
+
# This class is *abstract*.
|
5
6
|
class Plugin
|
6
7
|
extend T::Sig
|
7
8
|
extend T::Helpers
|
@@ -57,7 +58,8 @@ module Parlour
|
|
57
58
|
# Plugin subclasses should redefine this method and do their RBI generation
|
58
59
|
# inside it.
|
59
60
|
#
|
60
|
-
#
|
61
|
+
# This method is *abstract*.
|
62
|
+
#
|
61
63
|
# @param root [RbiGenerator::Namespace] The root {RbiGenerator::Namespace}.
|
62
64
|
# @return [void]
|
63
65
|
def generate(root); end
|
@@ -5,7 +5,8 @@ module Parlour
|
|
5
5
|
# entire lines of an RBI, such as {Namespace} and {Method}. (As an example,
|
6
6
|
# {Parameter} is _not_ a subclass because it does not generate lines, only
|
7
7
|
# segments of definition and signature lines.)
|
8
|
-
#
|
8
|
+
#
|
9
|
+
# This class is *abstract*.
|
9
10
|
class RbiObject < TypedObject
|
10
11
|
abstract!
|
11
12
|
|
@@ -35,7 +36,8 @@ module Parlour
|
|
35
36
|
end
|
36
37
|
# Generates the RBI lines for this object.
|
37
38
|
#
|
38
|
-
#
|
39
|
+
# This method is *abstract*.
|
40
|
+
#
|
39
41
|
# @param indent_level [Integer] The indentation level to generate the lines at.
|
40
42
|
# @param options [Options] The formatting options to use.
|
41
43
|
# @return [Array<String>] The RBI lines, formatted as specified.
|
@@ -50,7 +52,8 @@ module Parlour
|
|
50
52
|
# into this instance using {merge_into_self}. Each subclass will have its
|
51
53
|
# own criteria on what allows objects to be mergeable.
|
52
54
|
#
|
53
|
-
#
|
55
|
+
# This method is *abstract*.
|
56
|
+
#
|
54
57
|
# @param others [Array<RbiGenerator::RbiObject>] An array of other {RbiObject} instances.
|
55
58
|
# @return [Boolean] Whether this instance may be merged with them.
|
56
59
|
def mergeable?(others); end
|
@@ -64,7 +67,8 @@ module Parlour
|
|
64
67
|
# subclass will do this differently.
|
65
68
|
# You MUST ensure that {mergeable?} is true for those instances.
|
66
69
|
#
|
67
|
-
#
|
70
|
+
# This method is *abstract*.
|
71
|
+
#
|
68
72
|
# @param others [Array<RbiGenerator::RbiObject>] An array of other {RbiObject} instances.
|
69
73
|
# @return [void]
|
70
74
|
def merge_into_self(others); end
|
@@ -74,7 +78,8 @@ module Parlour
|
|
74
78
|
# been specified as RBI-style types, generalises them into type instances
|
75
79
|
# from the {Parlour::Types} module.
|
76
80
|
#
|
77
|
-
#
|
81
|
+
# This method is *abstract*.
|
82
|
+
#
|
78
83
|
# @return [void]
|
79
84
|
def generalize_from_rbi!; end
|
80
85
|
end
|
@@ -5,7 +5,8 @@ module Parlour
|
|
5
5
|
# entire lines of an RBS, such as {Namespace} and {Method}. (As an example,
|
6
6
|
# {Parameter} is _not_ a subclass because it does not generate lines, only
|
7
7
|
# segments of definition lines.)
|
8
|
-
#
|
8
|
+
#
|
9
|
+
# This class is *abstract*.
|
9
10
|
class RbsObject < TypedObject
|
10
11
|
abstract!
|
11
12
|
|
@@ -35,7 +36,8 @@ module Parlour
|
|
35
36
|
end
|
36
37
|
# Generates the RBS lines for this object.
|
37
38
|
#
|
38
|
-
#
|
39
|
+
# This method is *abstract*.
|
40
|
+
#
|
39
41
|
# @param indent_level [Integer] The indentation level to generate the lines at.
|
40
42
|
# @param options [Options] The formatting options to use.
|
41
43
|
# @return [Array<String>] The RBS lines, formatted as specified.
|
@@ -50,7 +52,8 @@ module Parlour
|
|
50
52
|
# into this instance using {merge_into_self}. Each subclass will have its
|
51
53
|
# own criteria on what allows objects to be mergeable.
|
52
54
|
#
|
53
|
-
#
|
55
|
+
# This method is *abstract*.
|
56
|
+
#
|
54
57
|
# @param others [Array<RbsGenerator::RbsObject>] An array of other {RbsObject} instances.
|
55
58
|
# @return [Boolean] Whether this instance may be merged with them.
|
56
59
|
def mergeable?(others); end
|
@@ -64,7 +67,8 @@ module Parlour
|
|
64
67
|
# subclass will do this differently.
|
65
68
|
# You MUST ensure that {mergeable?} is true for those instances.
|
66
69
|
#
|
67
|
-
#
|
70
|
+
# This method is *abstract*.
|
71
|
+
#
|
68
72
|
# @param others [Array<RbsGenerator::RbsObject>] An array of other {RbsObject} instances.
|
69
73
|
# @return [void]
|
70
74
|
def merge_into_self(others); end
|
data/lib/parlour/typed_object.rb
CHANGED
@@ -148,7 +148,8 @@ module Parlour
|
|
148
148
|
# - If it is a hash, it must be of the format { Symbol => String }. The
|
149
149
|
# given string will be used instead of calling the symbol.
|
150
150
|
#
|
151
|
-
#
|
151
|
+
# This method is *abstract*.
|
152
|
+
#
|
152
153
|
# @return [<Symbol, String>]
|
153
154
|
def describe_attrs; end
|
154
155
|
|
data/lib/parlour/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parlour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.1.
|
4
|
+
version: 9.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Christiansen
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-05-28 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: sorbet-runtime
|
@@ -150,7 +149,6 @@ dependencies:
|
|
150
149
|
- - ">="
|
151
150
|
- !ruby/object:Gem::Version
|
152
151
|
version: '0'
|
153
|
-
description:
|
154
152
|
email:
|
155
153
|
- hello@aaronc.cc
|
156
154
|
executables:
|
@@ -228,7 +226,6 @@ homepage: https://github.com/AaronC81/parlour
|
|
228
226
|
licenses:
|
229
227
|
- MIT
|
230
228
|
metadata: {}
|
231
|
-
post_install_message:
|
232
229
|
rdoc_options: []
|
233
230
|
require_paths:
|
234
231
|
- lib
|
@@ -243,8 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
240
|
- !ruby/object:Gem::Version
|
244
241
|
version: '0'
|
245
242
|
requirements: []
|
246
|
-
rubygems_version: 3.
|
247
|
-
signing_key:
|
243
|
+
rubygems_version: 3.6.2
|
248
244
|
specification_version: 4
|
249
245
|
summary: A type information generator, merger and parser for Sorbet and Ruby 3/Steep
|
250
246
|
test_files: []
|