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

16 commits

Author SHA1 Message Date
Conrad Irwin
f27e718cfe Move back to 'gist' gem 2014-04-27 22:24:20 -07:00
Robert Gleeson
e3c80b20f2 update 'gist' command to use _pry_.config.gist.inspecter 2014-02-07 02:03:58 +01:00
Andy Monat
860536d2c0 Restore correct description of gist command 2013-04-20 19:55:50 -04:00
John Mair
c10017f17d gist: re-add 'jist' gem dependency with :requires_gem
Oops, forgetting this meant that 'gist' command would error out with
ugly messages rather than prompting the user to 'install-command'
2013-01-17 16:52:55 +01:00
John Mair
19aa778526 gist: window's fix for broken clipboard 2013-01-16 17:31:03 +01:00
John Mair
b6b78157a5 gist: Use Pry::CodeCollector (like play/save-file)
This enables a simplified UI, i.e: gist my_file.rb instead of gist -f my_file.rb
and `gist my_method` instead of `gist -m my_method`. Unfortunately, we had to kill our
tests in the process of doing this (gist_spec.rb is just commented out) - however since play
and save-file have tests and they use the same Pry::CodeCollector object 'gist' is indirectly
tested. Nonetheless, we should re-add tests at some point
2013-01-15 20:08:32 +01:00
Kyrylo Silin
5ceab36304 Fix indentations for the gist command description 2013-01-14 20:09:46 +02:00
Kyrylo Silin
256f35422a Prettify command descriptions, switches and stuff
Wrap command descriptions to 80 characters. Convert some string options
to symbols (where possible). Align options in code. Remove dots in the
end of switch descriptions.

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2013-01-09 22:23:19 +02:00
Kyrylo Silin
ebccd57013 Convert all commands to classes
John "banister" Mair describes the following key features of commands
as classes:

  1. It enables people to extend them by either subclassing or
     monkeypatching.
  2. It enables them to provide their own API, so that for example, the
     Pry::Command::Edit class could have class methods for people to
     configure it.

Please, note that I didn't touch easter eggs commands. I also prettified
some strings (your source code reading experience should vastly improve!).

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2012-12-27 13:31:37 +02:00
☈king
9b38f33b79 Progress on gist + jruby crash 2012-12-09 23:21:18 -06:00
Ryan Fitzgerald
2bb3bbfb1b "Fix" build on 1.8 by avoiding method_source flakiness 2012-12-09 20:29:53 -08: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
Ryan Fitzgerald
1af4207c63 Restore groups, convert most commands to class syntax 2012-08-11 18:27:26 -07:00
Ryan Fitzgerald
8ce49ee081 Remove extended_commands, default_commands -> commands 2012-08-11 17:39:25 -07:00
Renamed from lib/pry/default_commands/gist.rb (Browse further)