Commit Graph

28 Commits

Author SHA1 Message Date
Robert Gleeson b9cddb5609 add 'list-inspectors' & 'change-inspectors' commands.
the list-inspectors command shows a list of available inspectors as well
as the active inspectors in the list. inspectors are drawn with a name as
well as a short description.

change-inspector can be used to change the inspector by the name found in
the list-inspectors command.

an inspector in pry is something that prints a return value in a repl session.
i'm not crazy about the name `inspector` but the traditional name used in pry(`print`)
didn't fit well. some discussion led us to `inspector` for lack of a better word,
see #1176 on github for discussion
2014-03-23 09:21:17 +01:00
Robert Gleeson f8dc3ed53e consistent changelog entries 2014-03-19 17:13:20 +01:00
Robert Gleeson 7fd325699e remove require of "securerandom". never used. 2014-03-19 17:10:23 +01:00
Robert Gleeson 9650e992ff update CHANGELOG.md 2014-03-19 17:02:17 +01:00
Robert Gleeson e617c7d420 add 'list-prompts' and 'change-prompt' commands.
the list-prompts command shows a list of available prompts as well
as the active prompt in the list. prompts are drawn with a name as
well as a short description.

change-prompt can be used to change the prompt by the name found in
the list-prompts command.
2014-03-19 14:53:28 +01:00
Robert Gleeson 8092a7db99 fix link in CHANGELOG.md 2014-03-18 20:12:22 +01:00
Robert Gleeson f84315e335 update CHANGELOG.md 2014-03-18 19:56:48 +01:00
Robert Gleeson 68034daffc update CHANGELOG.md 2014-03-17 09:38:58 +01:00
Robert Gleeson 88b064c96a add changelog & docs for Pry.main 2014-03-16 11:17:32 +01:00
Robert Gleeson 43b80755e6 change Pry.view_clip() to optionally drop or include hex value.
change 2nd argument of Pry.view_clip() to accept a Hash of options
with two keys: max_length (default 60) and id (default false)

the custom prompt proc's in lib/pry.rb clip the object shown to
look better visually. this change still supports that behavior but
also adds the option to include a hex representation of the object's
ID by including id: true.

@rf- suggested supporting both (with & without id) to be able to
keep printer proc's pretty but also support other code that's okay
with printing inspects that are hex-y, like the Pry::CLIPPED_PRINT.

also changes Pry::CLIPPED_PRINT to print return values with a hex
ID included since it is a bit different from prompt proc's.
2014-03-16 08:25:04 +01:00
Robert Gleeson 97c28898e1 lazy load `Pry::InputCompleter` or `Pry::BondCompleter`
prior to commit both would be loaded but in most cases you'd only use
one or the other. when `bond` is available and `_pry_.config.completer`
has not been set to nil before the pry session has started & editline is
not being used(OSX only), then "pry/bond_completer" is loaded. otherwise
the default fallback is Pry::InputCompleter("pry/input_completer")
2014-03-16 04:24:12 +01:00
Robert Gleeson a0b1fb2f57 update changelog.md 2014-03-14 07:57:32 +01:00
Ryan Fitzgerald e410f0ee16 Clean up gem dependencies (fix #1148)
* Remove unused development dependency on open4
* Use pessimistic versioning for coderay, rake, and simplecov
* Bump versions of rake and mocha
* Loosen pessimistic versioning on mocha and bond

The only remaining warning from RubyGems is on coderay -- we chose not
to use '~> 1.1' because there were breaking changes between 1.0 and 1.1.
2014-03-09 22:00:52 -07:00
Ryan Fitzgerald bdbc552bac Merge pull request #1146 from robgleeson/changelog
update CHANGELOG.md
2014-03-09 21:38:33 -07:00
Robert Gleeson 51635d10d2 update CHANGELOG.md
'openstruct' is not a runtime dependency that pry has anymore but it
was not added to the changelog. other two changes include better messages
for older changelog entries related to config.
2014-03-10 04:33:57 +01:00
Robert Gleeson b4f0770af2 update CHANGELOG.md 2014-03-10 02:59:11 +01:00
Ivo Wever cf088c32e0 Updated changelog as promised in #1114
Fixes #1114
2014-02-08 12:33:46 +01:00
Conrad Irwin 263ab5bc06 Add watch to CHANGELOG.md 2014-02-04 10:19:56 -08:00
Robert Gleeson 8334cd33ce use 'dev-facing changes' in changelog for command set change. 2014-02-04 05:19:38 +01:00
Robert Gleeson 77a9c00067 rename Pry::CommandSet#commands as Pry::CommandSet#to_hash.
'Pry.commands.commands' gone in favor of 'Pry.commands.to_hash' or as
using a CommandSet as an enumerable (Pry.commands.each etc) instead.
2014-02-04 05:14:41 +01:00
Robert Gleeson 247e4af83c add option to disable to the input completer (ref #1123). 2014-02-03 19:28:47 +01:00
Robert Gleeson 0dd077a838 update CHANGELOG.md 2014-02-03 13:58:46 +01:00
Robert Gleeson ee94d2029b update CHANGELOG.md to include #1096 2014-02-02 18:52:32 +01:00
Robert Gleeson 421a546194 update CHANGELOG.md to include #1118. 2014-02-02 16:31:32 +01:00
Jonas Arvidsson a987a8e7c2 Fix bug in edit regarding file names with path but no suffix
There was a bug in Command::Edit#probably_a_file? due to missing
parentheses in a method call followed by an operator.
2014-01-25 22:55:47 +01:00
Robert Gleeson 34b25ef03d update CHANGELOG.md 2014-01-13 00:39:07 +01:00
Ryan Fitzgerald 07fd525886 Add changelog entry for 1.0.0 2013-11-09 19:03:05 -08:00
Ryan Fitzgerald 9ac9280009 Clean up CHANGELOG
* Make it Markdown instead of plain text
* Clean up wording and formatting back to 0.9.0
* Incorporate entries for non-master releases 0.9.11.4 through 0.9.12.2
2013-11-09 18:05:56 -08:00