# RubyGems issues

**URL:** <https://rubytalk.org/t/rubygems-issues/25330>\
**Category:** ruby-talk\
**Created:** [1 March 2006 17:08 UTC](https://rubytalk.org/t/rubygems-issues/25330 "2006-03-01T17:08:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Atkins2](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bill\_Atkins2](https://rubytalk.org/u/Bill_Atkins2)\
**Post date:** [1 March 2006 17:08 UTC](https://rubytalk.org/t/rubygems-issues/25330/1 "2006-03-01T17:08:37Z")

</div>

Here are some issues I've noticed with RubyGems' user interface:

&nbsp;&nbsp;&nbsp;- Why do I have to confirm each \_required\_ dependency? What chance  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is there of leaving off a required dependency and still having a  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;functioning install?

&nbsp;&nbsp;&nbsp;- Why does each confirmation happen individually? It would make  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sense to confirm or reject \_all\_ required dependencies and thus  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;abort the install, but I can't see any reason for the current way  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of doing things. At the very least, why can't it find all the  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dependencies for the current package so that I can hit 'Y'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repeatedly, instead of waiting a second or two for it to find the  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next dependency?

&nbsp;&nbsp;&nbsp;- Why do i have to specify -r on the command line to build  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remotely? I understand that local gem installations are possible  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(and maybe even common), but wouldn't it make sense for gem to  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;assume that "gem install rails" is a remote install and "gem  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;install rails.gem" is a local install? In this case it wouldn't  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;have to bother with this "attempting local installation"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;business.

&nbsp;&nbsp;&nbsp;- Why on earth, on earth, on earth is the package's documentation  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;built locally? It is by far the lengthiest part of the install,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and I can see no good reason why this couldn't be done at gem  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;build-time. Am I missing something here? How could the  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentation differ from one machine to the next such that this  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;approach would make sense?

&nbsp;&nbsp;&nbsp;- When there are warnings in the documentation building, why do  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;these appear last, making it seem that there were problems in  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;installing the gem itself?

&nbsp;&nbsp;&nbsp;- Why so little output while installing? Can't i at least pass a  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-v flag to get a better indication of what's actually happening?  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It would certainly make gem installs seem more responsive.

I don't use gems that often, but whenever I do, I remember these  
problems and get deeply frustrated. If gems is going to be included  
in the next Ruby release, it can't hurt to at least have some of these  
issues considered and either fixed or debunked.

- a crotchety old RPA-user

---

<div class="post-metadata">

**Author:** ![Gregory\_Seidman](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Gregory\_Seidman](https://rubytalk.org/u/Gregory_Seidman)\
**Post date:** [1 March 2006 17:20 UTC](https://rubytalk.org/t/rubygems-issues/25330/2 "2006-03-01T17:20:42Z")

</div>

}  
} Here are some issues I've noticed with RubyGems' user interface:  
}  
} - Why do I have to confirm each \_required\_ dependency? What chance  
} is there of leaving off a required dependency and still having a  
} functioning install?

That is a bit weird.

} - Why does each confirmation happen individually? It would make  
} sense to confirm or reject \_all\_ required dependencies and thus  
} abort the install, but I can't see any reason for the current way  
} of doing things. At the very least, why can't it find all the  
} dependencies for the current package so that I can hit 'Y'  
} repeatedly, instead of waiting a second or two for it to find the  
} next dependency?

There's a flag you can give that will just automatically install all the  
dependencies.

} - Why do i have to specify -r on the command line to build  
} remotely? I understand that local gem installations are possible  
} (and maybe even common), but wouldn't it make sense for gem to  
} assume that "gem install rails" is a remote install and "gem  
} install rails.gem" is a local install? In this case it wouldn't  
} have to bother with this "attempting local installation"  
} business.

If you don't specify the -r then it searches locally first, but it will  
install from remote if it doesn't find it.

} - Why on earth, on earth, on earth is the package's documentation  
} built locally? It is by far the lengthiest part of the install,  
} and I can see no good reason why this couldn't be done at gem  
} build-time. Am I missing something here? How could the  
} documentation differ from one machine to the next such that this  
} approach would make sense?

