mirror of
https://github.com/wahyd4/knowledge.git
synced 2026-08-09 05:06:28 +10:00
Use group in bundler
This commit is contained in:
+29
-1
@@ -1,6 +1,6 @@
|
||||
# Objects inheritances
|
||||
|
||||

|
||||

|
||||
|
||||
# Background jobs
|
||||
- Resque
|
||||
@@ -69,6 +69,34 @@
|
||||
- Major GC
|
||||
- GC.stat
|
||||
|
||||
# Bundler
|
||||
|
||||
## Use group in bundler
|
||||
|
||||
```ruby
|
||||
# These gems are in the :default group
|
||||
gem 'nokogiri'
|
||||
gem 'sinatra'
|
||||
|
||||
gem 'wirble', :group => :development
|
||||
|
||||
group :test do
|
||||
gem 'faker'
|
||||
gem 'rspec'
|
||||
end
|
||||
|
||||
group :test, :development do
|
||||
gem 'capybara'
|
||||
gem 'rspec-rails'
|
||||
end
|
||||
|
||||
gem 'cucumber', :group => [:cucumber, :test]
|
||||
```
|
||||
when you install bundles, you can do
|
||||
|
||||
```bash
|
||||
bundle install --without test development
|
||||
```
|
||||
# Web frameworks
|
||||
## Sintra
|
||||
|
||||
|
||||
Reference in New Issue
Block a user