pry 0.7.0pre5 → 0.7.0pre6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/pry/commands.rb +1 -1
  2. data/lib/pry/version.rb +1 -1
  3. metadata +2 -2
@@ -419,7 +419,7 @@ e.g: eval-file -c self "hello.rb"
419
419
  gsub(/<em>(?:\s*\n)?(.*?)\s*<\/em>/m) { Pry.color ? "\e[32m#{$1}\e[0m": $1 }.
420
420
  gsub(/<i>(?:\s*\n)?(.*?)\s*<\/i>/m) { Pry.color ? "\e[34m#{$1}\e[0m" : $1 }.
421
421
  gsub(/\B\+(.*?)\+\B/) { Pry.color ? "\e[32m#{$1}\e[0m": $1 }.
422
- gsub(/(^\s{4}.+$)/) { Pry.color ? CodeRay.scan($1, code_type).term : $1 }
422
+ gsub(/((?:^[ \t]+.+(?:\n+|\Z))+)/) { Pry.color ? CodeRay.scan($1, code_type).term : $1 }
423
423
  end
424
424
 
425
425
  strip_leading_hash_from_ruby_comments = lambda do |comment|
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.7.0pre5"
2
+ VERSION = "0.7.0pre6"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0pre5
9
- version: 0.7.0pre5
8
+ - 0pre6
9
+ version: 0.7.0pre6
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Mair (banisterfiend)