Skip to content

Commit

Permalink
Change all app old name references to the new one
Browse files Browse the repository at this point in the history
  • Loading branch information
fhmurakami committed Dec 29, 2024
1 parent 5dbe325 commit 944d03a
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 44 deletions.
20 changes: 10 additions & 10 deletions .devcontainer/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "sam"
name: "samba"

services:
rails-app:
Expand All @@ -7,7 +7,7 @@ services:
dockerfile: .devcontainer/Dockerfile

volumes:
- ../..:/workspaces:cached
- ../..:/workspaces:cached

# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
Expand All @@ -18,9 +18,9 @@ services:
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
depends_on:
- selenium
- redis
- postgres
- selenium
- redis
- postgres

selenium:
image: selenium/standalone-chromium
Expand All @@ -30,18 +30,18 @@ services:
image: redis:7.2
restart: unless-stopped
volumes:
- redis-data:/data
- redis-data:/data

postgres:
image: postgres:16
restart: unless-stopped
networks:
- default
- default
volumes:
- postgres-data:/var/lib/postgresql/data
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres

volumes:
redis-data:
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
{
"name": "sam",
"name": "samba",
"dockerComposeFile": "compose.yaml",
"service": "rails-app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
Expand Down
27 changes: 5 additions & 22 deletions app/views/pwa/manifest.json.erb
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
{
"name": "Sam",
"icons": [
{
"src": "/icon.png",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "/icon.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "maskable"
}
],
"start_url": "/",
"display": "standalone",
"scope": "/",
"description": "Sam.",
"theme_color": "red",
"background_color": "red"
}
{ "name": "Samba", "icons": [ { "src": "/icon.png", "type": "image/png",
"sizes": "512x512" }, { "src": "/icon.png", "type": "image/png", "sizes":
"512x512", "purpose": "maskable" } ], "start_url": "/", "display": "standalone",
"scope": "/", "description": "Samba.", "theme_color": "red", "background_color":
"red" }
2 changes: 1 addition & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require "fileutils"

APP_ROOT = File.expand_path("..", __dir__)
APP_NAME = "sam"
APP_NAME = "samba"

def system!(*args)
system(*args, exception: true)
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module Sam
module Samba
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 7.2
Expand Down
2 changes: 1 addition & 1 deletion config/cable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ test:
production:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
channel_prefix: sam_production
channel_prefix: samba_production
10 changes: 5 additions & 5 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ default: &default

development:
<<: *default
database: sam_development
database: samba_development

# The specified database role being used to connect to PostgreSQL.
# To create additional roles in PostgreSQL see `$ createuser --help`.
Expand Down Expand Up @@ -61,7 +61,7 @@ development:
# Do not set this db to the same as development or production.
test:
<<: *default
database: sam_test
database: samba_test

# As with config/credentials.yml, you never want to store sensitive information,
# like your database password, in your source code. If your source code is
Expand All @@ -85,6 +85,6 @@ test:
#
production:
<<: *default
database: sam_production
username: sam
password: <%= ENV["SAM_DATABASE_PASSWORD"] %>
database: samba_production
username: samba
password: <%= ENV["SAMBA_DATABASE_PASSWORD"] %>
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

# Use a real queuing backend for Active Job (and separate queues per environment).
# config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "sam_production"
# config.active_job.queue_name_prefix = "samba_production"

# Disable caching for Action Mailer templates even if Action Controller
# caching is enabled.
Expand Down
4 changes: 2 additions & 2 deletions config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
pt-BR:
home:
homepage: "Home"
title: "S.A.M."
subtitle: "Software de Avaliação Matemática"
title: "S.A.M.Ba"
subtitle: "Sistema para Avaliação de Matemática Básica"
back: "Voltar para página inicial"
answers:
back: "Voltar para respostas"
Expand Down

0 comments on commit 944d03a

Please sign in to comment.