By David Berube
This publication is a entire advisor to using and growing Ruby gemstones. assurance offers an important code library that might aid builders increase their initiatives. It information 34 of the simplest and most dear gem stones, together with ones to hurry up net purposes, strategy bank card funds, produce PDF records, learn and replace RSS feeds, and obtain real-time transport costs from FedEx and UPS. each one of those additionally comes entire with genuine use situations and code examples that readers can instantly use of their personal initiatives. moreover, the e-book describes how readers can package deal and distribute their very own Ruby Gems.
Read or Download Practical Ruby Gems PDF
Similar Programming books
Crucial C++ for Engineers and Scientists zeros in at the key parts of fine programming and C++, utilizing a large number of fascinating and acceptable engineering and medical examples. This publication covers the good points of C++ wanted for writing engineering courses, together with many gains of object-oriented programming.
The CLOS metaobject protocol is a chic, high-performance extension to the CommonLisp item approach. The authors, who constructed the metaobject protocol and who have been one of the crew that built CLOS, introduce this new method of programming language layout, describe its evolution and layout ideas, and current a proper specification of a metaobject protocol for CLOS.
C++11 has arrived: completely grasp it, with the definitive new consultant from C++ author Bjarne Stroustrup, C++ Programming Language, Fourth variation! The brand-new variation of the world's so much depended on and broadly learn consultant to C++, it's been comprehensively up-to-date for the long-awaited C++11 regular.
Written through a pioneer within the box, this can be a thorough advisor to the price- and time-saving benefits of Flow-Based Programming. It explains the theoretical underpinnings and alertness of this programming process in sensible phrases. Readers are proven tips to follow this programming in a few components and the way to prevent universal pitfalls.
Extra resources for Practical Ruby Gems
With out RubyGems, you have got to spend hours fitting and gaining knowledge of dozens of applications to get complicated software program operating. With RubyGems, you could simply set up the gem and allow it get to the bottom of dependencies for you. It Handles a number of software program types Intelligently. RubyGems can shop a number of gem models, and software program that makes use of RubyGems can request specific gem software program versions—so, for instance, an software that requests the ActiveRecord gem (http://rubyforge. org/projects/activerecord/) may well request a gem that’s more moderen or older than a given model. this is often very invaluable if, for instance, a later model of a gem breaks your software, or in case your software calls for a characteristic from the most recent model of a gem. (You can locate extra information on tips to do that in bankruptcy four. ) it may be Used Transparently instead of usual Ruby Libraries. RubyGems has a facility that makes it obvious to take advantage of gem software program. for instance, think you desired to use the tenting (http://rubyforge. org/projects/camping/) internet microframework. in case you put in camping out the normal manner, you will use the camping out library on your code like this: require 'camping' in case you put in it through RubyGems, you employ the very same code. As you will find, utilizing code through RubyGems is obvious, so that you can change from side to side simply; for those who distribute your software program, the person doesn't must have RubyGems installed—only the mandatory library. observe, although, that that will require yes model of the software program is put in, you’ll have to use a different RubyGems assertion on your code. (See bankruptcy four for extra information. ) It enables you to Use an identical know-how on Any working method. RubyGems goals all systems that run Ruby. If it runs Ruby, it runs RubyGems. a few different structures exist to make software program deploy more straightforward; there’s every thing from those who easily set up software—like Window’s MSI install system—to complete package-management platforms, like Debian Linux’s apt (Advanced package deal Tool), purple Hat’s yum, or OS X’s DarwinPorts. Such platforms are in general working system–dependent, notwithstanding, as we’ll talk about subsequent. five 8113Ch01CMP2 6 3/22/07 7:38 PM web page 6 bankruptcy 1 ■ what's RUBYGEMS? How Does RubyGems examine to different Packaging structures? working system–specific packaging platforms, comparable to apt or yum, can hold Ruby software program in addition. for the reason that Ruby software program can be utilized by means of non-Rubyists, this is often vital. It’s additionally handy if you would like quite a few items of software program. For Rubyists, notwithstanding, it’s often higher to put in gemstones utilizing RubyGems, due to the fact RubyGems has the simplest number of Ruby software program and the newest types. also, in contrast to RubyGems, OS-native packagers don’t deal with a number of gem types put in concurrently. besides the fact that, it's attainable to put in a restricted collection of Ruby software program utilizing different packaging platforms. for instance, you may set up the MySQL Ruby bindings through gem like this: gem set up mysql on the other hand, you'll set up a similar library through apt-get less than Ubuntu Linux like this: apt-get set up libmysql-ruby1.