[Groonga-commit] droonga/droonga.org at e220685 [gh-pages] Add a topic of changed declaration style of plugins

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Feb 28 14:02:26 JST 2014


YUKI Hiroshi	2014-02-28 14:02:26 +0900 (Fri, 28 Feb 2014)

  New Revision: e220685ca9de779ca72dc78effed4ead665aa6a9
  https://github.com/droonga/droonga.org/commit/e220685ca9de779ca72dc78effed4ead665aa6a9

  Message:
    Add a topic of changed declaration style of plugins

  Modified files:
    news/_posts/2014-02-28-release.md

  Modified: news/_posts/2014-02-28-release.md (+18 -1)
===================================================================
--- news/_posts/2014-02-28-release.md    2014-02-28 13:57:01 +0900 (0537417)
+++ news/_posts/2014-02-28-release.md    2014-02-28 14:02:26 +0900 (f07595c)
@@ -33,13 +33,30 @@ To develop your custom plugins, see the [plugin development tutorial][tutorial-p
 The current Droonga version is 1.0.0.
 This is the first major release!!
 
-The release has the following improvements:
+The release has the following changes:
 
  * The format of the "catalog.json" is improved and stabilized.
    More readable, more understandable easily.
  * APIs to develop plugins around the handling phase are stabilized.
    Now you can develop plugins working with the data storage.
    See the [plugin development tutorial for the handling phase][tutorial-handler] for more details.
+ * Declaration style of plugins is changed a little.
+   Old:
+   ~~~ruby
+   module MyPlugin
+     Plugin.registry.register("my-plugin", self)
+     ...
+   end
+   ~~~
+   New:
+   ~~~ruby
+   module MyPlugin
+     extend Plugin
+     register("my-plugin")
+     ...
+   end
+   ~~~
+   You have to migrate your plugins written for Droonga 0.9.9.
 
 ## Conclusion
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index