pry 0.7.0pre4 → 0.7.0pre5

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 +2 -3
  2. data/lib/pry/version.rb +1 -1
  3. metadata +2 -9
@@ -414,13 +414,12 @@ e.g: eval-file -c self "hello.rb"
414
414
  target.eval("#{obj}.pry")
415
415
  end
416
416
 
417
- # FIXME!!! the last matcher doesn't work on "+nil+ or +false+", it
418
- # doesn't accurately strip the +
419
417
  process_comment_markup = lambda do |comment, code_type|
420
418
  comment.gsub(/<code>(?:\s*\n)?(.*?)\s*<\/code>/m) { Pry.color ? CodeRay.scan($1, code_type).term : $1 }.
421
419
  gsub(/<em>(?:\s*\n)?(.*?)\s*<\/em>/m) { Pry.color ? "\e[32m#{$1}\e[0m": $1 }.
422
420
  gsub(/<i>(?:\s*\n)?(.*?)\s*<\/i>/m) { Pry.color ? "\e[34m#{$1}\e[0m" : $1 }.
423
- gsub(/\B\+(.*)\+\B/) { Pry.color ? "\e[32m#{$1}\e[0m": $1 }
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 }
424
423
  end
425
424
 
426
425
  strip_leading_hash_from_ruby_comments = lambda do |comment|
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.7.0pre4"
2
+ VERSION = "0.7.0pre5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry
3
3
  version: !ruby/object:Gem::Version
4
- hash: -766259871
5
4
  prerelease: true
6
5
  segments:
7
6
  - 0
8
7
  - 7
9
- - 0pre4
10
- version: 0.7.0pre4
8
+ - 0pre5
9
+ version: 0.7.0pre5
11
10
  platform: ruby
12
11
  authors:
13
12
  - John Mair (banisterfiend)
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 5
30
28
  segments:
31
29
  - 2
32
30
  - 0
@@ -42,7 +40,6 @@ dependencies:
42
40
  requirements:
43
41
  - - ">="
44
42
  - !ruby/object:Gem::Version
45
- hash: 53
46
43
  segments:
47
44
  - 0
48
45
  - 9
@@ -58,7 +55,6 @@ dependencies:
58
55
  requirements:
59
56
  - - ">="
60
57
  - !ruby/object:Gem::Version
61
- hash: 19
62
58
  segments:
63
59
  - 1
64
60
  - 1
@@ -74,7 +70,6 @@ dependencies:
74
70
  requirements:
75
71
  - - ">="
76
72
  - !ruby/object:Gem::Version
77
- hash: 27
78
73
  segments:
79
74
  - 0
80
75
  - 3
@@ -135,7 +130,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
130
  requirements:
136
131
  - - ">="
137
132
  - !ruby/object:Gem::Version
138
- hash: 3
139
133
  segments:
140
134
  - 0
141
135
  version: "0"
@@ -144,7 +138,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
138
  requirements:
145
139
  - - ">"
146
140
  - !ruby/object:Gem::Version
147
- hash: 25
148
141
  segments:
149
142
  - 1
150
143
  - 3