From 297d3f780039ecb58306be2d2a30891df09f108c Mon Sep 17 00:00:00 2001 From: Canan Date: Fri, 8 May 2020 22:58:34 +0300 Subject: [PATCH] Rename app --- Gemfile | 1 + Gemfile.lock | 5 +++++ app/views/layouts/application.html.erb | 2 +- config/application.rb | 2 +- config/cable.yml | 2 +- config/environments/production.rb | 2 +- package.json | 2 +- 7 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index e0e8828..6a837bf 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,7 @@ gem 'webpacker', '~> 4.0' gem 'turbolinks', '~> 5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.7' +gem 'rename' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use Active Model has_secure_password diff --git a/Gemfile.lock b/Gemfile.lock index 7c71ec5..3222f7a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -142,6 +142,10 @@ GEM rb-inotify (0.10.1) ffi (~> 1.0) regexp_parser (1.7.0) + rename (1.0.6) + activesupport + rails (>= 3.0.0) + thor (>= 0.19.1) ruby_dep (1.5.0) rubyzip (2.3.0) sass-rails (6.0.0) @@ -209,6 +213,7 @@ DEPENDENCIES pg puma (~> 4.1) rails (~> 6.0.2, >= 6.0.2.2) + rename sass-rails (>= 6) selenium-webdriver spring diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 036d163..2958b53 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,7 +1,7 @@ - Retro + Pretro <%= csrf_meta_tags %> <%= csp_meta_tag %> diff --git a/config/application.rb b/config/application.rb index ba4562f..87c2b05 100644 --- a/config/application.rb +++ b/config/application.rb @@ -6,7 +6,7 @@ # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) -module Retro +module Pretro class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. config.load_defaults 6.0 diff --git a/config/cable.yml b/config/cable.yml index 461bdfe..85571a6 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -7,4 +7,4 @@ test: production: adapter: redis url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> - channel_prefix: retro_production + channel_prefix: pretro_production diff --git a/config/environments/production.rb b/config/environments/production.rb index 15b9195..0af89ff 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -58,7 +58,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 = "retro_production" + # config.active_job.queue_name_prefix = "pretro_production" config.action_mailer.perform_caching = false diff --git a/package.json b/package.json index 6ab77c8..08f23e2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "retro", + "name": "pretro", "private": true, "dependencies": { "@rails/actioncable": "^6.0.0",