1
我已經看到了一些語法,其中瞭解集團在紅寶石的Gemfile
group :development, :test do
gem "rspec-rails", ">= 2.0.0.beta.19"
gem "cucumber-rails", ">= 0.3.2"
gem "webrat", ">= 0.7.2.beta.1"
end
或
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
或
group :production do
# gems...
end
或
group :db do
# gems..
end
與所有寶石一起進行軟件包安裝有問題嗎?爲什麼人們想要拋棄寶石?如果所有東西都安裝在一起,難道不會更容易嗎?