mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
More rebranding changes (#159)
* Replace Maybe for Sure in select code areas * Make sure passwords are consistent * Remove (admin|member) from demo data first name * Database and schema names finally to `sure` * Fix broken test * Another (benchmarking) database name to `sure_*` * More rebranding to Sure * Missed this Maybe mention in the same page * Random nitpicks and more Maybes * Demo data accounts and more Maybes * Test data account updates * Impersonation test accounts * Consistency with `compose.example.yml`
This commit is contained in:
@@ -6,7 +6,7 @@ require "rails/all"
|
||||
# you've limited to :test, :development, or :production.
|
||||
Bundler.require(*Rails.groups)
|
||||
|
||||
module Maybe
|
||||
module Sure
|
||||
class Application < Rails::Application
|
||||
# Initialize configuration defaults for originally generated Rails version.
|
||||
config.load_defaults 7.2
|
||||
|
||||
@@ -7,4 +7,4 @@ test:
|
||||
production:
|
||||
adapter: redis
|
||||
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
|
||||
channel_prefix: maybe_production
|
||||
channel_prefix: sure_production
|
||||
|
||||
@@ -9,12 +9,12 @@ default: &default
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_development" } %>
|
||||
database: <%= ENV.fetch("POSTGRES_DB") { "sure_development" } %>
|
||||
|
||||
test:
|
||||
<<: *default
|
||||
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_test" } %>
|
||||
database: <%= ENV.fetch("POSTGRES_DB") { "sure_test" } %>
|
||||
|
||||
production:
|
||||
<<: *default
|
||||
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_production" } %>
|
||||
database: <%= ENV.fetch("POSTGRES_DB") { "sure_production" } %>
|
||||
|
||||
@@ -24,7 +24,7 @@ Rails.application.configure do
|
||||
}
|
||||
|
||||
# Set default sender email for tests
|
||||
ENV["EMAIL_SENDER"] = "hello@maybefinance.com"
|
||||
ENV["EMAIL_SENDER"] = "hello@example.com"
|
||||
|
||||
# Show full error reports and disable caching.
|
||||
config.consider_all_requests_local = true
|
||||
|
||||
@@ -2,8 +2,8 @@ require "sidekiq/web"
|
||||
|
||||
if Rails.env.production?
|
||||
Sidekiq::Web.use(Rack::Auth::Basic) do |username, password|
|
||||
configured_username = ::Digest::SHA256.hexdigest(ENV.fetch("SIDEKIQ_WEB_USERNAME", "maybe"))
|
||||
configured_password = ::Digest::SHA256.hexdigest(ENV.fetch("SIDEKIQ_WEB_PASSWORD", "maybe"))
|
||||
configured_username = ::Digest::SHA256.hexdigest(ENV.fetch("SIDEKIQ_WEB_USERNAME", "sure"))
|
||||
configured_password = ::Digest::SHA256.hexdigest(ENV.fetch("SIDEKIQ_WEB_PASSWORD", "sure"))
|
||||
|
||||
ActiveSupport::SecurityUtils.secure_compare(::Digest::SHA256.hexdigest(username), configured_username) &&
|
||||
ActiveSupport::SecurityUtils.secure_compare(::Digest::SHA256.hexdigest(password), configured_password)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module Maybe
|
||||
module Sure
|
||||
class << self
|
||||
def version
|
||||
Semver.new(semver)
|
||||
|
||||
@@ -280,8 +280,8 @@ Rails.application.routes.draw do
|
||||
|
||||
get "imports/:import_id/upload/sample_csv", to: "import/uploads#sample_csv", as: :import_upload_sample_csv
|
||||
|
||||
get "privacy", to: redirect("https://maybefinance.com/privacy")
|
||||
get "terms", to: redirect("https://maybefinance.com/tos")
|
||||
get "privacy", to: redirect("about:blank")
|
||||
get "terms", to: redirect("about:blank")
|
||||
|
||||
# Defines the root path route ("/")
|
||||
root "pages#dashboard"
|
||||
|
||||
Reference in New Issue
Block a user