pry 0.10.0.pre2-java → 0.10.0.pre3-java
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.
- checksums.yaml +4 -4
- data/lib/pry/code.rb +2 -7
- data/lib/pry/commands/cat/exception_formatter.rb +1 -1
- data/lib/pry/commands/cat/input_expression_formatter.rb +1 -1
- data/lib/pry/commands/show_source.rb +1 -1
- data/lib/pry/commands/watch_expression.rb +1 -1
- data/lib/pry/commands/watch_expression/expression.rb +2 -2
- data/lib/pry/commands/whereami.rb +1 -1
- data/lib/pry/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c81bbd2d811c239f7df756c864e0caa09c931c79
|
4
|
+
data.tar.gz: 1bd3f75a1f2af8d77091d8a61747d64c70794cfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8641e54fc07224792e727c614002b5e8a6022b71f585c9495bd249b598363809efa48bc60f5620241e98f953ef28abeb334b528d2e234b18d2b3be221a728955
|
7
|
+
data.tar.gz: 58d7a6575394c493f439dbaddeaab507f36551e7b7abc042ef6c2de85baa753813a763c44294d5336dc2c107ed1163588560554f79b06cbd2cc280334c41f7e4
|
data/lib/pry/code.rb
CHANGED
@@ -253,12 +253,7 @@ class Pry
|
|
253
253
|
# @return [String] a formatted representation (based on the configuration of
|
254
254
|
# the object).
|
255
255
|
def to_s
|
256
|
-
print_to_output(""
|
257
|
-
end
|
258
|
-
|
259
|
-
# @return [String] a (possibly highlighted) copy of the source code.
|
260
|
-
def highlighted
|
261
|
-
print_to_output("", true)
|
256
|
+
print_to_output("")
|
262
257
|
end
|
263
258
|
|
264
259
|
# Writes a formatted representation (based on the configuration of the
|
@@ -266,7 +261,7 @@ class Pry
|
|
266
261
|
def print_to_output(output, color=false)
|
267
262
|
@lines.each do |loc|
|
268
263
|
loc = loc.dup
|
269
|
-
loc.colorize(@code_type)
|
264
|
+
loc.colorize(@code_type)
|
270
265
|
loc.add_line_number(max_lineno_width, color) if @with_line_numbers
|
271
266
|
loc.add_marker(@marker_lineno) if @with_marker
|
272
267
|
loc.indent(@indentation_num) if @with_indentation
|
@@ -16,7 +16,7 @@ class Pry
|
|
16
16
|
set_file_and_dir_locals(backtrace_file, _pry_, _pry_.current_context)
|
17
17
|
code = decorate(Pry::Code.from_file(backtrace_file).
|
18
18
|
between(*start_and_end_line_for_code_window).
|
19
|
-
with_marker(backtrace_line))
|
19
|
+
with_marker(backtrace_line))
|
20
20
|
"#{header}#{code}"
|
21
21
|
end
|
22
22
|
|
@@ -40,7 +40,7 @@ class Pry
|
|
40
40
|
# The source for code_object prepared for display.
|
41
41
|
def content_for(code_object)
|
42
42
|
Code.new(code_object.source, start_line_for(code_object)).
|
43
|
-
with_line_numbers(use_line_numbers?)
|
43
|
+
with_line_numbers(use_line_numbers?)
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -6,7 +6,7 @@ class Pry
|
|
6
6
|
def initialize(_pry_, target, source)
|
7
7
|
@_pry_ = _pry_
|
8
8
|
@target = target
|
9
|
-
@source =
|
9
|
+
@source = source.strip
|
10
10
|
end
|
11
11
|
|
12
12
|
def eval!
|
@@ -15,7 +15,7 @@ class Pry
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def to_s
|
18
|
-
"#{Code.new(source).
|
18
|
+
"#{Code.new(source).strip} => #{value}"
|
19
19
|
end
|
20
20
|
|
21
21
|
# Has the value of the expression changed?
|
@@ -89,7 +89,7 @@ class Pry
|
|
89
89
|
set_file_and_dir_locals(@file)
|
90
90
|
|
91
91
|
out = "\n#{text.bold('From:')} #{location}:\n\n" <<
|
92
|
-
code.with_line_numbers(use_line_numbers?).with_marker(marker)
|
92
|
+
code.with_line_numbers(use_line_numbers?).with_marker(marker) << "\n"
|
93
93
|
|
94
94
|
_pry_.pager.page out
|
95
95
|
end
|
data/lib/pry/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.0.
|
4
|
+
version: 0.10.0.pre3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- John Mair (banisterfiend)
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-05-
|
13
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: coderay
|