acts-as-messageable 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/acts-as-messageable.gemspec +9 -2
- data/sorbet/rbi/gems/ancestry@4.3.2.rbi +631 -0
- data/sorbet/rbi/gems/parser@3.2.2.0.rbi +7253 -0
- data/sorbet/rbi/gems/rubocop-ast@1.28.0.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.1.rbi +2503 -0
- data/sorbet/rbi/gems/sqlite3@1.6.2.rbi +1673 -0
- data/sorbet/rbi/gems/tapioca@0.11.4-a4319794491b54d9db1c06df7f3bdffcdf7bf684.rbi +3260 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- metadata +8 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6d21d322dea857c03e2356986444fdd71ba88bc655240dbd0834d61af092260
|
4
|
+
data.tar.gz: b705d6886dc0c8270681f8bb21773a6ea7888f0bc23fc069f8f2101776ce82e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2afafbdbe87459bc1983bcf7b1c9f14ce94578cbcae3416373628af62cb2f69dc591735ce9d30b155e9cc0671897da918e243eff132420ef5742ddbfde352f7
|
7
|
+
data.tar.gz: aae4947bb0ecfd279674e622d0256012f3ac20b07c02c2fc59aa3652f65152ac5f1f2973a23c16134afc88be928534695f641dfee9e433c458cb53aabe43d7f7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/acts-as-messageable.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: acts-as-messageable 1.0.
|
5
|
+
# stub: acts-as-messageable 1.0.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "acts-as-messageable".freeze
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.metadata = { "rubygems_mfa_required" => "true" } if s.respond_to? :metadata=
|
@@ -134,6 +134,7 @@ Gem::Specification.new do |s|
|
|
134
134
|
"sorbet/rbi/gems/activerecord@7.0.4.3.rbi",
|
135
135
|
"sorbet/rbi/gems/activesupport@7.0.4.3.rbi",
|
136
136
|
"sorbet/rbi/gems/addressable@2.4.0.rbi",
|
137
|
+
"sorbet/rbi/gems/ancestry@4.3.2.rbi",
|
137
138
|
"sorbet/rbi/gems/appraisal@2.4.1.rbi",
|
138
139
|
"sorbet/rbi/gems/ast@2.4.2.rbi",
|
139
140
|
"sorbet/rbi/gems/builder@3.2.4.rbi",
|
@@ -166,6 +167,7 @@ Gem::Specification.new do |s|
|
|
166
167
|
"sorbet/rbi/gems/nokogiri@1.14.2.rbi",
|
167
168
|
"sorbet/rbi/gems/oauth2@1.4.8.rbi",
|
168
169
|
"sorbet/rbi/gems/parallel@1.22.1.rbi",
|
170
|
+
"sorbet/rbi/gems/parser@3.2.2.0.rbi",
|
169
171
|
"sorbet/rbi/gems/pg@1.4.6.rbi",
|
170
172
|
"sorbet/rbi/gems/polyfill@1.9.0.rbi",
|
171
173
|
"sorbet/rbi/gems/pry@0.14.2.rbi",
|
@@ -189,6 +191,7 @@ Gem::Specification.new do |s|
|
|
189
191
|
"sorbet/rbi/gems/rspec-mocks@3.12.0.rbi",
|
190
192
|
"sorbet/rbi/gems/rspec-support@3.12.0.rbi",
|
191
193
|
"sorbet/rbi/gems/rspec@3.12.0.rbi",
|
194
|
+
"sorbet/rbi/gems/rubocop-ast@1.28.0.rbi",
|
192
195
|
"sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi",
|
193
196
|
"sorbet/rbi/gems/safe_type@1.1.1.rbi",
|
194
197
|
"sorbet/rbi/gems/semver2@3.4.2.rbi",
|
@@ -196,8 +199,11 @@ Gem::Specification.new do |s|
|
|
196
199
|
"sorbet/rbi/gems/simplecov@0.22.0.rbi",
|
197
200
|
"sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi",
|
198
201
|
"sorbet/rbi/gems/sorbet-coerce@0.7.0.rbi",
|
202
|
+
"sorbet/rbi/gems/spoom@1.2.1.rbi",
|
203
|
+
"sorbet/rbi/gems/sqlite3@1.6.2.rbi",
|
199
204
|
"sorbet/rbi/gems/stringio@3.0.2.rbi",
|
200
205
|
"sorbet/rbi/gems/sync@0.5.0.rbi",
|
206
|
+
"sorbet/rbi/gems/tapioca@0.11.4-a4319794491b54d9db1c06df7f3bdffcdf7bf684.rbi",
|
201
207
|
"sorbet/rbi/gems/term-ansicolor@1.7.1.rbi",
|
202
208
|
"sorbet/rbi/gems/thor@1.2.1.rbi",
|
203
209
|
"sorbet/rbi/gems/thread_safe@0.3.6.rbi",
|
@@ -207,6 +213,7 @@ Gem::Specification.new do |s|
|
|
207
213
|
"sorbet/rbi/gems/unicode-display_width@2.4.2.rbi",
|
208
214
|
"sorbet/rbi/gems/unparser@0.6.7.rbi",
|
209
215
|
"sorbet/rbi/gems/webrick@1.7.0.rbi",
|
216
|
+
"sorbet/rbi/gems/yard-sorbet@0.8.1.rbi",
|
210
217
|
"sorbet/rbi/gems/yard@0.9.28.rbi",
|
211
218
|
"sorbet/rbi/gems/zeitwerk@2.6.7.rbi",
|
212
219
|
"sorbet/rbi/models/acts-as-messageable/message.rbi",
|
@@ -0,0 +1,631 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `ancestry` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem ancestry`.
|
6
|
+
|
7
|
+
# source://ancestry//lib/ancestry/version.rb#1
|
8
|
+
module Ancestry
|
9
|
+
class << self
|
10
|
+
# The value changes the default way that ancestry is stored in the database
|
11
|
+
#
|
12
|
+
# :materialized_path (default and legacy)
|
13
|
+
#
|
14
|
+
# Ancestry is of the form null (for no ancestors) and 1/2/ for children
|
15
|
+
#
|
16
|
+
# :materialized_path2 (preferred)
|
17
|
+
#
|
18
|
+
# Ancestry is of the form '/' (for no ancestors) and '/1/2/' for children
|
19
|
+
#
|
20
|
+
# source://ancestry//lib/ancestry.rb#52
|
21
|
+
def default_ancestry_format; end
|
22
|
+
|
23
|
+
# source://ancestry//lib/ancestry.rb#56
|
24
|
+
def default_ancestry_format=(value); end
|
25
|
+
|
26
|
+
# The value represents the way the id looks for validation
|
27
|
+
#
|
28
|
+
# '[0-9]+' (default) for integer ids
|
29
|
+
# '[-A-Fa-f0-9]{36}' for uuids (though you can find other regular expressions)
|
30
|
+
#
|
31
|
+
# source://ancestry//lib/ancestry.rb#67
|
32
|
+
def default_primary_key_format; end
|
33
|
+
|
34
|
+
# source://ancestry//lib/ancestry.rb#71
|
35
|
+
def default_primary_key_format=(value); end
|
36
|
+
|
37
|
+
# The value changes the default way that ancestry is updated for associated records
|
38
|
+
#
|
39
|
+
# :ruby (default and legacy value)
|
40
|
+
#
|
41
|
+
# Child records will be loaded into memory and updated. callbacks will get called
|
42
|
+
# The callbacks of interest are those that cache values based upon the ancestry value
|
43
|
+
#
|
44
|
+
# :sql (currently only valid in postgres)
|
45
|
+
#
|
46
|
+
# Child records are updated in sql and callbacks will not get called.
|
47
|
+
# Associated records in memory will have the wrong ancestry value
|
48
|
+
#
|
49
|
+
# source://ancestry//lib/ancestry.rb#32
|
50
|
+
def default_update_strategy; end
|
51
|
+
|
52
|
+
# source://ancestry//lib/ancestry.rb#36
|
53
|
+
def default_update_strategy=(value); end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# source://ancestry//lib/ancestry/exceptions.rb#2
|
58
|
+
class Ancestry::AncestryException < ::RuntimeError; end
|
59
|
+
|
60
|
+
# source://ancestry//lib/ancestry/exceptions.rb#5
|
61
|
+
class Ancestry::AncestryIntegrityException < ::Ancestry::AncestryException; end
|
62
|
+
|
63
|
+
# source://ancestry//lib/ancestry/class_methods.rb#2
|
64
|
+
module Ancestry::ClassMethods
|
65
|
+
# Get all nodes and sort them into an empty hash
|
66
|
+
#
|
67
|
+
# source://ancestry//lib/ancestry/class_methods.rb#41
|
68
|
+
def arrange(options = T.unsafe(nil)); end
|
69
|
+
|
70
|
+
# arranges array of nodes to a hierarchical hash
|
71
|
+
#
|
72
|
+
# If a node's parent is not included, the node will be included as if it is a top level node
|
73
|
+
#
|
74
|
+
# @param nodes [Array[Node]] nodes to be arranged
|
75
|
+
#
|
76
|
+
# source://ancestry//lib/ancestry/class_methods.rb#54
|
77
|
+
def arrange_nodes(nodes); end
|
78
|
+
|
79
|
+
# Arrangement to nested array for serialization
|
80
|
+
# You can also supply your own serialization logic using blocks
|
81
|
+
# also allows you to pass the order just as you can pass it to the arrange method
|
82
|
+
#
|
83
|
+
# source://ancestry//lib/ancestry/class_methods.rb#80
|
84
|
+
def arrange_serializable(options = T.unsafe(nil), nodes = T.unsafe(nil), &block); end
|
85
|
+
|
86
|
+
# Build ancestry from parent ids for migration purposes
|
87
|
+
#
|
88
|
+
# source://ancestry//lib/ancestry/class_methods.rb#215
|
89
|
+
def build_ancestry_from_parent_ids!(column = T.unsafe(nil), parent_id = T.unsafe(nil), ancestor_ids = T.unsafe(nil)); end
|
90
|
+
|
91
|
+
# Integrity checking
|
92
|
+
# compromised tree integrity is unlikely without explicitly setting cyclic parents or invalid ancestry and circumventing validation
|
93
|
+
# just in case, raise an AncestryIntegrityException if issues are detected
|
94
|
+
# specify :report => :list to return an array of exceptions or :report => :echo to echo any error messages
|
95
|
+
#
|
96
|
+
# source://ancestry//lib/ancestry/class_methods.rb#127
|
97
|
+
def check_ancestry_integrity!(options = T.unsafe(nil)); end
|
98
|
+
|
99
|
+
# convert a hash of the form {node => children} to an array of nodes, child first
|
100
|
+
#
|
101
|
+
# @param arranged [Hash{Node => {Node => {}, Node => {}}}] arranged nodes
|
102
|
+
#
|
103
|
+
# source://ancestry//lib/ancestry/class_methods.rb#69
|
104
|
+
def flatten_arranged_nodes(arranged, nodes = T.unsafe(nil)); end
|
105
|
+
|
106
|
+
# Orphan strategy writer
|
107
|
+
#
|
108
|
+
# source://ancestry//lib/ancestry/class_methods.rb#25
|
109
|
+
def orphan_strategy=(orphan_strategy); end
|
110
|
+
|
111
|
+
# @return [Boolean]
|
112
|
+
#
|
113
|
+
# source://ancestry//lib/ancestry/class_methods.rb#244
|
114
|
+
def primary_key_is_an_integer?; end
|
115
|
+
|
116
|
+
# Rebuild depth cache if it got corrupted or if depth caching was just turned on
|
117
|
+
#
|
118
|
+
# @raise [Ancestry::AncestryException]
|
119
|
+
#
|
120
|
+
# source://ancestry//lib/ancestry/class_methods.rb#227
|
121
|
+
def rebuild_depth_cache!; end
|
122
|
+
|
123
|
+
# Integrity restoration
|
124
|
+
#
|
125
|
+
# source://ancestry//lib/ancestry/class_methods.rb#175
|
126
|
+
def restore_ancestry_integrity!; end
|
127
|
+
|
128
|
+
# Scope on relative depth options
|
129
|
+
#
|
130
|
+
# source://ancestry//lib/ancestry/class_methods.rb#13
|
131
|
+
def scope_depth(depth_options, depth); end
|
132
|
+
|
133
|
+
# Pseudo-preordered array of nodes. Children will always follow parents,
|
134
|
+
# This is deterministic unless the parents are missing *and* a sort block is specified
|
135
|
+
#
|
136
|
+
# source://ancestry//lib/ancestry/class_methods.rb#107
|
137
|
+
def sort_by_ancestry(nodes, &block); end
|
138
|
+
|
139
|
+
# Fetch tree node if necessary
|
140
|
+
#
|
141
|
+
# source://ancestry//lib/ancestry/class_methods.rb#4
|
142
|
+
def to_node(object); end
|
143
|
+
|
144
|
+
# source://ancestry//lib/ancestry/class_methods.rb#91
|
145
|
+
def tree_view(column, data = T.unsafe(nil)); end
|
146
|
+
|
147
|
+
# @yield [self.ancestry_base_class.default_scoped.unscope(:where)]
|
148
|
+
#
|
149
|
+
# source://ancestry//lib/ancestry/class_methods.rb#239
|
150
|
+
def unscoped_where; end
|
151
|
+
end
|
152
|
+
|
153
|
+
# source://ancestry//lib/ancestry/class_methods.rb#243
|
154
|
+
Ancestry::ClassMethods::ANCESTRY_UNCAST_TYPES = T.let(T.unsafe(nil), Array)
|
155
|
+
|
156
|
+
# source://ancestry//lib/ancestry/has_ancestry.rb#2
|
157
|
+
module Ancestry::HasAncestry
|
158
|
+
# source://ancestry//lib/ancestry/has_ancestry.rb#108
|
159
|
+
def acts_as_tree(*args); end
|
160
|
+
|
161
|
+
# @raise [Ancestry::AncestryException]
|
162
|
+
#
|
163
|
+
# source://ancestry//lib/ancestry/has_ancestry.rb#3
|
164
|
+
def has_ancestry(options = T.unsafe(nil)); end
|
165
|
+
end
|
166
|
+
|
167
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#2
|
168
|
+
module Ancestry::InstanceMethods
|
169
|
+
# @return [Boolean]
|
170
|
+
#
|
171
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#152
|
172
|
+
def ancestor_of?(node); end
|
173
|
+
|
174
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#123
|
175
|
+
def ancestors(depth_options = T.unsafe(nil)); end
|
176
|
+
|
177
|
+
# Ancestors
|
178
|
+
#
|
179
|
+
# @return [Boolean]
|
180
|
+
#
|
181
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#94
|
182
|
+
def ancestors?; end
|
183
|
+
|
184
|
+
# @return [Boolean]
|
185
|
+
#
|
186
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#304
|
187
|
+
def ancestry_callbacks_disabled?; end
|
188
|
+
|
189
|
+
# @return [Boolean]
|
190
|
+
#
|
191
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#99
|
192
|
+
def ancestry_changed?; end
|
193
|
+
|
194
|
+
# Validate that the ancestors don't include itself
|
195
|
+
#
|
196
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#4
|
197
|
+
def ancestry_exclude_self; end
|
198
|
+
|
199
|
+
# Apply orphan strategy (before destroy - no changes)
|
200
|
+
#
|
201
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#24
|
202
|
+
def apply_orphan_strategy; end
|
203
|
+
|
204
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#148
|
205
|
+
def cache_depth; end
|
206
|
+
|
207
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#214
|
208
|
+
def child_ids; end
|
209
|
+
|
210
|
+
# @return [Boolean]
|
211
|
+
#
|
212
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#228
|
213
|
+
def child_of?(node); end
|
214
|
+
|
215
|
+
# @return [Boolean]
|
216
|
+
#
|
217
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#223
|
218
|
+
def childless?; end
|
219
|
+
|
220
|
+
# Children
|
221
|
+
#
|
222
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#210
|
223
|
+
def children; end
|
224
|
+
|
225
|
+
# @return [Boolean]
|
226
|
+
#
|
227
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#218
|
228
|
+
def children?; end
|
229
|
+
|
230
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#68
|
231
|
+
def decrease_parent_counter_cache; end
|
232
|
+
|
233
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#144
|
234
|
+
def depth; end
|
235
|
+
|
236
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#263
|
237
|
+
def descendant_ids(depth_options = T.unsafe(nil)); end
|
238
|
+
|
239
|
+
# @return [Boolean]
|
240
|
+
#
|
241
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#267
|
242
|
+
def descendant_of?(node); end
|
243
|
+
|
244
|
+
# Descendants
|
245
|
+
#
|
246
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#259
|
247
|
+
def descendants(depth_options = T.unsafe(nil)); end
|
248
|
+
|
249
|
+
# @return [Boolean]
|
250
|
+
#
|
251
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#218
|
252
|
+
def has_children?; end
|
253
|
+
|
254
|
+
# Ancestors
|
255
|
+
#
|
256
|
+
# @return [Boolean]
|
257
|
+
#
|
258
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#94
|
259
|
+
def has_parent?; end
|
260
|
+
|
261
|
+
# @return [Boolean]
|
262
|
+
#
|
263
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#243
|
264
|
+
def has_siblings?; end
|
265
|
+
|
266
|
+
# Counter Cache
|
267
|
+
#
|
268
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#64
|
269
|
+
def increase_parent_counter_cache; end
|
270
|
+
|
271
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#277
|
272
|
+
def indirect_ids(depth_options = T.unsafe(nil)); end
|
273
|
+
|
274
|
+
# @return [Boolean]
|
275
|
+
#
|
276
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#281
|
277
|
+
def indirect_of?(node); end
|
278
|
+
|
279
|
+
# Indirects
|
280
|
+
#
|
281
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#273
|
282
|
+
def indirects(depth_options = T.unsafe(nil)); end
|
283
|
+
|
284
|
+
# @return [Boolean]
|
285
|
+
#
|
286
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#223
|
287
|
+
def is_childless?; end
|
288
|
+
|
289
|
+
# @return [Boolean]
|
290
|
+
#
|
291
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#248
|
292
|
+
def is_only_child?; end
|
293
|
+
|
294
|
+
# @return [Boolean]
|
295
|
+
#
|
296
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#199
|
297
|
+
def is_root?; end
|
298
|
+
|
299
|
+
# @return [Boolean]
|
300
|
+
#
|
301
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#248
|
302
|
+
def only_child?; end
|
303
|
+
|
304
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#173
|
305
|
+
def parent; end
|
306
|
+
|
307
|
+
# currently parent= does not work in after save callbacks
|
308
|
+
# assuming that parent hasn't changed
|
309
|
+
#
|
310
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#160
|
311
|
+
def parent=(parent); end
|
312
|
+
|
313
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#168
|
314
|
+
def parent_id; end
|
315
|
+
|
316
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#164
|
317
|
+
def parent_id=(new_parent_id); end
|
318
|
+
|
319
|
+
# Ancestors
|
320
|
+
#
|
321
|
+
# @return [Boolean]
|
322
|
+
#
|
323
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#94
|
324
|
+
def parent_id?; end
|
325
|
+
|
326
|
+
# @return [Boolean]
|
327
|
+
#
|
328
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#181
|
329
|
+
def parent_of?(node); end
|
330
|
+
|
331
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#140
|
332
|
+
def path(depth_options = T.unsafe(nil)); end
|
333
|
+
|
334
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#128
|
335
|
+
def path_ids; end
|
336
|
+
|
337
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#132
|
338
|
+
def path_ids_before_last_save; end
|
339
|
+
|
340
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#136
|
341
|
+
def path_ids_in_database; end
|
342
|
+
|
343
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#191
|
344
|
+
def root; end
|
345
|
+
|
346
|
+
# @return [Boolean]
|
347
|
+
#
|
348
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#199
|
349
|
+
def root?; end
|
350
|
+
|
351
|
+
# Root
|
352
|
+
#
|
353
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#187
|
354
|
+
def root_id; end
|
355
|
+
|
356
|
+
# @return [Boolean]
|
357
|
+
#
|
358
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#204
|
359
|
+
def root_of?(node); end
|
360
|
+
|
361
|
+
# @return [Boolean]
|
362
|
+
#
|
363
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#106
|
364
|
+
def sane_ancestor_ids?; end
|
365
|
+
|
366
|
+
# NOTE: includes self
|
367
|
+
#
|
368
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#239
|
369
|
+
def sibling_ids; end
|
370
|
+
|
371
|
+
# @return [Boolean]
|
372
|
+
#
|
373
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#253
|
374
|
+
def sibling_of?(node); end
|
375
|
+
|
376
|
+
# Siblings
|
377
|
+
#
|
378
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#234
|
379
|
+
def siblings; end
|
380
|
+
|
381
|
+
# @return [Boolean]
|
382
|
+
#
|
383
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#243
|
384
|
+
def siblings?; end
|
385
|
+
|
386
|
+
# Subtree
|
387
|
+
#
|
388
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#287
|
389
|
+
def subtree(depth_options = T.unsafe(nil)); end
|
390
|
+
|
391
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#291
|
392
|
+
def subtree_ids(depth_options = T.unsafe(nil)); end
|
393
|
+
|
394
|
+
# Touch each of this record's ancestors (after save)
|
395
|
+
#
|
396
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#52
|
397
|
+
def touch_ancestors_callback; end
|
398
|
+
|
399
|
+
# Update descendants with new ancestry (after update)
|
400
|
+
#
|
401
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#9
|
402
|
+
def update_descendants_with_new_ancestry; end
|
403
|
+
|
404
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#80
|
405
|
+
def update_parent_counter_cache; end
|
406
|
+
|
407
|
+
# Callback disabling
|
408
|
+
#
|
409
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#297
|
410
|
+
def without_ancestry_callbacks; end
|
411
|
+
|
412
|
+
private
|
413
|
+
|
414
|
+
# works with after save context (hence before_last_save)
|
415
|
+
#
|
416
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#322
|
417
|
+
def unscoped_current_and_previous_ancestors; end
|
418
|
+
|
419
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#309
|
420
|
+
def unscoped_descendants; end
|
421
|
+
|
422
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#315
|
423
|
+
def unscoped_descendants_before_save; end
|
424
|
+
|
425
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#328
|
426
|
+
def unscoped_find(id); end
|
427
|
+
|
428
|
+
# source://ancestry//lib/ancestry/instance_methods.rb#334
|
429
|
+
def unscoped_where; end
|
430
|
+
end
|
431
|
+
|
432
|
+
# store ancestry as grandparent_id/parent_id
|
433
|
+
# root a=nil,id=1 children=id,id/% == 1, 1/%
|
434
|
+
# 3: a=1/2,id=3 children=a/id,a/id/% == 1/2/3, 1/2/3/%
|
435
|
+
#
|
436
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#5
|
437
|
+
module Ancestry::MaterializedPath
|
438
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#18
|
439
|
+
def ancestors_of(object); end
|
440
|
+
|
441
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#91
|
442
|
+
def ancestry_root; end
|
443
|
+
|
444
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#30
|
445
|
+
def children_of(object); end
|
446
|
+
|
447
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#57
|
448
|
+
def descendant_before_save_conditions(object); end
|
449
|
+
|
450
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#52
|
451
|
+
def descendant_conditions(object); end
|
452
|
+
|
453
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#47
|
454
|
+
def descendants_by_ancestry(ancestry); end
|
455
|
+
|
456
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#43
|
457
|
+
def descendants_of(object); end
|
458
|
+
|
459
|
+
# indirect = anyone who is a descendant, but not a child
|
460
|
+
#
|
461
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#37
|
462
|
+
def indirects_of(object); end
|
463
|
+
|
464
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#24
|
465
|
+
def inpath_of(object); end
|
466
|
+
|
467
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#74
|
468
|
+
def ordered_by_ancestry(order = T.unsafe(nil)); end
|
469
|
+
|
470
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#87
|
471
|
+
def ordered_by_ancestry_and(order); end
|
472
|
+
|
473
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#10
|
474
|
+
def path_of(object); end
|
475
|
+
|
476
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#14
|
477
|
+
def roots; end
|
478
|
+
|
479
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#68
|
480
|
+
def siblings_of(object); end
|
481
|
+
|
482
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#62
|
483
|
+
def subtree_of(object); end
|
484
|
+
|
485
|
+
private
|
486
|
+
|
487
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#108
|
488
|
+
def ancestry_format_regexp; end
|
489
|
+
|
490
|
+
# @return [Boolean]
|
491
|
+
#
|
492
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#104
|
493
|
+
def ancestry_nil_allowed?; end
|
494
|
+
|
495
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#97
|
496
|
+
def ancestry_validation_options; end
|
497
|
+
|
498
|
+
class << self
|
499
|
+
# @private
|
500
|
+
#
|
501
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#6
|
502
|
+
def extended(base); end
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
506
|
+
# store ancestry as /grandparent_id/parent_id/
|
507
|
+
# root: a=/,id=1 children=#{a}#{id}/% == /1/%
|
508
|
+
# 3: a=/1/2/,id=3 children=#{a}#{id}/% == /1/2/3/%
|
509
|
+
#
|
510
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#5
|
511
|
+
module Ancestry::MaterializedPath2
|
512
|
+
include ::Ancestry::MaterializedPath
|
513
|
+
|
514
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#27
|
515
|
+
def ancestry_root; end
|
516
|
+
|
517
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#23
|
518
|
+
def descendants_by_ancestry(ancestry); end
|
519
|
+
|
520
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#13
|
521
|
+
def indirects_of(object); end
|
522
|
+
|
523
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#19
|
524
|
+
def ordered_by_ancestry(order = T.unsafe(nil)); end
|
525
|
+
|
526
|
+
private
|
527
|
+
|
528
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#37
|
529
|
+
def ancestry_format_regexp; end
|
530
|
+
|
531
|
+
# @return [Boolean]
|
532
|
+
#
|
533
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#33
|
534
|
+
def ancestry_nil_allowed?; end
|
535
|
+
|
536
|
+
class << self
|
537
|
+
# @private
|
538
|
+
#
|
539
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#8
|
540
|
+
def extended(base); end
|
541
|
+
end
|
542
|
+
end
|
543
|
+
|
544
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#41
|
545
|
+
module Ancestry::MaterializedPath2::InstanceMethods
|
546
|
+
# @raise [Ancestry::AncestryException]
|
547
|
+
#
|
548
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#42
|
549
|
+
def child_ancestry; end
|
550
|
+
|
551
|
+
# @raise [Ancestry::AncestryException]
|
552
|
+
#
|
553
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#48
|
554
|
+
def child_ancestry_before_save; end
|
555
|
+
|
556
|
+
# source://ancestry//lib/ancestry/materialized_path2.rb#54
|
557
|
+
def generate_ancestry(ancestor_ids); end
|
558
|
+
end
|
559
|
+
|
560
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#112
|
561
|
+
module Ancestry::MaterializedPath::InstanceMethods
|
562
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#123
|
563
|
+
def ancestor_ids; end
|
564
|
+
|
565
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#119
|
566
|
+
def ancestor_ids=(value); end
|
567
|
+
|
568
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#131
|
569
|
+
def ancestor_ids_before_last_save; end
|
570
|
+
|
571
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#127
|
572
|
+
def ancestor_ids_in_database; end
|
573
|
+
|
574
|
+
# optimization - better to go directly to column and avoid parsing
|
575
|
+
#
|
576
|
+
# @return [Boolean]
|
577
|
+
#
|
578
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#114
|
579
|
+
def ancestors?; end
|
580
|
+
|
581
|
+
# private (public so class methods can find it)
|
582
|
+
# The ancestry value for this record's children (before save)
|
583
|
+
# This is technically child_ancestry_was
|
584
|
+
#
|
585
|
+
# @raise [Ancestry::AncestryException]
|
586
|
+
#
|
587
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#151
|
588
|
+
def child_ancestry; end
|
589
|
+
|
590
|
+
# @raise [Ancestry::AncestryException]
|
591
|
+
#
|
592
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#157
|
593
|
+
def child_ancestry_before_save; end
|
594
|
+
|
595
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#169
|
596
|
+
def generate_ancestry(ancestor_ids); end
|
597
|
+
|
598
|
+
# optimization - better to go directly to column and avoid parsing
|
599
|
+
#
|
600
|
+
# @return [Boolean]
|
601
|
+
#
|
602
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#114
|
603
|
+
def has_parent?; end
|
604
|
+
|
605
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#139
|
606
|
+
def parent_id_before_last_save; end
|
607
|
+
|
608
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#135
|
609
|
+
def parent_id_in_database; end
|
610
|
+
|
611
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#163
|
612
|
+
def parse_ancestry_column(obj); end
|
613
|
+
|
614
|
+
# optimization - better to go directly to column and avoid parsing
|
615
|
+
#
|
616
|
+
# @return [Boolean]
|
617
|
+
#
|
618
|
+
# source://ancestry//lib/ancestry/materialized_path.rb#144
|
619
|
+
def sibling_of?(node); end
|
620
|
+
end
|
621
|
+
|
622
|
+
# source://ancestry//lib/ancestry/materialized_path_pg.rb#2
|
623
|
+
module Ancestry::MaterializedPathPg
|
624
|
+
# Update descendants with new ancestry (after update)
|
625
|
+
#
|
626
|
+
# source://ancestry//lib/ancestry/materialized_path_pg.rb#4
|
627
|
+
def update_descendants_with_new_ancestry; end
|
628
|
+
end
|
629
|
+
|
630
|
+
# source://ancestry//lib/ancestry/version.rb#2
|
631
|
+
Ancestry::VERSION = T.let(T.unsafe(nil), String)
|