Couldn't find mime-types-2.4.2 in any of the sources

Ruby version is 2.1.3 and rails version is 4.1.6

When I ran the code on my office system with the version package running,

After cloning on my home machine with the same version mentioned above, the bundler doesn't work and it ends up with the following error.

install package

Getting gem metadata from https://rubygems.org/ ..........

Couldn't find mime-types-2.4.2 in any of the sources

+3


source to share


2 answers


Run bundle update mime-types

. They pulled version 2.4.2 for 2.4.3.



As you can see, 2.4.2 is missing here: https://rubygems.org/gems/mime-types

+5


source


As @allaire says, I pulled mime-types 2.4.2 because it broke the supported platform (Ruby 1.9.2). I did this after the release of mime types 2.4.3.

Why? Since the rest-client uses mime types, it supports both mime types 1 and mime types 2 (since mime types 2 does not support Ruby 1.8). Even though I am not testing Ruby 1.9.2 on Travis (for various reasons including availability), I still support Ruby 1.9.2 up to mime types 3. Version identification for other clients >= 1.16, < 3.0

; because of this, anyone using Ruby 1.9.2 needed to be told >= 1.16, < 3.0, != 2.4.2

. RubyGems - supports version limitation as far as I know, !=

and the only way to enforce it is to make 2.4.2 not installable with yank

.



I'm sorry it happened, and in general it shouldn't happen again because I now have a Vagrant VM with Ruby 1.9.2 to be able to run some tests as I can't do it efficiently on Travis.

+3


source







All Articles