By David Berube

This e-book is a complete advisor to using and developing Ruby gem stones. insurance presents an incredible code library that may aid builders enhance their initiatives. It information 34 of the easiest and most beneficial gemstones, together with ones to hurry up internet functions, technique bank card funds, produce PDF records, learn and replace RSS feeds, and procure real-time transport costs from FedEx and UPS. each one of those additionally comes whole with real use circumstances and code examples that readers can instantly use of their personal tasks. additionally, the e-book describes how readers can package deal and distribute their very own Ruby Gems.

Show description

Read or Download Practical Ruby Gems PDF

Similar Programming books

Embedded C

For those who are approximately to jot down their first embedded software - or were suffering to profit approximately this crucial region - this ebook will keep weeks of attempt.

Cocoa Design Patterns

“Next time a few child exhibits up at my door inquiring for a code evaluate, this is often the e-book that i'm going to throw at him. ”   –Aaron Hillegass, founding father of enormous Nerd Ranch, Inc. , and writer of Cocoa Programming for Mac OS X   Unlocking the secrets and techniques of Cocoa and Its Object-Oriented Frameworks   Mac and iPhone builders are usually crushed by means of the breadth and class of the Cocoa frameworks.

C++ Primer (5th Edition)

Bestselling Programming instructional and Reference thoroughly Rewritten for the hot C++11 usual   absolutely up to date and recast for the newly published C++11 general, this authoritative and accomplished creation to C++ might help you to profit the language quick, and to take advantage of it in sleek, powerful methods.

Operating System Concepts

Continue speed with the fast-developing international of working structures Open-source working structures, digital machines, and clustered computing are one of the top fields of working structures and networking which are quickly altering. With giant revisions and organizational adjustments, Silberschatz, Galvin, and Gagne’s working method recommendations, 8th variation is still as present and correct as ever, aiding you grasp the basic thoughts of working platforms whereas getting ready your self for today’s rising advancements.

Extra info for Practical Ruby Gems

Show sample text content

184 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 ■CHAPTER 25 Manipulating photos with RMagick . . . . . . . . . . . . . . . . . . . . . 191 How Does It paintings? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 developing Thumbnails with RMagick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 ■CHAPTER 26 rushing Up net purposes with memcache-client . . 199 How Does It paintings? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 rushing Up the Ruby on Rails consultation Cache with memcached . . . . . 2 hundred gaining access to memcached Servers with a Graphical customer . . . . . . . . . . . . . 205 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 ■CHAPTER 27 coping with Zip files with rubyzip . . . . . . . . . . . . . . . . . . . . . 209 How Does It paintings? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 examining textual content from a zipper dossier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 ■CHAPTER 28 dashing Up functionality Calls with memoize . . . . . . . . . . . . . . 215 How Does It paintings? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215 Organizing an inventory of MP3s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 ■CHAPTER 29 Tagging MP3 records with id3lib-ruby . . . . . . . . . . . . . . . . . . . . . . 221 How Does It paintings? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 altering MP3 Tags with ID3 Mass Tagger . . . . . . . . . . . . . . . . . . . . . . . . 222 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 xi 8113Ch00CMP2 xii 3/28/07 5:27 PM web page xii ■CONTENTS ■CHAPTER 30 Shortening URLs with shorturl . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 How Does It paintings? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 Shortening RSS Feeds with shorturl . . . . . . . . . . . . . . . . . . . . . . . . . . 228 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 ■CHAPTER 31 growing Standalone Ruby purposes with rubyscript2exe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 How Does It paintings? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 Packaging the id3tool Script with rubyscript2exe . . . . . . . . . . . . . . . . . . 232 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 ■CHAPTER 32 cleansing soiled HTML with tidy . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 How Does It paintings? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 Tidying Up HTML on the net with tidy . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 ■CHAPTER 33 Parsing XML with xml-simple . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 How Does It paintings? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 monitoring OpenSSL Vulnerabilities with xml-simple . . . . . . . . . . . . . . . . . 248 end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 half three ■■■ developing gemstones ■CHAPTER 34 growing Our personal gem stones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 what's within a Gem? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 What’s a Gemspec? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 construction a Gem package deal from a Gemspec . . . . . . . . . . .

Rated 4.99 of 5 – based on 44 votes