rbs_discard 0.1.0 → 0.2.0

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: bb5871880723cc38c79cb94b0cb842970fd73f2774868bf15c26891d1ba1bee9
4
- data.tar.gz: 992f1729ee3c71fb446fcbb5fc6f2d5edbdc62bf0166ac26d7bcb3d578c7192a
3
+ metadata.gz: dcc5d14581a5b5fb41056a46d728cf48eab3e00f9676dac56a30babd780390c2
4
+ data.tar.gz: 90474ed72c5f2a5f35329f7b8109f947e5365a9a4370c790ec3b5e349f9d0ab4
5
5
  SHA512:
6
- metadata.gz: f2640c58ca91c63ecffb863af1061346a05872b53e7667cab85655a74770f1530dfecfbc1aefa25c980d2402fa1184ba5dc0e8a28e3653fc178b83019b5446f6
7
- data.tar.gz: 03d9a68fa4e0de5851a449591fb7558fdb793eea891a98267b48b736e9dec5a741002194594a8450825c2d97644d20ace7d9bc84439033d4c3ad6c4749376494
6
+ metadata.gz: a28c5d18e7b896db467807782fce14e83b19a81f0f49b7f224765fa99eaea96af5b446e41ca98c3dd8bfd638706e6a7222cf29ec0fbaa4281c8b0d93632cffd5
7
+ data.tar.gz: c8c8767266fa7be7da5d53cb78554dbe339d4db9d19da69e598586dba76c9a56311f4bce55e677c39d96932761cb2a6de5ad84102651225756061f61fe78c8b6
@@ -1,8 +1,10 @@
1
1
  module Discard
2
2
  module Model
3
3
  module ClassMethods
4
- def before_discard: (*untyped) ? { () -> void } -> void
5
- def after_discard: (*untyped) ? { () -> void } -> void
4
+ type callback = Symbol | ^() [self: instance] -> void
5
+
6
+ def before_discard: (*callback) ? { () [self: instance] -> void } -> void
7
+ def after_discard: (*callback) ? { () [self: instance] -> void } -> void
6
8
  def discard_all: () -> void
7
9
  def discard_all!: () -> void
8
10
  def undiscard_all: () -> void
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbsDiscard
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -2,17 +2,21 @@
2
2
  sources:
3
3
  - type: git
4
4
  name: ruby/gem_rbs_collection
5
- revision: a4c633634493ab7ae73219022f56acff56ab69af
5
+ revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
6
6
  remote: https://github.com/ruby/gem_rbs_collection.git
7
7
  repo_dir: gems
8
8
  path: ".gem_rbs_collection"
9
9
  gems:
10
+ - name: abbrev
11
+ version: '0'
12
+ source:
13
+ type: stdlib
10
14
  - name: activemodel
11
15
  version: '7.0'
12
16
  source:
13
17
  type: git
14
18
  name: ruby/gem_rbs_collection
15
- revision: a4c633634493ab7ae73219022f56acff56ab69af
19
+ revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
16
20
  remote: https://github.com/ruby/gem_rbs_collection.git
17
21
  repo_dir: gems
18
22
  - name: activerecord
@@ -20,7 +24,7 @@ gems:
20
24
  source:
21
25
  type: git
22
26
  name: ruby/gem_rbs_collection
23
- revision: a4c633634493ab7ae73219022f56acff56ab69af
27
+ revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
24
28
  remote: https://github.com/ruby/gem_rbs_collection.git
25
29
  repo_dir: gems
26
30
  - name: activesupport
@@ -28,7 +32,7 @@ gems:
28
32
  source:
29
33
  type: git
30
34
  name: ruby/gem_rbs_collection
31
- revision: a4c633634493ab7ae73219022f56acff56ab69af
35
+ revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
32
36
  remote: https://github.com/ruby/gem_rbs_collection.git
33
37
  repo_dir: gems
34
38
  - name: ast
@@ -36,7 +40,7 @@ gems:
36
40
  source:
37
41
  type: git
38
42
  name: ruby/gem_rbs_collection
39
- revision: a4c633634493ab7ae73219022f56acff56ab69af
43
+ revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
40
44
  remote: https://github.com/ruby/gem_rbs_collection.git
41
45
  repo_dir: gems
42
46
  - name: base64
@@ -48,7 +52,7 @@ gems:
48
52
  source:
49
53
  type: git
50
54
  name: ruby/gem_rbs_collection
51
- revision: a4c633634493ab7ae73219022f56acff56ab69af
55
+ revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
52
56
  remote: https://github.com/ruby/gem_rbs_collection.git
53
57
  repo_dir: gems
54
58
  - name: date
@@ -60,7 +64,7 @@ gems:
60
64
  source:
61
65
  type: git
62
66
  name: ruby/gem_rbs_collection
63
- revision: a4c633634493ab7ae73219022f56acff56ab69af
67
+ revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
64
68
  remote: https://github.com/ruby/gem_rbs_collection.git
65
69
  repo_dir: gems
66
70
  - name: json
@@ -83,22 +87,42 @@ gems:
83
87
  version: '0'
84
88
  source:
85
89
  type: stdlib
90
+ - name: optparse
91
+ version: '0'
92
+ source:
93
+ type: stdlib
86
94
  - name: parallel
87
95
  version: '1.20'
88
96
  source:
89
97
  type: git
90
98
  name: ruby/gem_rbs_collection
91
- revision: a4c633634493ab7ae73219022f56acff56ab69af
99
+ revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
92
100
  remote: https://github.com/ruby/gem_rbs_collection.git
93
101
  repo_dir: gems
102
+ - name: pathname
103
+ version: '0'
104
+ source:
105
+ type: stdlib
94
106
  - name: rainbow
95
107
  version: '3.0'
96
108
  source:
97
109
  type: git
98
110
  name: ruby/gem_rbs_collection
99
- revision: a4c633634493ab7ae73219022f56acff56ab69af
111
+ revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
100
112
  remote: https://github.com/ruby/gem_rbs_collection.git
101
113
  repo_dir: gems
114
+ - name: rbs
115
+ version: 3.2.0
116
+ source:
117
+ type: rubygems
118
+ - name: rbs_rails
119
+ version: 0.12.0
120
+ source:
121
+ type: rubygems
122
+ - name: rdoc
123
+ version: '0'
124
+ source:
125
+ type: stdlib
102
126
  - name: securerandom
103
127
  version: '0'
104
128
  source:
@@ -111,4 +135,8 @@ gems:
111
135
  version: '0'
112
136
  source:
113
137
  type: stdlib
138
+ - name: tsort
139
+ version: '0'
140
+ source:
141
+ type: stdlib
114
142
  gemfile_lock_path: Gemfile.lock
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs_discard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi KOMIYA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-27 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: discard