1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rails 5.1.6 デフォルトのGemfileを調べる

Posted at

作成時にデフォルトで入っているGemfile

Gemfile
source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
    "https://github.com/#{repo_name}.git"
end

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.6'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '~> 2.13'
  gem 'selenium-webdriver'
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console', '>= 3.3.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

各Gemfileの内容

一般

rails : rails一般
sqlite3 : db管理SQLite3 (local環境で使う herokuではpostgreSQL)
puma : アプリケーションサーバー
sass-rails : css (railsでまとめた表現ができる)
uglifier : JavaScript 改行や空白を削除して軽量化
(#)therubyracer : JavaScript mini_racerのほうが良い???
coffee-rails : CoffeeScriptをRailsで使用 (CofferScripはJavaScriptを簡潔にした言語)
turbolinks : ブラウザのページ移動を高速化 (ページ遷移で変化のあるhtml要素のみを変更する)

jbuilder : 入力データをJSON形式で出力
(#)redis : セッションを保存するときに使用???
bcrypt : BCryptを用いてパスワードを暗号化
(#)capistrano-rails : 複数のサーバーへのデプロイを自動化

group :development, :test

byebug : コードの途中に書けばそこで止まる(byebug unless ~)
capybara : rubyのウェブアプリケーションテスト
selenium-webdriver : 自動でブラウザを動かしテストする

group :development

web-console : ブラウザ上からコンソールを操作するライブラリ

windows用

tzinfo-data : タイムゾーンを扱うライブラリ (windowsではこれを含める必要がある)

参照

https://qiita.com/kkenya/items/e9eba0021b1cf5efca2b

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?