view_source 0.0.3 → 0.0.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.
- data/lib/view_source.rb +1 -1
- data/lib/view_source/irb_plugin.rb +1 -11
- data/lib/view_source/version.rb +1 -1
- data/lib/view_source/view_source.rb +11 -0
- metadata +5 -4
data/lib/view_source.rb
CHANGED
@@ -1,11 +1 @@
|
|
1
|
-
|
2
|
-
def source_for_method(method)
|
3
|
-
location = self.method(method).source_location
|
4
|
-
`mate #{location[0]} -l #{location[1]}` if location
|
5
|
-
location
|
6
|
-
end
|
7
|
-
|
8
|
-
def grep_methods(pattern)
|
9
|
-
methods.map(&:to_s).grep pattern
|
10
|
-
end
|
11
|
-
end
|
1
|
+
require 'view_source'
|
data/lib/view_source/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: view_source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-06-
|
12
|
+
date: 2011-06-27 00:00:00.000000000 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: irb_plugin
|
17
|
-
requirement: &
|
17
|
+
requirement: &2161608340 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2161608340
|
26
26
|
description: irb plugin to view the source of a Ruby method in TextMate
|
27
27
|
email:
|
28
28
|
- mike@clarkware.com
|
@@ -37,6 +37,7 @@ files:
|
|
37
37
|
- lib/view_source.rb
|
38
38
|
- lib/view_source/irb_plugin.rb
|
39
39
|
- lib/view_source/version.rb
|
40
|
+
- lib/view_source/view_source.rb
|
40
41
|
- view_source.gemspec
|
41
42
|
has_rdoc: true
|
42
43
|
homepage: ''
|