methodfinder 1.2.3 → 1.2.4

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.
Files changed (3) hide show
  1. data/README.markdown +4 -0
  2. data/lib/methodfinder.rb +7 -0
  3. metadata +18 -27
@@ -1,3 +1,7 @@
1
+ [![Build Status](https://secure.travis-ci.org/citizen428/methodfinder.png)](http://travis-ci.org/citizen428/methodfinder)
2
+
3
+ (tested with MRI 1.8.7 and newer)
4
+
1
5
  Description
2
6
  ---
3
7
 
@@ -22,7 +22,14 @@ class MethodFinder
22
22
  # Blacklisting methods, e.g. { :Object => [:ri, :vim] }
23
23
  INSTANCE_METHOD_BLACKLIST = Hash.new { |h, k| h[k] = [] }
24
24
  CLASS_METHOD_BLACKLIST = Hash.new { |h, k| h[k] = [] }
25
+
25
26
  INSTANCE_METHOD_BLACKLIST[:Object] << :find_method # prevent stack overflow
27
+ INSTANCE_METHOD_BLACKLIST[:Object] << :gem # funny testing stuff w/ Bundler
28
+
29
+ if defined? Pry
30
+ INSTANCE_METHOD_BLACKLIST[:Object] << :pry
31
+ CLASS_METHOD_BLACKLIST[:Object] << :pry
32
+ end
26
33
 
27
34
  class << self
28
35
  def find(obj, res, *args, &block)
metadata CHANGED
@@ -1,56 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: methodfinder
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.4
4
5
  prerelease:
5
- version: 1.2.3
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Michael Kohl
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-04-24 00:00:00 Z
12
+ date: 2011-10-25 00:00:00.000000000Z
14
13
  dependencies: []
15
-
16
14
  description:
17
15
  email: citizen428@gmail.com
18
16
  executables: []
19
-
20
17
  extensions: []
21
-
22
18
  extra_rdoc_files: []
23
-
24
- files:
19
+ files:
25
20
  - lib/methodfinder.rb
26
21
  - ./LICENSE
27
22
  - ./README.markdown
28
23
  homepage: https://github.com/citizen428/MethodFinder
29
24
  licenses: []
30
-
31
25
  post_install_message:
32
26
  rdoc_options: []
33
-
34
- require_paths:
27
+ require_paths:
35
28
  - lib
36
- required_ruby_version: !ruby/object:Gem::Requirement
29
+ required_ruby_version: !ruby/object:Gem::Requirement
37
30
  none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: "0"
42
- required_rubygems_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
36
  none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: "0"
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
48
41
  requirements: []
49
-
50
42
  rubyforge_project:
51
- rubygems_version: 1.7.2
43
+ rubygems_version: 1.8.10
52
44
  signing_key:
53
45
  specification_version: 3
54
46
  summary: A Smalltalk-like Method Finder for Ruby
55
47
  test_files: []
56
-