What is gemcutter and jeweler?

3 views
Skip to first unread message

Ed Howland

unread,
Nov 21, 2009, 6:19:58 PM11/21/09
to stl...@googlegroups.com
Hi,

I wanted to try the excellent backtracer gem [1] and had to install
jeweler first [2],[4]. I got of lot of other dependencies, like for
gemcutter, etc. What is all this? I think it has something to do with
git, rubyforge and publishing your own gems. [3] Are people moving to
this from rubyforge/github? Can you do the jeweler/gemcutter tumble
thing in your bash startup file?

Ta,

Ed

[1] backtracer http://github.com/rdp/backtracer
screencast: http://www.rubypulse.com/episode-0.18_backtracer.html
[2] gemcutter: http://github.com/qrush/gemcutter/
jeweler: http://github.com/technicalpickles/jeweler/
[3] http://www.rubyinside.com/gemcutter-a-fast-and-easy-approach-to-ruby-gem-hosting-2281.html

[4] output from install (1.8.7):
---
sudo gem install jeweler

========================================================================

Thanks for installing Gemcutter! You can now run:

gem tumble use Gemcutter as your primary RubyGem source
gem push publish your gems for the world to use and enjoy
gem migrate take over your gem from RubyForge on Gemcutter
gem owner allow/disallow others to push to your gems

========================================================================

Successfully installed git-1.2.5
Successfully installed json_pure-1.2.0
Successfully installed rubyforge-2.0.3
Successfully installed net-ssh-2.0.15
Successfully installed net-scp-1.0.2
Successfully installed gemcutter-0.1.7
Successfully installed jeweler-1.4.0
7 gems installed



--
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

Mike Gaffney

unread,
Nov 21, 2009, 6:21:17 PM11/21/09
to stl...@googlegroups.com
Gemcutter is the new offical hosting site for ruby gems. That's all it
does is host gems.

Jeweler is a gem for helping create gems. It defaults to putting things
up on gemcutter.

-Mike

Mario Aquino

unread,
Nov 21, 2009, 10:34:53 PM11/21/09
to stl...@googlegroups.com
Jeweler is awesome. It will create a skeleton ruby project structure
for you, complete with rakefile and the supporting test helper file of
your choice (rspec, bacon, test::unit, etc). It will also initialize
your project dir as a git repo with the remote master pointing to your
default account on github. I have been using it for most of the year
and I love it!

Sent from my iPhone
> --
>
> You received this message because you are subscribed to the Google
> Groups "Saint Louis Ruby Users Group" group.
> To post to this group, send email to stl...@googlegroups.com.
> To unsubscribe from this group, send email to stlruby+u...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/stlruby?hl=
> .
>
>

Amos King

unread,
Nov 22, 2009, 9:09:12 AM11/22/09
to stl...@googlegroups.com
Ed,

You don't have to call gem tumble all the time. It is a one time deal.

Amos
> --
>
> You received this message because you are subscribed to the Google Groups "Saint Louis Ruby Users Group" group.
> To post to this group, send email to stl...@googlegroups.com.
> To unsubscribe from this group, send email to stlruby+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/stlruby?hl=.
>
>
>



--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com

Ed Howland

unread,
Nov 22, 2009, 1:57:19 PM11/22/09
to stl...@googlegroups.com
Thanks Amos and Mario.

It sounds jlike just what I need. Investigating the backtracer some
more, I found that I could install ruby-debug19 for 1.9.1. It is still
a bit buggy and the locals option doesn't work with backtracer for me.

Other than that making a gem for my Cuke+RSpec legacy toolset, sounds
like the right way to go.

Thanks
Ed

--
Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/ed_howland

Craig Buchek

unread,
Nov 23, 2009, 11:02:41 AM11/23/09
to Saint Louis Ruby Users Group
Gemcutter will soon be replacing RubyForge as the default gem host.
See http://www.rubyinside.com/gemcutter-is-the-new-official-default-rubygem-host-2659.html
for details. In addition, Github has (or will) stopped building
downloadable gems.

Jeweler is one of the gem creation tools. Another is newgem. I had
some problems with both of them -- maybe this would be a good short
topic for an upcoming meeting.

It seems odd that a gem would require jeweler, newgem, or gemcutter.
Those are typically required to create a gem, but not required by the
gem itself. It's likely an error on the part of the packager,
including them as dependencies, when they're only needed for the build
process.

Craig

Ed Howland

unread,
Nov 23, 2009, 1:02:02 PM11/23/09
to stl...@googlegroups.com
Craig, you are probably right about the dependencies. Note net-ssh,
json, etc. Needed for the push process, but not for backtracer itself.
However, based on your news re: the switch to rubygems.org
(Gemcutter), it can't hurt to have these installed.

I hope Curt Hibbs is reading thius. One of the commenters mentioned
the hassle some gems/projects on RF are going to have and he mentioned
various Win32 stuff along with the OneClick Installer. RF isn't going
anywhere soon and I don't think OCI is considered a gem. But maybe
Curt should be aware of the switch?

Also, only gem building is leaving github? Will it still act as a
source repository?

Ed
> --
>
> You received this message because you are subscribed to the Google Groups "Saint Louis Ruby Users Group" group.
> To post to this group, send email to stl...@googlegroups.com.
> To unsubscribe from this group, send email to stlruby+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/stlruby?hl=.
>
>
>



Gordon Thiesfeld

unread,
Nov 23, 2009, 1:23:42 PM11/23/09
to stl...@googlegroups.com
On Mon, Nov 23, 2009 at 12:02 PM, Ed Howland <ed.ho...@gmail.com> wrote:
> Craig, you are probably right about the dependencies. Note net-ssh,
> json, etc. Needed for the push process, but not for backtracer itself.
> However, based on your news re: the switch to rubygems.org
> (Gemcutter), it can't hurt to have these installed.
>
> I hope Curt Hibbs is reading thius. One of the commenters mentioned
> the hassle some gems/projects on RF are going to have and he mentioned
> various Win32 stuff along with the OneClick Installer. RF isn't going
> anywhere soon and I don't think OCI is considered a gem. But maybe
> Curt should be aware of the switch?
>

