☈king
955580e2db
Don't mention .gemspec detail explicitly
2012-12-31 21:13:17 -06:00
☈king
46439ca4b6
Explain plugin failure message
2012-12-31 20:16:41 -06:00
Mon ouïe
d86f374cc8
Removed double trailing new-lines (really just because it's done automatically)
2012-07-22 23:30:40 +02:00
Yorick Peterse
70dfb424a8
Set plugin options before requiring the plugin.
...
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-04-23 12:36:27 +02:00
Yorick Peterse
048a58b85b
Auto create configuration objects for plugins.
...
Whenever a plugin is activated a configuration object (using OpenStruct) will be
created in Pry.config for that plugin. For example, for the plugin "pry-doc" the
object Pry.config.pry_doc would be created.
See #436 for more information.
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-04-20 13:15:33 +02:00
John Mair
98c3272a75
.puts -> warn, fixes #429
2012-01-23 16:40:40 +13:00
John Mair
b2bce306ad
added exact error message to plugin warning when gem is found but not loaded
2011-12-11 04:13:42 +13:00
John Mair
9142aa173f
Added Pry::CLI class for processing command line options, with plugin support.
...
Plugins can define their own command line options by having a lib/plugin_name/cli.rb file. If this file exists
it is loaded immediately before command line options are processed. The contents of the file should be along the lines of:
Pry::CLI.add_options do
on "my-option", "My first option!" do
puts "I just defined an option!"
end
end
2011-12-09 03:14:33 +13:00
John Mair
cab51af3ef
extracted initial_session_setup method from Pry.start; invoking :when_started hook in Pry.start
2011-11-13 04:31:43 +13:00
John Mair
aba38ea9e8
refactored plugin code: 1. should not warn when activate called twice on a gem that has already been activated (but ceases to be accessible due to bundler, robgleeson's bug). 2. calling activate on a non-existent plugin should warn not raise
2011-09-02 04:16:43 +12:00
John Mair
ef7ebbc61e
converted plugin load failtures from exceptions to warnings, bump to version 0.9.3pre1
2011-07-25 19:43:34 +12:00
John Mair
8133fd8914
added gemspec to Plugin object, so can extract summary/description etc
2011-06-17 01:43:45 +12:00
John Mair
6888630212
plugin activation/disabling errors can be turned off using Pry.config.plugins.strict_loading = false
2011-06-02 21:45:53 +12:00
David Palm
bafff3dc7d
rubygems 1.8.x compatibility fixes applied to dev branch
2011-06-01 08:47:14 +02:00
John Mair
2982f5c6b8
plugins are now enabled when explicitly activated! (even if previously disabled)
2011-05-23 22:29:09 +12:00
John Mair
54de8361e2
many changes to plugins, command processor etc, just saving state
2011-05-23 19:11:41 +12:00
John Mair
08b76a555b
further basic work on plugin system, for run-time activation of plugins. Added Pry.init for basic initialization of Pry
2011-05-19 15:31:29 +12:00
John Mair
0fa64814b1
documentation for plugins.rb
2011-05-16 04:19:13 +12:00
John Mair
f993448fb6
first stab at plugin system
2011-05-15 23:49:15 +12:00