1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

10 commits

Author SHA1 Message Date
André Luis Leal Cardoso Junior
fd50ffbdc6
Revert "Escape non-printing characters" 2022-03-06 11:26:49 -03:00
Carlos Palhares
8b5a70b234 Update Wtf spec to match non-printing chars wrapping 2020-09-07 13:02:16 -03:00
Kyrylo Silin
6fd2ca3b0d commands/wtf: add the --code flag
Fixes #1876 (Make `wtf` show code)
2019-05-12 00:13:11 +03:00
Kyrylo Silin
aa173f4114 commands/wtf_spec: refactor unit tests
Although this is more verbose now, it looks more like proper unit tests. The
tester API needs to be revamped because `tester.eval` is *not* unit testing.
2019-05-11 16:32:41 +03:00
Kyrylo Silin
18c45d26c5 rubocop: enable the Style/FrozenStringLiteralComment cop
This will greatly ease Pry support on Ruby 3.0 (when it's out).
2019-05-08 00:13:17 +03:00
Kyrylo Silin
3e35421e6b rubocop: fix the Naming/UncommunicativeMethodParamName cop 2019-03-24 18:06:30 +02:00
Kyrylo Silin
4956376f13 rubocop: fix offences of the Metrics/LineLength cop
I realise that some code might be less readable now, but now that we set a good
default limit, we protect the codebase from further mess. It's important to do
this to prevent adding more mess to already messy code that we have. :doctor:
2019-03-03 17:37:58 +02:00
Kyrylo Silin
39fa8a9fc6 rubocop: fix offences of the Style/IfUnlessModifier cop 2019-03-02 11:03:54 +02:00
Kyrylo Silin
e61354693f Add .rspec and require 'helper' from there
Just discovered this nice feature of RSpec where it can load all files for
us. Works with `bundle exec rake` and `bundle exec rspec spec/file_spec.rb`,
which covers all use cases.
2018-11-18 14:04:44 +08:00
Aleksandar Kostadinov
30cca64e5a commands/wtf,pry: add support for Exception#cause
Fixes #1449 (support exceptions with cause)
Replaces #1525
2018-10-10 00:19:45 +08:00