pry 0.7.6-i386-mswin32 → 0.7.6.1-i386-mswin32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -0
- data/lib/pry/commands.rb +5 -3
- data/lib/pry/version.rb +1 -1
- metadata +2 -9
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
26/3/2011 version 0.7.6.1
|
2
|
+
* added slightly better support for YARD
|
3
|
+
* now @param and @return tags are colored green and markdown `code` is syntax highlighted using coderay
|
4
|
+
|
1
5
|
26/3/2011 version 0.7.6
|
2
6
|
* `whereami` command now accepts parameter AROUND, to display AROUND lines on eitherside of invocation line.
|
3
7
|
* made it so `whereami` is invoked even if no method exists in current context (i.e in rspec tests)
|
data/lib/pry/commands.rb
CHANGED
@@ -4,7 +4,7 @@ require "pry/command_base"
|
|
4
4
|
require "pry/pry_instance"
|
5
5
|
|
6
6
|
begin
|
7
|
-
require "pry-doc"
|
7
|
+
require "pry-doc"
|
8
8
|
rescue LoadError
|
9
9
|
end
|
10
10
|
|
@@ -175,7 +175,7 @@ class Pry
|
|
175
175
|
# FIX ME!!! this line is screwed
|
176
176
|
# check_for_dynamically_defined_method.call()
|
177
177
|
if file =~ /(\(.*\))|<.*>/
|
178
|
-
output.puts "Cannot find local context."
|
178
|
+
output.puts "Cannot find local context. Did you use `binding.pry` ?"
|
179
179
|
next
|
180
180
|
end
|
181
181
|
|
@@ -467,7 +467,9 @@ e.g: eval-file -c self "hello.rb"
|
|
467
467
|
gsub(/<em>(?:\s*\n)?(.*?)\s*<\/em>/m) { Pry.color ? "\e[32m#{$1}\e[0m": $1 }.
|
468
468
|
gsub(/<i>(?:\s*\n)?(.*?)\s*<\/i>/m) { Pry.color ? "\e[34m#{$1}\e[0m" : $1 }.
|
469
469
|
gsub(/\B\+(\w*?)\+\B/) { Pry.color ? "\e[32m#{$1}\e[0m": $1 }.
|
470
|
-
gsub(/((?:^[ \t]+.+(?:\n+|\Z))+)/) { Pry.color ? CodeRay.scan($1, code_type).term : $1 }
|
470
|
+
gsub(/((?:^[ \t]+.+(?:\n+|\Z))+)/) { Pry.color ? CodeRay.scan($1, code_type).term : $1 }.
|
471
|
+
gsub(/`(?:\s*\n)?(.*?)\s*`/) { Pry.color ? CodeRay.scan($1, code_type).term : $1 }.
|
472
|
+
gsub(/(@param|@return)/) { Pry.color ? "\e[32m#{$1}\e[0m": $1 }
|
471
473
|
end
|
472
474
|
|
473
475
|
strip_leading_hash_from_ruby_comments = lambda do |comment|
|
data/lib/pry/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 15
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 7
|
9
8
|
- 6
|
10
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.7.6.1
|
11
11
|
platform: i386-mswin32
|
12
12
|
authors:
|
13
13
|
- John Mair (banisterfiend)
|
@@ -26,7 +26,6 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 5
|
30
29
|
segments:
|
31
30
|
- 2
|
32
31
|
- 0
|
@@ -42,7 +41,6 @@ dependencies:
|
|
42
41
|
requirements:
|
43
42
|
- - ">="
|
44
43
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 53
|
46
44
|
segments:
|
47
45
|
- 0
|
48
46
|
- 9
|
@@ -58,7 +56,6 @@ dependencies:
|
|
58
56
|
requirements:
|
59
57
|
- - ">="
|
60
58
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 19
|
62
59
|
segments:
|
63
60
|
- 1
|
64
61
|
- 1
|
@@ -74,7 +71,6 @@ dependencies:
|
|
74
71
|
requirements:
|
75
72
|
- - ">="
|
76
73
|
- !ruby/object:Gem::Version
|
77
|
-
hash: 15
|
78
74
|
segments:
|
79
75
|
- 0
|
80
76
|
- 4
|
@@ -90,7 +86,6 @@ dependencies:
|
|
90
86
|
requirements:
|
91
87
|
- - ">="
|
92
88
|
- !ruby/object:Gem::Version
|
93
|
-
hash: 27
|
94
89
|
segments:
|
95
90
|
- 1
|
96
91
|
- 3
|
@@ -151,7 +146,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
146
|
requirements:
|
152
147
|
- - ">="
|
153
148
|
- !ruby/object:Gem::Version
|
154
|
-
hash: 3
|
155
149
|
segments:
|
156
150
|
- 0
|
157
151
|
version: "0"
|
@@ -160,7 +154,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
154
|
requirements:
|
161
155
|
- - ">="
|
162
156
|
- !ruby/object:Gem::Version
|
163
|
-
hash: 3
|
164
157
|
segments:
|
165
158
|
- 0
|
166
159
|
version: "0"
|