methodfinder 2.2.4 → 2.3.0
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/README.md +10 -5
- data/lib/methodfinder/version.rb +1 -1
- data/sig/methodfinder.rbs +25 -0
- metadata +12 -81
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 012274a33b5afb0ae53ef831311e2f6e99a06acf2d69c809f41e201ce5e8bd90
|
|
4
|
+
data.tar.gz: '075492489873713b138357d8c003ccffee7ee5d26ef1a6076c4ebf0e105fa477'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f6639604e1efc6ef24c776a01923e9c4f8c9fc19058c09e496751e17d815a608383744755c1c064fe6a9f16d670c4f35f12ee636ef3631cce3ad2482ce5acfb
|
|
7
|
+
data.tar.gz: 4a4665d87586d86ed582a23f480427797ec1dcbaa933684d08c02db7c4c52dfca73d406794186de0de35fff1a92cdf781d64743f2d9fc09f9570049d1197946d
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MethodFinder
|
|
2
2
|
|
|
3
|
-
](https://builds.sr.ht/~citizen428/methodfinder?)
|
|
4
4
|
[](https://rubygems.org/gems/methodfinder)
|
|
5
5
|
|
|
6
6
|
<!-- toc -->
|
|
@@ -184,6 +184,9 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
|
184
184
|
`rake test` to run the tests. You can also run `bin/console` for an interactive
|
|
185
185
|
prompt that will allow you to experiment.
|
|
186
186
|
|
|
187
|
+
Run `bundle exec rake rbs:validate` to validate the public API's RBS
|
|
188
|
+
signatures.
|
|
189
|
+
|
|
187
190
|
To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
188
191
|
release a new version, update the version number in `version.rb`, and then run
|
|
189
192
|
`bundle exec rake release`, which will create a git tag for the version, push
|
|
@@ -192,8 +195,10 @@ git commits and tags, and push the `.gem` file to
|
|
|
192
195
|
|
|
193
196
|
## CONTRIBUTING
|
|
194
197
|
|
|
195
|
-
|
|
196
|
-
https://
|
|
198
|
+
Development happens primarily on [Sourcehut](https://sr.ht/~citizen428/methodfinder/) where you can
|
|
199
|
+
[file bugs](https://sr.ht/~citizen428/methodfinder/trackers), [discuss on the mailing list](https://sr.ht/~citizen428/methodfinder/lists) or [send patches](https://git.sr.ht/~citizen428/methodfinder/send-email).
|
|
200
|
+
|
|
201
|
+
If you really have to you can also contribute via https://github.com/citizen428/methodfinder, but I really prefer Sourcehut.
|
|
197
202
|
|
|
198
203
|
## SEE ALSO
|
|
199
204
|
|
|
@@ -203,7 +208,7 @@ https://github.com/citizen428/methodfinder.
|
|
|
203
208
|
|
|
204
209
|
### Misc
|
|
205
210
|
|
|
206
|
-
- [Other Implementations](https://
|
|
211
|
+
- [Other Implementations](https://man.sr.ht/~citizen428/MethodFinder/) - a list of related projects in Ruby and other languages
|
|
207
212
|
|
|
208
213
|
## VERSION
|
|
209
214
|
|
|
@@ -211,7 +216,7 @@ https://github.com/citizen428/methodfinder.
|
|
|
211
216
|
|
|
212
217
|
## AUTHOR
|
|
213
218
|
|
|
214
|
-
- [Michael Kohl](https://
|
|
219
|
+
- [Michael Kohl](https://citizen428.net/)
|
|
215
220
|
|
|
216
221
|
## LICENSE
|
|
217
222
|
|
data/lib/methodfinder/version.rb
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
class Object
|
|
2
|
+
def find_method:
|
|
3
|
+
(top result, *top args) -> Array[String]
|
|
4
|
+
| (*top args) { (self receiver) -> top } -> Array[String]
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
module MethodFinder
|
|
8
|
+
VERSION: String
|
|
9
|
+
|
|
10
|
+
INSTANCE_METHOD_IGNORELIST: Hash[Symbol, Array[Symbol]]
|
|
11
|
+
CLASS_METHOD_IGNORELIST: Hash[Symbol, Array[Symbol]]
|
|
12
|
+
CLASS_IGNORELIST: Array[Symbol]
|
|
13
|
+
|
|
14
|
+
def self.debug?: () -> bool
|
|
15
|
+
|
|
16
|
+
def self.toggle_debug!: () -> bool
|
|
17
|
+
|
|
18
|
+
def self.find:
|
|
19
|
+
(top receiver, top result, *top args) ?{ (*top) -> top } -> Array[String]
|
|
20
|
+
|
|
21
|
+
def self.find_classes_and_modules: () -> Array[Module]
|
|
22
|
+
|
|
23
|
+
def self.find_in_class_or_module:
|
|
24
|
+
(Module | Symbol | String klass, ?String | Regexp pattern) -> Array[Symbol]
|
|
25
|
+
end
|
metadata
CHANGED
|
@@ -1,85 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: methodfinder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Kohl
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
-
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: bundler
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2.3'
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '2.3'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: minitest
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '5.0'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '5.0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: rake
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '13.0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '13.0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rdoc
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '6.3'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '6.3'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rubocop
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '1.22'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '1.22'
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
83
12
|
description: A Smalltalk-like Method Finder for Ruby with some extra features
|
|
84
13
|
email:
|
|
85
14
|
- citizen428@gmail.com
|
|
@@ -91,13 +20,16 @@ files:
|
|
|
91
20
|
- README.md
|
|
92
21
|
- lib/methodfinder.rb
|
|
93
22
|
- lib/methodfinder/version.rb
|
|
94
|
-
|
|
23
|
+
- sig/methodfinder.rbs
|
|
24
|
+
homepage: https://sr.ht/~citizen428/methodfinder/
|
|
95
25
|
licenses:
|
|
96
26
|
- MIT
|
|
97
27
|
metadata:
|
|
98
|
-
bug_tracker_uri: https://
|
|
99
|
-
source_code_uri: https://
|
|
100
|
-
|
|
28
|
+
bug_tracker_uri: https://todo.sr.ht/~citizen428/methodfinder
|
|
29
|
+
source_code_uri: https://git.sr.ht/~citizen428/methodfinder/tree
|
|
30
|
+
mailing_list_uri: https://lists.sr.ht/~citizen428/public-inbox
|
|
31
|
+
wiki_uri: https://man.sr.ht/~citizen428/MethodFinder/
|
|
32
|
+
rubygems_mfa_required: 'true'
|
|
101
33
|
rdoc_options: []
|
|
102
34
|
require_paths:
|
|
103
35
|
- lib
|
|
@@ -105,15 +37,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
105
37
|
requirements:
|
|
106
38
|
- - ">="
|
|
107
39
|
- !ruby/object:Gem::Version
|
|
108
|
-
version: '
|
|
40
|
+
version: '3.3'
|
|
109
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
42
|
requirements:
|
|
111
43
|
- - ">="
|
|
112
44
|
- !ruby/object:Gem::Version
|
|
113
45
|
version: '0'
|
|
114
46
|
requirements: []
|
|
115
|
-
rubygems_version:
|
|
116
|
-
signing_key:
|
|
47
|
+
rubygems_version: 4.0.10
|
|
117
48
|
specification_version: 4
|
|
118
49
|
summary: A Smalltalk-like Method Finder for Ruby
|
|
119
50
|
test_files: []
|