On Dec 28, 4:37 pm, Iñaki Baz Castillo <[email protected]> wrote:
> El Martes, 29 de Diciembre de 2009, Jeremy Evans escribió:
>
> > You should also request the pg maintainer to maintain a versioning
> > scheme for pg that is outside of rubygems, similar to Sequel's
> > Sequel.version.  Even though Sequel is distributed as a gem, Sequel
> > doesn't depend on rubygems, and therefore cannot use the rubygems API
> > to determined which pg gem is loaded.
>
> Isn't PGconn::VERSION (=> "0.8.0") valid?

Not unless it was added after 0.8.0:

$ irb -rubygems -rpg
irb(main):001:0> PGconn::VERSION
(irb):1: warning: toplevel constant VERSION referenced by
PGconn::VERSION
=> "1.8.6"
irb(main):002:0> PGconn::VERSION()
NoMethodError: undefined method `VERSION' for PGconn:Class
        from (irb):2

If it was added after 0.8.0, great.

Jeremy

--

You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.


Reply via email to