John Mair
37b9fce976
show-source / show-doc: ensure _file_ and _line_ are set
...
Also cleaned up some OCD edge cases for show-doc, totally unnecessary & kind of silly
2012-12-22 22:59:03 +01:00
John Mair
d19aef516e
show-doc: Removed the horror of ModuleInstrospectionHelpers and method_options
...
show-doc should be a lot easier to grok now there are no hidden modules adding methods and doing spooky things
behind the scenes.
2012-12-21 16:41:52 +01:00
John Mair
eda2c73afb
make show-source code more readable
2012-12-20 20:46:33 +01:00
John Mair
47d30a139c
free show-source from the horror of module_introspection_helpers.rb and method_options.rb
...
show-doc and edit and a variety of other commands can also be updated to use the new Pry::CodeObject API
2012-12-20 20:15:00 +01:00
John Mair
81554dda0a
migrating show-source over to new Pry::CodeObject API
2012-12-20 18:05:42 +01:00
John Mair
3663559291
fix tests on ruby 2.0
2012-12-19 12:28:29 +01:00
Conrad Irwin
e59cd57ebf
Fix ls formatting spec error
2012-12-09 22:11:09 -08:00
☈king
9b38f33b79
Progress on gist + jruby crash
2012-12-09 23:21:18 -06:00
☈king
2104655a67
Replace gist spec globals with Pad
2012-12-09 19:19:38 -07:00
John Mair
9a279461c1
PryTestHelpers methods are now module_functions, included into Bacon::Context by default
2012-12-07 23:08:49 +01:00
John Mair
31a9578228
cleaned up lib/pry/test/helper.rb
...
* removed most historicla junk from lib/pry/test/helper.rb
* relocated recalcitrant junk to the local spec/helper.rb (this isn't exposed to 3rd parties)
2012-12-07 21:41:05 +01:00
☈king
8f92f5a855
Use Jist.copy, not a Helper; fix @filename
2012-12-07 08:35:25 -06:00
☈king
c51f75a9fc
DRY gist command's docs vs tests
2012-12-06 23:14:04 -06:00
☈king
27bbc4383a
gist: fix filenames from REPL + refactor + test
...
I glommed together too much on this commit. ☹
2012-12-06 22:46:01 -06:00
Kyrylo Silin
9b85398d29
Remove some repetitive bits from play_spec.rb
...
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2012-12-01 05:49:27 +02:00
Kyrylo Silin
de50544759
Add support for play 69
syntax
...
`play 69` is a shortcut for `play --file #{_file_} --lines 69`. It plays
lines from the current file. Example (I omitted some useless
information):
pry(main)> show-source hello
def hello
binding.pry
true
puts "hi"
69
end
pry(main)> hello
1: def hello
=> 2: binding.pry
3: true
4: puts "hi"
5: 69
6: end
pry(main)> play 5
=> 69
pry(main)> play 3..4
hi
=> nil
pry(main)>
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2012-12-01 05:22:16 +02:00
Andrew Vos
cd5f0ae3be
Reading the output of ls
is hard, tablify it
...
ls now shows items more like how the unix ls works
2012-11-29 10:51:08 +00:00
Conrad Irwin
a6c4c6950d
Revert "Make whereami more consistent (and less cheeky) [ Fixes #383 ]"
...
This reverts commit f937bb6097
.
2012-11-18 16:42:29 -08:00
Conrad Irwin
f937bb6097
Make whereami more consistent (and less cheeky) [ Fixes #383 ]
2012-11-18 16:29:48 -08:00
Conrad Irwin
71bd613f13
More spec fixtures around
2012-11-18 01:33:32 -08:00
☈king
848b6bdbeb
Rename for tabcompletion-friendliness.
2012-11-15 18:59:51 -06:00