Addison-Wesley Professional Ruby Series Rails Plugins: Extending ...

4 downloads 576 Views 50KB Size Report
Sep 8, 2006 ... Addison-Wesley Professional Ruby Series Rails Plugins: Extending Rails. Beyond the Core. By James Adam.
Addison-Wesley Professional Ruby Series Rails Plugins: Extending Rails Beyond the Core By James Adam ............................................... Publisher: Addison Wesley Professional Pub Date: September 08, 2006 Print ISBN-10: 0-321-48351-0 Print ISBN-13: 978-0-321-48351-5 Pages: 123

U

Table of Contents

U

U

U

Copyright What This Short Cut Covers Section 1. Introduction Ruby on Rails Oh Plugin, Where Art Thou? Overview of This Short Cut Ruby and Rails Versions A Short Essay about Reusable Code Section 2. Installing Plugins Installing Plugins with script/plugin Plugins from Subversion script/plugin update, Redux Summary Section 3. Saluton, Mondo! (init.rb) The Plugin Generator init.rb Summary Section 4. Sharing Code (lib) The lib Directory The CopyrightHelper Plugin Rails, Modules, and Auto-Loading Code Using the Copyright Plugin in an Application Including Code Automatically Adding to ApplicationHelper Summary Section 5. The Rest (README, install.rb, Rakefile, tasks, and More) READMECapitalized for a Good Reason install.rb and uninstall.rb uninstall.rb (Edge Rails Only) about.yml (Edge Rails Only) Rake and Plugins Rakefile versus tasks/What's the Difference? U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

Summary Section 6. Plugin Development Prelude: Mixing a Module's Methods into a Class Staring into the Heart of Ruby Extracting Behavior into a Plugin Writing an acts_as Plugin Summary Section 7. Sharing Classes and Code Using Plugins to Share Code Models and Helpers Controllers Organizing Your Shared Classes Sharing Files That Aren't Code Using Engine Plugins Generators in Plugins Creating Generators Running Plugin Generators Sharing Generators Upgrading Generated Code Summary Section 8. Testing Plugins Writing Plugin Tests Testing Plugins Against an Isolated Database Summary Section 9. Sharing Your Plugin To Share, or Not to Share Hosting Releasing Your Plugin Supporting the Plugin Section 10. Conclusions Ruby, Ruby, Ruby About the Author U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U

U