rbs 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 529f6ca8f4e9a3c6c81b8c69cbdd9470107a07f23051332fab951d3d1df19233
4
- data.tar.gz: 5291bd4b15c66fc7fa4c80cf117dfef2fbb6112d2dc5d9b2608338d5b6bc6c84
3
+ metadata.gz: e35554c5e6cea0f61928bfdc6faaf896414118057a8889c82dd1d6dc87811811
4
+ data.tar.gz: f6506b40efbcc5df5ffeb51ebd700e63311b76aaf6c9627e542aecf8d16232b8
5
5
  SHA512:
6
- metadata.gz: 1b2e9c72861c2e13fcd7b9eb5fbcbb21764ebfe800681ece0d65fc83eb4ec8e12d837e97c312e954e5f784e78ca7f22e6c2c6dbcbfe6e793a9af390035b43afb
7
- data.tar.gz: fdeb0b0f967399298bb891a5708cdfbcdd7d60386f4b006c74f230648a871dca1ba41155483c582a41c21d1481fa3d28273143e3302e4ea9f83457f5309b88dc
6
+ metadata.gz: b075058eceed815b0fb39a844dc663bda7651694a79a024a33196a252e58eb6767cdc14595fbf989d02f8558ac4b252d543e8e13bfd930abd046e259d12e97a3
7
+ data.tar.gz: 7a19f068dc2278bc2bd0332559ecf91c848516f80537ff7bb3bda7cf6084e4c085fbae8f59e7dae241ae16867827e13e81107d154d78c7336cc560eda9084dbb
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 3.2.2 (2023-09-28)
6
+
7
+ ### Library changes
8
+
9
+ * Mark global variables ([\#1552](https://github.com/ruby/rbs/pull/1552), Backport [\#1551](https://github.com/ruby/rbs/pull/1551))
10
+
5
11
  ## 3.2.1 (2023-08-29)
6
12
 
7
13
  ### Signature updates
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbs (3.2.1)
4
+ rbs (3.2.2)
5
5
 
6
6
  PATH
7
7
  remote: test/assets/test-gem
@@ -75,77 +75,78 @@ VALUE RBS_MethodType;
75
75
 
76
76
  VALUE RBS_ParsingError;
77
77
 
78
+ #define IMPORT_CONSTANT(var, parent, name) { var = rb_const_get(parent, rb_intern(name)); rb_gc_register_mark_object(var); }
79
+
78
80
  void rbs__init_constants(void) {
79
- ID id_RBS = rb_intern_const("RBS");
80
-
81
- RBS = rb_const_get(rb_cObject, id_RBS);
82
- RBS_ParsingError = rb_const_get(RBS, rb_intern("ParsingError"));
83
- RBS_AST = rb_const_get(RBS, rb_intern("AST"));
84
- RBS_AST_Comment = rb_const_get(RBS_AST, rb_intern("Comment"));
85
- RBS_AST_Annotation = rb_const_get(RBS_AST, rb_intern("Annotation"));
86
- RBS_AST_TypeParam = rb_const_get(RBS_AST, rb_intern("TypeParam"));
87
-
88
- RBS_AST_Declarations = rb_const_get(RBS_AST, rb_intern("Declarations"));
89
-
90
- RBS_AST_Declarations_TypeAlias = rb_const_get(RBS_AST_Declarations, rb_intern("TypeAlias"));
91
- RBS_AST_Declarations_Constant = rb_const_get(RBS_AST_Declarations, rb_intern("Constant"));
92
- RBS_AST_Declarations_Global = rb_const_get(RBS_AST_Declarations, rb_intern("Global"));
93
- RBS_AST_Declarations_Interface = rb_const_get(RBS_AST_Declarations, rb_intern("Interface"));
94
- RBS_AST_Declarations_Module = rb_const_get(RBS_AST_Declarations, rb_intern("Module"));
95
- RBS_AST_Declarations_Module_Self = rb_const_get(RBS_AST_Declarations_Module, rb_intern("Self"));
96
- RBS_AST_Declarations_Class = rb_const_get(RBS_AST_Declarations, rb_intern("Class"));
97
- RBS_AST_Declarations_Class_Super = rb_const_get(RBS_AST_Declarations_Class, rb_intern("Super"));
98
- RBS_AST_Declarations_ClassAlias = rb_const_get(RBS_AST_Declarations, rb_intern("ClassAlias"));
99
- RBS_AST_Declarations_ModuleAlias = rb_const_get(RBS_AST_Declarations, rb_intern("ModuleAlias"));
100
-
101
- RBS_AST_Directives = rb_const_get(RBS_AST, rb_intern("Directives"));
102
- RBS_AST_Directives_Use = rb_const_get(RBS_AST_Directives, rb_intern("Use"));
103
- RBS_AST_Directives_Use_SingleClause = rb_const_get(RBS_AST_Directives_Use, rb_intern("SingleClause"));
104
- RBS_AST_Directives_Use_WildcardClause = rb_const_get(RBS_AST_Directives_Use, rb_intern("WildcardClause"));
105
-
106
- RBS_AST_Members = rb_const_get(RBS_AST, rb_intern("Members"));
107
- RBS_AST_Members_Alias = rb_const_get(RBS_AST_Members, rb_intern("Alias"));
108
- RBS_AST_Members_AttrAccessor = rb_const_get(RBS_AST_Members, rb_intern("AttrAccessor"));
109
- RBS_AST_Members_AttrReader = rb_const_get(RBS_AST_Members, rb_intern("AttrReader"));
110
- RBS_AST_Members_AttrWriter = rb_const_get(RBS_AST_Members, rb_intern("AttrWriter"));
111
- RBS_AST_Members_ClassInstanceVariable = rb_const_get(RBS_AST_Members, rb_intern("ClassInstanceVariable"));
112
- RBS_AST_Members_ClassVariable = rb_const_get(RBS_AST_Members, rb_intern("ClassVariable"));
113
- RBS_AST_Members_Extend = rb_const_get(RBS_AST_Members, rb_intern("Extend"));
114
- RBS_AST_Members_Include = rb_const_get(RBS_AST_Members, rb_intern("Include"));
115
- RBS_AST_Members_InstanceVariable = rb_const_get(RBS_AST_Members, rb_intern("InstanceVariable"));
116
- RBS_AST_Members_MethodDefinition = rb_const_get(RBS_AST_Members, rb_intern("MethodDefinition"));
117
- RBS_AST_Members_MethodDefinition_Overload = rb_const_get(RBS_AST_Members_MethodDefinition, rb_intern("Overload"));
118
- RBS_AST_Members_Prepend = rb_const_get(RBS_AST_Members, rb_intern("Prepend"));
119
- RBS_AST_Members_Private = rb_const_get(RBS_AST_Members, rb_intern("Private"));
120
- RBS_AST_Members_Public = rb_const_get(RBS_AST_Members, rb_intern("Public"));
121
-
122
- RBS_Namespace = rb_const_get(RBS, rb_intern("Namespace"));
123
- RBS_TypeName = rb_const_get(RBS, rb_intern("TypeName"));
124
- RBS_Types = rb_const_get(RBS, rb_intern("Types"));
125
- RBS_Types_Alias = rb_const_get(RBS_Types, rb_intern("Alias"));
126
- RBS_Types_Bases = rb_const_get(RBS_Types, rb_intern("Bases"));
127
- RBS_Types_Bases_Any = rb_const_get(RBS_Types_Bases, rb_intern("Any"));
128
- RBS_Types_Bases_Bool = rb_const_get(RBS_Types_Bases, rb_intern("Bool"));
129
- RBS_Types_Bases_Bottom = rb_const_get(RBS_Types_Bases, rb_intern("Bottom"));
130
- RBS_Types_Bases_Class = rb_const_get(RBS_Types_Bases, rb_intern("Class"));
131
- RBS_Types_Bases_Instance = rb_const_get(RBS_Types_Bases, rb_intern("Instance"));
132
- RBS_Types_Bases_Nil = rb_const_get(RBS_Types_Bases, rb_intern("Nil"));
133
- RBS_Types_Bases_Self = rb_const_get(RBS_Types_Bases, rb_intern("Self"));
134
- RBS_Types_Bases_Top = rb_const_get(RBS_Types_Bases, rb_intern("Top"));
135
- RBS_Types_Bases_Void = rb_const_get(RBS_Types_Bases, rb_intern("Void"));
136
- RBS_Types_Block = rb_const_get(RBS_Types, rb_intern("Block"));
137
- RBS_Types_ClassInstance = rb_const_get(RBS_Types, rb_intern("ClassInstance"));
138
- RBS_Types_ClassSingleton = rb_const_get(RBS_Types, rb_intern("ClassSingleton"));
139
- RBS_Types_Function = rb_const_get(RBS_Types, rb_intern("Function"));
140
- RBS_Types_Function_Param = rb_const_get(RBS_Types_Function, rb_intern("Param"));
141
- RBS_Types_Interface = rb_const_get(RBS_Types, rb_intern("Interface"));
142
- RBS_Types_Intersection = rb_const_get(RBS_Types, rb_intern("Intersection"));
143
- RBS_Types_Literal = rb_const_get(RBS_Types, rb_intern("Literal"));
144
- RBS_Types_Optional = rb_const_get(RBS_Types, rb_intern("Optional"));
145
- RBS_Types_Proc = rb_const_get(RBS_Types, rb_intern("Proc"));
146
- RBS_Types_Record = rb_const_get(RBS_Types, rb_intern("Record"));
147
- RBS_Types_Tuple = rb_const_get(RBS_Types, rb_intern("Tuple"));
148
- RBS_Types_Union = rb_const_get(RBS_Types, rb_intern("Union"));
149
- RBS_Types_Variable = rb_const_get(RBS_Types, rb_intern("Variable"));
150
- RBS_MethodType = rb_const_get(RBS, rb_intern("MethodType"));
81
+ IMPORT_CONSTANT(RBS, rb_cObject, "RBS");
82
+ IMPORT_CONSTANT(RBS_ParsingError, RBS, "ParsingError");
83
+
84
+ IMPORT_CONSTANT(RBS_AST, RBS, "AST");
85
+ IMPORT_CONSTANT(RBS_AST_Comment, RBS_AST, "Comment");
86
+ IMPORT_CONSTANT(RBS_AST_Annotation, RBS_AST, "Annotation");
87
+ IMPORT_CONSTANT(RBS_AST_TypeParam, RBS_AST, "TypeParam");
88
+
89
+ IMPORT_CONSTANT(RBS_AST_Declarations, RBS_AST, "Declarations");
90
+
91
+ IMPORT_CONSTANT(RBS_AST_Declarations_TypeAlias, RBS_AST_Declarations, "TypeAlias");
92
+ IMPORT_CONSTANT(RBS_AST_Declarations_Constant, RBS_AST_Declarations, "Constant");
93
+ IMPORT_CONSTANT(RBS_AST_Declarations_Global, RBS_AST_Declarations, "Global");
94
+ IMPORT_CONSTANT(RBS_AST_Declarations_Interface, RBS_AST_Declarations, "Interface");
95
+ IMPORT_CONSTANT(RBS_AST_Declarations_Module, RBS_AST_Declarations, "Module");
96
+ IMPORT_CONSTANT(RBS_AST_Declarations_Module_Self, RBS_AST_Declarations_Module, "Self");
97
+ IMPORT_CONSTANT(RBS_AST_Declarations_Class, RBS_AST_Declarations, "Class");
98
+ IMPORT_CONSTANT(RBS_AST_Declarations_Class_Super, RBS_AST_Declarations_Class, "Super");
99
+ IMPORT_CONSTANT(RBS_AST_Declarations_ClassAlias, RBS_AST_Declarations, "ClassAlias");
100
+ IMPORT_CONSTANT(RBS_AST_Declarations_ModuleAlias, RBS_AST_Declarations, "ModuleAlias");
101
+
102
+ IMPORT_CONSTANT(RBS_AST_Directives, RBS_AST, "Directives");
103
+ IMPORT_CONSTANT(RBS_AST_Directives_Use, RBS_AST_Directives, "Use");
104
+ IMPORT_CONSTANT(RBS_AST_Directives_Use_SingleClause, RBS_AST_Directives_Use, "SingleClause");
105
+ IMPORT_CONSTANT(RBS_AST_Directives_Use_WildcardClause, RBS_AST_Directives_Use, "WildcardClause");
106
+
107
+ IMPORT_CONSTANT(RBS_AST_Members, RBS_AST, "Members");
108
+ IMPORT_CONSTANT(RBS_AST_Members_Alias, RBS_AST_Members, "Alias");
109
+ IMPORT_CONSTANT(RBS_AST_Members_AttrAccessor, RBS_AST_Members, "AttrAccessor");
110
+ IMPORT_CONSTANT(RBS_AST_Members_AttrReader, RBS_AST_Members, "AttrReader");
111
+ IMPORT_CONSTANT(RBS_AST_Members_AttrWriter, RBS_AST_Members, "AttrWriter");
112
+ IMPORT_CONSTANT(RBS_AST_Members_ClassInstanceVariable, RBS_AST_Members, "ClassInstanceVariable");
113
+ IMPORT_CONSTANT(RBS_AST_Members_ClassVariable, RBS_AST_Members, "ClassVariable");
114
+ IMPORT_CONSTANT(RBS_AST_Members_Extend, RBS_AST_Members, "Extend");
115
+ IMPORT_CONSTANT(RBS_AST_Members_Include, RBS_AST_Members, "Include");
116
+ IMPORT_CONSTANT(RBS_AST_Members_InstanceVariable, RBS_AST_Members, "InstanceVariable");
117
+ IMPORT_CONSTANT(RBS_AST_Members_MethodDefinition, RBS_AST_Members, "MethodDefinition");
118
+ IMPORT_CONSTANT(RBS_AST_Members_MethodDefinition_Overload, RBS_AST_Members_MethodDefinition, "Overload");
119
+ IMPORT_CONSTANT(RBS_AST_Members_Prepend, RBS_AST_Members, "Prepend");
120
+ IMPORT_CONSTANT(RBS_AST_Members_Private, RBS_AST_Members, "Private");
121
+ IMPORT_CONSTANT(RBS_AST_Members_Public, RBS_AST_Members, "Public");
122
+
123
+ IMPORT_CONSTANT(RBS_Namespace, RBS, "Namespace");
124
+ IMPORT_CONSTANT(RBS_TypeName, RBS, "TypeName");
125
+ IMPORT_CONSTANT(RBS_Types, RBS, "Types");
126
+ IMPORT_CONSTANT(RBS_Types_Alias, RBS_Types, "Alias");
127
+ IMPORT_CONSTANT(RBS_Types_Bases, RBS_Types, "Bases");
128
+ IMPORT_CONSTANT(RBS_Types_Bases_Any, RBS_Types_Bases, "Any");
129
+ IMPORT_CONSTANT(RBS_Types_Bases_Bool, RBS_Types_Bases, "Bool");
130
+ IMPORT_CONSTANT(RBS_Types_Bases_Bottom, RBS_Types_Bases, "Bottom");
131
+ IMPORT_CONSTANT(RBS_Types_Bases_Class, RBS_Types_Bases, "Class");
132
+ IMPORT_CONSTANT(RBS_Types_Bases_Instance, RBS_Types_Bases, "Instance");
133
+ IMPORT_CONSTANT(RBS_Types_Bases_Nil, RBS_Types_Bases, "Nil");
134
+ IMPORT_CONSTANT(RBS_Types_Bases_Self, RBS_Types_Bases, "Self");
135
+ IMPORT_CONSTANT(RBS_Types_Bases_Top, RBS_Types_Bases, "Top");
136
+ IMPORT_CONSTANT(RBS_Types_Bases_Void, RBS_Types_Bases, "Void");
137
+ IMPORT_CONSTANT(RBS_Types_Block, RBS_Types, "Block");
138
+ IMPORT_CONSTANT(RBS_Types_ClassInstance, RBS_Types, "ClassInstance");
139
+ IMPORT_CONSTANT(RBS_Types_ClassSingleton, RBS_Types, "ClassSingleton");
140
+ IMPORT_CONSTANT(RBS_Types_Function, RBS_Types, "Function");
141
+ IMPORT_CONSTANT(RBS_Types_Function_Param, RBS_Types_Function, "Param");
142
+ IMPORT_CONSTANT(RBS_Types_Interface, RBS_Types, "Interface");
143
+ IMPORT_CONSTANT(RBS_Types_Intersection, RBS_Types, "Intersection");
144
+ IMPORT_CONSTANT(RBS_Types_Literal, RBS_Types, "Literal");
145
+ IMPORT_CONSTANT(RBS_Types_Optional, RBS_Types, "Optional");
146
+ IMPORT_CONSTANT(RBS_Types_Proc, RBS_Types, "Proc");
147
+ IMPORT_CONSTANT(RBS_Types_Record, RBS_Types, "Record");
148
+ IMPORT_CONSTANT(RBS_Types_Tuple, RBS_Types, "Tuple");
149
+ IMPORT_CONSTANT(RBS_Types_Union, RBS_Types, "Union");
150
+ IMPORT_CONSTANT(RBS_Types_Variable, RBS_Types, "Variable");
151
+ IMPORT_CONSTANT(RBS_MethodType, RBS, "MethodType");
151
152
  }
data/lib/rbs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RBS
4
- VERSION = "3.2.1"
4
+ VERSION = "3.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-29 00:00:00.000000000 Z
11
+ date: 2023-09-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: RBS is the language for type signatures for Ruby and standard library
14
14
  definitions.