Avoid dependency from a gem on the commandline

Hi

Right now gem will refuse to install a program if a dependency is not
met.

Is there a way to ignore that and still attempt an installation?

Specifically this is a gem that I myself wrote anyway and I now that the
project will still work partially, yet I can't seem to get gem to try to
download anyway. I need like an option 'still attempt to install it'.

···

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

Have you tried this (from 'gem help install'):

    -f, --[no-]force Force gem to install, bypassing dependency
                                     checks

Jesus.

···

On Tue, Feb 11, 2014 at 10:40 AM, Marc Heiler <lists@ruby-forum.com> wrote:

Hi

Right now gem will refuse to install a program if a dependency is not
met.

Is there a way to ignore that and still attempt an installation?

Specifically this is a gem that I myself wrote anyway and I now that the
project will still work partially, yet I can't seem to get gem to try to
download anyway. I need like an option 'still attempt to install it'.

--
Posted via http://www.ruby-forum.com/\.

Thanks! That seems to work.

···

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

Hmm... while installing works, running actually fails.

require 'diamond_shell'

"Gem::LoadError: Could not find chemistry (>= 1.0.0) amongst "

This is a problem. I know that chemistry is not mandatory at all, yet it
seems as if gem will try to always ensure that it is available. And if
it is not available, it will refuse to run.

At home on my linux machine it works just fine for me. I don't use gem
directly though, I use setup.rb.

I am here on a windows machine right now and it is bad that gem refuses
to continue ... I wrote the project myself, I know that chemistry is not
mandatory for all components.

Unfortunately I also can not modify rubygems or ruby on that windows
machine here, so I guess I am stuck. :frowning:

···

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

I'm not really a fan of this behavior, either, but it is what it is.

I don't think you need to modify rubygems or ruby, just modify the gem itself and remove the 'chemistry' dependency.

-Justin

···

On 02/11/2014 04:08 AM, Marc Heiler wrote:

Hmm... while installing works, running actually fails.

require 'diamond_shell'

"Gem::LoadError: Could not find chemistry (>= 1.0.0) amongst"

This is a problem. I know that chemistry is not mandatory at all, yet it
seems as if gem will try to always ensure that it is available. And if
it is not available, it will refuse to run.

At home on my linux machine it works just fine for me. I don't use gem
directly though, I use setup.rb.

I am here on a windows machine right now and it is bad that gem refuses
to continue ... I wrote the project myself, I know that chemistry is not
mandatory for all components.

Unfortunately I also can not modify rubygems or ruby on that windows
machine here, so I guess I am stuck. :frowning: