Building gems from source

2 views
Skip to first unread message

dahearn

unread,
Nov 5, 2009, 7:00:00 PM11/5/09
to Prawn
I would like to install 0.6.0.0 so that I can play around with the new
"group" feature. I've built the prawn gems from git (core, layout,
format) and installed them, however my app still loads the 0.5.1 gem
rather than the 0.6.0.0 gem I built from source. I've stopped and
restarted my Rails server, but still no luck.

After I installed the "stable" prawn, 4 new gems were installed in my
local gem repository:

* prawn-0.5.1
* prawn-core-0.5.1
* prawn-layout-0.2.1
* prawn-format-0.2.1

When I cloned the prawn repo (git://github.com/sandal/prawn.git) and
built the gem, it created a prawn-core-0.6.0.0.gem file.

When I cloned the prawn-layout repo (git://github.com/sandal/prawn-
layout.git) and built the gem, it created a prawn-layout-0.2.0.1.gem
file.

When I cloned the prawn-format repo (git://github.com/sandal/prawn-
format.git) and built the gem, it created a prawn-format-0.2.0.1.gem
file.

So I guess my questions are this:

1) Only 3 gems were created from the source I downloaded from git. Is
that correct, or should there be a 4th gem (i.e. prawn-0.6.0.0)?
Could this explain why my server still loads the 0.5.1 gem?

2) Why would a seemingly older version of prawn-layout and prawn-
format get created (i.e. 0.2.0.1 instead of 0.2.1, which gets
installed by the stable gem)? Did I not clone those repos correctly
(I am fairly new to git, and that's a distinct possibility)? I simply
used "git clone" and provided those repo uris above.

Help from anyone who's successfully built and installed 0.6.0.0 from
source would be greatly appreciated.

TIA,
Denis

Gregory Brown

unread,
Nov 6, 2009, 12:00:38 AM11/6/09
to prawn...@googlegroups.com
On Thu, Nov 5, 2009 at 7:00 PM, dahearn <de...@riverocktech.com> wrote:
>
> I would like to install 0.6.0.0 so that I can play around with the new
> "group" feature.  I've built the prawn gems from git (core, layout,
> format) and installed them, however my app still loads the 0.5.1 gem
> rather than the 0.6.0.0 gem I built from source.  I've stopped and
> restarted my Rails server, but still no luck.

Just wait for an official release over the weekend, if it's an option.
But if I don't get it out by Monday, don't trust me to get it out soon ;)

> 1) Only 3 gems were created from the source I downloaded from git.  Is
> that correct, or should there be a 4th gem (i.e. prawn-0.6.0.0)?
> Could this explain why my server still loads the 0.5.1 gem?

Yes, 4th gem is in the meta/ folder in the sandal/prawn repos.
Basically, the "prawn" gem is just a bare gemspec that locks to
particular versions of the extensions.

Alternatively you could manually activate all your extensions one by
one, and this way, you can use any version combination you want (with
the caveat that only the ones specified by the metagem are guaranteed
to play nice together)

> 2) Why would a seemingly older version of prawn-layout and prawn-
> format get created (i.e. 0.2.0.1 instead of 0.2.1, which gets
> installed by the stable gem)?  Did I not clone those repos correctly
> (I am fairly new to git, and that's a distinct possibility)?  I simply
> used "git clone" and provided those repo uris above.

Looks like I never updated the version number for the gem on the
master branch. Whoops.
Wait a couple days and I'll have this all sorted out.

dahearn

unread,
Nov 6, 2009, 12:21:23 AM11/6/09
to Prawn
Thanks for the help.

I'll sit tight and wait for the next update, and if I don't see it by
early next week, you gave me enough to get my locally built gems to
work right.

Denis
Reply all
Reply to author
Forward
0 new messages