Skip to content

Releases: payout/plugins

0.3.0

0.3.0 Pre-release
Pre-release

Choose a tag to compare

@roberthoner roberthoner released this 05 Oct 01:53

Removing Ribbon namespace.

0.2.4

0.2.4 Pre-release
Pre-release

Choose a tag to compare

@roberthoner roberthoner released this 05 Mar 04:47
  • Bug fix to Plugins#clear

0.2.3

0.2.3 Pre-release
Pre-release

Choose a tag to compare

@roberthoner roberthoner released this 04 Mar 22:32
  • Allowing additional args to be passed to plugin initializers.
  • Plugin instance methods are now available to callbacks.
  • Providing shortcut to perform_{subject} methods as just {subject}. For example, instead of calling perform_save in an around wrapper, you can just call save.
  • Allowing plugin blocks to be passed to ComponentMixin#plugin.

0.2.2

0.2.2 Pre-release
Pre-release

Choose a tag to compare

@roberthoner roberthoner released this 04 Mar 03:06

Bug fix:

  • When calling the perform_* method in an around wrapper block, you couldn't pass modified args to subsequent plugins and the eventual block. This is now fixed.

0.2.1

0.2.1 Pre-release
Pre-release

Choose a tag to compare

@roberthoner roberthoner released this 04 Mar 03:03

Bug fix:

  • Now the return value of Plugins#perform is the same as the passed block.

0.2.0

0.2.0 Pre-release
Pre-release

Choose a tag to compare

@roberthoner roberthoner released this 04 Mar 00:16
  • Adding ComponentMixin which should be included in any class that intends to support plugins.
  • Changing Plugins initializer input. Now it takes the component (i.e., the instance of your object with plugin support) and a block which can be used to customize how plugins are loaded.

0.1.0

0.1.0 Pre-release
Pre-release

Choose a tag to compare

@roberthoner roberthoner released this 04 Mar 00:12

Implementing the basic features.

  • Plugins support before, around and after callbacks.
  • Plugins can be defined by extended the Plugin class or by calling Plugin::create
  • Add any number of plugins to a Plugins instance.