methodfinder 1.2.1 → 1.2.2
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.
- data/README.markdown +6 -5
- data/lib/methodfinder.rb +1 -1
- metadata +3 -5
data/README.markdown
CHANGED
@@ -27,7 +27,7 @@ given result when called on the receiver with the provided arguments.
|
|
27
27
|
This gem also adds `Object#find_method`, which besides offering an
|
28
28
|
alternate interface to pretty much the same functionality as
|
29
29
|
`MethodFinder.find`, also allows you to test for state other than
|
30
|
-
the return value of the method.
|
30
|
+
the return value of the method.
|
31
31
|
|
32
32
|
>> %w[a b c].find_method { |a| a.unknown(1) ; a == %w[a c] }
|
33
33
|
=> [:delete_at, :slice!]
|
@@ -59,7 +59,7 @@ gems as such as `interactive_editor`.
|
|
59
59
|
A simple method to return all currently defined modules and classes.
|
60
60
|
|
61
61
|
>> MethodFinder.find_classes_and_modules
|
62
|
-
=> [ArgumentError, Array, BasicObject, Bignum ... ZeroDivisionError]
|
62
|
+
=> [ArgumentError, Array, BasicObject, Bignum ... ZeroDivisionError]
|
63
63
|
|
64
64
|
### MethodFinder.find\_in\_class\_or_module
|
65
65
|
|
@@ -85,21 +85,22 @@ Common sense not included!
|
|
85
85
|
|
86
86
|
While I never had any problems with this, it's still better to be
|
87
87
|
safe than sorry, so use this with caution and maybe not on production
|
88
|
-
data.
|
88
|
+
data.
|
89
89
|
|
90
90
|
I initially wrote this for the students of the core Ruby course on
|
91
91
|
[RubyLearning](http://rubylearning.org), so Rails is not of interest
|
92
92
|
to me (not saying it doesn't work there, just that I test in plain
|
93
|
-
IRB, not with `script/console`).
|
93
|
+
IRB, not with `script/console`).
|
94
94
|
|
95
95
|
Thanks
|
96
96
|
---
|
97
97
|
|
98
|
-
* Matthew Lucas for first packaging this as a gem.
|
98
|
+
* Matthew Lucas for [first packaging this as a gem](https://github.com/citizen428/methodfinder/pull/1).
|
99
99
|
* Ryan Bates for
|
100
100
|
[suggesting](https://github.com/citizen428/methodfinder/issues/closed#issue/3)
|
101
101
|
what eventually became `Object#find_method`.
|
102
102
|
* Jan Lelis for [implementing blacklists](https://github.com/citizen428/methodfinder/issues/closed#issue/4).
|
103
|
+
* [Brian Morearty] for pointing out an [incompatibility with Ruby 1.8.7](https://github.com/citizen428/methodfinder/issues/closed#issue/5).
|
103
104
|
|
104
105
|
License
|
105
106
|
---
|
data/lib/methodfinder.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: methodfinder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Michael Kohl
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-04-23 00:00:00 Z
|
15
14
|
dependencies: []
|
16
15
|
|
17
16
|
description:
|
@@ -26,7 +25,6 @@ files:
|
|
26
25
|
- lib/methodfinder.rb
|
27
26
|
- ./LICENSE
|
28
27
|
- ./README.markdown
|
29
|
-
has_rdoc: true
|
30
28
|
homepage: https://github.com/citizen428/MethodFinder
|
31
29
|
licenses: []
|
32
30
|
|
@@ -50,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
48
|
requirements: []
|
51
49
|
|
52
50
|
rubyforge_project:
|
53
|
-
rubygems_version: 1.
|
51
|
+
rubygems_version: 1.7.2
|
54
52
|
signing_key:
|
55
53
|
specification_version: 3
|
56
54
|
summary: A Smalltalk-like Method Finder for Ruby
|