Sha256: a8da5a4048f5d44f1e2033db23c4d0cc81e94e61eaec575e04e632fea0ead1d8

Contents?: true

Size: 929 Bytes

Versions: 52

Compression:

Stored size: 929 Bytes

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
rails generate $INSTALL_NAME:install
rails $GEM_NAME:install:migrations db:migrate db:test:prepare

Version data entries

52 entries across 52 versions & 2 rubygems

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