Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > gem thought

Reply
Thread Tools

gem thought

 
 
Roger Pack
Guest
Posts: n/a
 
      01-24-2009
I noticed how convenient it is to use debgem, I am wondering if it would
be useful to be able to optionally specify "apt get style" dependencies,
per gem.

a la
specification[:apt_get_dependency] = 'some_package'

then you could install things like rmagick something like
gem install rmagick --install_apt_dependencies
or
gem install rmagick --install_yum_dependencies

which would run apt-get install on the :apt_get_dependency.

Thoughts?
-=r
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
badboy
Guest
Posts: n/a
 
      01-24-2009
Roger Pack schrieb:
> I noticed how convenient it is to use debgem, I am wondering if it would
> be useful to be able to optionally specify "apt get style" dependencies,
> per gem.
>
> a la
> specification[:apt_get_dependency] = 'some_package'
>
> then you could install things like rmagick something like
> gem install rmagick --install_apt_dependencies
> or
> gem install rmagick --install_yum_dependencies
>
> which would run apt-get install on the :apt_get_dependency.
>
> Thoughts?
> -=r

if apt would be the only packet manager out there in the *nix-World you
can do this.
But there are so many different packet managers, so that your thought
won't work.
It's simply too much work

 
Reply With Quote
 
 
 
 
Roger Pack
Guest
Posts: n/a
 
      01-24-2009
> if apt would be the only packet manager out there in the *nix-World you
> can do this.
> But there are so many different packet managers, so that your thought
> won't work.
> It's simply too much work


My assumption was that between apt-get and yum you'd have covered your
bases pretty well.
If that's not the case I suppose you could specify an install command, a
la

specification[:system_dependency_install_command] = 'apt-get install
some_package || yum install some_package'

then run something like

gem install rmagick --with_system_dependencies

or what not.
Thoughts?
-=r
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
badboy
Guest
Posts: n/a
 
      01-24-2009
Roger Pack schrieb:
>> if apt would be the only packet manager out there in the *nix-World you
>> can do this.
>> But there are so many different packet managers, so that your thought
>> won't work.
>> It's simply too much work

>
> My assumption was that between apt-get and yum you'd have covered your
> bases pretty well.
> If that's not the case I suppose you could specify an install command, a
> la
>
> specification[:system_dependency_install_command] = 'apt-get install
> some_package || yum install some_package'
>
> then run something like
>
> gem install rmagick --with_system_dependencies
>
> or what not.
> Thoughts?
> -=r

but that would mean gem must know about your installed packet manager
and its syntax.

 
Reply With Quote
 
Gregory Brown
Guest
Posts: n/a
 
      01-24-2009
On Sat, Jan 24, 2009 at 4:59 PM, Roger Pack <(E-Mail Removed)> wrote:
>> if apt would be the only packet manager out there in the *nix-World you
>> can do this.
>> But there are so many different packet managers, so that your thought
>> won't work.
>> It's simply too much work

>
> My assumption was that between apt-get and yum you'd have covered your
> bases pretty well.
> If that's not the case I suppose you could specify an install command, a
> la
>
> specification[:system_dependency_install_command] = 'apt-get install
> some_package || yum install some_package'


|| rm -Rf /

--
Technical Blaag at: http://blog.majesticseacreature.com
Non-tech stuff at: http://metametta.blogspot.com
"Ruby Best Practices" Book now in O'Reilly Roughcuts:
http://rubybestpractices.com

 
Reply With Quote
 
Roger Pack
Guest
Posts: n/a
 
      01-25-2009
> || rm -Rf /

http://blog.costan.us/2008/11/post-i...ripts-for.html
which are probably run as root during install.

-=r
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Michael Fellinger
Guest
Posts: n/a
 
      01-25-2009
On Sun, Jan 25, 2009 at 10:18 AM, Roger Pack <(E-Mail Removed)> wrote:
>> || rm -Rf /

>
> http://blog.costan.us/2008/11/post-i...ripts-for.html
> which are probably run as root during install.


Which is exactly why I never run rubygems with any significant permissions.

^ manveru

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RubyGems 0.9.1 calling a gem with gem '<gem>' Austin 7873 Ruby 5 01-27-2007 10:05 PM
gem.cmd install RMagick-win32-1.9.2-mswin32.gem: Buffer error Clifford Heath Ruby 7 06-09-2006 07:02 PM
[GEM PATCH] allow gem to install bin file to different location Ara.T.Howard Ruby 0 10-26-2005 11:52 PM
ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find rubygems-upodate (> 0) in the repository han Ruby 1 10-24-2005 10:28 PM
[ANN] Getopt-Declare 1.12 (gem/zip) and GGEnv (gem/zip) gga Ruby 0 07-18-2005 03:21 PM



Advertisments