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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f18ccd38395c2840b06304074efe58ed6b0f72b6c12bf727234b182adce886d
4
- data.tar.gz: afea2a669210749f9ad5bd8eb59eba9a02dfbbc4ef8069905a0c7fcfaef28f1a
3
+ metadata.gz: 906222c4fcb94c3f3596055c6b1468b1eeea54ef5931632a2645f14bf9742bfc
4
+ data.tar.gz: 609ec24f2ff46cec34d42def81ef5149e550c7f4bf2297fb0a909699e37b0e6c
5
5
  SHA512:
6
- metadata.gz: 20da270743193873e21be0422e6d834b3aa4fa042ad4e1e44eab1ec5abcf5a70ef1a67178cb4946155ed7776354d1e7ad918511d3fa8aec44b79150212764dfa
7
- data.tar.gz: c751ab8c92da95ddf0450c1ab5259a87e8c88b9443cb2628d53a8dbec85830f0b5016271f56d0c0300250bde212dff361f9b46c5b29e5df1f8eb732970a8adf9
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)
@@ -1,7 +1,8 @@
1
1
  # typed: true
2
2
  module Parlour
3
3
  # The base class for user-defined RBI generation plugins.
4
- # @abstract
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
- # @abstract
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
- # @abstract
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
- # @abstract
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
- # @abstract
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
- # @abstract
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
- # @abstract
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
- # @abstract
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
- # @abstract
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
- # @abstract
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
- # @abstract
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
@@ -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
- # @abstract
151
+ # This method is *abstract*.
152
+ #
152
153
  # @return [<Symbol, String>]
153
154
  def describe_attrs; end
154
155
 
@@ -1,5 +1,5 @@
1
1
  # typed: strong
2
2
  module Parlour
3
3
  # The library version.
4
- VERSION = '9.1.0'
4
+ VERSION = '9.1.1'
5
5
  end
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.0
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-03-03 00:00:00.000000000 Z
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.5.9
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: []