# Gem built with 0.9.5 cannot be installed with 0.9.4

**URL:** <https://www.ruby-forum.com/t/gem-built-with-0-9-5-cannot-be-installed-with-0-9-4/122677>\
**Category:** Ruby\
**Created:** [December 10, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/gem-built-with-0-9-5-cannot-be-installed-with-0-9-4/122677 "2007-12-10T16:16:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [December 10, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/gem-built-with-0-9-5-cannot-be-installed-with-0-9-4/122677/1 "2007-12-10T16:16:35Z")

</div>

Has anybody released a gem built with rubygems 0.9.5? I built the  
latest version of deep\_test with 0.9.5, but it seems like it cannot be  
installed with 0.9.4 clients. It shows up in the gem list without a  
platform (version 1.0.3):

Select which gem to install for your platform (i686-darwin9.0.0)

1. deep\_test 1.0.4 (ruby)
2. deep\_test 1.0.3 ()
3. deep\_test 1.0.2 (ruby)
4. deep\_test 1.0.1 (ruby)
5. Skip this gem
6. Cancel installation

> 2  
> ERROR: While executing gem … (OpenURI::HTTPError)  
> 404 Not Found

It’s then looking to download the gem with an extra hyphen at the end:  
“[RubyGems.org | your community gem host](http://gems.rubyforge.org/gems/deep_test-1.0.3-.gem)”

I submitted a defect, but wanted to know if anybody else ran into  
this.  
[http://rubyforge.org/tracker/index.php?func=detail&aid=16177&group\_id=126&atid=575](http://rubyforge.org/tracker/index.php?func=detail&aid=16177&group_id=126&atid=575)

The gemspec I used is here:  
[http://deep-test.rubyforge.org/svn/trunk/Rakefile](http://deep-test.rubyforge.org/svn/trunk/Rakefile)

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [December 11, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/gem-built-with-0-9-5-cannot-be-installed-with-0-9-4/122677/2 "2007-12-11T15:44:04Z")

</div>

Dan,

One of the features of 0.9.5 is that, “A gem can depend on a specific  
RubyGems version”. I’m not sure what makes it exclusive to that  
version.

Here is where I quoted from:  
[http://blog.segment7.net/articles/2007/11/19/rubygems-0-9-5](http://blog.segment7.net/articles/2007/11/19/rubygems-0-9-5)

Bill

Dan M. wrote:

> Has anybody released a gem built with rubygems 0.9.5? I built the  
> latest version of deep\_test with 0.9.5, but it seems like it cannot be  
> installed with 0.9.4 clients. It shows up in the gem list without a  
> platform (version 1.0.3):
> 
> Select which gem to install for your platform (i686-darwin9.0.0)
> 
> 1. deep\_test 1.0.4 (ruby)
> 2. deep\_test 1.0.3 ()
> 3. deep\_test 1.0.2 (ruby)
> 4. deep\_test 1.0.1 (ruby)
> 5. Skip this gem
> 6. Cancel installation
> 
> > 2  
> > ERROR: While executing gem … (OpenURI::HTTPError)  
> > 404 Not Found
> 
> It’s then looking to download the gem with an extra hyphen at the end:  
> “[RubyGems.org | your community gem host](http://gems.rubyforge.org/gems/deep_test-1.0.3-.gem)”
> 
> I submitted a defect, but wanted to know if anybody else ran into  
> this.  
> [http://rubyforge.org/tracker/index.php?func=detail&aid=16177&group\_id=126&atid=575](http://rubyforge.org/tracker/index.php?func=detail&aid=16177&group_id=126&atid=575)
> 
> The gemspec I used is here:  
> [http://deep-test.rubyforge.org/svn/trunk/Rakefile](http://deep-test.rubyforge.org/svn/trunk/Rakefile)
> 
> Thanks,  
> Dan

---

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [December 12, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/gem-built-with-0-9-5-cannot-be-installed-with-0-9-4/122677/3 "2007-12-12T19:10:17Z")

</div>

To follow up, adding this line to the gem spec fixes the problem:  
s.platform = Gem::Platform::RUBY

I noticed a couple other gems have been affected by this:  
“addressable-1.0.1.gem”  
“gchart-0.1.0.gem”

Dan
