method_extensions 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -119,7 +119,7 @@ module MethodExtensions
119
119
  # alias_method :inspect, :irb_inspect if method_defined?(:irb_inspect)
120
120
  # end
121
121
  def irb_inspect
122
- return to_s if caller.grep(/pp\.rb/) # pretty_print has some logic
122
+ return to_s unless caller.grep(/pp\.rb/).empty? # pretty_print has some logic
123
123
  # based on output of Method#inspect, nasty, huh?
124
124
 
125
125
  require "coderay"
@@ -3,7 +3,7 @@ $:.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"
6
+ s.version = "0.0.7"
7
7
  s.authors = ["Evgeniy Dolzhenko"]
8
8
  s.email = ["dolzenko@gmail.com"]
9
9
  s.homepage = "http://github.com/dolzenko/method_extensions"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Evgeniy Dolzhenko