# Facet gem versions

**URL:** <https://www.ruby-forum.com/t/facet-gem-versions/53617>\
**Category:** Ruby\
**Created:** [February 11, 2006, 9:59pm UTC](https://www.ruby-forum.com/t/facet-gem-versions/53617 "2006-02-11T21:59:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@brian](https://www.ruby-forum.com/u/brian)\
**Post date:** [February 11, 2006, 9:59pm UTC](https://www.ruby-forum.com/t/facet-gem-versions/53617/1 "2006-02-11T21:59:31Z")

</div>

The facet gems currently installed my system are

facets (2005.10.30, 2005.10.15, 1.0.2)  
The proverbial Zoo-of-More for Ruby  
facets\_core (1.0.2)  
Vast collection of atomic core extension methods.  
facets\_more (1.0.2)  
Large collection of additional classes, modules and microframeworks.

If I open a new IRB session type a “require” line without first a  
“require\_gem”, the method added in comes from (facets 2005.10.30)  
require ‘facet/float/approx’

But if I do a require\_gem statement prior to the same require line, the  
method comes from (facets\_core 1.0.2)  
require\_gem ‘facets\_core’  
require ‘facet/float/approx’

There seems to be a (dangerous?) mixing of lines of gems here. Also I  
had  
been thinking “require\_gem” was optional and only needed when a version  
other than the most recent was needed.

My questions:  
Are ‘facets\_core’/‘facets\_more’ the active lines now, and is it  
advisable to  
uninstall the gems from the old ‘facets’ line [including saying Y those  
dependency warnings])?

In general is the “require\_gem” line necessary when using gems and an  
error  
to omit it even when one just wants to use the most recent version?

Thanks.

Brian K. Buckley

---

<div class="post-metadata">

**Author:** ![brian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@brian](https://www.ruby-forum.com/u/brian)\
**Post date:** [February 11, 2006, 10:48pm UTC](https://www.ruby-forum.com/t/facet-gem-versions/53617/2 "2006-02-11T22:48:27Z")

</div>

DÅ?a Sobota 11 FebruÃ¡r 2006 21:59 Brian B. napÃ­sal:

> “require\_gem”, the method added in comes from (facets 2005.10.30)
> 
> Brian K. Buckley

#require\_gem does that, requires a gem by its name. But requiring  
‘rubygems’  
also changes the semantics of #require - now it searches the gems as if  
they  
all were in site\_ruby.

They aren’t being mixed, ‘facets’ is just a metagem that depends on  
facets\_core and facets\_more - both of those gems share the same “library  
namespace”

Generally, it’s more common to use #require instead of #require\_gem.

David V.

---

<div class="post-metadata">

**Author:** ![brian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@brian](https://www.ruby-forum.com/u/brian)\
**Post date:** [February 12, 2006, 7:33am UTC](https://www.ruby-forum.com/t/facet-gem-versions/53617/3 "2006-02-12T07:33:32Z")

</div>

As of 1.0.3 I’ve instructed RubyGems to search in two places, namely  
packages/core/lib and packages/more/lib. This way I have (finally) been  
able to combine the two parts in one seemless facets.gem.

T.
