rename qwaiter to mozo

This commit is contained in:
2025-09-20 17:35:58 -05:00
parent 7212d9041e
commit 0e051b1f93
99 changed files with 189 additions and 168 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ require 'action_mailer/railtie'
#require 'active_resource/railtie'
require 'rails/test_unit/railtie'
require 'sprockets/railtie'
require 'net/http' # lib/qwaiter/broadcaster/faye.rb
require 'net/http' # lib/mozo/broadcaster/faye.rb
# custom override hack for the couchbase-setting gem, needs to be loaded before other gems, is settings only without dependencies
#require File.expand_path('./../../lib/couchbase-setting', __FILE__)
@@ -228,7 +228,7 @@ end
# This is a fix for testing models that
# are frozen after destroy and then extended
# by active_decorator when running the specs
module Qwaiter
module Mozo
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
@@ -322,5 +322,5 @@ module Qwaiter
config.assets.version = '1.0'
end
end
require 'qwaiter'
require 'mozo'
require 'rqrcode-rails3'
+4 -4
View File
@@ -3,17 +3,17 @@ defaults: &defaults
development:
<<: *defaults
bucket: qwaiter_development
bucket: mozo_development
test:
<<: *defaults
bucket: qwaiter_test
bucket: mozo_test
production:
<<: *defaults
bucket: qwaiter
bucket: mozo_backend
user_app:
<<: *defaults
bucket: qwaiter_development
bucket: mozo_development
+5 -5
View File
@@ -1,18 +1,18 @@
development:
validation_framework: :active_model #optional
#database: "http://mozo:secret@localhost:5984/qwaiter_development"
#database: "http://mozo:secret@localhost:5984/mozo_development"
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:5984/mozo_development"
#database: mozo_development
test:
validation_framework: :active_model #optional
#database: "http://mozo:secret@localhost:5984/qwaiter_test"
#database: "http://mozo:secret@localhost:5984/mozo_test"
#Testing can only be done as couchdb admin, since it requires creating and destroying the database
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:5984/mozo_test"
# database: "http://admin:secret@localhost:5984/qwaiter_test"
# database: "http://admin:secret@localhost:5984/mozo_test"
production:
validation_framework: :active_model #optional
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:5984/qwaiter"
#database: qwaiter
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:5984/mozo_backend"
#database: mozo
user_app:
validation_framework: :active_model #optional
database: mozo_development
+2 -2
View File
@@ -3,8 +3,8 @@
#require 'capistrano/local_precompile'
set :application, 'mozo.bar'
#set :repo_url, 'root@uflows.com:/var/git/qwaiter.git'
set :repo_url, '/var/git/qwaiter.git'
#set :repo_url, 'root@uflows.com:/var/git/mozo.git'
set :repo_url, '/var/git/mozo.git'
# Default branch is :master
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
+1 -1
View File
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Qwaiter::Application.initialize!
Mozo::Application.initialize!
+1 -1
View File
@@ -1,6 +1,6 @@
# frozen_string_literal: true
Qwaiter::Application.configure do
Mozo::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
+1 -1
View File
@@ -1,4 +1,4 @@
Qwaiter::Application.configure do
Mozo::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
+1 -1
View File
@@ -1,4 +1,4 @@
Qwaiter::Application.configure do
Mozo::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's
+1 -1
View File
@@ -1,4 +1,4 @@
Qwaiter::Application.configure do
Mozo::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
@@ -13,7 +13,7 @@ module ActiveModel::SerializerSupport
end
=begin
class Qwaiter::JsonAdapter < ActiveModel::Serializer::Adapter::JsonApi
class Mozo::JsonAdapter < ActiveModel::Serializer::Adapter::JsonApi
def add_resource_relationships_old1(attrs, serializer, options = {})
options[:add_included] = options.fetch(:add_included, true)
serializer.associations.each do |association| #do |name, association, opts|
@@ -85,5 +85,5 @@ class Qwaiter::JsonAdapter < ActiveModel::Serializer::Adapter::JsonApi
end
=end
#ActiveModel::Serializer.config.adapter = :json_api
#ActiveModel::Serializer.config.adapter = Qwaiter::JsonAdapter
#ActiveModel::Serializer.config.adapter = Mozo::JsonAdapter
#ActiveModel::Serializer.config.adapter = :flatten_json
+2 -2
View File
@@ -1,4 +1,4 @@
module Qwaiter
module Mozo
class FailureApp < Devise::FailureApp
def respond
if request.format.json?
@@ -267,7 +267,7 @@ Devise.setup do |config|
# change the failure app, you can configure them inside the config.warden block.
#
config.warden do |manager|
manager.failure_app = Qwaiter::FailureApp
manager.failure_app = Mozo::FailureApp
# manager.intercept_401 = false
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
end
+5 -5
View File
@@ -1,15 +1,15 @@
if Rails.env.development?
Qwaiter.event_host = "http://localhost:9296/faye"
Mozo.event_host = "http://localhost:9296/faye"
else
Qwaiter.event_host = "https://events.mozo.bar/faye"
Mozo.event_host = "https://events.mozo.bar/faye"
end
Qwaiter.broadcaster = Qwaiter::Broadcaster::Faye.new
Mozo.broadcaster = Mozo::Broadcaster::Faye.new
# use the connection from couchbase-structures/documents
# will be overwritten in the specs since flushing the real
# thing is difficult
# Qwaiter::Counter.connection = $cb unless Rails.env.test?
# Mozo::Counter.connection = $cb unless Rails.env.test?
# Use the Drb counter
Qwaiter::Counter.connection = Qwaiter::DrbCounter.object unless Rails.env.test?
Mozo::Counter.connection = Mozo::DrbCounter.object unless Rails.env.test?
+2 -1
View File
@@ -4,4 +4,5 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Qwaiter::Application.config.secret_token = 'a2d0002614aa5e1a04dd5f57c3a239765ee47df0f5e3214adf41c4893b84a95cd805f650f5edb321f2474adf6bb01a625b911d34a3c879815281d7e1db4415c8'
#TODO: I think this one is no longer used and its just credentials now. Written when using rails 8.0.2
Mozo::Application.config.secret_token = 'a2d0002614aa5e1a04dd5f57c3a239765ee47df0f5e3214adf41c4893b84a95cd805f650f5edb321f2474adf6bb01a625b911d34a3c879815281d7e1db4415c8'
+2 -2
View File
@@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.
Qwaiter::Application.config.session_store :cookie_store, key: '_qwaiter_session'
Mozo::Application.config.session_store :cookie_store, key: '_mozo_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
# Qwaiter::Application.config.session_store :active_record_store
# Mozo::Application.config.session_store :active_record_store
+1 -1
View File
@@ -1,5 +1,5 @@
ALLOWED_LOCALES = /nl|de|fr|en|es/
Qwaiter::Application.routes.draw do
Mozo::Application.routes.draw do
devise_for :users, controllers: { omniauth_callbacks: "users/omniauth_callbacks" }
#devise_for :suppliers, controllers: { confirmations: 'confirmations', registrations: 'registrations' }
devise_for :employees, controllers: {