-
-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from yasslab/codespaces_adjustment
Webテキストに合わせて 7.0 を Codespaces に対応させました
- Loading branch information
Showing
525 changed files
with
9,850 additions
and
3,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// Specifications: https://containers.dev/implementors/json_reference/ | ||
// Format details: https://aka.ms/devcontainer.json | ||
// Config options: https://github.com/microsoft/vscode-dev-containers/tree/main/containers/ruby | ||
{ | ||
"name": "railstutorial", | ||
|
||
// Universal is well-customized image for Codespaces: | ||
// https://hub.docker.com/_/microsoft-devcontainers-universal | ||
//"image": "mcr.microsoft.com/devcontainers/universal:2", | ||
//"features": { | ||
// "ghcr.io/devcontainers/features/ruby:1": {} | ||
//}, | ||
|
||
// Use Ruby image if you want to pin Ruby version like '3.2' | ||
// https://github.com/devcontainers/images/tree/main/src/ruby | ||
"image": "mcr.microsoft.com/devcontainers/ruby:3.2", | ||
//"workspaceFolder": "/railstutorial", => Container build failed | ||
|
||
// Enable learners to choose an affordable spec, starting at minimum one. | ||
//"hostRequirements": { | ||
// "cpus": 2, | ||
// "memory": "4gb", | ||
// "storage": "32gb" | ||
//}, | ||
|
||
"waitFor": "onCreateCommand", | ||
"onCreateCommand": "gem install solargraph -v '0.50.0' -N", | ||
//"onCreateCommand": "", | ||
//# => Solargraph gem not found. Run `gem install solargraph` or update your Gemfile. | ||
"updateContentCommand": "bundle install", | ||
"postCreateCommand": "", | ||
"postAttachCommand": { | ||
"server": "rails server" | ||
}, | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": [ | ||
"app/views/hello/index.html.erb" | ||
] | ||
}, | ||
"vscode": { | ||
"extensions": [ | ||
"GitHub.codespaces", | ||
"Shopify.ruby-lsp", // https://github.com/Shopify/vscode-ruby-lsp | ||
"castwide.solargraph" // https://github.com/castwide/vscode-solargraph | ||
], | ||
"settings": { | ||
// Use Ctrl+Shift+P->Format to format. | ||
//"ruby.useLanguageServer": true , | ||
//"ruby.format": "rubocop", | ||
//"ruby.lint": { "rubocop": true }, | ||
//"ruby.intellisense": "rubyLocate", | ||
"editor.tabSize": 2, | ||
"editor.renderWhitespace": false, | ||
"files.associations": { "*.erb": "erb" }, | ||
"emmet.includeLanguages": { "erb": "html" }, | ||
|
||
// Settings for Solargraph | ||
"solargraph.useBundler": false, | ||
"solargraph.diagnostics": false, | ||
"solargraph.formatting": true, | ||
"solargraph.autoformat": false, | ||
"solargraph.definitions": true, | ||
"solargraph.completion": true, | ||
"solargraph.references": true, | ||
"solargraph.symbols": true, | ||
"solargraph.rename": true, | ||
"solargraph.hover": true | ||
} | ||
} | ||
}, | ||
"remoteEnv": { | ||
"EDITOR": "code --wait" | ||
}, | ||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
"forwardPorts": [3000] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# See https://git-scm.com/docs/gitattributes for more about git attribute files. | ||
|
||
# Mark the database schema as having been generated. | ||
db/schema.rb linguist-generated | ||
|
||
# Mark any vendored files as having been vendored. | ||
vendor/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
IRB.conf[:COMPLETOR] = :type # default is :regexp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1.2 | ||
3.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
include: | ||
- "**/*.rb" | ||
exclude: | ||
- spec/**/* | ||
- test/**/* | ||
- vendor/**/* | ||
- ".bundle/**/*" | ||
require: | ||
- actioncable | ||
- actionmailer | ||
- actionpack | ||
- actionview | ||
- activejob | ||
- activemodel | ||
- activerecord | ||
- activestorage | ||
- activesupport | ||
domains: [] | ||
reporters: | ||
- rubocop | ||
- require_not_found | ||
- typecheck | ||
formatter: | ||
rubocop: | ||
cops: safe | ||
except: [] | ||
only: [] | ||
extra_args: [] | ||
require_paths: [] | ||
plugins: [] | ||
max_files: 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
source "https://rubygems.org" | ||
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | ||
|
||
gem "rails", "7.0.4" | ||
ruby "3.2.2" | ||
|
||
gem "rails", "7.0.4.3" | ||
gem "sassc-rails", "2.1.2" | ||
gem "sprockets-rails", "3.4.2" | ||
gem "importmap-rails", "1.1.0" | ||
gem "turbo-rails", "1.1.1" | ||
gem "stimulus-rails", "1.0.4" | ||
gem "importmap-rails", "1.1.5" | ||
gem "turbo-rails", "1.4.0" | ||
gem "stimulus-rails", "1.2.1" | ||
gem "jbuilder", "2.11.5" | ||
gem "puma", "5.6.4" | ||
gem "bootsnap", "1.12.0", require: false | ||
gem "sqlite3", "1.4.2" | ||
gem "puma", "5.6.8" | ||
gem "bootsnap", "1.16.0", require: false | ||
gem "sqlite3", "1.6.1" | ||
|
||
group :development, :test do | ||
gem "debug", "1.5.0", platforms: %i[ mri mingw x64_mingw ] | ||
gem "debug", "1.7.1", platforms: %i[ mri mingw x64_mingw ] | ||
end | ||
|
||
group :development do | ||
gem "web-console", "4.2.0" | ||
gem "web-console", "4.2.0" | ||
gem "solargraph", "0.50.0" | ||
gem "irb", "1.10.0" | ||
gem "repl_type_completor", "0.1.2" | ||
end | ||
|
||
group :test do | ||
gem "capybara", "3.37.1" | ||
gem "selenium-webdriver", "4.2.0" | ||
gem "webdrivers", "5.0.0" | ||
gem "capybara", "3.38.0" | ||
gem "selenium-webdriver", "4.8.3" | ||
gem "webdrivers", "5.2.0" | ||
gem "rails-controller-testing", "1.0.5" | ||
gem "minitest", "5.18.0" | ||
gem "minitest-reporters", "1.6.0" | ||
gem "guard", "2.18.0" | ||
gem "guard-minitest", "2.4.6" | ||
end | ||
|
||
# Windows ではタイムゾーン情報用の tzinfo-data gem を含める必要があります | ||
# gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] | ||
#gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] |
Oops, something went wrong.