method_extensions 0.0.3 → 0.0.5
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.
@@ -113,13 +113,15 @@ module MethodExtensions
|
|
113
113
|
|
114
114
|
# Place this to the ~/.irbrc
|
115
115
|
# class Method
|
116
|
-
#
|
116
|
+
# alias_method :inspect, :irb_inspect if method_defined?(:irb_inspect)
|
117
117
|
# end
|
118
118
|
# class UnboundMethod
|
119
|
-
#
|
119
|
+
# alias_method :inspect, :irb_inspect if method_defined?(:irb_inspect)
|
120
120
|
# end
|
121
121
|
def irb_inspect
|
122
|
-
|
122
|
+
require "coderay"
|
123
|
+
puts "#{ to_s }\n#{ source_location }"
|
124
|
+
puts CodeRay.scan(source_with_doc, :ruby).term
|
123
125
|
nil
|
124
126
|
end
|
125
127
|
|
data/method_extensions.gemspec
CHANGED
@@ -3,10 +3,12 @@ $:.unshift lib unless $:.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "method_extensions"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.5"
|
7
7
|
s.authors = ["Evgeniy Dolzhenko"]
|
8
8
|
s.email = ["dolzenko@gmail.com"]
|
9
9
|
s.homepage = "http://github.com/dolzenko/method_extensions"
|
10
10
|
s.summary = "Method object extensions for better code navigation"
|
11
11
|
s.files = Dir.glob("lib/**/*") + %w(method_extensions.gemspec)
|
12
|
+
|
13
|
+
s.add_dependency "coderay", "0.9.3"
|
12
14
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 5
|
9
|
+
version: 0.0.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Evgeniy Dolzhenko
|
@@ -14,10 +14,24 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-31 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: coderay
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - "="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 9
|
31
|
+
- 3
|
32
|
+
version: 0.9.3
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
21
35
|
description:
|
22
36
|
email:
|
23
37
|
- dolzenko@gmail.com
|