summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Delete the 'simple-prompt' commandprompt-commandsKyrylo Silin2018-11-041-24/+0
| | | | It's duplicative since you can use `change-prompt simple`.
* commands/change_prompt: incorporate 'list_prompts' functionalityKyrylo Silin2018-11-043-44/+35
| | | | Fixes #1829 (Merge `list-prompts` and `change-prompt` into one command)
* Merge pull request #1848 from pry/xdg-history-tweakKyrylo Silin2018-11-041-3/+3
|\ | | | | config/default: use XDG_DATA_HOME, not XDG_CACHE_HOME for history
| * config/default: use XDG_DATA_HOME, not XDG_CACHE_HOME for historyKyrylo Silin2018-11-041-3/+3
|/ | | | | | | | 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)
* Merge pull request #1846 from pry/prompt-apiKyrylo Silin2018-11-0411-134/+175
|\ | | | | prompt: add basic API for adding prompts
| * prompt: deprecate Pry::Prompt::MAPKyrylo Silin2018-11-041-0/+4
| |
| * prompt: add basic API for adding promptsKyrylo Silin2018-11-049-119/+165
| | | | | | | | Fixes #1836 (Add an API for adding new prompts)
| * rubocop: disable Layout/IndentHeredocKyrylo Silin2018-11-042-12/+3
|/ | | | This cop suggests to install a library to format heredocs. LOL
* Merge pull request #1847 from pry/pry-rails-fixesKyrylo Silin2018-11-042-4/+21
|\ | | | | Backport certain methods for smother transition
| * pry_instance: properly deprecate #{input,output}_arrayKyrylo Silin2018-11-041-4/+20
| | | | | | | | Without this the warning will actually be printed on every line.
| * ring: alias #count as #sizeKyrylo Silin2018-11-041-0/+1
|/ | | | | This is for backwards compatibility. Pry Rails uses `#size`: https://github.com/rweng/pry-rails/blob/77f770f376077e37c69116dda39ff03ee7961f64/lib/pry-rails/prompt.rb#L23
* Merge pull request #1844 from pry/1316-xdg-historyKyrylo Silin2018-11-032-6/+14
|\ | | | | config/default: add support for $XDG_CACHE_HOME for history
| * config/default: add support for $XDG_CACHE_HOME for historyKyrylo Silin2018-11-032-6/+14
|/ | | | | Fixes #1316 (support XDG Base Directory Specification)
* method: update deprecated method callKyrylo Silin2018-11-031-1/+1
|
* Merge pull request #1845 from pry/base-helpers-backportKyrylo Silin2018-11-031-0/+143
|\ | | | | helpers/base: properly backport deprecated methods
| * helpers/base: properly backport deprecated methodsbase-helpers-backportKyrylo Silin2018-11-031-0/+143
| | | | | | | | | | 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.
* | Merge pull request #1842 from pry/vi-editing-mode-jrubyKyrylo Silin2018-11-031-6/+13
|\ \ | |/ |/| repl: calculate JRuby overhang (or rather not)
| * repl: calculate JRuby overhang (or rather not)Kyrylo Silin2018-11-031-6/+13
|/ | | | | | Fixes #1840 (NotImplementedError: vi_editing_mode?() function is unimplemented on this machine)
* Merge pull request #1841 from pry/method-source-bumpKyrylo Silin2018-11-032-2/+14
|\ | | | | gemspec: bump require method_source >= 0.9.1
| * config: test on JRuby 9.2Kyrylo Silin2018-11-031-0/+13
| |
| * gemspec: bump require method_source >= 0.9.1Kyrylo Silin2018-11-031-2/+1
|/ | | | | Fixes #1804 (JRuby 9.2.0.0 breaks `source_location` and therefore our test suite)
* Merge pull request #1839 from pry/platform-refactoringKyrylo Silin2018-11-0226-161/+197
|\ | | | | Deprecate Pry::Platform and introduce Pry::Helpers::Platform
| * Deprecate Pry::Platform and introduce Pry::Helpers::PlatformKyrylo Silin2018-11-0226-161/+197
|/ | | | | | `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`.
* Merge pull request #1838 from pry/deprecations-cleanupKyrylo Silin2018-11-014-166/+83
|\ | | | | Delete Pry::CommandSet#{before,after}_command
| * Delete Pry::CommandSet#{before,after}_commandKyrylo Silin2018-11-014-166/+83
|/ | | | These commands have been deprecated for years. It's high time to get rid of them.
* Merge pull request #1837 from pry/source-location-cleanupKyrylo Silin2018-11-011-6/+0
|\ | | | | command: delete #source_location
| * command: delete #source_locationKyrylo Silin2018-11-011-6/+0
|/ | | | | This method doesn't seem to be used anywhere, so there's no benefit in keeping it.
* Merge pull request #1834 from pry/update-copyrightsKyrylo Silin2018-10-286-24/+19
|\ | | | | Update copyrights
| * Update copyrightsKyrylo Silin2018-10-286-24/+19
| | | | | | | | | | * Added myself (should've done that years ago) * Made it look like Pry is a team effort
* | Merge pull request #1833 from pry/1738-dynamic-prompt-nameKyrylo Silin2018-10-284-4/+71
|\ \ | |/ |/| prompt: make it possible to set name dynamically
| * prompt: make it possible to set name dynamicallyKyrylo Silin2018-10-284-4/+71
|/ | | | | | | | | | | | | | 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)> ```
* Merge pull request #1832 from pry/config-code-formatKyrylo Silin2018-10-287-433/+453
|\ | | | | config: simplify structure
| * config: simplify structureconfig-code-formatKyrylo Silin2018-10-287-433/+453
|/ | | | | | | | | | | * 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
* Merge pull request #1831 from pry/refactoring-prompt-classKyrylo Silin2018-10-281-59/+65
|\ | | | | prompt: refactor to reduce duplication
| * prompt: refactor to reduce duplicationKyrylo Silin2018-10-281-59/+65
|/ | | | | | | 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.
* Merge pull request #1830 from pry/safe-contexts-renamingKyrylo Silin2018-10-284-5/+5
|\ | | | | config/default: rename prompt_safe_objects to prompt_safe_contexts
| * config/default: rename prompt_safe_objects to prompt_safe_contextsKyrylo Silin2018-10-284-5/+5
|/ | | | | It makes sense to rename it because "objects" we are referring in the context of prompt are actually prompt "contexts".
* Merge pull request #1828 from pry/prompt-refactoringKyrylo Silin2018-10-287-74/+118
|\ | | | | Move prompt related code from pry.rb to prompt.rb
| * Move prompt related code from pry.rb to prompt.rbKyrylo Silin2018-10-287-58/+100
| | | | | | | | | | 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.
| * prompt: use explicit nesting for class definitionKyrylo Silin2018-10-281-21/+23
|/ | | | Per https://github.com/rubocop-hq/ruby-style-guide#namespace-definition
* Merge pull request #1827 from pry/initial-pwd-refactoringKyrylo Silin2018-10-282-5/+5
|\ | | | | pry: move INITIAL_PWD to code/code_file
| * pry: move INITIAL_PWD to code/code_fileKyrylo Silin2018-10-282-5/+5
|/ | | | | This constant is not used anywhere else but this file so it makes sense to keep it there.
* Merge pull request #1825 from pry/1823-rbreadline-vi-mode-fixKyrylo Silin2018-10-261-1/+5
|\ | | | | repl: fix broken input while using rb-readline
| * repl: fix broken input while using rb-readlineKyrylo Silin2018-10-261-1/+5
|/ | | | Fixes #1823 (Broken upstream when rb-readline is enabled)
* Merge pull request #1822 from pry/1761-pry-fKyrylo Silin2018-10-221-3/+1
|\ | | | | cli: fix `-f` not suppressing load of `pryrc`
| * cli: fix `-f` not suppressing load of `pryrc`Kyrylo Silin2018-10-221-3/+1
|/ | | | | | | 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
* Merge pull request #1821 from pry/correct-indentation-refactoringKyrylo Silin2018-10-221-11/+10
|\ | | | | indent: tidy up #correct_indentation
| * indent: tidy up #correct_indentationKyrylo Silin2018-10-221-11/+10
|/
* ring: fix #to_a exampleKyrylo Silin2018-10-221-1/+1
|
* Merge pull request #1820 from pry/overhang-improvementKyrylo Silin2018-10-221-13/+13
|\ | | | | repl: correctly calculate overhang for empty lines