| Author |
Practical Ruby Gems - Question
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8457
|
|
Hi, How good does this book compare with Java FX? If I understood this correctly, Gems is for scripting like Java FX? Can you please provide with a TOC for the book.
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
anjan bachchu
Greenhorn
Joined: Dec 18, 2006
Posts: 10
|
|
Hi there, Gems is similar to installing the .JAR files to JRE\LIB\EXT . They(gem libraries) are available for programs using that installation of ruby. JavaFX : I don't know it well enough to describe it : since you're from the java world, you should be able to grok it. I hope that answers. BR, ~A
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8457
|
|
|
I thought GEMS is some kind of scripting language. Anyways, thanks for answering my post!
|
 |
Prabhakar Chaganti
author
Ranch Hand
Joined: Nov 30, 2004
Posts: 50
|
|
|
Gems are packaging format used for distributing Ruby libraries. Think of it as a java jar file or a python egg. You can install/update these libraries by using the gem command, which will automatically download and install/update/build docs and the dependencies for the gem. It is similar in feel to using Debian's package manager "apt" to install software packages on linux.
|
Packt Author Page (http://www.packtpub.com/author_view_profile/id/120)
|
 |
David Berube
author
Greenhorn
Joined: Jun 18, 2007
Posts: 26
|
|
Quite right. Note that another excellent advantage of RubyGems is that it's written in pure Ruby, so it runs anywhere Ruby runs. You can install some Ruby libraries with apt-get or Yum, but they are of course distribution specific. (They also typically lag behind the RubyGems distribution.) Additionally, RubyGems offers versioning - you can request only a certain version of a gem, and you can have multiple versions of the same gem installed at once. This is a nice feature, and means that you can solve versioning issues with nice error messages instead of failing because of a missing method or class. Take it easy, David Berube
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8457
|
|
|
Thanks guys for clarifying!
|
 |
 |
|
|
subject: Practical Ruby Gems - Question
|
|
|