pry 0.7.6-java → 0.7.6.1-java

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.7.6"
2
+ VERSION = "0.7.6.1"
3
3
  end
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
- version: 0.7.6
9
+ - 1
10
+ version: 0.7.6.1
11
11
  platform: java
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: 23
78
74
  segments:
79
75
  - 0
80
76
  - 2
@@ -135,7 +131,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
131
  requirements:
136
132
  - - ">="
137
133
  - !ruby/object:Gem::Version
138
- hash: 3
139
134
  segments:
140
135
  - 0
141
136
  version: "0"
@@ -144,7 +139,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
139
  requirements:
145
140
  - - ">="
146
141
  - !ruby/object:Gem::Version
147
- hash: 3
148
142
  segments:
149
143
  - 0
150
144
  version: "0"