The commenter you're talking about is probably Luis Lavena. He took
over as maintainer of the OneClick installer - now known as
RubyInstaller[1] - in December of 2007[2].

> Also, only gem building is leaving github? Will it still act as a
> source repository?

"For at least one year"[3]

[1] http://www.rubyinstaller.org/
[2] http://blog.mmediasys.com/2007/12/18/ya-es-oficial-ruby-for-windows-en-mis-manos/
[3] http://github.com/blog/515-gem-building-is-defunct


Gordon

Craig Buchek

unread,
Nov 23, 2009, 1:26:52 PM11/23/09
to Saint Louis Ruby Users Group
> Also, only gem building is leaving github? Will it still act as a
> source repository?

You can still pull down sources from Github via GIT, you just can't
pull them as a single file via gems. As I understand it, the idea is
to keep your development in Github (or anywhere else you care to) and
push to Gemcutter in addition to that.

> I hope Curt Hibbs is reading thius.

I don't think Curt is involved much with the Windows Once-Click
Installer any more.

Craig

Mario Aquino

unread,
Nov 23, 2009, 3:17:39 PM11/23/09
to stl...@googlegroups.com
I'd be willing to do a 15 minute talk on jeweler. I think it's the
bees knees.

Sent from my iPhone

On Nov 23, 2009, at 10:02 AM, Craig Buchek <craig....@gmail.com>
wrote:

Ed Howland

unread,
Nov 23, 2009, 7:39:48 PM11/23/09
to stl...@googlegroups.com
On Mon, Nov 23, 2009 at 1:23 PM, Gordon Thiesfeld <gthie...@gmail.com> wrote:

>> I hope Curt Hibbs is reading thius. One of the commenters mentioned
>> the hassle some gems/projects on RF are going to have and he mentioned
>> various Win32 stuff along with the OneClick Installer. RF isn't going
>> anywhere soon and I don't think OCI is considered a gem. But maybe
>> Curt should be aware of the switch?
>>
>
> The commenter you're talking about is probably Luis Lavena.  He took
> over as maintainer of the OneClick installer - now known as
> RubyInstaller[1] - in December of 2007[2].
>
>>

Luis commented on the Google group for RubyInstaller (The 5-click
Installer :) that gemcutter works with it, but he hasn't tested
jeweler. (if it doesn't shell out to *nix commands, it shuld be fine).

So he is aware of the move.

Gem's must from now on be "pushed" to gemvutter, if hosted on RF:

I'm copying this email for folks who might have gems on RubyForge:

Date: Sat, 21 Nov 2009 22:15:15 -0500 (EST)
From: nor...@rubyforge.org
To: m...@mydomain.com
Subject: [RubyForge] Gem index has been shut down

Hello -

You’re receiving this email because you’re a RubyForge project admin
and a recent change robably affects you.
A few days ago we repointed gems.rubyforge.org to the gemcutter.org
box. This means that Nick Quaranto’s excellent gemcutter app is now
indexing and serving all the gems - so rather than having two gem
indexes, we now have one. As a consequence of this, when you release
files to RubyForge you will probably also want to do a “gem push” to
get them onto gemcutter and into the main gem index.

Note that you can continue to release gems (and other files) at
RubyForge; it’s just that gems won’t utomatically make it into the
main gem index.

Yours,

The RubyForge support team
http://rubyforge.org/projects/support/

Ed Howland

unread,
Nov 28, 2009, 11:33:21 PM11/28/09
to stl...@googlegroups.com
Mario,

How do you use jeweler w/o a github account? There doesn't seem to be
a --nogithub option.

Ed
> For more options, visit this group at http://groups.google.com/group/stlruby?hl=.
>
>
>



--
Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/ed_howland

Mario Aquino

unread,
Nov 29, 2009, 7:47:33 AM11/29/09
to stl...@googlegroups.com
Hi Ed,

You can use Jeweler without a Github account.  I believe all Jeweler does is create a local repo for your project that points its remote origin to github.  If you don't have a github account or want to use a different remote repo, you could remove the remote origin that Jeweler creates and just add a new one.

For example:

mario:~/projects/ruby$ jeweler not_for_github
create .gitignore
create Rakefile
create LICENSE
create README.rdoc
create .document
create lib
create lib/not_for_github.rb
create test
create test/test_helper.rb
create test/not_for_github_test.rb
Jeweler has prepared your gem in not_for_github
mario:~/projects/ruby$ cd not_for_github/
mario:(git)not_for_github[master]/$ git remote show origin
fatal: '/data/repositories/a/ab/2d/07/marioaquino/not_for_github.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
mario:(git)not_for_github[master]/$ git remote rm origin 
mario:(git)not_for_github[master]/$ git remote show 
.document    .git/        .gitignore   LICENSE      README.rdoc  Rakefile     lib/         test/
mario:(git)not_for_github[master]/$ 


In the above, I have my command prompt echo the branch that I am on in a version-controlled directory hierarchy.  I cd into the project that Jeweler created for me and just remove the remote origin for the git repo.  If I wanted to point it at some non-github remote repo, I would do: git remote add origin git://some.other.git

One thing that I find very useful with git is the help command.  You can do: git help remote to find out more (or just "git help" to see what all your options are -- git is extremely well documented IMHO).

--Mario


For more options, visit this group at http://groups.google.com/group/stlruby?hl=en.



Reply all
Reply to author
Forward
0 new messages