我正在使用 compass ruby gem(版本 0.7.11),当我运行时gem spec compass
,部分输出是:
dependencies:
- !ruby/object:Gem::Dependency
name: sass
requirement: !ruby/object:Gem::Requirement
none: false
requirements:
- - ~>
- !ruby/object:Gem::Version
version: '3.1'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
none: false
requirements:
- - ~>
- !ruby/object:Gem::Version
version: '3.1'
当我运行gem install compass -v 0.7.11
它时,它确实安装了正确版本的指南针,但它正在使用 sass 3.2。我认为~>
它将保持在 3.1.x 范围内。有人可以解释发生了什么吗?