mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
version 0.9.10 release
This commit is contained in:
parent
c12f7c0e67
commit
cfc5890d1c
6 changed files with 15 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
06/07/2012 version 0.10.pre.1
|
||||
14/07/2012 version 0.9.10
|
||||
dependency changes:
|
||||
* #561 upgrade the slop gem to version 3
|
||||
* #590 move to the jist gem from gist.
|
||||
|
@ -14,6 +14,7 @@ new features:
|
|||
* allow running a file of pry input with pry <file>
|
||||
* support colours in "ri" command
|
||||
* add before_eval hook
|
||||
* prompt now gets a lot more data when proc arity is 1
|
||||
|
||||
bug fixes &c.
|
||||
* #554 removed the "req" command
|
||||
|
@ -29,6 +30,7 @@ bug fixes &c.
|
|||
* #620 improve whereami command when not in a binding.pry
|
||||
* #622 support embedded documents (=begin ... =end)
|
||||
* #627 support editing files with spaces in the name
|
||||
* changed __binding_impl__ to __pry__
|
||||
* support for absolute paths in $EDITOR
|
||||
* fix "cat" command on files with unknown extensions
|
||||
* many many internal refactorings and tidyings
|
||||
|
|
|
@ -51,7 +51,7 @@ class Object
|
|||
return class_eval "binding"
|
||||
end
|
||||
|
||||
unless respond_to?(:__binding_impl__)
|
||||
unless respond_to?(:__pry__)
|
||||
binding_impl_method = [<<-METHOD, __FILE__, __LINE__ + 1]
|
||||
# Get a binding with 'self' set to self, and no locals.
|
||||
#
|
||||
|
@ -61,7 +61,7 @@ class Object
|
|||
# Please don't call this method directly, see {__binding__}.
|
||||
#
|
||||
# @return [Binding]
|
||||
def __binding_impl__
|
||||
def __pry__
|
||||
binding
|
||||
end
|
||||
METHOD
|
||||
|
@ -69,7 +69,7 @@ class Object
|
|||
# The easiest way to check whether an object has a working singleton class
|
||||
# is to try and define a method on it. (just checking for the presence of
|
||||
# the singleton class gives false positives for `true` and `false`).
|
||||
# __binding_impl__ is just the closest method we have to hand, and using
|
||||
# __pry__ is just the closest method we have to hand, and using
|
||||
# it has the nice property that we can memoize this check.
|
||||
begin
|
||||
# instance_eval sets the default definee to the object's singleton class
|
||||
|
@ -84,7 +84,7 @@ class Object
|
|||
end
|
||||
end
|
||||
|
||||
__binding_impl__
|
||||
__pry__
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class Pry
|
|||
def internal_binding?(target)
|
||||
m = target.eval("__method__").to_s
|
||||
# class_eval is here because of http://jira.codehaus.org/browse/JRUBY-6753
|
||||
["__binding__", "__binding_impl__", "class_eval"].include?(m)
|
||||
["__binding__", "__pry__", "class_eval"].include?(m)
|
||||
end
|
||||
|
||||
def get_method_or_raise(name, target, opts={}, omit_help=false)
|
||||
|
|
|
@ -388,11 +388,11 @@ end
|
|||
# Grab a copy of the TOPLEVEL_BINDING without any local variables.
|
||||
# This binding has a default definee of Object, and new methods are
|
||||
# private (just as in TOPLEVEL_BINDING).
|
||||
def self.__binding_impl__
|
||||
def self.__pry__
|
||||
binding
|
||||
end
|
||||
Pry.toplevel_binding = __binding_impl__
|
||||
Pry.toplevel_binding = __pry__
|
||||
Pry.toplevel_binding.eval("private")
|
||||
class << self; undef __binding_impl__; end
|
||||
class << self; undef __pry__; end
|
||||
|
||||
Pry.init
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
class Pry
|
||||
VERSION = "0.10.pre.1"
|
||||
VERSION = "0.9.10"
|
||||
end
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "pry"
|
||||
s.version = "0.10.pre.1"
|
||||
s.version = "0.9.10"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["John Mair (banisterfiend)", "Conrad Irwin"]
|
||||
s.date = "2012-07-13"
|
||||
s.date = "2012-07-15"
|
||||
s.description = "An IRB alternative and runtime developer console"
|
||||
s.email = ["jrmair@gmail.com", "conrad.irwin@gmail.com"]
|
||||
s.executables = ["pry"]
|
||||
|
|
Loading…
Add table
Reference in a new issue