The documentation need not be part of the bandwidth required if it can be  
generated locally. In general, bandwidth is more precious than CPU time.  
Also, you don't have to have the docs generated at all, which saves time  
and disk space.

} - When there are warnings in the documentation building, why do  
} these appear last, making it seem that there were problems in  
} installing the gem itself?  
}  
} - Why so little output while installing? Can't i at least pass a  
} -v flag to get a better indication of what's actually happening?  
} It would certainly make gem installs seem more responsive.

These are real issues.

} I don't use gems that often, but whenever I do, I remember these  
} problems and get deeply frustrated. If gems is going to be included  
} in the next Ruby release, it can't hurt to at least have some of these  
} issues considered and either fixed or debunked.

Eh, that's nothing. I wound up writing a shell script over 100 lines long  
to get it to install itself and all subsequent gems in /usr/local. I'd  
really like that to be fixed.

} - a crotchety old RPA-user  
--Greg

> **···**
>
> On Thu, Mar 02, 2006 at 02:08:37AM +0900, Bill Atkins wrote:

---

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [1 March 2006 19:13 UTC](https://rubytalk.org/t/rubygems-issues/25330/3 "2006-03-01T19:13:46Z")

</div>

Bill Atkins wrote:

> Here are some issues I've noticed with RubyGems' user interface:
> 
> &nbsp;&nbsp;&nbsp;- Why do I have to confirm each \_required\_ dependency? What chance  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is there of leaving off a required dependency and still having a  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;functioning install?

Quite good if you've installed some software as non-gems. That being  
said, it is probably an edge case and you make a good point.

> &nbsp;&nbsp;&nbsp;- Why does each confirmation happen individually? It would make  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sense to confirm or reject \_all\_ required dependencies and thus  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;abort the install, but I can't see any reason for the current way  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of doing things. At the very least, why can't it find all the  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dependencies for the current package so that I can hit 'Y'  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repeatedly, instead of waiting a second or two for it to find the  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next dependency?

Good point.

> &nbsp;&nbsp;&nbsp;- Why do i have to specify -r on the command line to build  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remotely? I understand that local gem installations are possible  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(and maybe even common), but wouldn't it make sense for gem to  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;assume that "gem install rails" is a remote install and "gem  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;install rails.gem" is a local install? In this case it wouldn't  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;have to bother with this "attempting local installation"  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;business.

The -r is not required for remote installs, its just that it checks  
locally now.

However, there are plans to unify the specification of gems so that the  
local/remote, version-requirements, and platform and all be specified in  
a URL like manner (rather than as options on the command line).

And I agree, the announcement that it couldn't find a local gem is  
annoying, since the trend is that most installs are remote.

> &nbsp;&nbsp;&nbsp;- Why on earth, on earth, on earth is the package's documentation  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;built locally? It is by far the lengthiest part of the install,  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and I can see no good reason why this couldn't be done at gem  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;build-time. Am I missing something here? How could the  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentation differ from one machine to the next such that this  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;approach would make sense?

(1) Bandwidth as someone else has mentioned, (2) the ability to apply  
different RDoc templates (my local docs all use the same template, no  
matter what the software author used). And you don't need to build the  
rdocs if you don't want to.

> &nbsp;&nbsp;&nbsp;- When there are warnings in the documentation building, why do  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;these appear last, making it seem that there were problems in  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;installing the gem itself?

Agreed, confusing. The whole local/remote unification thing will  
probably address this.

> &nbsp;&nbsp;&nbsp;- Why so little output while installing? Can't i at least pass a  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-v flag to get a better indication of what's actually happening?  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It would certainly make gem installs seem more responsive.

Better feedback during install, gotcha! Agreed.

-- Jim Weirich

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Bill\_Atkins2](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bill\_Atkins2](https://rubytalk.org/u/Bill_Atkins2)\
**Post date:** [1 March 2006 19:33 UTC](https://rubytalk.org/t/rubygems-issues/25330/4 "2006-03-01T19:33:38Z")

</div>

Jim Weirich \<jim@weirichhouse.org\> writes:

> Bill Atkins wrote:
> 
> > Here are some issues I've noticed with RubyGems' user interface:
> > 
> > &nbsp;&nbsp;&nbsp;- Why do I have to confirm each \_required\_ dependency? What chance  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is there of leaving off a required dependency and still having a  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;functioning install?
> 
> Quite good if you've installed some software as non-gems. That being  
> said, it is probably an edge case and you make a good point.

Maybe there could be a distinction between required dependencies and  
suggested packages, i.e. dependencies would be absolutely necessary  
for a gem to function but suggested packages can be installed or not,  
at the user's discretion, without affecting the package's basic  
functionality; suggested packages woudl then be treated as  
"required dependencies" currently are.

> > &nbsp;&nbsp;&nbsp;- Why does each confirmation happen individually? It would make  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sense to confirm or reject \_all\_ required dependencies and thus  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;abort the install, but I can't see any reason for the current way  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of doing things. At the very least, why can't it find all the  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dependencies for the current package so that I can hit 'Y'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repeatedly, instead of waiting a second or two for it to find the  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next dependency?
> 
> Good point.
> 
> > &nbsp;&nbsp;&nbsp;- Why do i have to specify -r on the command line to build  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remotely? I understand that local gem installations are possible  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(and maybe even common), but wouldn't it make sense for gem to  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;assume that "gem install rails" is a remote install and "gem  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;install rails.gem" is a local install? In this case it wouldn't  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;have to bother with this "attempting local installation"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;business.
> 
> The -r is not required for remote installs, its just that it checks  
> locally now.
> 
> However, there are plans to unify the specification of gems so that the  
> local/remote, version-requirements, and platform and all be specified in  
> a URL like manner (rather than as options on the command line).
> 
> And I agree, the announcement that it couldn't find a local gem is  
> annoying, since the trend is that most installs are remote.
> 
> > &nbsp;&nbsp;&nbsp;- Why on earth, on earth, on earth is the package's documentation  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;built locally? It is by far the lengthiest part of the install,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and I can see no good reason why this couldn't be done at gem  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;build-time. Am I missing something here? How could the  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentation differ from one machine to the next such that this  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;approach would make sense?
> 
> (1) Bandwidth as someone else has mentioned, (2) the ability to apply  
> different RDoc templates (my local docs all use the same template, no  
> matter what the software author used). And you don't need to build the  
> rdocs if you don't want to.

Bandwidth usage is a good point that didn't even occur to me. Is it  
reasonable, then, to require user confirmation before installing docs,  
and maybe pointing out that it could take a while? I generally use  
online documentation for libraries anyway, even if the documentation  
happens to be installed somewhere on my hard drive. I'm not sure if  
this is a common way of doing things. In any case, I'll use the  
--no-rdoc flag in the future.

> > &nbsp;&nbsp;&nbsp;- When there are warnings in the documentation building, why do  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;these appear last, making it seem that there were problems in  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;installing the gem itself?
> 
> Agreed, confusing. The whole local/remote unification thing will  
> probably address this.
> 
> > &nbsp;&nbsp;&nbsp;- Why so little output while installing? Can't i at least pass a  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-v flag to get a better indication of what's actually happening?  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It would certainly make gem installs seem more responsive.
> 
> Better feedback during install, gotcha! Agreed.
> 
> -- Jim Weirich

Thanks for responding!

> **···**
>
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![James\_Edward\_Gray\_II](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@James\_Edward\_Gray\_II](https://rubytalk.org/u/James_Edward_Gray_II)\
**Post date:** [1 March 2006 19:39 UTC](https://rubytalk.org/t/rubygems-issues/25330/5 "2006-03-01T19:39:03Z")

</div>

I would love this feature. HighLine prefers termios, but it has a fallback hand-rolled input method it will default to. Unfortunately, I can't make termios a requirement because of Windows.

It would also be cool for projects that prefer FasterCSV, but that will settle for CSV.

James Edward Gray II

> **···**
>
> On Mar 1, 2006, at 1:33 PM, Bill Atkins wrote:
> 
> > Jim Weirich \<jim@weirichhouse.org\> writes:
> > 
> > > Bill Atkins wrote:
> > > 
> > > > Here are some issues I've noticed with RubyGems' user interface:
> > > > 
> > > > &nbsp;&nbsp;&nbsp;- Why do I have to confirm each \_required\_ dependency? What chance  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is there of leaving off a required dependency and still having a  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;functioning install?
> > > 
> > > Quite good if you've installed some software as non-gems. That being  
> > > said, it is probably an edge case and you make a good point.
> > 
> > Maybe there could be a distinction between required dependencies and  
> > suggested packages, i.e. dependencies would be absolutely necessary  
> > for a gem to function but suggested packages can be installed or not,  
> > at the user's discretion, without affecting the package's basic  
> > functionality; suggested packages woudl then be treated as  
> > "required dependencies" currently are.
