method_source 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/method_source.rb CHANGED
@@ -80,7 +80,7 @@ module MethodSource
80
80
  if (line =~ /^\s*#/) || (line =~ /^\s*$/)
81
81
  buffer << line.lstrip
82
82
  else
83
- buffer.clear
83
+ buffer.replace("")
84
84
  end
85
85
  end
86
86
 
@@ -1,3 +1,3 @@
1
1
  module MethodSource
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -1,9 +1,3 @@
1
- class String
2
- def clear
3
- replace("")
4
- end
5
- end
6
-
7
1
  module M
8
2
  def hello; :hello_module; end
9
3
  end
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.3.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ruby_parser
17
- requirement: &17416860 !ruby/object:Gem::Requirement
17
+ requirement: &17300892 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.0.5
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *17416860
25
+ version_requirements: *17300892
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bacon
28
- requirement: &17381928 !ruby/object:Gem::Requirement
28
+ requirement: &17300544 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 1.1.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *17381928
36
+ version_requirements: *17300544
37
37
  description: retrieve the sourcecode for a method
38
38
  email: jrmair@gmail.com
39
39
  executables: []