view_source 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  require "view_source/version"
2
- require "view_source/irb_plugin"
2
+ require "view_source/view_source"
3
3
 
4
4
  module ViewSource
5
5
  end
@@ -1,11 +1 @@
1
- class Object
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'
@@ -1,3 +1,3 @@
1
1
  module ViewSource
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,11 @@
1
+ class Object
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.grep pattern
10
+ end
11
+ end
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.3
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-26 00:00:00.000000000 -06:00
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: &2165800480 !ruby/object:Gem::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: *2165800480
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: ''