I've just reinstalled linux (9.10) and am trying to match my gem
environment to our server's. I'm having a problem with will_paginate.
On the server, under gem list, i have "mislav-will_paginate (2.3.6)".
So, i'm trying to install that locally. Following the instructions on
the will_paginate page, http://wiki.github.com/mislav/will_paginate,
i've installed it.
But, it shows up on my gem list as simply "will_paginate", and rails
complains because it's expecting mislav-will_paginate.
So, can anyone point me at where i can install mislav-will_paginate, so
that it will actually show up on my gem list as mislav-will_paginate
instead of will_paginate?
I feel like i'm being dumb and missing something obvious here...grateful
for any help.
I already have that line as it happens -
config.gem 'mislav-will_paginate', :version => '~> 2.3.2', :lib =>
'will_paginate', :source => 'http://gems.github.com'
I think the problem is that i don't have the mislav-will_paginate gem, i
have the will_paginate gem. I could modify the above line to point to
will_paginate instead of mislav-will_paginate, but then i'll be out of
sync with the server, which i don't want to do.
gem list mislav-will_paginate --remote
*** REMOTE GEMS ***
mislav-will_paginate (2.3.11)
em list will_paginate --remote
*** REMOTE GEMS ***
will_paginate (2.2.2)
My guess is that you do have mislav-will_paginate installed, since
will_paginate is only up to v2.2.2, but you've got an older version.
Why don't you try:
One more point. You said that you followed the instructions for
install - there are three different paths there and I know for a fact
that the "gem install..." version will give you "mislav-
will_paginate". If, however, you build from a tar (or use git clone)
the gemspec delivered will build a gem named "will_paginate".
I just checked and will_paginate v2.2.2 is being served by
http://gems.rubyforge.org while mislav-will_paginate v2.3.11 is being
served by http://gems.github.com. Conrad's point is good for the
future but right now you should check your .gemrc file (that's
~/.gemrc).
One more point. You said that you followed the instructions for
install - there are three different paths there and I know for a fact
that the "gem install..." version will give you "mislav-
will_paginate". If, however, you build from a tar (or use git clone)
the gemspec delivered will build a gem named "will_paginate".
Rick, i did the "gem install" path: to quote
The will_paginate gem is hosted on Gemcutter. Add it to your gem sources
(once per machine):
It appears that the paginate gem served up from gemcutter is, in fact,
built from the current mislav-will_paginate version2.3.11. The
confusion regarding the name stems from:
1) The gemspec distributed from the git://...mislav/will_paginate site
builds a gem named "will_paginate" not "mislav-will_paginate". There
are other problems (I18n related) with the gemspec as well.
2) The documentation distributed with the gem "mislav-will_paginate"
clearly states that you should remove the old gem named
"will_paginate".
I expect that you would see identical results with either the github
or the gemcutter version of the gem. I'm going to follow Conrad's
direction to gemcutter.
1) The gemspec distributed from the git://...mislav/will_paginate site
builds a gem named "will_paginate" not "mislav-will_paginate". There
are other problems (I18n related) with the gemspec as well.
cool, glad it's not just me that's confused then. I never understood
why the gem was prefixed with mislav- in the first place tbh.
1) The gemspec distributed from the git://...mislav/will_paginate site
builds a gem named "will_paginate" not "mislav-will_paginate". There
are other problems (I18n related) with the gemspec as well.
cool, glad it's not just me that's confused then. I never understood
why the gem was prefixed with mislav- in the first place tbh.
Github prefixed generated gems with username and hyphen.