Why does the pessimistic version constraint (~>) in Ruby not match? -
i'm installing gem , received following error:
error: while executing gem ... (gem::impossibledependencieserror) oauth2-0.9.4 requires multi_json (~> 1.3) conflicted: activated multi_json-1.11.0 instead of (>= 0, ~> 0) via:
my understanding pessimistic version constraint ~>
should match except last digit 1.3
should match 1.11
(and 1.11.0
?) not 2.0
. error message describing?
update: seems 1.11
may conflicting ~> 0
requirement somewhere else mentioned in error. removing ~> 0
or changing ~> 1
works. follow on question, why doesn't ~> 0
match 1.x?
correct ~> 1.3 should match in 1.x series.
gem::impossibledependencieserror
means pretty says. other dependency (whatever prints after via: ) requires different version 1 ~> 1.3
allows.
Comments
Post a Comment