Kyrylo Silin
69090ca349
pry: move INITIAL_PWD to code/code_file
...
This constant is not used anywhere else but this file so it makes sense to keep
it there.
2018-10-28 04:58:09 +08:00
Arlandis Word
59e7afd40b
Fix rubocop empty line after guard clause style violations
2018-10-14 09:44:58 -04:00
Kyrylo Silin
383f97e341
rubocop: fix offences of the Layout/EmptyLineBetweenDefs cop
2018-10-14 14:40:48 +08:00
Kyrylo Silin
743b905c81
Drop support for Rubinius
...
Fixes #1775 (Drop support for Rubinius)
I am amazed how many hacks we've had just to support Rubinius. It feels good to
be able to remove them and reduce the complexity of the codebase.
2018-10-07 00:58:53 +08:00
Jack Kinsella
aa79e81669
Pad multiline units of the edit command consistently with numbering
2018-03-26 12:45:02 +02:00
Gustavo Villa
3410b8006d
Small code improvement.
2015-12-19 02:06:51 -03:00
Stefan Leszkiewicz
8cdcd9e40d
Enable syntax highlighting for Rakefile and other similarly named files
2014-09-14 09:48:44 +10:00
Conrad Irwin
2ad1b3a1c2
add color more confidently
2014-05-01 01:53:53 -07:00
Kyrylo Silin
5aa7e38e63
lib/pry/code/code_file.rb: refactor #code_path
...
Make the code slightly more self-documenting.
2013-11-25 23:41:28 +02:00
Kyrylo Silin
2ca3f9d4de
lib/pry/code/code_file.rb: make use of the @filename ivar
2013-11-25 23:31:36 +02:00
Shannon Skipper
957b2b246b
Adjust indentions to be uniform.
2013-11-24 15:04:16 -08:00
Shannon Skipper
173bbd02da
Shorten #readable_source? to #readable?.
2013-11-23 14:52:21 -08:00
Shannon Skipper
95110424c6
Refactored.
2013-11-23 14:46:56 -08:00
Kyrylo Silin
3a1dad7c3f
lib/pry/code/code_file.rb: fix typo in #code
2013-11-23 23:04:53 +02:00
Kyrylo Silin
e26725978c
lib/pry/code.rb,lib/pry/code/code_file.rb: add docs
2013-11-23 23:03:39 +02:00
Kyrylo Silin
973af56441
lib/pry/code.rb: factor out code related to filename handling
...
Factor out it to `lib/pry/code/code_file.rb`.
2013-11-23 23:01:40 +02:00
Conrad Irwin
d6ef67cfa7
Remove warnings [ Fixes #869 ]
2013-03-02 16:01:55 -08:00
Kyrylo Silin
8a610e40f3
Code::LOC: add #== and use it in Code#==
...
And fix a typo in comments.
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2013-01-07 17:51:43 +02:00
Kyrylo Silin
13f8c1e688
Code::LOC: tuple should be "reader"
...
There is no need to expose the "writer" method.
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2013-01-07 17:51:43 +02:00
Kyrylo Silin
80e612b6a1
Move LOC
and CodeRange
to their own files
...
`Pry::Code` is not cluttered anymore.
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2013-01-05 14:32:12 +02:00