Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我可以在Ruby 1.9中使用Boostrap Sass吗?_Ruby_Ruby On Rails 4 - Fatal编程技术网

我可以在Ruby 1.9中使用Boostrap Sass吗?

我可以在Ruby 1.9中使用Boostrap Sass吗?,ruby,ruby-on-rails-4,Ruby,Ruby On Rails 4,引导Sass gem本身将与Ruby 1.9一起使用,但它的一个依赖项是Autoprefixer rails,它需要Ruby 2.0。有什么办法可以解决这个问题吗?在某一点上,引导Sass gem与Ruby 1.9一起工作,包括依赖项,所以我们至少可以回到那个版本 深入研究引导Sass依赖项,当前的gem似乎只需要autoprefixer 5.x # from bootstrap-sass gemspec s.add_runtime_dependency 'autoprefixer-rails'

引导Sass gem本身将与Ruby 1.9一起使用,但它的一个依赖项是Autoprefixer rails,它需要Ruby 2.0。有什么办法可以解决这个问题吗?

在某一点上,引导Sass gem与Ruby 1.9一起工作,包括依赖项,所以我们至少可以回到那个版本

深入研究引导Sass依赖项,当前的gem似乎只需要autoprefixer 5.x

# from bootstrap-sass gemspec
s.add_runtime_dependency 'autoprefixer-rails', '>= 5.2.1'
事实证明,autoprefixer已在上一次迁移到Ruby 2.0

因此,看起来您需要做的就是在GEM文件中为autoprefixer rails设置一个版本间隔

# gemfile
gem 'autoprefixer-rails', ">= 5.2.1", "< 6.1"
gem 'bootstrap-sass', '>= 3.3.6'
#文件
gem'autoprefixer rails',“>=5.2.1”,“<6.1”
gem'bootstrap sass','>=3.3.6'