Sha256: 0878b8235188d158b3ca72ccd165787613a27bf604d332de80b1cea6e39c2932

Contents?: true

Size: 1.1 KB

Versions: 47

Compression:

Stored size: 1.1 KB

Contents

#!/bin/bash
GEM_NAME=${PWD##*/}
INSTALL_NAME=${GEM_NAME//cmor_/cmor\:}

# Delete old dummy app
rm -rf spec/dummy

# Generate new dummy app
DISABLE_MIGRATE=true rake dummy:app
rm spec/dummy/.ruby-version

# Satisfy prerequisites
cd spec/dummy

# Add ActiveStorage
rails active_storage:install

# I18n configuration
touch config/initializers/i18n.rb
echo "Rails.application.config.i18n.available_locales = [:en, :de]" >> config/initializers/i18n.rb
echo "Rails.application.config.i18n.default_locale    = :de" >> config/initializers/i18n.rb

# I18n routing
touch config/initializers/route_translator.rb
echo "RouteTranslator.config do |config|" >> config/initializers/route_translator.rb
echo "  config.force_locale = true" >> config/initializers/route_translator.rb
echo "end" >> config/initializers/route_translator.rb

# Install administrador
rails generate administrador:install

# Install SimpleForm
rails generate simple_form:install --bootstrap

# Install cmor_core_backend
rails g cmor:core:backend:install

# Install
rails generate $INSTALL_NAME:install
rails $GEM_NAME:install:migrations db:migrate db:test:prepare

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
cmor_core_backend-0.0.60.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.59.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.58.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.57.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.56.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.55.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.54.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.53.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.52.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.51.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.50.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.49.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.48.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.45.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.44.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.43.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.42.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.41.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.40.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh
cmor_core_backend-0.0.39.pre lib/generators/cmor/core/backend/new/templates/initialize_dummy.sh