pry 0.10.1 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +378 -11
- data/LICENSE +1 -1
- data/README.md +352 -306
- data/bin/pry +4 -7
- data/lib/pry/basic_object.rb +10 -0
- data/lib/pry/block_command.rb +22 -0
- data/lib/pry/class_command.rb +194 -0
- data/lib/pry/cli.rb +81 -74
- data/lib/pry/code/code_file.rb +37 -26
- data/lib/pry/code/code_range.rb +7 -5
- data/lib/pry/code/loc.rb +26 -13
- data/lib/pry/code.rb +49 -30
- data/lib/pry/code_object.rb +53 -28
- data/lib/pry/color_printer.rb +46 -35
- data/lib/pry/command.rb +197 -369
- data/lib/pry/command_set.rb +89 -114
- data/lib/pry/command_state.rb +31 -0
- data/lib/pry/commands/amend_line.rb +86 -82
- data/lib/pry/commands/bang.rb +18 -14
- data/lib/pry/commands/bang_pry.rb +15 -11
- data/lib/pry/commands/cat/abstract_formatter.rb +23 -18
- data/lib/pry/commands/cat/exception_formatter.rb +85 -72
- data/lib/pry/commands/cat/file_formatter.rb +56 -46
- data/lib/pry/commands/cat/input_expression_formatter.rb +35 -30
- data/lib/pry/commands/cat.rb +62 -54
- data/lib/pry/commands/cd.rb +40 -35
- data/lib/pry/commands/change_inspector.rb +29 -22
- data/lib/pry/commands/change_prompt.rb +48 -23
- data/lib/pry/commands/clear_screen.rb +20 -0
- data/lib/pry/commands/code_collector.rb +148 -131
- data/lib/pry/commands/disable_pry.rb +23 -19
- data/lib/pry/commands/easter_eggs.rb +23 -34
- data/lib/pry/commands/edit/exception_patcher.rb +21 -17
- data/lib/pry/commands/edit/file_and_line_locator.rb +34 -23
- data/lib/pry/commands/edit.rb +185 -157
- data/lib/pry/commands/exit.rb +40 -35
- data/lib/pry/commands/exit_all.rb +24 -20
- data/lib/pry/commands/exit_program.rb +20 -16
- data/lib/pry/commands/find_method.rb +168 -162
- data/lib/pry/commands/fix_indent.rb +16 -12
- data/lib/pry/commands/help.rb +140 -133
- data/lib/pry/commands/hist.rb +151 -149
- data/lib/pry/commands/import_set.rb +20 -15
- data/lib/pry/commands/jump_to.rb +25 -21
- data/lib/pry/commands/list_inspectors.rb +35 -28
- data/lib/pry/commands/ls/constants.rb +59 -31
- data/lib/pry/commands/ls/formatter.rb +42 -36
- data/lib/pry/commands/ls/globals.rb +38 -36
- data/lib/pry/commands/ls/grep.rb +17 -15
- data/lib/pry/commands/ls/instance_vars.rb +29 -28
- data/lib/pry/commands/ls/interrogatable.rb +18 -12
- data/lib/pry/commands/ls/jruby_hacks.rb +47 -41
- data/lib/pry/commands/ls/local_names.rb +26 -24
- data/lib/pry/commands/ls/local_vars.rb +38 -30
- data/lib/pry/commands/ls/ls_entity.rb +47 -52
- data/lib/pry/commands/ls/methods.rb +49 -51
- data/lib/pry/commands/ls/methods_helper.rb +46 -42
- data/lib/pry/commands/ls/self_methods.rb +23 -21
- data/lib/pry/commands/ls.rb +124 -103
- data/lib/pry/commands/nesting.rb +21 -17
- data/lib/pry/commands/play.rb +92 -82
- data/lib/pry/commands/pry_backtrace.rb +22 -17
- data/lib/pry/commands/pry_version.rb +15 -11
- data/lib/pry/commands/raise_up.rb +33 -27
- data/lib/pry/commands/reload_code.rb +60 -48
- data/lib/pry/commands/reset.rb +16 -12
- data/lib/pry/commands/ri.rb +57 -42
- data/lib/pry/commands/save_file.rb +45 -43
- data/lib/pry/commands/shell_command.rb +56 -29
- data/lib/pry/commands/shell_mode.rb +22 -18
- data/lib/pry/commands/show_doc.rb +81 -70
- data/lib/pry/commands/show_info.rb +194 -155
- data/lib/pry/commands/show_input.rb +16 -11
- data/lib/pry/commands/show_source.rb +109 -42
- data/lib/pry/commands/stat.rb +35 -31
- data/lib/pry/commands/switch_to.rb +21 -15
- data/lib/pry/commands/toggle_color.rb +20 -16
- data/lib/pry/commands/watch_expression/expression.rb +32 -27
- data/lib/pry/commands/watch_expression.rb +89 -84
- data/lib/pry/commands/whereami.rb +156 -141
- data/lib/pry/commands/wtf.rb +78 -40
- data/lib/pry/config/attributable.rb +22 -0
- data/lib/pry/config/lazy_value.rb +29 -0
- data/lib/pry/config/memoized_value.rb +34 -0
- data/lib/pry/config/value.rb +24 -0
- data/lib/pry/config.rb +317 -20
- data/lib/pry/control_d_handler.rb +28 -0
- data/lib/pry/core_extensions.rb +22 -9
- data/lib/pry/editor.rb +53 -33
- data/lib/pry/env.rb +18 -0
- data/lib/pry/exception_handler.rb +43 -0
- data/lib/pry/exceptions.rb +13 -17
- data/lib/pry/forwardable.rb +27 -0
- data/lib/pry/helpers/base_helpers.rb +20 -62
- data/lib/pry/helpers/command_helpers.rb +52 -62
- data/lib/pry/helpers/documentation_helpers.rb +20 -12
- data/lib/pry/helpers/options_helpers.rb +15 -8
- data/lib/pry/helpers/platform.rb +60 -0
- data/lib/pry/helpers/table.rb +44 -32
- data/lib/pry/helpers/text.rb +96 -85
- data/lib/pry/helpers.rb +3 -0
- data/lib/pry/history.rb +81 -55
- data/lib/pry/hooks.rb +60 -110
- data/lib/pry/indent.rb +72 -66
- data/lib/pry/input_completer.rb +199 -158
- data/lib/pry/input_lock.rb +7 -10
- data/lib/pry/inspector.rb +36 -24
- data/lib/pry/last_exception.rb +45 -45
- data/lib/pry/method/disowned.rb +19 -5
- data/lib/pry/method/patcher.rb +14 -8
- data/lib/pry/method/weird_method_locator.rb +79 -43
- data/lib/pry/method.rb +177 -124
- data/lib/pry/object_path.rb +37 -28
- data/lib/pry/output.rb +102 -16
- data/lib/pry/pager.rb +187 -174
- data/lib/pry/plugins.rb +49 -13
- data/lib/pry/prompt.rb +213 -25
- data/lib/pry/pry_class.rb +106 -93
- data/lib/pry/pry_instance.rb +261 -224
- data/lib/pry/repl.rb +82 -27
- data/lib/pry/repl_file_loader.rb +27 -22
- data/lib/pry/ring.rb +89 -0
- data/lib/pry/slop/LICENSE +20 -0
- data/lib/pry/slop/commands.rb +190 -0
- data/lib/pry/slop/option.rb +210 -0
- data/lib/pry/slop.rb +672 -0
- data/lib/pry/syntax_highlighter.rb +26 -0
- data/lib/pry/system_command_handler.rb +17 -0
- data/lib/pry/testable/evalable.rb +24 -0
- data/lib/pry/testable/mockable.rb +22 -0
- data/lib/pry/testable/pry_tester.rb +88 -0
- data/lib/pry/testable/utility.rb +34 -0
- data/lib/pry/testable/variables.rb +52 -0
- data/lib/pry/testable.rb +68 -0
- data/lib/pry/version.rb +3 -1
- data/lib/pry/warning.rb +27 -0
- data/lib/pry/{module_candidate.rb → wrapped_module/candidate.rb} +29 -27
- data/lib/pry/wrapped_module.rb +67 -57
- data/lib/pry.rb +134 -149
- metadata +49 -59
- data/lib/pry/commands/disabled_commands.rb +0 -2
- data/lib/pry/commands/gem_cd.rb +0 -26
- data/lib/pry/commands/gem_install.rb +0 -32
- data/lib/pry/commands/gem_list.rb +0 -33
- data/lib/pry/commands/gem_open.rb +0 -29
- data/lib/pry/commands/gist.rb +0 -101
- data/lib/pry/commands/install_command.rb +0 -53
- data/lib/pry/commands/list_prompts.rb +0 -35
- data/lib/pry/commands/simple_prompt.rb +0 -22
- data/lib/pry/commands.rb +0 -6
- data/lib/pry/config/behavior.rb +0 -139
- data/lib/pry/config/convenience.rb +0 -25
- data/lib/pry/config/default.rb +0 -161
- data/lib/pry/history_array.rb +0 -121
- data/lib/pry/rbx_path.rb +0 -22
- data/lib/pry/rubygem.rb +0 -82
- data/lib/pry/terminal.rb +0 -79
- data/lib/pry/test/helper.rb +0 -170
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9a8834347bff9e94179a35d225768c377a94b33750c989983f42c6cd90b9f0a5
|
4
|
+
data.tar.gz: 363c3c38dea1cba4b0b0b0b0b617b36a91a3d0761c349687deeff54711210886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deda71757450c541d7e0e9981058244817c1ea8ccf9f8ffec81c1d1919bf8bc45493cd392f8ef44baaac4e70e69c4170dd893e3cb5204770494124b033668507
|
7
|
+
data.tar.gz: bbdeb8c6e1f41f107d49ffd9c042121011870516c0228662e98b905bd41c5714748aa9dd09763a9d8c88a030daa3a317e8121d2882cc97ff72554c09fcee685e
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,371 @@
|
|
1
|
+
### master
|
2
|
+
|
3
|
+
### [v0.13.1][v0.13.1] (April 12, 2020)
|
4
|
+
|
5
|
+
#### Bug fixes
|
6
|
+
|
7
|
+
* Fixed bug where on invalid input only the last syntax error is displayed
|
8
|
+
(instead of all of them) ([#2117](https://github.com/pry/pry/pull/2117))
|
9
|
+
* Fixed `Pry::Config` raising `NoMethodError` on undefined option instead of
|
10
|
+
returning `nil` (usually invoked via `Pry.config.foo_option` calls)
|
11
|
+
([#2126](https://github.com/pry/pry/pull/2126))
|
12
|
+
* Fixed `help` command not displaying regexp aliases properly
|
13
|
+
([#2120](https://github.com/pry/pry/pull/2120))
|
14
|
+
* Fixed `pry-backtrace` not working ([#2122](https://github.com/pry/pry/pull/2122))
|
15
|
+
|
16
|
+
### [v0.13.0][v0.13.0] (March 21, 2020)
|
17
|
+
|
18
|
+
#### Features
|
19
|
+
|
20
|
+
* Added metadata to the gem (such as changelog URI, source code URI & bug
|
21
|
+
tracker URI), so it shows on https://rubygems.org/gems/pry
|
22
|
+
([#1869](https://github.com/pry/pry/pull/1869))
|
23
|
+
* Added ability to forward ARGV to a Pry session via `--` (or `-`) when
|
24
|
+
launching Pry from shell
|
25
|
+
([#1902](https://github.com/pry/pry/commit/5cd65d3c0eb053f6edcdf571eea5d0cd990626ed))
|
26
|
+
* Added `Pry::Config::LazyValue` & `Pry::Config::MemoizedValue`, which allow
|
27
|
+
storing callable procs in the config
|
28
|
+
([#2024](https://github.com/pry/pry/pull/2024))
|
29
|
+
* Added the `rc_file` config option that tells Pry the path to `pryrc`
|
30
|
+
([#2027](https://github.com/pry/pry/pull/2027))
|
31
|
+
* Added the `--code` flag to the `wtf` command, which shows code for each
|
32
|
+
backtrace frame ([#2037](https://github.com/pry/pry/pull/2037))
|
33
|
+
* Added the ability to paste method call chains with leading dots
|
34
|
+
([#2060](https://github.com/pry/pry/pull/2060))
|
35
|
+
|
36
|
+
#### API changes
|
37
|
+
|
38
|
+
* `Pry::Prompt` is a class now and it can be instantiated to create new prompts
|
39
|
+
on the fly that are not registered with `Pry::Prompt#add`. Learn more about
|
40
|
+
its API in the docs ([#1877](https://github.com/pry/pry/pull/1877))
|
41
|
+
|
42
|
+
#### Deprecations
|
43
|
+
|
44
|
+
* Deprecated `Pry.config.exception_whitelist` in favor of
|
45
|
+
`Pry.config.unrescued_exceptions`
|
46
|
+
([#1874](https://github.com/pry/pry/pull/1874))
|
47
|
+
* Deprecated `Pry.config.prompt = Pry::Prompt[:simple][:value]` in favor of
|
48
|
+
`Pry.config.prompt = Pry::Prompt[:simple]` when setting Pry prompt via
|
49
|
+
`pryrc`. `Pry::Prompt[:simple]` would return an instance of `Pry::Prompt`
|
50
|
+
instead of `Hash` ([#1877](https://github.com/pry/pry/pull/1877))
|
51
|
+
* Deprecated setting prompt via an array of two procs:
|
52
|
+
([#1877](https://github.com/pry/pry/pull/1877))
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
# Deprecated, emits a warning.
|
56
|
+
Pry.config.prompt = [proc {}, proc {}]
|
57
|
+
```
|
58
|
+
|
59
|
+
This will be removed in the next release.
|
60
|
+
* Deprecated the `show-doc` command. The `show-source -d` is the new recommended
|
61
|
+
way of reading docs ([#1934](https://github.com/pry/pry/pull/1934))
|
62
|
+
* Deprecated `Pry::Command#_pry_`. Use `Pry::Command#pry_instance` instead
|
63
|
+
([#1989](https://github.com/pry/pry/pull/1989))
|
64
|
+
|
65
|
+
#### Breaking changes
|
66
|
+
|
67
|
+
* Deleted deprecated `Pry::Platform`
|
68
|
+
([#1863](https://github.com/pry/pry/pull/1863))
|
69
|
+
* Deleted deprecated `Pry#{input/output}_array`
|
70
|
+
([#1884](https://github.com/pry/pry/pull/1864))
|
71
|
+
* Deleted deprecated `Pry::Prompt::MAP`
|
72
|
+
([#1866](https://github.com/pry/pry/pull/1866))
|
73
|
+
* Deleted deprecated methods of `Pry::Helpers::BaseHelpers` such as `mac_osx?`,
|
74
|
+
`linux?`, `windows?`, `windows_ansi?`, `jruby?`, `jruby_19?`, `mri?`,
|
75
|
+
`mri_19?`, `mri_2?` ([#1867](https://github.com/pry/pry/pull/1867))
|
76
|
+
* Deleted deprecated `Pry::Command#text`
|
77
|
+
([#1865](https://github.com/pry/pry/pull/1865))
|
78
|
+
* Deleted deprecated `Pry::Method#all_from_common`
|
79
|
+
([#1868](https://github.com/pry/pry/pull/1868))
|
80
|
+
* Deleted `install-command` ([#1979](https://github.com/pry/pry/pull/1979))
|
81
|
+
* Deleted `Pry::Helpers::BaseHelpers#command_dependencies_met?`
|
82
|
+
([#1979](https://github.com/pry/pry/pull/1979))
|
83
|
+
* Deleted commands: `gem-cd`, `gem-install`, `gem-list`, `gem-open`,
|
84
|
+
`gem-readme`, `gem-search`, `gem-stats`
|
85
|
+
([#1981](https://github.com/pry/pry/pull/1981))
|
86
|
+
* Deleted deprecated commands: `edit-method` and `show-command`
|
87
|
+
([#2001](https://github.com/pry/pry/pull/2001))
|
88
|
+
* Deleted `Pry::Command#disabled_commands`
|
89
|
+
([#2001](https://github.com/pry/pry/pull/2001))
|
90
|
+
* Deleted `Pry::BlockCommand#opts` (use `#context` instead)
|
91
|
+
([#2003](https://github.com/pry/pry/pull/2003))
|
92
|
+
* Deleted `Pry.lazy` (use `Pry::Config::LazyValue` instead)
|
93
|
+
([#2024](https://github.com/pry/pry/pull/2024))
|
94
|
+
|
95
|
+
#### Bug fixes
|
96
|
+
|
97
|
+
* Fixed bug where using `Pry.config.prompt_name` can return a
|
98
|
+
`Pry::Config::Lazy` instead of expected instance of `String`
|
99
|
+
([#1890](https://github.com/pry/pry/commit/c8f23b3464d596c08922dc923c64bb57488e6227))
|
100
|
+
* Fixed `LoadError` being raised when using auto completions and Bundler
|
101
|
+
([#1896](https://github.com/pry/pry/commit/85850f47e074fe01f93e5cb7d561e7c2de7aede9))
|
102
|
+
* Fixed bug where `Pry.input_ring` doesn't append duplicate elements
|
103
|
+
([#1898](https://github.com/pry/pry/pull/1898))
|
104
|
+
* Fixed Ruby 2.6 warning about `Binding#source_location`
|
105
|
+
([#1904](https://github.com/pry/pry/pull/1904))
|
106
|
+
* Fixed wrong `winsize` when custom `output` is passed to Pry
|
107
|
+
([#2045](https://github.com/pry/pry/pull/2045))
|
108
|
+
* Fixed `XDG_CONFIG_HOME` & `XDG_DATA_HOME` precedence. When these env variables
|
109
|
+
are set, Pry no longer uses traditional files like `~/.pryrc` &
|
110
|
+
`~/.pry_history`. Instead, the env variable paths are loaded first
|
111
|
+
([#2056](https://github.com/pry/pry/pull/2056))
|
112
|
+
* Fixed the `$SAFE will become a normal global variable in Ruby 3.0` warning on
|
113
|
+
Ruby 2.7 ([#2107](https://github.com/pry/pry/pull/2107))
|
114
|
+
* Fixed bug when `whereami -c` cannot show beginning of the class, which is on
|
115
|
+
the same line as another expression
|
116
|
+
([#2098](https://github.com/pry/pry/pull/2098))
|
117
|
+
* Fixed bug when `Object#owner` is defined, which results into somewhat broken
|
118
|
+
method introspection ([#2113](https://github.com/pry/pry/pull/2113))
|
119
|
+
* Fixed bug when indentation leaves parts of input after pressing enter when
|
120
|
+
Readline is enabled with mode indicators for vi mode. This was supposed to be
|
121
|
+
fixed in v0.12.2 but it regressed
|
122
|
+
([#2114](https://github.com/pry/pry/pull/2114))
|
123
|
+
|
124
|
+
### [v0.12.2][v0.12.2] (November 12, 2018)
|
125
|
+
|
126
|
+
#### Bug fixes
|
127
|
+
|
128
|
+
* Restore removed deprecations, which were removed by accident due to a bad
|
129
|
+
rebase.
|
130
|
+
|
131
|
+
### [v0.12.1][v0.12.1] (November 12, 2018)
|
132
|
+
|
133
|
+
#### Bug fixes
|
134
|
+
|
135
|
+
* Stopped creating a new hash each time `Pry::Prompt#[]` is invoked
|
136
|
+
([#1855](https://github.com/pry/pry/pull/1855))
|
137
|
+
* Fixed `less` pager not working when it's available
|
138
|
+
([#1861](https://github.com/pry/pry/pull/1861))
|
139
|
+
|
140
|
+
### [v0.12.0][v0.12.0] (November 5, 2018)
|
141
|
+
|
142
|
+
#### Major changes
|
143
|
+
|
144
|
+
* Dropped support for Rubinius ([#1785](https://github.com/pry/pry/pull/1785))
|
145
|
+
|
146
|
+
#### Features
|
147
|
+
|
148
|
+
* Added a new command, `clear-screen`, that clears the content of the screen Pry
|
149
|
+
is running in regardless of platform (Windows or UNIX-like)
|
150
|
+
([#1723](https://github.com/pry/pry/pull/1723))
|
151
|
+
* Added a new command, `gem-stat`, that prints gem statistics such as gem
|
152
|
+
dependencies and downloads ([#1707](https://github.com/pry/pry/pull/1707))
|
153
|
+
* Added support for nested exceptions for the `wtf` command
|
154
|
+
([#1791](https://github.com/pry/pry/pull/1791))
|
155
|
+
* Added support for dynamic prompt names
|
156
|
+
([#1833](https://github.com/pry/pry/pull/1833))
|
157
|
+
|
158
|
+
```rb
|
159
|
+
# pryrc
|
160
|
+
Pry.config.prompt_name = Pry.lazy { rand(100) }
|
161
|
+
|
162
|
+
# Session
|
163
|
+
[1] 80(main)>
|
164
|
+
[2] 87(main)>
|
165
|
+
[3] 30(main)>
|
166
|
+
```
|
167
|
+
* Added support for XDG Base Directory Specification
|
168
|
+
([#1609](https://github.com/pry/pry/pull/1609),
|
169
|
+
[#1844](https://github.com/pry/pry/pull/1844),
|
170
|
+
([#1848](https://github.com/pry/pry/pull/1848)))
|
171
|
+
* Removed the `simple-prompt`. Use `change-prompt simple` instead. The
|
172
|
+
`list-prompt` command was removed and embedded as `change-prompt --list`
|
173
|
+
([#1849](https://github.com/pry/pry/pull/1849))
|
174
|
+
|
175
|
+
#### API changes
|
176
|
+
|
177
|
+
* The following methods started accepting the new optional `config` parameter
|
178
|
+
([#1809](https://github.com/pry/pry/pull/1809)):
|
179
|
+
* `Pry::Helpers.tablify(things, line_length, config = Pry.config)`
|
180
|
+
* `Pry::Helpers.tablify_or_one_line(heading, things, config = Pry.config)`
|
181
|
+
* `Pry::Helpers.tablify_to_screen_width(things, options, config = Pry.config)`
|
182
|
+
* `Pry::Helpers::Table.new(items, args, config = Pry.config)`
|
183
|
+
|
184
|
+
You are expected to pass a session-local `_pry_.config` instead of the global
|
185
|
+
one.
|
186
|
+
|
187
|
+
* Added new method `Pry::Config.assign`, for creating a Config non-recursively
|
188
|
+
([#1725](https://github.com/pry/pry/issues/1725))
|
189
|
+
* Added `Pry.lazy`, which is a helper method for values that need to be
|
190
|
+
calculated dynamically. Currently, only `config.prompt_name` supports it
|
191
|
+
([#1833](https://github.com/pry/pry/pull/1833))
|
192
|
+
* `Pry::Prompt` responds to `.[]`, `.all` & `.add` now. The `Pry::Prompt.add`
|
193
|
+
method must be used for implementing custom prompts. See the API in the
|
194
|
+
documentation for the class ([#1846](https://github.com/pry/pry/pull/1846))
|
195
|
+
|
196
|
+
#### Breaking changes
|
197
|
+
|
198
|
+
* Deleted the `Pry::Helpers::Text.bright_default` alias for
|
199
|
+
`Pry::Helpers::Text.bold` ([#1795](https://github.com/pry/pry/pull/1795))
|
200
|
+
* `Pry::Helpers.tablify_to_screen_width(things, options, config = Pry.config)`
|
201
|
+
requires `options` or `nil` in place of them.
|
202
|
+
* `Pry::Helpers::Table.new(items, args, config = Pry.config)` requires `args`
|
203
|
+
or `nil` in place of them.
|
204
|
+
* Completely revamped `Pry::HistoryArray`
|
205
|
+
([#1818](https://github.com/pry/pry/pull/1818)).
|
206
|
+
* It's been renamed to `Pry::Ring`
|
207
|
+
([#1817](https://github.com/pry/pry/pull/1817))
|
208
|
+
* The implementation has changed and as result, the following methods were
|
209
|
+
removed:
|
210
|
+
* `Pry::Ring#length` (use `Pry::Ring#count` instead)
|
211
|
+
* `#empty?`, `#each`, `#inspect`, `#pop!`, `#to_h`
|
212
|
+
* To access old Enumerable methods convert the ring to Array with `#to_a`
|
213
|
+
* Fixed indexing for elements (e.g. `_pry_.input_ring[0]` always return some
|
214
|
+
element and not `nil`)
|
215
|
+
* Renamed `Pry.config.prompt_safe_objects` to `Pry.config.prompt_safe_contexts`
|
216
|
+
* Removed deprecated `Pry::CommandSet#before_command` &
|
217
|
+
`Pry::CommandSet#after_command` ([#1838](https://github.com/pry/pry/pull/1838))
|
218
|
+
|
219
|
+
#### Deprecations
|
220
|
+
|
221
|
+
* Deprecated `_pry_.input_array` & `_pry_.output_array` in favour of
|
222
|
+
`_pry_.input_ring` & `_pry_.output_ring` respectively
|
223
|
+
([#1814](https://github.com/pry/pry/pull/1814))
|
224
|
+
* Deprecated `Pry::Command#text`. Please use `#black`, `#white`, etc. directly
|
225
|
+
instead (as you would with helper functions from `BaseHelpers` and
|
226
|
+
`CommandHelpers`) ([#1701](https://github.com/pry/pry/pull/1701))
|
227
|
+
* Deprecated `_pry_.input_array` & `_pry_.output_array` in favour of
|
228
|
+
`_pry_.input_ring` and `_pry_.output_ring` respectively
|
229
|
+
([#1817](https://github.com/pry/pry/pull/1817))
|
230
|
+
* Deprecated `Pry::Platform`. Use `Pry::Helpers::Platform` instead. Note that
|
231
|
+
`Pry::Helpers::BaseHelpers` still includes the `Platform` methods but emits a
|
232
|
+
warning. You must switch to `Pry::Helpers::Platform` in your code
|
233
|
+
([#1838](https://github.com/pry/pry/pull/1838),
|
234
|
+
([#1845](https://github.com/pry/pry/pull/1845)))
|
235
|
+
* Deprecated `Pry::Prompt::MAP`. You should use `Pry::Prompt.all` instead to
|
236
|
+
access the same map ([#1846](https://github.com/pry/pry/pull/1846))
|
237
|
+
|
238
|
+
#### Bug fixes
|
239
|
+
|
240
|
+
* Fixed a bug where `cd Hash.new` reported `self` as an instance of Pry::Config
|
241
|
+
in the prompt ([#1725](https://github.com/pry/pry/pull/1725))
|
242
|
+
* Silenced the `Could not find files for the given pattern(s)` error message
|
243
|
+
coming from `where` on Windows, when `less` or another pager is not installed
|
244
|
+
([#1767](https://github.com/pry/pry/pull/1767))
|
245
|
+
* Fixed possible double loading of Pry plugins' `cli.rb` on Ruby (>= 2.4) due to
|
246
|
+
[the `realpath` changes while invoking
|
247
|
+
`require`](https://bugs.ruby-lang.org/issues/10222)
|
248
|
+
([#1762](https://github.com/pry/pry/pull/1762),
|
249
|
+
[#1774](https://github.com/pry/pry/pull/1762))
|
250
|
+
* Fixed `NoMethodError` on code objects that have a comment but no source when
|
251
|
+
invoking `show-source` ([#1779](https://github.com/pry/pry/pull/1779))
|
252
|
+
* Fixed `negative argument (ArgumentError)` upon pasting code with tabs, which
|
253
|
+
used to confuse automatic indentation
|
254
|
+
([#1771](https://github.com/pry/pry/pull/1771))
|
255
|
+
* Fixed Pry not being able to load history on Ruby 2.4.4+ when it contains the
|
256
|
+
null character ([#1789](https://github.com/pry/pry/pull/1789))
|
257
|
+
* Fixed Pry raising errors on `cd`'ing into some objects that redefine
|
258
|
+
`method_missing` and `respond_to?`
|
259
|
+
([#1811](https://github.com/pry/pry/pull/1811))
|
260
|
+
* Fixed bug when indentation leaves parts of input after pressing enter when
|
261
|
+
Readline is enabled with mode indicators for vi mode
|
262
|
+
([#1813](https://github.com/pry/pry/pull/1813),
|
263
|
+
[#1820](https://github.com/pry/pry/pull/1820),
|
264
|
+
[#1825](https://github.com/pry/pry/pull/1825))
|
265
|
+
* Fixed `edit` not writing to history
|
266
|
+
([#1749](https://github.com/pry/pry/issues/1749))
|
267
|
+
|
268
|
+
#### Other changes
|
269
|
+
|
270
|
+
* Deprecated the `Data` constant to match Ruby 2.5 in the `ls` command
|
271
|
+
([#1731](https://github.com/pry/pry/pull/1731))
|
272
|
+
|
273
|
+
### 0.11.3
|
274
|
+
|
275
|
+
#### Features
|
276
|
+
|
277
|
+
* Add Pry::Testable, an improved modular replacement for PryTestHelpers.
|
278
|
+
**breaking change**.
|
279
|
+
|
280
|
+
See pull request [#1679](https://github.com/pry/pry/pull/1679).
|
281
|
+
|
282
|
+
* Add a new category module: "Pry::Platform". Loosely related to #1668 below.
|
283
|
+
|
284
|
+
See pull request [#1670](https://github.com/pry/pry/pull/1670)
|
285
|
+
|
286
|
+
* Add `mac_osx?` and `linux?` utility functions to Pry::Helpers::BaseHelpers.
|
287
|
+
|
288
|
+
See pull request [#1668](https://github.com/pry/pry/pull/1668).
|
289
|
+
|
290
|
+
* Add utility functions for drawing colorised text on a colorised background.
|
291
|
+
|
292
|
+
See pull request [#1673](https://github.com/pry/pry/pull/1673).
|
293
|
+
|
294
|
+
#### Bug fixes
|
295
|
+
|
296
|
+
* Fix a case of infinite recursion in `Pry::Method::WeirdMethodLocator#find_method_in_superclass`
|
297
|
+
that users of the [Hanami](http://hanamirb.org/) web framework experienced and
|
298
|
+
reported since 2015.
|
299
|
+
|
300
|
+
See pull request [#1689](https://github.com/pry/pry/pull/1689).
|
301
|
+
|
302
|
+
* Fix a bug where Method objects were not returned for setters inherited
|
303
|
+
from a default (Pry::Config::Default). Eg, this is no longer an error:
|
304
|
+
|
305
|
+
pry(main)> d = Pry::Config.from_hash({}, Pry::Config::Default.new)
|
306
|
+
pry(main)> d.method(:exception_whitelist=) # Error
|
307
|
+
|
308
|
+
See pull request [#1688](https://github.com/pry/pry/pull/1688).
|
309
|
+
|
310
|
+
* Do not capture unused Proc objects in Text helper methods `no_color` and `no_paging`,
|
311
|
+
for performance reasons. Improve the documentation of both methods.
|
312
|
+
|
313
|
+
See pull request [#1691](https://github.com/pry/pry/pull/1691).
|
314
|
+
|
315
|
+
* Fix `String#pp` output color.
|
316
|
+
|
317
|
+
See pull request [#1674](https://github.com/pry/pry/pull/1674).
|
318
|
+
|
319
|
+
|
320
|
+
### 0.11.0
|
321
|
+
|
322
|
+
* Add alias 'whereami[?!]+' for 'whereami' command. ([#1597](https://github.com/pry/pry/pull/1597))
|
323
|
+
* Improve Ruby 2.4 support ([#1611](https://github.com/pry/pry/pull/1611)):
|
324
|
+
* Deprecated constants are hidden from `ls` output by default, use the `-d` switch to see them.
|
325
|
+
* Fix warnings that originate in Pry while using the repl.
|
326
|
+
* Improve completion speed in large applications. ([#1588](https://github.com/pry/pry/pull/1588))
|
327
|
+
* Pry::ColorPrinter.pp: add `newline` argument and pass it on to PP. ([#1603](https://github.com/pry/pry/pull/1603))
|
328
|
+
* Use `less` or system pager pager on MS Windows if it is available. ([#1512](https://github.com/pry/pry/pull/1512))
|
329
|
+
* Add `Pry.configure` as an alternative to the current way of changing configuration options in `.pryrc` files. ([#1502](https://github.com/pry/pry/pull/1502))
|
330
|
+
* Add `Pry::Config::Behavior#eager_load!` to add a possible workaround for issues like ([#1501](https://github.com/pry/pry/issues/1501))
|
331
|
+
* Remove Slop as a runtime dependency by vendoring v3.4 as Pry::Slop.
|
332
|
+
People can depend on Slop v4 and Pry at the same time without running into version conflicts. ([#1497](https://github.com/pry/pry/issues/1497))
|
333
|
+
* Fix auto-indentation of code that uses a single-line rescue ([#1450](https://github.com/pry/pry/issues/1450))
|
334
|
+
* Remove "Pry::Config#refresh", please use "Pry::Config#clear" instead.
|
335
|
+
* Defining a method called "ls" no longer breaks the "ls" command ([#1407](https://github.com/pry/pry/issues/1407))
|
336
|
+
* Don't raise when directory permissions don't allow file expansion ([#1432](https://github.com/pry/pry/issues/1432))
|
337
|
+
* Syntax highlight <tt> tags in documentation output.
|
338
|
+
* Add support for BasicObject subclasses who implement their own #inspect (#1341)
|
339
|
+
* Fix 'include RSpec::Matchers' at the top-level (#1277)
|
340
|
+
* Add 'gem-readme' command, prints the README file bundled with a rubygem
|
341
|
+
* Add 'gem-search' command, searches for a gem with the rubygems.org HTTP API
|
342
|
+
* Fixed bug in the `cat` command where it was impossible to use line numbers with files ([#1349](https://github.com/pry/pry/issues/1349))
|
343
|
+
* Fixed uncaught Errno::EOPNOTSUPP exception when $stdout is a socket ([#1352](https://github.com/pry/pry/issues/1352))
|
344
|
+
* Display a warning when you cd'ed inside a C object and executed 'show-source' without arguments ([#691](https://github.com/pry/pry/issues/691))
|
345
|
+
* Make the stagger_output method more reliable by reusing possibly available Pry instance ([#1364](https://github.com/pry/pry/pull/1364))
|
346
|
+
* Make the 'gem-install' message less confusing by removing backticks ([#1350](https://github.com/pry/pry/pull/1350))
|
347
|
+
* Fixed error when Pry was trying to load incompatible versions of plugins ([#1312](https://github.com/pry/pry/issues/1312))
|
348
|
+
* Fixed bug when `hist --clear` led to ArgumentError ([#1340](https://github.com/pry/pry/pull/1340))
|
349
|
+
* Fixed the "uninitialized constant Pry::ObjectPath::StringScanner" exception during autocomplete ([#1330](https://github.com/pry/pry/issues/1330))
|
350
|
+
* Secured usage of colours with special characters (RL_PROMPT_START_IGNORE and RL_PROMPT_END_IGNORE) in Pry::Helpers::Text ([#493](https://github.com/pry/pry/issues/493#issuecomment-39232771))
|
351
|
+
* Fixed regression with `pry -e` when it messes the terminal ([#1387](https://github.com/pry/pry/issues/1387))
|
352
|
+
* Fixed regression with space prefixes of expressions ([#1369](https://github.com/pry/pry/issues/1369))
|
353
|
+
* Introduced the new way to define hooks for commands (with `Pry.hooks.add_hook("{before,after}_commandName")`). The old way is deprecated, but still supported (with `Pry.commands.{before,after}_command`) ([#651](https://github.com/pry/pry/issues/651))
|
354
|
+
* Removed old API's using `Pry::Hooks.from_hash` altogether
|
355
|
+
* Removed hints on Foreman support (see [this](https://github.com/ddollar/foreman/pull/536))
|
356
|
+
* Fixed support for the tee command ([#1334](https://github.com/pry/pry/issues/1334))
|
357
|
+
* Implemented support for CDPATH for ShellCommand ([#1433](https://github.com/pry/pry/issues/1433), [#1434](https://github.com/pry/pry/issues/1434))
|
358
|
+
* `Pry::CLI.parse_options` does not start Pry anymore ([#1393](https://github.com/pry/pry/pull/1393))
|
359
|
+
* The gem uses CPU-less platforms for Windows now ([#1410](https://github.com/pry/pry/pull/1410))
|
360
|
+
* Add `Pry::Config::Memoization` to make it easier to implement your own `Pry::Config::Default` class.([#1503](https://github.com/pry/pry/pull/1503/))
|
361
|
+
* Lazy load the config defaults for `Pry.config.history` and `Pry.config.gist`.
|
362
|
+
|
1
363
|
### 0.10.1
|
2
364
|
|
3
365
|
* Fix bugs with jruby
|
4
366
|
* Move to rspec for testing (from bacon)
|
5
367
|
* Clean up ruby warnings
|
6
368
|
|
7
|
-
|
8
369
|
### 0.10.0
|
9
370
|
|
10
371
|
#### Features
|
@@ -367,7 +728,7 @@
|
|
367
728
|
* Fewer internal methods polluting output
|
368
729
|
|
369
730
|
### 0.9.8.4 (2012/6/3)
|
370
|
-
* ~/.pry_history
|
731
|
+
* ~/.pry_history wasn't being created (if it did not exist)! FIXED
|
371
732
|
* `hist --save` saved colors! FIXED
|
372
733
|
* added Pry#add_sticky_local API for adding sticky locals to individual pry instances
|
373
734
|
|
@@ -375,7 +736,7 @@
|
|
375
736
|
* various tweaks to improve rbx support
|
376
737
|
* commands now support optional block arguments
|
377
738
|
* much improved help command
|
378
|
-
* updated method_source
|
739
|
+
* updated method_source dependency
|
379
740
|
* added wtf command
|
380
741
|
* jruby should now work in windows (though without color)
|
381
742
|
|
@@ -403,7 +764,7 @@ MAJOR NEW FEATURES
|
|
403
764
|
- added gist command (removed gist-method, new gist command is more general)
|
404
765
|
|
405
766
|
complete CHANGELOG:
|
406
|
-
* CommandError's no longer cause the current input to be
|
767
|
+
* CommandError's no longer cause the current input to be discarded
|
407
768
|
* Better syntax highlighting for rbx code code
|
408
769
|
* added cat --in to show pry input history
|
409
770
|
* prefixed temporary file names with 'pry'
|
@@ -416,7 +777,7 @@ complete CHANGELOG:
|
|
416
777
|
* added CommandSet#{before_command,after_command} for enhancing builtin commands
|
417
778
|
* added checking for namespace collisions with pry commands, set Pry.config.collision_warning
|
418
779
|
* work around namespace collisions by ensuring lines starting with a space are executed as
|
419
|
-
* ruby.work around namespace collisions by
|
780
|
+
* ruby.work around namespace collisions by pressuring lines starting with a space are executed as ruby
|
420
781
|
* added handlers for Ctrl+C (SIGINT) on jruby, these are now caught as in other ruby versions
|
421
782
|
* removed dependency on ruby_parser
|
422
783
|
* prevented colours leaking across the pry prompt
|
@@ -436,7 +797,7 @@ complete CHANGELOG:
|
|
436
797
|
|
437
798
|
### 0.9.7.4 (2011/11/5)
|
438
799
|
* ls -M now works in modules (bugfix)
|
439
|
-
* added exception
|
800
|
+
* added exception message for bad cd object/path
|
440
801
|
* no longer die when encounter exceptions in .pryrc
|
441
802
|
* baked in CoolLine support
|
442
803
|
* Pry.config.input in .pryrc now respected
|
@@ -453,7 +814,7 @@ complete CHANGELOG:
|
|
453
814
|
* changed ^D so it no longer resets indent level automatically
|
454
815
|
|
455
816
|
### 0.9.7.1 (2011/10/26)
|
456
|
-
* fixed gem
|
817
|
+
* fixed gem dependency issues
|
457
818
|
|
458
819
|
### 0.9.7 (2011/10/25)
|
459
820
|
|
@@ -494,7 +855,7 @@ complete CHANGELOG:
|
|
494
855
|
* play -m --open uses show-input to show play'd code
|
495
856
|
* added "unindent" helper to make adding help to commands easier
|
496
857
|
* local ./.pryrc now loaded after ~/.pryrc if it exists
|
497
|
-
* cat --ex N and edit --ex N now can navigate through backtrace, where cat --ex (with no args) moves
|
858
|
+
* cat --ex N and edit --ex N now can navigate through backtrace, where cat --ex (with no args) moves through successive levels of the backtrace automatically with state stored on the exception object itself
|
498
859
|
* new option Pry.config.exception_window_size determines window size for cat --ex
|
499
860
|
* input_stack now implemented - pushing objects onto a pry instance's input_stack causes the instance to read from those objects in turn as it encounters EOF on the previous object. On finishing the input_stack the input object for the pry instance is set back to Pry.config.input, if this fails, pry breaks out of the REPL (throw(:breakout)) with an error message
|
500
861
|
* Pry.config.system() defines how pry runs system commands
|
@@ -527,10 +888,10 @@ complete CHANGELOG:
|
|
527
888
|
* fixed bug #200 ( https://github.com/pry/pry/issues/200 )- string interpolation bug (thanks to ryanf)
|
528
889
|
* show-doc and stat now display method visibility (update WIKI)
|
529
890
|
* got rid of warnings caused by stricter ruby 1.9.3 rules
|
530
|
-
* remove interpolation of command names and fix interpolation error
|
891
|
+
* remove interpolation of command names and fix interpolation error message (update WIKI) (thanks ryanf!)
|
531
892
|
* 'nested sessions' now use binding stacks (so each instance manages its own collection of bindings without spawning other instances)
|
532
893
|
* 'cd ..' just pops a binding off the binding_stack with special behaviour when only one binding in stack - it breaks out of the repl loop
|
533
|
-
* added switch-to command (like jump-to but
|
894
|
+
* added switch-to command (like jump-to but doesn't unwind the stack)
|
534
895
|
* show-method and show-doc now accept multiple method names
|
535
896
|
* control_d hook added (Pry.config.control_d_handler)
|
536
897
|
* behaviour of ^d is now to break out of current expr if in multi-line expr, or break out of current context if nested, or break out of pry repl loop if at top-level
|
@@ -624,7 +985,7 @@ complete CHANGELOG:
|
|
624
985
|
* -I mode for pry commandline
|
625
986
|
* --color mode for pry commandline
|
626
987
|
* clean up requires (put them all in one place)
|
627
|
-
* simple-prompt command and toggle-color
|
988
|
+
* simple-prompt command and toggle-color command.
|
628
989
|
|
629
990
|
### 0.6.3 (2011/2/28)
|
630
991
|
* Using MethodSource 0.3.4 so 1.8 show-method support provided
|
@@ -707,3 +1068,9 @@ complete CHANGELOG:
|
|
707
1068
|
|
708
1069
|
### 0.1.0 (2010/12/8)
|
709
1070
|
* release!
|
1071
|
+
|
1072
|
+
[v0.12.0]: https://github.com/pry/pry/releases/tag/v0.12.0
|
1073
|
+
[v0.12.1]: https://github.com/pry/pry/releases/tag/v0.12.1
|
1074
|
+
[v0.12.2]: https://github.com/pry/pry/releases/tag/v0.12.2
|
1075
|
+
[v0.13.0]: https://github.com/pry/pry/releases/tag/v0.13.0
|
1076
|
+
[v0.13.1]: https://github.com/pry/pry/releases/tag/v0.13.1
|
data/LICENSE
CHANGED