I am struggling to release an OS X gem (for which I wanted to post the
ANN days ago :(). I actually think I released it, but none of the OS X
versions of my gem (gosu) show up when I run 'sudo gem install gosu'
on vanilla Leopard; it only presents the 'win32' versions.
All previous versions had a platform of 'universal-darwin8.0' in the
spec, so I thought I'd re-upload the latest gem with 'universal-
darwin9.0', which didn't help any. I can see all gems on rubyforge's
gem file list, I can download and install them, they just don't show
up in the install list.
Unfortunately the docs for RubyGems are so sketchy that I guessed a
lot of things (e.g. the platform string). Is there anything I'm
missing? Is Leopard's gem broken and can it be updated?
I am struggling to release an OS X gem (for which I wanted to post the
ANN days ago :(). I actually think I released it, but none of the OS X
versions of my gem (gosu) show up when I run 'sudo gem install gosu'
on vanilla Leopard; it only presents the 'win32' versions.
$ sudo gem install gosu
Password:
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (universal-darwin9.0)
1. gosu 0.7.7 (mswin32)
2. gosu 0.7.6.1 (mswin32)
3. gosu 0.7.6 (mswin32)
4. gosu 0.7.5.1 (mswin32)
5. Skip this gem
6. Cancel installation
Only mswin32 versions are shown. I don't know why, but I don't think
it is a problem with the Leopard installation of RubyGems. You should
definitely move the discussion to the RubyGems list.
Laurent
···
On Nov 7, 2007 7:28 AM, Julian Raschke <julianraschke@googlemail.com> wrote:
I am struggling to release an OS X gem (for which I wanted to post the
ANN days ago :(). I actually think I released it, but none of the OS X
versions of my gem (gosu) show up when I run 'sudo gem install gosu'
on vanilla Leopard; it only presents the 'win32' versions.
All previous versions had a platform of 'universal-darwin8.0' in the
spec, so I thought I'd re-upload the latest gem with 'universal-
darwin9.0', which didn't help any. I can see all gems on rubyforge's
gem file list, I can download and install them, they just don't show
up in the install list.
Unfortunately the docs for RubyGems are so sketchy that I guessed a
lot of things (e.g. the platform string). Is there anything I'm
missing? Is Leopard's gem broken and can it be updated?
I'm betting that the gem needs to be built as a "Universal Binary" to
work with Leopard's built-in Ruby. Or something similar.
It is a precompiled Universal Binary (built with SWIG and Xcode), and
works as expected when installed. I'd guess gem doesn't even check the
binary format, or the platform string, because it shows all the win32
gems.
Do you know any precompiled binary gems that I could take a look at to
check for differences?
On Nov 7, 2007 11:56 AM, Laurent Sansonetti <laurent.sansonetti@gmail.com> wrote:
On Nov 7, 2007 7:28 AM, Julian Raschke <julianraschke@googlemail.com> wrote:
> I am struggling to release an OS X gem (for which I wanted to post the
> ANN days ago :(). I actually think I released it, but none of the OS X
> versions of my gem (gosu) show up when I run 'sudo gem install gosu'
> on vanilla Leopard; it only presents the 'win32' versions.
>
> All previous versions had a platform of 'universal-darwin8.0' in the
> spec, so I thought I'd re-upload the latest gem with 'universal-
> darwin9.0', which didn't help any. I can see all gems on rubyforge's
> gem file list, I can download and install them, they just don't show
> up in the install list.
>
> Unfortunately the docs for RubyGems are so sketchy that I guessed a
> lot of things (e.g. the platform string). Is there anything I'm
> missing? Is Leopard's gem broken and can it be updated?
>
I reproduce the problem:
$ sudo gem install gosu
Password:
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (universal-darwin9.0)
1. gosu 0.7.7 (mswin32)
2. gosu 0.7.6.1 (mswin32)
3. gosu 0.7.6 (mswin32)
4. gosu 0.7.5.1 (mswin32)
5. Skip this gem
6. Cancel installation
Only mswin32 versions are shown. I don't know why, but I don't think
it is a problem with the Leopard installation of RubyGems. You should
definitely move the discussion to the RubyGems list.
On Nov 7, 2007 7:28 AM, Julian Raschke <julianraschke@googlemail.com> > wrote:
Unfortunately the docs for RubyGems are so sketchy that I guessed a
lot of things (e.g. the platform string). Is there anything I'm
missing? Is Leopard's gem broken and can it be updated?
I'm betting that the gem needs to be built as a "Universal Binary" to
work with Leopard's built-in Ruby. Or something similar.
It is a precompiled Universal Binary (built with SWIG and Xcode), and
works as expected when installed. I'd guess gem doesn't even check the
binary format, or the platform string, because it shows all the win32
gems.
OK, this proves I had no idea what I was talking about.
Do you know any precompiled binary gems that I could take a look at to
check for differences?
Good question. No, I don't.
Perhaps this is a good discussion for the RubyGems mailing list?
James Edward Gray II
···
On Nov 7, 2007, at 10:23 AM, Julian Raschke wrote: