pry 0.5.0 → 0.5.1

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 +7 -7
  2. data/lib/pry/version.rb +1 -1
  3. metadata +7 -7
data/lib/pry/commands.rb CHANGED
@@ -103,7 +103,7 @@ Shows local and instance variables by default.
103
103
  options[:k] = true
104
104
  end
105
105
 
106
- opts.on("-m", "--methods", "Display methods.") do
106
+ opts.on("-m", "--methods", "Display methods (public methods by default).") do
107
107
  options[:m] = true
108
108
  end
109
109
 
@@ -233,8 +233,8 @@ Shows local and instance variables by default.
233
233
 
234
234
  OptionParser.new do |opts|
235
235
  opts.banner = %{Usage: eval-file [OPTIONS] FILE
236
- Eval a Ruby script at top-level or in the current context.
237
- e.g: eval-script -c "hello.rb"
236
+ Eval a Ruby script at top-level or in the current context. Defaults to top-level.
237
+ e.g: eval-file -c "hello.rb"
238
238
  --
239
239
  }
240
240
  opts.on("-c", "--context", "Eval the script in the current context.") do
@@ -252,7 +252,7 @@ e.g: eval-script -c "hello.rb"
252
252
  next if options[:h]
253
253
 
254
254
  if !file_name
255
- output.puts "You need to specify a file name. Type `eval-script --help` for help"
255
+ output.puts "You need to specify a file name. Type `eval-file --help` for help"
256
256
  next
257
257
  end
258
258
 
@@ -331,7 +331,7 @@ e.g show-doc hello_method
331
331
 
332
332
  doc = meth.comment
333
333
  file, line = meth.source_location
334
- output.puts "From #{file} @ line ~#{line}:\n--"
334
+ output.puts "--\nFrom #{file} @ line ~#{line}:\n--"
335
335
  output.puts doc
336
336
  end
337
337
 
@@ -380,7 +380,7 @@ e.g: show-method hello_method
380
380
 
381
381
  code = meth.source
382
382
  file, line = meth.source_location
383
- output.puts "From #{file} @ line #{line}:\n--"
383
+ output.puts "--\nFrom #{file} @ line #{line}:\n--"
384
384
  output.puts code
385
385
  end
386
386
 
@@ -396,7 +396,7 @@ e.g: show-method hello_method
396
396
  meth = cmds[command_name][:action]
397
397
  code = meth.source
398
398
  file, line = meth.source_location
399
- output.puts "From #{file} @ line #{line}:\n--"
399
+ output.puts "--\nFrom #{file} @ line #{line}:\n--"
400
400
  output.puts code
401
401
  else
402
402
  output.puts "No such command: #{command_name}."
data/lib/pry/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
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.0
4
+ version: 0.5.1
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: &17206632 !ruby/object:Gem::Requirement
17
+ requirement: &17143128 !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: *17206632
25
+ version_requirements: *17143128
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: method_source
28
- requirement: &17206344 !ruby/object:Gem::Requirement
28
+ requirement: &17142852 !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: *17206344
36
+ version_requirements: *17142852
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bacon
39
- requirement: &17206056 !ruby/object:Gem::Requirement
39
+ requirement: &17026524 !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: *17206056
47
+ version_requirements: *17026524
48
48
  description: attach an irb-like session to any object at runtime
49
49
  email: jrmair@gmail.com
50
50
  executables: []