pry 0.9.12pre3 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,22 @@
1
+ 12/02/2012 version 0.9.12
2
+ Bug fixes:
3
+ * Fix major bug where commands broke due to slop looking at ARGV
4
+ instead of command parameters (#828)
5
+ * Fix bug where pager broke in some situations (#845)
6
+ * Fix broken rendering of some docs (#795)
7
+ * silence warnings during failed tab-completion attempts
8
+ * fix broken prompt when prompt is colored (#822 / #823)
9
+ * added reload-method alias for reload-code (for backwards compat)
10
+ * Reopen Readline.output if it is not a tty (see 1538bc0990)
11
+
12
+ Features:
13
+ * added pry --gem (see 19bfc13aa)
14
+ * show-source now works on commands created with create_command
15
+ * add -m (method) -c (class) and -f (file) switches to 'whereami' command
16
+ * show-source now falls back to superclass if can't find class code
17
+ (displays warning)
18
+ * show-source/show-doc now indicate when -a option is available.
19
+
1
20
  20/01/2012 version 0.9.11.4
2
21
  * fixed pager bug (wouldn't render color codes in some circumstances)
3
22
  * added Pry.last_internal_error, useful for devs debugging commands
@@ -262,6 +262,15 @@ class Pry
262
262
  end
263
263
 
264
264
  def self.auto_resize!
265
+ ver = Readline::VERSION
266
+ if ver[/edit/i]
267
+ warn <<-EOT
268
+ Readline version #{ver} detected - will not auto_resize! correctly.
269
+ For the fix, use GNU Readline instead:
270
+ https://github.com/guard/guard/wiki/Add-proper-Readline-support-to-Ruby-on-Mac-OS-X
271
+ EOT
272
+ return
273
+ end
265
274
  trap :WINCH do
266
275
  begin
267
276
  Readline.set_screen_size *Terminal.size!
@@ -618,6 +618,9 @@ class Pry
618
618
  end
619
619
 
620
620
  if input == Readline
621
+ if !$stdout.tty? && $stdin.tty? && !Pry::Helpers::BaseHelpers.windows?
622
+ Readline.output = File.open('/dev/tty', 'w')
623
+ end
621
624
  input.readline(current_prompt, false) # false since we'll add it manually
622
625
  elsif defined? Coolline and input.is_a? Coolline
623
626
  input.readline(current_prompt)
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.9.12pre3"
2
+ VERSION = "0.9.12"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.12pre3
5
- prerelease: 6
4
+ version: 0.9.12
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Mair (banisterfiend)
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-02-10 00:00:00.000000000 Z
14
+ date: 2013-02-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: coderay
@@ -358,9 +358,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
358
358
  required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  none: false
360
360
  requirements:
361
- - - ! '>'
361
+ - - ! '>='
362
362
  - !ruby/object:Gem::Version
363
- version: 1.3.1
363
+ version: '0'
364
364
  requirements: []
365
365
  rubyforge_project:
366
366
  rubygems_version: 1.8.24