tag:help.rubygems.org,2010-01-19:/discussions/problems/838-ordering-of-gems-in-profileRubyGems.org: Discussion 2012-02-29T19:27:54Ztag:help.rubygems.org,2010-01-19:Comment/129716222012-01-23T07:07:18Z2012-01-23T07:07:19ZOrdering of gems in profile<div><p>Any help? I am getting this problem for example on <a href=
"https://rubygems.org/profiles/toy_toy">my profile page</a>.</p></div>toy_toytag:help.rubygems.org,2010-01-19:Comment/129716222012-02-18T21:55:35Z2012-02-18T21:55:35ZOrdering of gems in profile<div><p>Anyone? It is frustrating, no answer for already on month!</p></div>toy_toytag:help.rubygems.org,2010-01-19:Comment/129716222012-02-21T01:00:02Z2012-02-21T01:00:02ZOrdering of gems in profile<div><p>They appear to be ordered by total downloads and are correct
when I look at the page. What are you seeing?</p></div>Evan Phoenixtag:help.rubygems.org,2010-01-19:Comment/129716222012-02-21T01:31:32Z2012-02-21T01:31:32ZOrdering of gems in profile<div><p>First 5:</p>
<pre>
<code>progress 2.4.0 15,312 downloads
sdoc_all 1.3.3 9,198 downloads
image_size 1.0.6 10,684 downloads
random_text 1.1.0 6,846 downloads
fspath 2.0.3 7,214 downloads</code>
</pre>
<p>It seems that ordering just frozen some time ago.</p></div>toy_toytag:help.rubygems.org,2010-01-19:Comment/129716222012-02-29T19:21:49Z2012-02-29T19:21:49ZOrdering of gems in profile<div><p>Anyone alive?</p></div>toy_toytag:help.rubygems.org,2010-01-19:Comment/129716222012-02-29T19:27:54Z2012-02-29T19:27:54ZOrdering of gems in profile<div><p>toy_toy:</p>
<p>RubyGems.org and help.rubygems.org are provided by a few users
to support the community.</p>
<p>It is not financially backed by any company and contributions
are welcome.</p>
<p>Seems you spotted a bug, oh dear.</p>
<p>Here is the repository with instructions to clone and build
locally:</p>
<p><a href=
"https://github.com/rubygems/rubygems.org">https://github.com/rubygems/rubygems.org</a></p>
<p>Here is the controller:</p>
<p><a href=
"https://github.com/rubygems/rubygems.org/blob/master/app/controllers/profiles_controller.rb">
https://github.com/rubygems/rubygems.org/blob/master/app/controller...</a></p>
<p>And here is the method that seems is not doing the right
thing:</p>
<p><a href=
"https://github.com/rubygems/rubygems.org/blob/master/app/models/user.rb#L93-97">
https://github.com/rubygems/rubygems.org/blob/master/app/models/use...</a></p>
<p>Which is using by_downloads scope:</p>
<p><a href=
"https://github.com/rubygems/rubygems.org/blob/master/app/models/rubygem.rb#L81-83">
https://github.com/rubygems/rubygems.org/blob/master/app/models/rub...</a></p>
<p>Knock yourself out.</p>
<p>Patches are welcome.</p></div>Luis Lavena