pry 0.5.8 → 0.5.9

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.
@@ -345,9 +345,9 @@ e.g show-doc hello_method
345
345
  next
346
346
  end
347
347
 
348
+ doc = meth.comment
348
349
  file, line = meth.source_location
349
350
  check_for_dynamically_defined_method.call(file)
350
- doc = meth.comment
351
351
 
352
352
  output.puts "--\nFrom #{file} @ line ~#{line}:\n--"
353
353
  output.puts doc
@@ -407,9 +407,9 @@ e.g: show-method hello_method
407
407
  next
408
408
  end
409
409
 
410
+ code = meth.source
410
411
  file, line = meth.source_location
411
412
  check_for_dynamically_defined_method.call(file)
412
- code = meth.source
413
413
 
414
414
  output.puts "--\nFrom #{file} @ line #{line}:\n--"
415
415
  output.puts code
@@ -425,9 +425,9 @@ e.g: show-method hello_method
425
425
  if commands[command_name]
426
426
  meth = commands[command_name][:action]
427
427
 
428
+ code = meth.source
428
429
  file, line = meth.source_location
429
430
  check_for_dynamically_defined_method.call(file)
430
- code = meth.source
431
431
 
432
432
  output.puts "--\nFrom #{file} @ line #{line}:\n--"
433
433
  output.puts code
@@ -133,7 +133,7 @@ class Pry
133
133
  action = cmd[:action]
134
134
  commands.instance_exec(*Shellwords.shellwords(arg_string), &action)
135
135
  else
136
- raise "No such command: #{name}"
136
+ raise "No such Pry command: #{name}"
137
137
  end
138
138
  end
139
139
 
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.5.8"
2
+ VERSION = "0.5.9"
3
3
  end
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.5.8
4
+ version: 0.5.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ruby_parser
17
- requirement: &16960692 !ruby/object:Gem::Requirement
17
+ requirement: &17387988 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.0.5
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *16960692
25
+ version_requirements: *17387988
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: method_source
28
- requirement: &16905192 !ruby/object:Gem::Requirement
28
+ requirement: &17387640 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *16905192
36
+ version_requirements: *17387640
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bacon
39
- requirement: &16904916 !ruby/object:Gem::Requirement
39
+ requirement: &17387304 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 1.1.0
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *16904916
47
+ version_requirements: *17387304
48
48
  description: attach an irb-like session to any object at runtime
49
49
  email: jrmair@gmail.com
50
50
  executables: