Skip to content

Commit 354bf6a

Browse files
authored
Merge branch 'main' into bp-postgres-db
2 parents ff0859d + bf21954 commit 354bf6a

29 files changed

+485
-339
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Container",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "jelaniwoods/appdev2023-rails-template",
6+
"image": "firstdraft/appdev-rails-template",
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
99
// "features": {},
@@ -34,7 +34,8 @@
3434
"extensions": ["vortizhe.simple-ruby-erb",
3535
"mbessey.vscode-rufo",
3636
"aliariff.vscode-erb-beautify",
37-
"eamodio.gitlens"]
37+
"eamodio.gitlens",
38+
"setobiralo.erb-commenter"]
3839
}
3940
}
4041

.gitpod.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
image: jelaniwoods/appdev2023-rails-template
1+
image: firstdraft/appdev-rails-7-1-template
22

33
tasks:
4-
- env:
5-
DATABASE_URL: "postgresql://gitpod@localhost"
6-
before: |
7-
sudo echo 'export DATABASE_URL="postgresql://gitpod@localhost"' | sudo tee -a ~/.bashrc
8-
sudo cp -r /home/student /home/gitpod && sudo chmod 777 /home/gitpod && chown -R gitpod /home/gitpod
4+
- before: |
5+
sudo cp -r /home/student /home/gitpod
6+
(cd /home/gitpod/student; sudo find . -maxdepth 1 -exec mv {} .. \;)
7+
source ~/.bashrc
8+
sudo chmod 777 /home/gitpod && sudo chown -R gitpod /home/gitpod /home/student
99
export GEM_HOME=/workspace/.rvm
1010
export GEM_PATH=$GEM_HOME:$GEM_PATH
1111
export PATH=/workspace/.rvm/bin:$PATH
@@ -29,3 +29,4 @@ vscode:
2929
- mbessey.vscode-rufo
3030
- aliariff.vscode-erb-beautify
3131
- eamodio.gitlens
32+
- setobiralo.erb-commenter

.rspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
--color
22
--format documentation
3-
--order default
43
--require spec_helper

.vscode/settings.json

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"editor.linkedEditing": true,
99
"editor.minimap.enabled": false,
1010
"editor.smoothScrolling": false,
11-
"editor.wordBasedSuggestionsMode": "allDocuments",
1211
"editor.wordWrap": "on",
1312
"editor.wrappingIndent": "deepIndent",
1413
"workbench.editor.closeOnFileDelete": true,
@@ -20,41 +19,27 @@
2019
"**/.git": true,
2120
".vscode": true,
2221
".bundle": true,
23-
".gitignore": false,
24-
".gitpod.yml": false,
25-
".rspec": false,
26-
".devcontainer/": false,
27-
"config.ru": false,
28-
"Dockerfile": false,
29-
"Gemfile": false,
30-
"Gemfile.lock": false,
31-
"tmp/": false,
32-
"install-packages": false,
33-
"main.rb": false,
34-
"README.md": false,
35-
"app.rb": false,
36-
"environment.rb": false,
37-
"bin/": false,
38-
"spec/": false,
39-
"examples.txt": false,
40-
"config/": false
4122
},
4223
"files.insertFinalNewline": true,
4324
"files.trimFinalNewlines": true,
44-
"screencastMode.onlyKeyboardShortcuts": true,
25+
"screencastMode.keyboardOptions": {
26+
"showKeys": false,
27+
"showKeybindings": true,
28+
"showCommands": false,
29+
"showCommandGroups": false,
30+
"showSingleEditorCursorMoves": true
31+
},
4532
"screencastMode.verticalOffset": 10,
4633
"explorer.compactFolders": false,
4734
"explorer.incrementalNaming": "smart",
48-
"html.format.endWithNewline": true,
4935
"html.format.preserveNewLines": true,
5036
"html.format.templating": true,
5137
"terminal.integrated.altClickMovesCursor": true,
38+
"terminal.integrated.defaultProfile.linux": "bash",
5239
"vscode-erb-beautify.keepBlankLines": 1,
53-
"ruby.intellisense": false,
5440
"gitpod.openInStable.neverPrompt": true,
5541
"gitlens.showWelcomeOnInstall": false,
5642
"gitlens.currentLine.enabled": false,
57-
"redhat.telemetry.enabled": false,
5843
"emmet.includeLanguages": {
5944
"erb": "html"
6045
},
@@ -64,7 +49,8 @@
6449
},
6550
"[erb]": {
6651
"editor.defaultFormatter": "aliariff.vscode-erb-beautify",
67-
"editor.formatOnSave": false
52+
"editor.formatOnSave": false,
53+
"editor.autoClosingBrackets": "beforeWhitespace"
6854
},
6955
"files.associations": {
7056
"*.html.erb": "erb"

Gemfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
44
ruby "3.2.1"
55

66
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
7-
gem "rails", "~> 7.0.4", ">= 7.0.4.3"
7+
gem "rails", "~> 7.1.3", ">= 7.1.3.2"
88

99
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
1010
gem "sprockets-rails"
@@ -13,7 +13,7 @@ gem "sprockets-rails"
1313
gem "pg", "~> 1.1"
1414

1515
# Use the Puma web server [https://github.com/puma/puma]
16-
gem "puma", "~> 5.0"
16+
gem "puma"
1717

1818
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
1919
gem "importmap-rails"
@@ -75,7 +75,7 @@ end
7575
# ===========
7676
gem "appdev_support"
7777
gem "awesome_print"
78-
gem "devise" # to be removed
78+
gem "devise"
7979
gem "dotenv-rails"
8080
gem "faker"
8181
gem "htmlbeautifier"
@@ -94,16 +94,14 @@ group :development do
9494
gem "rails-erd"
9595
gem "rufo"
9696
gem "specs_to_readme"
97-
gem "web_git"
9897
end
9998

10099
group :development, :test do
101100
gem "rspec-rails", "~> 6.0.0"
102101
end
103102

104103
group :test do
105-
gem "draft_matchers"#, "0.0.2"#path: "../../my_stuff/draft_matchers"
106-
# gem "draft_matchers"
104+
gem "draft_matchers"
107105
gem "rspec-html-matchers"
108106
gem "webmock"
109107
end

0 commit comments

Comments
 (0)