method_source 0.8.pre.1 → 0.8.pre.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -107,7 +107,7 @@ module MethodSource
107
107
  # self
108
108
  # end
109
109
  def source
110
- MethodSource.source_helper(source_location, name)
110
+ MethodSource.source_helper(source_location, defined?(name) ? name : inspect)
111
111
  end
112
112
 
113
113
  # Return the comments associated with the method as a string.
@@ -119,7 +119,7 @@ module MethodSource
119
119
  # =>
120
120
  # # Removes all elements and returns self.
121
121
  def comment
122
- MethodSource.comment_helper(source_location, name)
122
+ MethodSource.comment_helper(source_location, defined?(name) ? name : inspect)
123
123
  end
124
124
  end
125
125
  end
@@ -1,3 +1,3 @@
1
1
  module MethodSource
2
- VERSION = "0.8.pre.1"
2
+ VERSION = "0.8.pre.2"
3
3
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "method_source"
5
- s.version = "0.8.pre.1"
5
+ s.version = "0.8.pre.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Mair (banisterfiend)"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: method_source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.pre.1
4
+ version: 0.8.pre.2
5
5
  prerelease: 4
6
6
  platform: ruby
7
7
  authors: