• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Practical Ruby Gems - Question

 
Joe Harry
Ranch Hand
Posts: 10081
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
anjan bachchu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10081
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought GEMS is some kind of scripting language. Anyways, thanks for answering my post!
 
Prabhakar Chaganti
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Berube
author
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10081
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys for clarifying!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic