• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Practical Ruby Gems - Question

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I thought GEMS is some kind of scripting language. Anyways, thanks for answering my post!
 
author
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys for clarifying!
 
reply
    Bookmark Topic Watch Topic
  • New Topic