1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib/pry/commands
Takashi Kokubun 272b3290b5 Fix Ruby 2.6 warning for Binding#source_location
eval('[__FILE__, __LINE__]') will not work in future Ruby.
Let's stop using it when Binding#source_location is available because it
prints noisy warnings.

Since Binding#source_location is added in Ruby 2.6
https://github.com/ruby/ruby/commit/571e48b7442, this commit is leaving
old code with branching by binding.respond_to?(:source_location).

Fixes #1871
2018-12-11 11:10:55 +09:00
..
cat rubocop: fix offences of Layout/EmptyLinesAroundClassBody cop 2018-11-04 16:50:21 +08:00
edit Fix Ruby 2.6 warning for Binding#source_location 2018-12-11 11:10:55 +09:00
ls rubocop: fix ofences of the Style/BlockDelimiters cop 2018-11-18 00:37:47 +08:00
watch_expression Fix more warnings 2015-01-23 14:03:50 +01:00
amend_line.rb commands/amend_line: refactor 'amended_input' 2018-10-14 15:23:40 +08:00
bang.rb rubocop: fix offences of the Style/HashSyntax cop 2018-10-13 03:09:29 +08:00
bang_pry.rb
cat.rb rubocop: fix ofences of the Style/BlockDelimiters cop 2018-11-18 00:37:47 +08:00
cd.rb
change_inspector.rb
change_prompt.rb Simplify Prompt API 2018-11-17 05:26:25 +08:00
clear_screen.rb Deprecate Pry::Platform and introduce Pry::Helpers::Platform 2018-11-02 01:52:09 +08:00
code_collector.rb rubocop: fix offences of the Style/AndOr cop 2018-11-18 00:22:56 +08:00
disable_pry.rb
disabled_commands.rb Rename "DEPRECATED" to "DISABLED" 2013-01-24 03:39:25 +02:00
easter_eggs.rb Deprecate Pry::Platform and introduce Pry::Helpers::Platform 2018-11-02 01:52:09 +08:00
edit.rb rubocop: fix offences regarding spaces 2018-11-04 17:34:24 +08:00
exit.rb Fix rubocop empty line after guard clause style violations 2018-10-14 09:44:58 -04:00
exit_all.rb Prettify command descriptions, switches and stuff 2013-01-09 22:23:19 +02:00
exit_program.rb
find_method.rb rubocop: fix offences regarding spaces 2018-11-04 17:34:24 +08:00
fix_indent.rb
gem_cd.rb rubocop: fix offences of the Style/HashSyntax cop 2018-10-13 03:09:29 +08:00
gem_install.rb rubocop: fix offences of the Style/HashSyntax cop 2018-10-13 03:09:29 +08:00
gem_list.rb Deprecate Pry::Command#text. Please use black(), white(), etc directly (#1701) 2017-11-16 17:54:14 +01:00
gem_open.rb rubocop: fix offences of the Style/HashSyntax cop 2018-10-13 03:09:29 +08:00
gem_readme.rb Changes deprecated ‘File.exists’ to ‘File.exist’ 2015-05-10 19:58:16 -06:00
gem_search.rb rubocop: fix offences regarding spaces 2018-11-04 17:34:24 +08:00
gem_stats.rb update from_hash calls to not pass an explicit 'nil' as a second argument. 2018-11-20 10:48:22 +01:00
gist.rb Rename '{input/output}_array' to '{input/output}_ring' 2018-10-20 00:40:10 +08:00
help.rb rubocop: fix offences regarding spaces 2018-11-04 17:34:24 +08:00
hist.rb rubocop: fix offences of the Style/HashSyntax cop 2018-10-13 03:09:29 +08:00
import_set.rb commands/import_set: add a comment to figure out what it does later 2018-10-14 15:30:16 +08:00
install_command.rb Fix rubocop empty line after guard clause style violations 2018-10-14 09:44:58 -04:00
jump_to.rb Reduce line length in jump-to 2015-01-14 22:01:04 -08:00
list_inspectors.rb Deprecate Pry::Command#text. Please use black(), white(), etc directly (#1701) 2017-11-16 17:54:14 +01:00
ls.rb rubocop: fix offences of Layout/EmptyLinesAroundClassBody cop 2018-11-04 16:50:21 +08:00
nesting.rb
play.rb Fix Ruby 2.6 warning for Binding#source_location 2018-12-11 11:10:55 +09:00
pry_backtrace.rb Deprecate Pry::Command#text. Please use black(), white(), etc directly (#1701) 2017-11-16 17:54:14 +01:00
pry_version.rb
raise_up.rb Fix rubocop empty line after guard clause style violations 2018-10-14 09:44:58 -04:00
reload_code.rb Fix Ruby 2.6 warning for Binding#source_location 2018-12-11 11:10:55 +09:00
reset.rb
ri.rb rubocop: fix offences of the Lint/UnusedMethodArgument cop 2018-10-14 14:56:53 +08:00
save_file.rb
shell_command.rb Fix rubocop empty line after guard clause style violations 2018-10-14 09:44:58 -04:00
shell_mode.rb Simplify Prompt API 2018-11-17 05:26:25 +08:00
show_doc.rb rubocop: fix offences of the Style/MultilineTernaryOperator cop 2018-10-20 00:25:23 +08:00
show_info.rb rubocop: fix offences of the Lint/UnusedBlockArgument cop 2018-11-11 20:22:03 +08:00
show_input.rb
show_source.rb commands/show_source: handle when source is nil but comment exists 2018-10-04 03:46:33 +08:00
stat.rb rubocop: fix offences of the Style/HashSyntax cop 2018-10-13 03:09:29 +08:00
switch_to.rb
toggle_color.rb
watch_expression.rb rubocop: fix offences regarding spaces 2018-11-04 17:34:24 +08:00
whereami.rb Fix Ruby 2.6 warning for Binding#source_location 2018-12-11 11:10:55 +09:00
wtf.rb command: delete deprecated #text 2018-11-08 14:57:07 +08:00