| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
It's duplicative since you can use `change-prompt simple`.
|
|
|
|
| |
Fixes #1829 (Merge `list-prompts` and `change-prompt` into one command)
|
|\
| |
| | |
config/default: use XDG_DATA_HOME, not XDG_CACHE_HOME for history
|
|/
|
|
|
|
|
|
| |
It turns out cache is supposed to be purgeable without losing information and we
don't want to lose history.
Thanks to @SirNerdBear for pointing out
(https://github.com/pry/pry/issues/1316#issuecomment-435611191)
|
|\
| |
| | |
prompt: add basic API for adding prompts
|
| | |
|
| |
| |
| |
| | |
Fixes #1836 (Add an API for adding new prompts)
|
|/
|
|
| |
This cop suggests to install a library to format heredocs. LOL
|
|\
| |
| | |
Backport certain methods for smother transition
|
| |
| |
| |
| | |
Without this the warning will actually be printed on every line.
|
|/
|
|
|
| |
This is for backwards compatibility. Pry Rails uses `#size`:
https://github.com/rweng/pry-rails/blob/77f770f376077e37c69116dda39ff03ee7961f64/lib/pry-rails/prompt.rb#L23
|
|\
| |
| | |
config/default: add support for $XDG_CACHE_HOME for history
|
|/
|
|
|
| |
Fixes #1316
(support XDG Base Directory Specification)
|
| |
|
|\
| |
| | |
helpers/base: properly backport deprecated methods
|
| |
| |
| |
| |
| | |
The code is extremely ugly but this way people will have more time to update
their plugins. I'll revert this PR as soon as the new Pry version is out.
|
|\ \
| |/
|/| |
repl: calculate JRuby overhang (or rather not)
|
|/
|
|
|
|
| |
Fixes #1840
(NotImplementedError: vi_editing_mode?() function is unimplemented on this
machine)
|
|\
| |
| | |
gemspec: bump require method_source >= 0.9.1
|
| | |
|
|/
|
|
|
| |
Fixes #1804
(JRuby 9.2.0.0 breaks `source_location` and therefore our test suite)
|
|\
| |
| | |
Deprecate Pry::Platform and introduce Pry::Helpers::Platform
|
|/
|
|
|
|
| |
`Pry::Platform` really looks like a helper and therefore should be defined as
one. Invoking `Pry::Platform` emits a warning now. Users are encouraged to use
`Pry::Helpers::Platform`.
|
|\
| |
| | |
Delete Pry::CommandSet#{before,after}_command
|
|/
|
|
| |
These commands have been deprecated for years. It's high time to get rid of them.
|
|\
| |
| | |
command: delete #source_location
|
|/
|
|
|
| |
This method doesn't seem to be used anywhere, so there's no benefit in keeping
it.
|
|\
| |
| | |
Update copyrights
|
| |
| |
| |
| |
| | |
* Added myself (should've done that years ago)
* Made it look like Pry is a team effort
|
|\ \
| |/
|/| |
prompt: make it possible to set name dynamically
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes #1738 (Possible to make prompt_name dynamic?)
The user-facing API is the following:
```rb
Pry.config.prompt_name = Pry.lazy { rand(100) }
[1] 80(main)>
[2] 87(main)>
[3] 30(main)>
```
|
|\
| |
| | |
config: simplify structure
|
|/
|
|
|
|
|
|
|
|
|
| |
* Replace `require_relative` with `require`
The project tries to use the `require` form everywhere where possible, which
is the common form
* `require` from `pry.rb`
Spreaded `require` statements where we require internal classes is confusing
* Fixed namespace definition for Config classes
https://github.com/rubocop-hq/ruby-style-guide#namespace-definition recommends
to use explicit nesting
|
|\
| |
| | |
prompt: refactor to reduce duplication
|
|/
|
|
|
|
|
| |
Since we always need to define two procs that look almost the same, duplication
was unavoidable. With help of method wrappers around procs we can reduce it.
As a bonus, the class has some YARD annotations now.
|
|\
| |
| | |
config/default: rename prompt_safe_objects to prompt_safe_contexts
|
|/
|
|
|
| |
It makes sense to rename it because "objects" we are referring in the context of
prompt are actually prompt "contexts".
|
|\
| |
| | |
Move prompt related code from pry.rb to prompt.rb
|
| |
| |
| |
| |
| | |
It makes a lot more sense to keep these procs under the `Pry::Prompt` namespace
than `Pry`, which is already heavily populated by other various things.
|
|/
|
|
| |
Per https://github.com/rubocop-hq/ruby-style-guide#namespace-definition
|
|\
| |
| | |
pry: move INITIAL_PWD to code/code_file
|
|/
|
|
|
| |
This constant is not used anywhere else but this file so it makes sense to keep
it there.
|
|\
| |
| | |
repl: fix broken input while using rb-readline
|
|/
|
|
| |
Fixes #1823 (Broken upstream when rb-readline is enabled)
|
|\
| |
| | |
cli: fix `-f` not suppressing load of `pryrc`
|
|/
|
|
|
|
|
| |
Fixes #1761 (`pry -f` can no longer suppress the loading of .pryrc)
If I recall correctly, we split session loading in #1393 because of `Pry.start`.
This broke `-f`. I think we can get away with a simple reorder in #parse_options
|
|\
| |
| | |
indent: tidy up #correct_indentation
|
|/ |
|
| |
|
|\
| |
| | |
repl: correctly calculate overhang for empty lines
|