Kyrylo Silin
e64541d9c1
rubocop: fix offences of the Style/RedundantSelf cop
2019-03-02 13:32:33 +02:00
Kyrylo Silin
66b6208478
rubocop: fix offences of the Style/MutableConstant cop
2019-03-02 13:04:44 +02:00
Kyrylo Silin
09596c18d7
rubocop: fix offences of the Style/ModuleFunction cop
2019-03-02 12:26:16 +02:00
Kyrylo Silin
b44eea4bbe
rubocop: fix offences of the Layout/SpaceBeforeComma cop
2019-02-26 01:05:58 +02:00
Kyrylo Silin
8d59d3b960
rubocop: fix offences of the Layout/IndentAssignment cop
2019-02-25 00:38:31 +02:00
Kyrylo Silin
30fac9554e
rubocop: fix offences of the Layout/AlignHash cop
2019-02-24 20:20:22 +02:00
Kyrylo Silin
04d4f424e3
rubocop: fix offences regarding spaces
...
Fixes offences of the following cops:
* Layout/SpaceAroundEqualsInParameterDefault
* Layout/SpaceAroundOperators
* Layout/SpaceBeforeBlockBraces
* Layout/SpaceInsideBlockBraces
2018-11-04 17:34:24 +08:00
Kyrylo Silin
21af0624d4
helpers/text: delete the 'bright_default' alias
...
Replaces https://github.com/pry/pry/pull/1692
(Remove the "default" method from `Pry::Helpers::Text`)
This alias serves no real purpose because `bold` is already superior: it's short
and understandable.
2018-10-13 00:11:17 +08:00
r-obert
b35ca66cae
do not capture a Proc in Text helper methods. ( #1691 )
...
The &block we were capturing is not used or passed anywhere. For performance,
we shouldn't capture a Proc that we do not use. Improve documentation of both
methods.
* update CHANGELOG.md
2017-11-10 16:26:00 +01:00
r-obert
954259a513
Add utility functions for drawing colorised ( #1673 )
...
text on a colorised background.
2017-10-23 22:46:32 +02:00
robert
d99eb05e81
Revert "helpers/text: respect RL_PROMPT_START_IGNORE and RL_PROMPT_END_IGNORE"
...
This reverts commit a293f1f3aa
.
Closes #1582 #1552
2017-05-27 16:27:06 +01:00
Kyrylo Silin
c220c40892
helpers/text: when strip colours, also strip special characters
...
Fixes build failures introduced in
a293f1f3aa
2015-03-06 08:42:12 +02:00
Kyrylo Silin
a293f1f3aa
helpers/text: respect RL_PROMPT_START_IGNORE and RL_PROMPT_END_IGNORE
...
Addresses to #493 . Fixes the described bug in the situation when you use
helper methods in your Pry prompt like this:
Pry.prompt = [
proc { |_, _, _| Pry::Helpers::Text.red("YO > ") },
proc { |_, _, _| "| "}
]
2015-03-05 12:39:26 +02:00
rpag
1d8a633a5e
define instance methods on Pry::Helpers::Text
2015-01-15 13:08:46 +00:00
Conrad Irwin
5d7c887129
Use Pry::Output to strip color when necessary
...
All credit to johnny5- for this idea:
952568b933
Pros: No longer need to check _pry_.config.color everywhere.
All color is stripped (not just that added by pry)
Cons: Inefficient to add colors and then remove them again.
2014-05-01 01:51:02 -07:00
Conrad Irwin
44463e7d85
Stop using compatibility aliases for Pry.config
2014-05-01 01:51:01 -07:00
Conrad Irwin
ccc2177f12
Add missing brackets to function definitions
2012-11-29 09:51:10 -08:00
Ryan Fitzgerald
e14ee9a6f4
Fix various mangled documentation
2012-06-26 22:30:00 -07:00
Conrad Irwin
d221a22d02
Merge Pry::CommandContext and Pry::CommandSet::Command into Pry::Command
2011-12-31 11:54:41 +00:00
John Mair
a090810f4c
added text.no_pager method to turn off paging for the duration of a block
2011-12-11 21:33:33 +13:00
Ryan Fitzgerald
fd488dfd01
implement cat --in ( fixes #330 )
2011-11-06 01:00:37 -07:00
Conrad Irwin
a4e96ebe22
remove "grey" (both in coderay and as an alias for bold_black)
2011-10-24 22:18:05 -07:00
Conrad Irwin
65e6e6a788
Add a "default" pseudo-colour
2011-10-09 21:41:33 -07:00
Ryan Fitzgerald
a87a5bddff
right-justify line numbers ( fixes #218 )
2011-09-04 00:29:36 -07:00
John Mair
01b248e296
updated with_line_numbers method to accept color parameter
2011-08-07 08:14:12 +12:00
Rob Gleeson
7051c12730
Quash (most) warnings emitted by -w.
...
Two remain:
- two from method_source gem.
2011-05-19 19:07:40 +01:00
Rob Gleeson
18a2e6d731
Document Text.with_line_numbers as accepting any object responding to #each_line as a argument.
2011-05-09 05:55:25 +01:00
Rob Gleeson
60f30ebcb0
Pry::Helpers::Text defines singleton methods only.
2011-05-07 15:20:03 +01:00
Rob Gleeson
5c9d5ee97b
Simplify docstring
2011-05-06 18:57:27 +01:00
Rob Gleeson
b23924186c
Mark Text#no_color as returning void (value of no interest)
2011-05-06 18:52:45 +01:00
Rob Gleeson
2744f866f7
Add Pry::Helpers::Text#with_line_numbers.
2011-05-06 18:50:40 +01:00
Rob Gleeson
1ee8af8040
Pry::Helpers::Color => Pry::Helpers::Text.
2011-05-06 18:30:37 +01:00