From 3f5199f8fc98b26f23ab43d4cbcb698190945bbf Mon Sep 17 00:00:00 2001 From: Jeremy Watt Date: Thu, 7 Nov 2024 13:31:50 -0700 Subject: [PATCH] reorg --- .github/workflows/pro-app-build.yml | 57 ++++++++ .github/workflows/pro-app-tests.yml | 122 ++++++++++++++++++ .github/workflows/python-app.yml | 47 ------- ...ocker-build.yml => standard-app-build.yml} | 0 .github/workflows/standard-app-tests.yml | 47 +++++++ ...mpose-images.yml => docker-compose-pro.yml | 22 ++-- docker-compose.yaml | 53 -------- .../image_to_text_app}/Dockerfile | 0 .../image_to_text_app}/app.py | 0 .../image_to_text_app}/do_not_remove.jpg | Bin .../image_to_text_generator.py | 0 .../image_to_text_app}/model_init.py | 0 .../image_to_text_app}/requirements.txt | 0 .../meme_search_app}/.dockerignore | 0 .../meme_search_app}/.gitattributes | 0 .../meme_search_app}/.gitignore | 0 .../meme_search_app}/.rubocop.yml | 0 .../meme_search_app}/.ruby-version | 0 .../meme_search_app}/Dockerfile | 0 .../meme_search_app}/Gemfile | 2 +- .../meme_search_app}/Gemfile.lock | 2 - .../meme_search_app}/Procfile.dev | 0 .../meme_search_app}/README.md | 0 .../meme_search_app}/Rakefile | 0 .../meme_search_app}/app/assets/builds/.keep | 0 .../app/assets/config/manifest.js | 0 .../meme_search_app}/app/assets/images/.keep | 0 .../app/assets/stylesheets/application.css | 0 .../stylesheets/application.tailwind.css | 0 .../app/channels/application_cable/channel.rb | 0 .../channels/application_cable/connection.rb | 0 .../app/channels/image_description_channel.rb | 0 .../app/channels/image_status_channel.rb | 0 .../app/controllers/application_controller.rb | 0 .../app/controllers/concerns/.keep | 0 .../app/controllers/image_cores_controller.rb | 4 +- .../image_embeddings_controller.rb | 0 .../app/controllers/image_tags_controller.rb | 0 .../settings/image_paths_controller.rb | 0 .../settings/tag_names_controller.rb | 0 .../app/controllers/settings_controller.rb | 0 .../app/helpers/application_helper.rb | 0 .../app/helpers/image_cores_helper.rb | 0 .../app/helpers/image_embeddings_helper.rb | 0 .../app/helpers/image_paths_helper.rb | 0 .../app/helpers/image_tags_helper.rb | 0 .../app/helpers/memes_helper.rb | 0 .../app/helpers/tag_names_helper.rb | 0 .../app/javascript/application.js | 0 .../app/javascript/channels/consumer.js | 0 .../channels/image_description_channel.js | 0 .../channels/image_status_channel.js | 0 .../app/javascript/channels/index.js | 0 .../app/javascript/controllers/application.js | 0 .../controllers/debounce_controller.js | 0 .../app/javascript/controllers/index.js | 0 .../controllers/multi_select_controller.js | 0 .../app/jobs/application_job.rb | 0 .../app/mailers/application_mailer.rb | 0 .../app/models/application_record.rb | 0 .../app/models/concerns/.keep | 0 .../meme_search_app}/app/models/image_core.rb | 0 .../app/models/image_embedding.rb | 0 .../meme_search_app}/app/models/image_path.rb | 0 .../meme_search_app}/app/models/image_tag.rb | 0 .../meme_search_app}/app/models/tag_name.rb | 0 .../app/views/image_cores/_edit.html.erb | 0 .../app/views/image_cores/_filters.html.erb | 0 .../app/views/image_cores/_form.html.erb | 0 .../image_cores/_generate_status.html.erb | 0 .../views/image_cores/_image_core.html.erb | 0 .../app/views/image_cores/_no_search.html.erb | 0 .../image_cores/_no_search_results.html.erb | 0 .../views/image_cores/_path_toggle.html.erb | 0 .../image_cores/_search_results.html.erb | 0 .../views/image_cores/_tag_toggle.html.erb | 0 .../app/views/image_cores/edit.html.erb | 0 .../app/views/image_cores/index.html.erb | 0 .../app/views/image_cores/search.html.erb | 0 .../app/views/image_cores/show.html.erb | 0 .../app/views/image_embeddings/_form.html.erb | 0 .../_image_embedding.html.erb | 0 .../app/views/image_embeddings/edit.html.erb | 0 .../app/views/image_embeddings/index.html.erb | 0 .../app/views/image_embeddings/new.html.erb | 0 .../app/views/image_embeddings/show.html.erb | 0 .../app/views/image_tags/_form.html.erb | 0 .../app/views/image_tags/_image_tag.html.erb | 0 .../app/views/image_tags/edit.html.erb | 0 .../app/views/image_tags/index.html.erb | 0 .../app/views/image_tags/new.html.erb | 0 .../app/views/image_tags/show.html.erb | 0 .../app/views/layouts/application.html.erb | 0 .../app/views/layouts/mailer.html.erb | 0 .../app/views/layouts/mailer.text.erb | 0 .../app/views/pwa/manifest.json.erb | 0 .../app/views/pwa/service-worker.js | 0 .../views/settings/image_paths/_form.html.erb | 0 .../settings/image_paths/_image_path.html.erb | 0 .../views/settings/image_paths/edit.html.erb | 0 .../views/settings/image_paths/index.html.erb | 0 .../views/settings/image_paths/new.html.erb | 0 .../views/settings/image_paths/show.html.erb | 0 .../app/views/settings/index.html.erb | 0 .../views/settings/tag_names/_form.html.erb | 0 .../settings/tag_names/_tag_name.html.erb | 0 .../views/settings/tag_names/edit.html.erb | 0 .../views/settings/tag_names/index.html.erb | 0 .../app/views/settings/tag_names/new.html.erb | 0 .../views/settings/tag_names/show.html.erb | 0 .../app/views/shared/_nav.html.erb | 0 .../app/views/shared/_notifications.html.erb | 0 .../meme_search_app}/bin/brakeman | 0 .../meme_search_app}/bin/bundle | 0 .../meme_search_app}/bin/dev | 0 .../meme_search_app}/bin/docker-entrypoint | 0 .../meme_search_app}/bin/importmap | 0 .../meme_search_app}/bin/rails | 0 .../meme_search_app}/bin/rake | 0 .../meme_search_app}/bin/rubocop | 0 .../meme_search_app}/bin/setup | 0 .../meme_search_app}/config.ru | 0 .../meme_search_app}/config/application.rb | 0 .../meme_search_app}/config/boot.rb | 0 .../meme_search_app}/config/cable.yml | 0 .../config/credentials.yml.enc | 0 .../meme_search_app}/config/database.yml | 1 - .../meme_search_app}/config/environment.rb | 0 .../config/environments/development.rb | 0 .../config/environments/production.rb | 0 .../config/environments/test.rb | 0 .../meme_search_app}/config/importmap.rb | 0 .../config/initializers/assets.rb | 0 .../initializers/content_security_policy.rb | 0 .../initializers/filter_parameter_logging.rb | 0 .../config/initializers/inflections.rb | 0 .../config/initializers/model_setup.rb | 0 .../config/initializers/pagy.rb | 0 .../config/initializers/permissions_policy.rb | 0 .../meme_search_app}/config/locales/en.yml | 0 .../meme_search_app}/config/puma.rb | 0 .../meme_search_app}/config/routes.rb | 0 .../meme_search_app}/config/storage.yml | 0 .../config/tailwind.config.js | 0 .../20241021223150_install_neighbor_vector.rb | 0 .../20241022170131_create_image_paths.rb | 0 .../20241022170251_create_image_cores.rb | 0 .../20241022170324_create_tag_names.rb | 0 .../20241022170402_create_image_tags.rb | 0 .../20241022170426_create_image_embeddings.rb | 0 .../meme_search_app}/db/schema.rb | 0 .../meme_search_app}/db/seeds.rb | 0 .../embedding_model_download.rb | 0 .../meme_search_app}/lib/assets/.keep | 0 .../meme_search_app}/lib/tasks/.keep | 0 .../meme_search_app}/log/.keep | 0 .../meme_search_app}/public/404.html | 0 .../public/406-unsupported-browser.html | 0 .../meme_search_app}/public/422.html | 0 .../meme_search_app}/public/500.html | 0 .../meme_search_app}/public/icon.png | Bin .../meme_search_app}/public/icon.svg | 0 .../memes/example_memes_1/all the fucks.jpg | Bin .../memes/example_memes_1/both pills.jpeg | Bin .../public/memes/example_memes_2/no.jpg | Bin .../memes/example_memes_2/screenshot.jpg | Bin .../public/memes/example_memes_3/happy.jpeg | Bin .../public/memes/example_memes_3/techlife.jpg | Bin .../meme_search_app}/public/robots.txt | 0 .../meme_search_app}/storage/.keep | 0 .../test/application_system_test_case.rb | 0 .../application_cable/connection_test.rb | 0 .../image_description_channel_test.rb | 0 .../channels/image_status_channel_test.rb | 0 .../meme_search_app}/test/controllers/.keep | 0 .../test/fixtures/files/.keep | 0 .../test/fixtures/image_cores.yml | 0 .../test/fixtures/image_paths.yml | 0 .../test/fixtures/image_tags.yml | 0 .../test/fixtures/tag_names.yml | 0 .../meme_search_app}/test/helpers/.keep | 0 .../meme_search_app}/test/integration/.keep | 0 .../meme_search_app}/test/mailers/.keep | 0 .../meme_search_app}/test/models/.keep | 0 .../meme_search_app}/test/system/.keep | 0 .../test/system/image_cores_test.rb | 0 .../test/system/image_paths_test.rb | 0 .../test/system/index_filter_test.rb | 0 .../test/system/search_test.rb | 0 .../test/system/tag_names_test.rb | 0 .../meme_search_app}/test/test_helper.rb | 0 .../meme_search_app}/tmp/.keep | 0 .../meme_search_app}/tmp/pids/.keep | 0 .../meme_search_app}/tmp/storage/.keep | 0 .../meme_search_app}/vendor/.keep | 0 .../meme_search_app}/vendor/javascript/.keep | 0 .../tailwindcss-stimulus-components.js | 0 .../vendor/javascript/venobox.js | 0 .../image_cores_controller_test.rb | 48 ------- .../image_embeddings_controller_test.rb | 48 ------- .../image_paths_controller_test.rb | 48 ------- .../controllers/image_tags_controller_test.rb | 48 ------- .../test/controllers/memes_controller_test.rb | 48 ------- .../controllers/tag_names_controller_test.rb | 48 ------- .../test/jobs/check_image_status_job_test.rb | 7 - rails_app/test/models/embedding_test.rb | 7 - rails_app/test/models/image_core_test.rb | 7 - rails_app/test/models/image_embedding_test.rb | 7 - rails_app/test/models/image_path_test.rb | 7 - rails_app/test/models/image_tag_test.rb | 7 - rails_app/test/models/meme_test.rb | 7 - rails_app/test/models/tag_name_test.rb | 7 - rails_app/test/models/tag_test.rb | 7 - 213 files changed, 240 insertions(+), 468 deletions(-) create mode 100644 .github/workflows/pro-app-build.yml create mode 100644 .github/workflows/pro-app-tests.yml delete mode 100644 .github/workflows/python-app.yml rename .github/workflows/{docker-build.yml => standard-app-build.yml} (100%) create mode 100644 .github/workflows/standard-app-tests.yml rename docker-compose-images.yml => docker-compose-pro.yml (60%) delete mode 100644 docker-compose.yaml rename {image_to_text_app => meme_search_pro/image_to_text_app}/Dockerfile (100%) rename {image_to_text_app => meme_search_pro/image_to_text_app}/app.py (100%) rename {image_to_text_app => meme_search_pro/image_to_text_app}/do_not_remove.jpg (100%) rename {image_to_text_app => meme_search_pro/image_to_text_app}/image_to_text_generator.py (100%) rename {image_to_text_app => meme_search_pro/image_to_text_app}/model_init.py (100%) rename {image_to_text_app => meme_search_pro/image_to_text_app}/requirements.txt (100%) rename {rails_app => meme_search_pro/meme_search_app}/.dockerignore (100%) rename {rails_app => meme_search_pro/meme_search_app}/.gitattributes (100%) rename {rails_app => meme_search_pro/meme_search_app}/.gitignore (100%) rename {rails_app => meme_search_pro/meme_search_app}/.rubocop.yml (100%) rename {rails_app => meme_search_pro/meme_search_app}/.ruby-version (100%) rename {rails_app => meme_search_pro/meme_search_app}/Dockerfile (100%) rename {rails_app => meme_search_pro/meme_search_app}/Gemfile (97%) rename {rails_app => meme_search_pro/meme_search_app}/Gemfile.lock (99%) rename {rails_app => meme_search_pro/meme_search_app}/Procfile.dev (100%) rename {rails_app => meme_search_pro/meme_search_app}/README.md (100%) rename {rails_app => meme_search_pro/meme_search_app}/Rakefile (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/assets/builds/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/assets/config/manifest.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/assets/images/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/assets/stylesheets/application.css (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/assets/stylesheets/application.tailwind.css (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/channels/application_cable/channel.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/channels/application_cable/connection.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/channels/image_description_channel.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/channels/image_status_channel.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/controllers/application_controller.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/controllers/concerns/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/controllers/image_cores_controller.rb (98%) rename {rails_app => meme_search_pro/meme_search_app}/app/controllers/image_embeddings_controller.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/controllers/image_tags_controller.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/controllers/settings/image_paths_controller.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/controllers/settings/tag_names_controller.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/controllers/settings_controller.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/helpers/application_helper.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/helpers/image_cores_helper.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/helpers/image_embeddings_helper.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/helpers/image_paths_helper.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/helpers/image_tags_helper.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/helpers/memes_helper.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/helpers/tag_names_helper.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/javascript/application.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/javascript/channels/consumer.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/javascript/channels/image_description_channel.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/javascript/channels/image_status_channel.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/javascript/channels/index.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/javascript/controllers/application.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/javascript/controllers/debounce_controller.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/javascript/controllers/index.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/javascript/controllers/multi_select_controller.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/jobs/application_job.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/mailers/application_mailer.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/models/application_record.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/models/concerns/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/models/image_core.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/models/image_embedding.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/models/image_path.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/models/image_tag.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/models/tag_name.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_edit.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_filters.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_form.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_generate_status.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_image_core.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_no_search.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_no_search_results.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_path_toggle.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_search_results.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/_tag_toggle.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/edit.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/index.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/search.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_cores/show.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_embeddings/_form.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_embeddings/_image_embedding.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_embeddings/edit.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_embeddings/index.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_embeddings/new.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_embeddings/show.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_tags/_form.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_tags/_image_tag.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_tags/edit.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_tags/index.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_tags/new.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/image_tags/show.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/layouts/application.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/layouts/mailer.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/layouts/mailer.text.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/pwa/manifest.json.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/pwa/service-worker.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/image_paths/_form.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/image_paths/_image_path.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/image_paths/edit.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/image_paths/index.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/image_paths/new.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/image_paths/show.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/index.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/tag_names/_form.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/tag_names/_tag_name.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/tag_names/edit.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/tag_names/index.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/tag_names/new.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/settings/tag_names/show.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/shared/_nav.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/app/views/shared/_notifications.html.erb (100%) rename {rails_app => meme_search_pro/meme_search_app}/bin/brakeman (100%) rename {rails_app => meme_search_pro/meme_search_app}/bin/bundle (100%) rename {rails_app => meme_search_pro/meme_search_app}/bin/dev (100%) rename {rails_app => meme_search_pro/meme_search_app}/bin/docker-entrypoint (100%) rename {rails_app => meme_search_pro/meme_search_app}/bin/importmap (100%) rename {rails_app => meme_search_pro/meme_search_app}/bin/rails (100%) rename {rails_app => meme_search_pro/meme_search_app}/bin/rake (100%) rename {rails_app => meme_search_pro/meme_search_app}/bin/rubocop (100%) rename {rails_app => meme_search_pro/meme_search_app}/bin/setup (100%) rename {rails_app => meme_search_pro/meme_search_app}/config.ru (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/application.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/boot.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/cable.yml (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/credentials.yml.enc (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/database.yml (89%) rename {rails_app => meme_search_pro/meme_search_app}/config/environment.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/environments/development.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/environments/production.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/environments/test.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/importmap.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/initializers/assets.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/initializers/content_security_policy.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/initializers/filter_parameter_logging.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/initializers/inflections.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/initializers/model_setup.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/initializers/pagy.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/initializers/permissions_policy.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/locales/en.yml (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/puma.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/routes.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/storage.yml (100%) rename {rails_app => meme_search_pro/meme_search_app}/config/tailwind.config.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/db/migrate/20241021223150_install_neighbor_vector.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/db/migrate/20241022170131_create_image_paths.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/db/migrate/20241022170251_create_image_cores.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/db/migrate/20241022170324_create_tag_names.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/db/migrate/20241022170402_create_image_tags.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/db/migrate/20241022170426_create_image_embeddings.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/db/schema.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/db/seeds.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/embedding_model_download.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/lib/assets/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/lib/tasks/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/log/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/404.html (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/406-unsupported-browser.html (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/422.html (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/500.html (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/icon.png (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/icon.svg (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/memes/example_memes_1/all the fucks.jpg (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/memes/example_memes_1/both pills.jpeg (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/memes/example_memes_2/no.jpg (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/memes/example_memes_2/screenshot.jpg (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/memes/example_memes_3/happy.jpeg (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/memes/example_memes_3/techlife.jpg (100%) rename {rails_app => meme_search_pro/meme_search_app}/public/robots.txt (100%) rename {rails_app => meme_search_pro/meme_search_app}/storage/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/application_system_test_case.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/channels/application_cable/connection_test.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/channels/image_description_channel_test.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/channels/image_status_channel_test.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/controllers/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/fixtures/files/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/fixtures/image_cores.yml (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/fixtures/image_paths.yml (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/fixtures/image_tags.yml (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/fixtures/tag_names.yml (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/helpers/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/integration/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/mailers/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/models/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/system/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/system/image_cores_test.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/system/image_paths_test.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/system/index_filter_test.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/system/search_test.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/system/tag_names_test.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/test/test_helper.rb (100%) rename {rails_app => meme_search_pro/meme_search_app}/tmp/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/tmp/pids/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/tmp/storage/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/vendor/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/vendor/javascript/.keep (100%) rename {rails_app => meme_search_pro/meme_search_app}/vendor/javascript/tailwindcss-stimulus-components.js (100%) rename {rails_app => meme_search_pro/meme_search_app}/vendor/javascript/venobox.js (100%) delete mode 100644 rails_app/test/controllers/image_cores_controller_test.rb delete mode 100644 rails_app/test/controllers/image_embeddings_controller_test.rb delete mode 100644 rails_app/test/controllers/image_paths_controller_test.rb delete mode 100644 rails_app/test/controllers/image_tags_controller_test.rb delete mode 100644 rails_app/test/controllers/memes_controller_test.rb delete mode 100644 rails_app/test/controllers/tag_names_controller_test.rb delete mode 100644 rails_app/test/jobs/check_image_status_job_test.rb delete mode 100644 rails_app/test/models/embedding_test.rb delete mode 100644 rails_app/test/models/image_core_test.rb delete mode 100644 rails_app/test/models/image_embedding_test.rb delete mode 100644 rails_app/test/models/image_path_test.rb delete mode 100644 rails_app/test/models/image_tag_test.rb delete mode 100644 rails_app/test/models/meme_test.rb delete mode 100644 rails_app/test/models/tag_name_test.rb delete mode 100644 rails_app/test/models/tag_test.rb diff --git a/.github/workflows/pro-app-build.yml b/.github/workflows/pro-app-build.yml new file mode 100644 index 0000000..18439a7 --- /dev/null +++ b/.github/workflows/pro-app-build.yml @@ -0,0 +1,57 @@ +name: "DockerBuild" + +on: + push: + pull_request: + branches: ["pro-beta"] + paths: + - "meme_search_pro/meme_search_app/**" +jobs: + Build_And_Push_App: + runs-on: ubuntu-22.04 + permissions: + contents: read + packages: write + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Log in to Github Docker Image Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.TOKEN_GITHUB }} + + # Uncomment to use Docker Hub + # - name: Login to Docker Hub + # uses: docker/login-action@v3 + # with: + # username: ${{ secrets.USERNAME_DOCKERHUB }} + # password: ${{ secrets.TOKEN_DOCKERHUB }} + + - name: Docker Meta + id: meta + uses: docker/metadata-action@v4 + with: + images: | + ghcr.io/${{ github.actor }}/test + # ${{ secrets.DOCKERHUB_USERNAME }}/meme-search + tags: type=ref,event=tag + flavor: latest=true + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and Upload for AMD64 and ARM64 + uses: docker/build-push-action@v4 + with: + context: ./meme_search_pro/meme_search_app + platforms: linux/amd64,linux/arm64 + push: true + tags: "tag1" # ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/pro-app-tests.yml b/.github/workflows/pro-app-tests.yml new file mode 100644 index 0000000..ea5500c --- /dev/null +++ b/.github/workflows/pro-app-tests.yml @@ -0,0 +1,122 @@ +name: rails tests for meme search app + +on: + workflow_dispatch: + pull_request: + push: + branches: ["pro-beta"] + paths: + - "meme_search_pro/meme_search_app/**" + +jobs: + scan_ruby: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: .ruby-version + bundler-cache: false + working-directory: ./meme_search_pro/meme_search_app + + - name: Install dependencies + run: gem install bundler && bundle install + working-directory: ./meme_search_pro/meme_search_app + + - name: Scan for common Rails security vulnerabilities using static analysis + run: bin/brakeman -w3 --no-pager + working-directory: ./meme_search_pro/meme_search_app + + scan_js: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: .ruby-version + bundler-cache: false + working-directory: ./meme_search_pro/meme_search_app + + - name: Install dependencies + run: gem install bundler && bundle install + working-directory: ./meme_search_pro/meme_search_app + + - name: Scan for security vulnerabilities in JavaScript dependencies + working-directory: ./meme_search_pro/meme_search_app + run: gem uninstall error_highlight -v 0.3.0 && bin/importmap audit + + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: .ruby-version + bundler-cache: false + working-directory: ./meme_search_pro/meme_search_app + + - name: Install dependencies + run: gem install bundler && bundle install + working-directory: ./meme_search_pro/meme_search_app + + - name: Lint code for consistent style + run: gem uninstall error_highlight -v 0.3.0 && bin/rubocop -f github + working-directory: ./meme_search_pro/meme_search_app + + test: + runs-on: ubuntu-latest + + services: + meme-search-db: + image: pgvector/pgvector:pg17 + env: + POSTGRES_DB: meme_search + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + ports: + - 5432:5432 + options: --health-cmd="pg_isready -U postgres" --health-interval=10s --health-timeout=5s --health-retries=3 + + steps: + - name: Install packages + run: sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable curl libjemalloc2 libvips postgresql-client + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: .ruby-version + bundler-cache: false + working-directory: ./meme_search_pro/meme_search_app + + - name: Install dependencies + run: gem install bundler && bundle install + working-directory: ./meme_search_pro/meme_search_app + + - name: Run tests + working-directory: ./meme_search_pro/meme_search_app + env: + RAILS_ENV: test + DATABASE_URL: postgres://postgres:postgres@localhost:5432 + run: bin/rails db:test:prepare test test:system + + - name: Keep screenshots from failed system tests + uses: actions/upload-artifact@v4 + if: failure() + with: + name: screenshots + path: ${{ github.workspace }}/tmp/screenshots + if-no-files-found: ignore diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml deleted file mode 100644 index d4d7246..0000000 --- a/.github/workflows/python-app.yml +++ /dev/null @@ -1,47 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Python application - -on: - pull_request: - branches: [ "main" ] - paths-ignore: - - '**/README.md' - - '**/CONTRIBUTING.md' - - '**LICENSE' - -jobs: - ruff: - name: lint with ruff - runs-on: ubuntu-latest - timeout-minutes: 3 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v2 - - uses: chartboost/ruff-action@v1 - with: - args: 'format --check' - config: .ruff.toml - test: - name: run pytest - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.10' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.test - pip install -r requirements.txt - - name: Run pytest - run: | - PYTHONPATH=. python3.10 -m pytest tests/test_app.py && - PYTHONPATH=. python3.10 -m pytest tests/utilities/test_imgs.py && - PYTHONPATH=. python3.10 -m pytest tests/utilities/test_query.py - # PYTHONPATH=. python3.10 -m pytest tests/utilities/test_add_remove.py ## requires large runner diff --git a/.github/workflows/docker-build.yml b/.github/workflows/standard-app-build.yml similarity index 100% rename from .github/workflows/docker-build.yml rename to .github/workflows/standard-app-build.yml diff --git a/.github/workflows/standard-app-tests.yml b/.github/workflows/standard-app-tests.yml new file mode 100644 index 0000000..2629fe0 --- /dev/null +++ b/.github/workflows/standard-app-tests.yml @@ -0,0 +1,47 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + pull_request: + branches: ["main"] + paths-ignore: + - "**/README.md" + - "**/CONTRIBUTING.md" + - "**LICENSE" + +jobs: + ruff: + name: lint with ruff + runs-on: ubuntu-latest + timeout-minutes: 3 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v2 + - uses: chartboost/ruff-action@v1 + with: + args: "format --check" + config: .ruff.toml + test: + name: run pytest + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.test + pip install -r requirements.txt + - name: Run pytest + run: | + PYTHONPATH=. python3.10 -m pytest tests/test_app.py && + PYTHONPATH=. python3.10 -m pytest tests/utilities/test_imgs.py && + PYTHONPATH=. python3.10 -m pytest tests/utilities/test_query.py + # PYTHONPATH=. python3.10 -m pytest tests/utilities/test_add_remove.py ## requires large runner diff --git a/docker-compose-images.yml b/docker-compose-pro.yml similarity index 60% rename from docker-compose-images.yml rename to docker-compose-pro.yml index 8d8a5e6..cde36ff 100644 --- a/docker-compose-images.yml +++ b/docker-compose-pro.yml @@ -1,11 +1,11 @@ version: "3.8" services: - rails_app: - image: ghcr.io/neonwatty/test:latest - container_name: meme_search_rails_app + meme_search_pro: + image: ghcr.io/neonwatty/meme-search-pro-app:latest + container_name: meme_search_pro environment: - - DATABASE_URL=postgres://postgres:postgres@meme-search-db:5432/meme_search_production + - DATABASE_URL=postgres://postgres:postgres@meme-search-pro-db:5432/meme_search ports: - "3000:3000" depends_on: @@ -14,14 +14,14 @@ services: volumes: - ./memes/:/rails/public/memes - image_to_text_app: - image: ghcr.io/neonwatty/test2:latest + image_to_text_generator: + image: ghcr.io/neonwatty/image-to-text-generator:latest + container_name: image_to_text_generator ports: - 8000:8000 volumes: - ./memes/:/app/public/memes - ./data/image_to_text_app:/app/db - container_name: meme_search_image_to_text_app deploy: resources: limits: # <-- roughly tested min memory for cpu usage @@ -32,13 +32,13 @@ services: # count: 1 # capabilities: [gpu] - meme-search-db: + meme-search-pro-db: image: pgvector/pgvector:pg17 - container_name: meme-search-db # note: must use - and not _ as ActiveRecord uses URI::RFC2396_Parser to parse database URLs + container_name: meme-search-pro-db # note: must use - and not _ as ActiveRecord uses URI::RFC2396_Parser to parse database URLs volumes: - - ./data/meme-search-db:/var/lib/postgresql/data + - ./data/meme-search-pro-db:/var/lib/postgresql/data environment: - POSTGRES_DB: meme_search_production + POSTGRES_DB: meme_search POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres ports: diff --git a/docker-compose.yaml b/docker-compose.yaml deleted file mode 100644 index f90a25f..0000000 --- a/docker-compose.yaml +++ /dev/null @@ -1,53 +0,0 @@ -version: "3.8" - -services: - rails_app: - build: - context: ./rails_app - dockerfile: Dockerfile - container_name: meme_search_rails_app - environment: - - DATABASE_URL=postgres://postgres:postgres@meme-search-db:5432/meme_search_production - ports: - - "3000:3000" - depends_on: - meme-search-db: - condition: service_healthy - volumes: - - ./memes/:/rails/public/memes - - image_to_text_app: - build: - context: ./image_to_text_app - dockerfile: Dockerfile - ports: - - 8000:8000 - volumes: - - ./memes/:/app/public/memes - container_name: meme_search_image_to_text_app - deploy: - resources: - limits: # <-- roughly tested min memory for cpu usage - memory: 12GB - # reservations: # <-- uncomment for gpu usage - # devices: - # - driver: nvidia - # count: 1 - # capabilities: [gpu] - - meme-search-db: - image: pgvector/pgvector:pg17 - container_name: meme-search-db - volumes: - - ./data/meme-search-db:/var/lib/postgresql/data - environment: - POSTGRES_DB: meme_search_production - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - ports: - - "5432:5432" - healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres"] - interval: 10s - timeout: 5s - retries: 5 diff --git a/image_to_text_app/Dockerfile b/meme_search_pro/image_to_text_app/Dockerfile similarity index 100% rename from image_to_text_app/Dockerfile rename to meme_search_pro/image_to_text_app/Dockerfile diff --git a/image_to_text_app/app.py b/meme_search_pro/image_to_text_app/app.py similarity index 100% rename from image_to_text_app/app.py rename to meme_search_pro/image_to_text_app/app.py diff --git a/image_to_text_app/do_not_remove.jpg b/meme_search_pro/image_to_text_app/do_not_remove.jpg similarity index 100% rename from image_to_text_app/do_not_remove.jpg rename to meme_search_pro/image_to_text_app/do_not_remove.jpg diff --git a/image_to_text_app/image_to_text_generator.py b/meme_search_pro/image_to_text_app/image_to_text_generator.py similarity index 100% rename from image_to_text_app/image_to_text_generator.py rename to meme_search_pro/image_to_text_app/image_to_text_generator.py diff --git a/image_to_text_app/model_init.py b/meme_search_pro/image_to_text_app/model_init.py similarity index 100% rename from image_to_text_app/model_init.py rename to meme_search_pro/image_to_text_app/model_init.py diff --git a/image_to_text_app/requirements.txt b/meme_search_pro/image_to_text_app/requirements.txt similarity index 100% rename from image_to_text_app/requirements.txt rename to meme_search_pro/image_to_text_app/requirements.txt diff --git a/rails_app/.dockerignore b/meme_search_pro/meme_search_app/.dockerignore similarity index 100% rename from rails_app/.dockerignore rename to meme_search_pro/meme_search_app/.dockerignore diff --git a/rails_app/.gitattributes b/meme_search_pro/meme_search_app/.gitattributes similarity index 100% rename from rails_app/.gitattributes rename to meme_search_pro/meme_search_app/.gitattributes diff --git a/rails_app/.gitignore b/meme_search_pro/meme_search_app/.gitignore similarity index 100% rename from rails_app/.gitignore rename to meme_search_pro/meme_search_app/.gitignore diff --git a/rails_app/.rubocop.yml b/meme_search_pro/meme_search_app/.rubocop.yml similarity index 100% rename from rails_app/.rubocop.yml rename to meme_search_pro/meme_search_app/.rubocop.yml diff --git a/rails_app/.ruby-version b/meme_search_pro/meme_search_app/.ruby-version similarity index 100% rename from rails_app/.ruby-version rename to meme_search_pro/meme_search_app/.ruby-version diff --git a/rails_app/Dockerfile b/meme_search_pro/meme_search_app/Dockerfile similarity index 100% rename from rails_app/Dockerfile rename to meme_search_pro/meme_search_app/Dockerfile diff --git a/rails_app/Gemfile b/meme_search_pro/meme_search_app/Gemfile similarity index 97% rename from rails_app/Gemfile rename to meme_search_pro/meme_search_app/Gemfile index 8933c6f..d43b317 100644 --- a/rails_app/Gemfile +++ b/meme_search_pro/meme_search_app/Gemfile @@ -50,7 +50,7 @@ group :development do gem "web-console" # Highlight the fine-grained location where an error occurred [https://github.com/ruby/error_highlight] - gem "error_highlight", ">= 0.4.0", platforms: [ :ruby ] + # gem "error_highlight", ">= 0.4.0", platforms: [ :ruby ] end group :test do diff --git a/rails_app/Gemfile.lock b/meme_search_pro/meme_search_app/Gemfile.lock similarity index 99% rename from rails_app/Gemfile.lock rename to meme_search_pro/meme_search_app/Gemfile.lock index ab0498a..07131ae 100644 --- a/rails_app/Gemfile.lock +++ b/meme_search_pro/meme_search_app/Gemfile.lock @@ -99,7 +99,6 @@ GEM irb (~> 1.10) reline (>= 0.3.8) drb (2.2.1) - error_highlight (0.6.0) erubi (1.13.0) ffi (1.17.0-aarch64-linux-gnu) ffi (1.17.0-aarch64-linux-musl) @@ -366,7 +365,6 @@ DEPENDENCIES brakeman capybara debug - error_highlight (>= 0.4.0) image_processing (~> 1.2) importmap-rails informers diff --git a/rails_app/Procfile.dev b/meme_search_pro/meme_search_app/Procfile.dev similarity index 100% rename from rails_app/Procfile.dev rename to meme_search_pro/meme_search_app/Procfile.dev diff --git a/rails_app/README.md b/meme_search_pro/meme_search_app/README.md similarity index 100% rename from rails_app/README.md rename to meme_search_pro/meme_search_app/README.md diff --git a/rails_app/Rakefile b/meme_search_pro/meme_search_app/Rakefile similarity index 100% rename from rails_app/Rakefile rename to meme_search_pro/meme_search_app/Rakefile diff --git a/rails_app/app/assets/builds/.keep b/meme_search_pro/meme_search_app/app/assets/builds/.keep similarity index 100% rename from rails_app/app/assets/builds/.keep rename to meme_search_pro/meme_search_app/app/assets/builds/.keep diff --git a/rails_app/app/assets/config/manifest.js b/meme_search_pro/meme_search_app/app/assets/config/manifest.js similarity index 100% rename from rails_app/app/assets/config/manifest.js rename to meme_search_pro/meme_search_app/app/assets/config/manifest.js diff --git a/rails_app/app/assets/images/.keep b/meme_search_pro/meme_search_app/app/assets/images/.keep similarity index 100% rename from rails_app/app/assets/images/.keep rename to meme_search_pro/meme_search_app/app/assets/images/.keep diff --git a/rails_app/app/assets/stylesheets/application.css b/meme_search_pro/meme_search_app/app/assets/stylesheets/application.css similarity index 100% rename from rails_app/app/assets/stylesheets/application.css rename to meme_search_pro/meme_search_app/app/assets/stylesheets/application.css diff --git a/rails_app/app/assets/stylesheets/application.tailwind.css b/meme_search_pro/meme_search_app/app/assets/stylesheets/application.tailwind.css similarity index 100% rename from rails_app/app/assets/stylesheets/application.tailwind.css rename to meme_search_pro/meme_search_app/app/assets/stylesheets/application.tailwind.css diff --git a/rails_app/app/channels/application_cable/channel.rb b/meme_search_pro/meme_search_app/app/channels/application_cable/channel.rb similarity index 100% rename from rails_app/app/channels/application_cable/channel.rb rename to meme_search_pro/meme_search_app/app/channels/application_cable/channel.rb diff --git a/rails_app/app/channels/application_cable/connection.rb b/meme_search_pro/meme_search_app/app/channels/application_cable/connection.rb similarity index 100% rename from rails_app/app/channels/application_cable/connection.rb rename to meme_search_pro/meme_search_app/app/channels/application_cable/connection.rb diff --git a/rails_app/app/channels/image_description_channel.rb b/meme_search_pro/meme_search_app/app/channels/image_description_channel.rb similarity index 100% rename from rails_app/app/channels/image_description_channel.rb rename to meme_search_pro/meme_search_app/app/channels/image_description_channel.rb diff --git a/rails_app/app/channels/image_status_channel.rb b/meme_search_pro/meme_search_app/app/channels/image_status_channel.rb similarity index 100% rename from rails_app/app/channels/image_status_channel.rb rename to meme_search_pro/meme_search_app/app/channels/image_status_channel.rb diff --git a/rails_app/app/controllers/application_controller.rb b/meme_search_pro/meme_search_app/app/controllers/application_controller.rb similarity index 100% rename from rails_app/app/controllers/application_controller.rb rename to meme_search_pro/meme_search_app/app/controllers/application_controller.rb diff --git a/rails_app/app/controllers/concerns/.keep b/meme_search_pro/meme_search_app/app/controllers/concerns/.keep similarity index 100% rename from rails_app/app/controllers/concerns/.keep rename to meme_search_pro/meme_search_app/app/controllers/concerns/.keep diff --git a/rails_app/app/controllers/image_cores_controller.rb b/meme_search_pro/meme_search_app/app/controllers/image_cores_controller.rb similarity index 98% rename from rails_app/app/controllers/image_cores_controller.rb rename to meme_search_pro/meme_search_app/app/controllers/image_cores_controller.rb index f83123d..641c215 100644 --- a/rails_app/app/controllers/image_cores_controller.rb +++ b/meme_search_pro/meme_search_app/app/controllers/image_cores_controller.rb @@ -64,7 +64,7 @@ def generate_description # If the connection fails, use the backup URI puts "Failed to connect to localhost: #{e.message}" - uri = URI("http://meme_search_image_to_text_app:8000/add_job") + uri = URI("http://image_to_text_generator:8000/add_job") http = Net::HTTP.new(uri.host, uri.port) # Try to make a request to the backup URI @@ -115,7 +115,7 @@ def generate_stopper rescue => e # For compose runner (when app run in docker network) # If the connection fails, use the backup URI - uri = URI.parse("http://meme_search_image_to_text_app:8000/remove_job/#{@image_core.id}") + uri = URI.parse("http://image_to_text_generator:8000/remove_job/#{@image_core.id}") http = Net::HTTP.new(uri.host, uri.port) # Try to make a request to the first URI diff --git a/rails_app/app/controllers/image_embeddings_controller.rb b/meme_search_pro/meme_search_app/app/controllers/image_embeddings_controller.rb similarity index 100% rename from rails_app/app/controllers/image_embeddings_controller.rb rename to meme_search_pro/meme_search_app/app/controllers/image_embeddings_controller.rb diff --git a/rails_app/app/controllers/image_tags_controller.rb b/meme_search_pro/meme_search_app/app/controllers/image_tags_controller.rb similarity index 100% rename from rails_app/app/controllers/image_tags_controller.rb rename to meme_search_pro/meme_search_app/app/controllers/image_tags_controller.rb diff --git a/rails_app/app/controllers/settings/image_paths_controller.rb b/meme_search_pro/meme_search_app/app/controllers/settings/image_paths_controller.rb similarity index 100% rename from rails_app/app/controllers/settings/image_paths_controller.rb rename to meme_search_pro/meme_search_app/app/controllers/settings/image_paths_controller.rb diff --git a/rails_app/app/controllers/settings/tag_names_controller.rb b/meme_search_pro/meme_search_app/app/controllers/settings/tag_names_controller.rb similarity index 100% rename from rails_app/app/controllers/settings/tag_names_controller.rb rename to meme_search_pro/meme_search_app/app/controllers/settings/tag_names_controller.rb diff --git a/rails_app/app/controllers/settings_controller.rb b/meme_search_pro/meme_search_app/app/controllers/settings_controller.rb similarity index 100% rename from rails_app/app/controllers/settings_controller.rb rename to meme_search_pro/meme_search_app/app/controllers/settings_controller.rb diff --git a/rails_app/app/helpers/application_helper.rb b/meme_search_pro/meme_search_app/app/helpers/application_helper.rb similarity index 100% rename from rails_app/app/helpers/application_helper.rb rename to meme_search_pro/meme_search_app/app/helpers/application_helper.rb diff --git a/rails_app/app/helpers/image_cores_helper.rb b/meme_search_pro/meme_search_app/app/helpers/image_cores_helper.rb similarity index 100% rename from rails_app/app/helpers/image_cores_helper.rb rename to meme_search_pro/meme_search_app/app/helpers/image_cores_helper.rb diff --git a/rails_app/app/helpers/image_embeddings_helper.rb b/meme_search_pro/meme_search_app/app/helpers/image_embeddings_helper.rb similarity index 100% rename from rails_app/app/helpers/image_embeddings_helper.rb rename to meme_search_pro/meme_search_app/app/helpers/image_embeddings_helper.rb diff --git a/rails_app/app/helpers/image_paths_helper.rb b/meme_search_pro/meme_search_app/app/helpers/image_paths_helper.rb similarity index 100% rename from rails_app/app/helpers/image_paths_helper.rb rename to meme_search_pro/meme_search_app/app/helpers/image_paths_helper.rb diff --git a/rails_app/app/helpers/image_tags_helper.rb b/meme_search_pro/meme_search_app/app/helpers/image_tags_helper.rb similarity index 100% rename from rails_app/app/helpers/image_tags_helper.rb rename to meme_search_pro/meme_search_app/app/helpers/image_tags_helper.rb diff --git a/rails_app/app/helpers/memes_helper.rb b/meme_search_pro/meme_search_app/app/helpers/memes_helper.rb similarity index 100% rename from rails_app/app/helpers/memes_helper.rb rename to meme_search_pro/meme_search_app/app/helpers/memes_helper.rb diff --git a/rails_app/app/helpers/tag_names_helper.rb b/meme_search_pro/meme_search_app/app/helpers/tag_names_helper.rb similarity index 100% rename from rails_app/app/helpers/tag_names_helper.rb rename to meme_search_pro/meme_search_app/app/helpers/tag_names_helper.rb diff --git a/rails_app/app/javascript/application.js b/meme_search_pro/meme_search_app/app/javascript/application.js similarity index 100% rename from rails_app/app/javascript/application.js rename to meme_search_pro/meme_search_app/app/javascript/application.js diff --git a/rails_app/app/javascript/channels/consumer.js b/meme_search_pro/meme_search_app/app/javascript/channels/consumer.js similarity index 100% rename from rails_app/app/javascript/channels/consumer.js rename to meme_search_pro/meme_search_app/app/javascript/channels/consumer.js diff --git a/rails_app/app/javascript/channels/image_description_channel.js b/meme_search_pro/meme_search_app/app/javascript/channels/image_description_channel.js similarity index 100% rename from rails_app/app/javascript/channels/image_description_channel.js rename to meme_search_pro/meme_search_app/app/javascript/channels/image_description_channel.js diff --git a/rails_app/app/javascript/channels/image_status_channel.js b/meme_search_pro/meme_search_app/app/javascript/channels/image_status_channel.js similarity index 100% rename from rails_app/app/javascript/channels/image_status_channel.js rename to meme_search_pro/meme_search_app/app/javascript/channels/image_status_channel.js diff --git a/rails_app/app/javascript/channels/index.js b/meme_search_pro/meme_search_app/app/javascript/channels/index.js similarity index 100% rename from rails_app/app/javascript/channels/index.js rename to meme_search_pro/meme_search_app/app/javascript/channels/index.js diff --git a/rails_app/app/javascript/controllers/application.js b/meme_search_pro/meme_search_app/app/javascript/controllers/application.js similarity index 100% rename from rails_app/app/javascript/controllers/application.js rename to meme_search_pro/meme_search_app/app/javascript/controllers/application.js diff --git a/rails_app/app/javascript/controllers/debounce_controller.js b/meme_search_pro/meme_search_app/app/javascript/controllers/debounce_controller.js similarity index 100% rename from rails_app/app/javascript/controllers/debounce_controller.js rename to meme_search_pro/meme_search_app/app/javascript/controllers/debounce_controller.js diff --git a/rails_app/app/javascript/controllers/index.js b/meme_search_pro/meme_search_app/app/javascript/controllers/index.js similarity index 100% rename from rails_app/app/javascript/controllers/index.js rename to meme_search_pro/meme_search_app/app/javascript/controllers/index.js diff --git a/rails_app/app/javascript/controllers/multi_select_controller.js b/meme_search_pro/meme_search_app/app/javascript/controllers/multi_select_controller.js similarity index 100% rename from rails_app/app/javascript/controllers/multi_select_controller.js rename to meme_search_pro/meme_search_app/app/javascript/controllers/multi_select_controller.js diff --git a/rails_app/app/jobs/application_job.rb b/meme_search_pro/meme_search_app/app/jobs/application_job.rb similarity index 100% rename from rails_app/app/jobs/application_job.rb rename to meme_search_pro/meme_search_app/app/jobs/application_job.rb diff --git a/rails_app/app/mailers/application_mailer.rb b/meme_search_pro/meme_search_app/app/mailers/application_mailer.rb similarity index 100% rename from rails_app/app/mailers/application_mailer.rb rename to meme_search_pro/meme_search_app/app/mailers/application_mailer.rb diff --git a/rails_app/app/models/application_record.rb b/meme_search_pro/meme_search_app/app/models/application_record.rb similarity index 100% rename from rails_app/app/models/application_record.rb rename to meme_search_pro/meme_search_app/app/models/application_record.rb diff --git a/rails_app/app/models/concerns/.keep b/meme_search_pro/meme_search_app/app/models/concerns/.keep similarity index 100% rename from rails_app/app/models/concerns/.keep rename to meme_search_pro/meme_search_app/app/models/concerns/.keep diff --git a/rails_app/app/models/image_core.rb b/meme_search_pro/meme_search_app/app/models/image_core.rb similarity index 100% rename from rails_app/app/models/image_core.rb rename to meme_search_pro/meme_search_app/app/models/image_core.rb diff --git a/rails_app/app/models/image_embedding.rb b/meme_search_pro/meme_search_app/app/models/image_embedding.rb similarity index 100% rename from rails_app/app/models/image_embedding.rb rename to meme_search_pro/meme_search_app/app/models/image_embedding.rb diff --git a/rails_app/app/models/image_path.rb b/meme_search_pro/meme_search_app/app/models/image_path.rb similarity index 100% rename from rails_app/app/models/image_path.rb rename to meme_search_pro/meme_search_app/app/models/image_path.rb diff --git a/rails_app/app/models/image_tag.rb b/meme_search_pro/meme_search_app/app/models/image_tag.rb similarity index 100% rename from rails_app/app/models/image_tag.rb rename to meme_search_pro/meme_search_app/app/models/image_tag.rb diff --git a/rails_app/app/models/tag_name.rb b/meme_search_pro/meme_search_app/app/models/tag_name.rb similarity index 100% rename from rails_app/app/models/tag_name.rb rename to meme_search_pro/meme_search_app/app/models/tag_name.rb diff --git a/rails_app/app/views/image_cores/_edit.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_edit.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_edit.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_edit.html.erb diff --git a/rails_app/app/views/image_cores/_filters.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_filters.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_filters.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_filters.html.erb diff --git a/rails_app/app/views/image_cores/_form.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_form.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_form.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_form.html.erb diff --git a/rails_app/app/views/image_cores/_generate_status.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_generate_status.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_generate_status.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_generate_status.html.erb diff --git a/rails_app/app/views/image_cores/_image_core.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_image_core.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_image_core.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_image_core.html.erb diff --git a/rails_app/app/views/image_cores/_no_search.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_no_search.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_no_search.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_no_search.html.erb diff --git a/rails_app/app/views/image_cores/_no_search_results.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_no_search_results.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_no_search_results.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_no_search_results.html.erb diff --git a/rails_app/app/views/image_cores/_path_toggle.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_path_toggle.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_path_toggle.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_path_toggle.html.erb diff --git a/rails_app/app/views/image_cores/_search_results.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_search_results.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_search_results.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_search_results.html.erb diff --git a/rails_app/app/views/image_cores/_tag_toggle.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/_tag_toggle.html.erb similarity index 100% rename from rails_app/app/views/image_cores/_tag_toggle.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/_tag_toggle.html.erb diff --git a/rails_app/app/views/image_cores/edit.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/edit.html.erb similarity index 100% rename from rails_app/app/views/image_cores/edit.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/edit.html.erb diff --git a/rails_app/app/views/image_cores/index.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/index.html.erb similarity index 100% rename from rails_app/app/views/image_cores/index.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/index.html.erb diff --git a/rails_app/app/views/image_cores/search.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/search.html.erb similarity index 100% rename from rails_app/app/views/image_cores/search.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/search.html.erb diff --git a/rails_app/app/views/image_cores/show.html.erb b/meme_search_pro/meme_search_app/app/views/image_cores/show.html.erb similarity index 100% rename from rails_app/app/views/image_cores/show.html.erb rename to meme_search_pro/meme_search_app/app/views/image_cores/show.html.erb diff --git a/rails_app/app/views/image_embeddings/_form.html.erb b/meme_search_pro/meme_search_app/app/views/image_embeddings/_form.html.erb similarity index 100% rename from rails_app/app/views/image_embeddings/_form.html.erb rename to meme_search_pro/meme_search_app/app/views/image_embeddings/_form.html.erb diff --git a/rails_app/app/views/image_embeddings/_image_embedding.html.erb b/meme_search_pro/meme_search_app/app/views/image_embeddings/_image_embedding.html.erb similarity index 100% rename from rails_app/app/views/image_embeddings/_image_embedding.html.erb rename to meme_search_pro/meme_search_app/app/views/image_embeddings/_image_embedding.html.erb diff --git a/rails_app/app/views/image_embeddings/edit.html.erb b/meme_search_pro/meme_search_app/app/views/image_embeddings/edit.html.erb similarity index 100% rename from rails_app/app/views/image_embeddings/edit.html.erb rename to meme_search_pro/meme_search_app/app/views/image_embeddings/edit.html.erb diff --git a/rails_app/app/views/image_embeddings/index.html.erb b/meme_search_pro/meme_search_app/app/views/image_embeddings/index.html.erb similarity index 100% rename from rails_app/app/views/image_embeddings/index.html.erb rename to meme_search_pro/meme_search_app/app/views/image_embeddings/index.html.erb diff --git a/rails_app/app/views/image_embeddings/new.html.erb b/meme_search_pro/meme_search_app/app/views/image_embeddings/new.html.erb similarity index 100% rename from rails_app/app/views/image_embeddings/new.html.erb rename to meme_search_pro/meme_search_app/app/views/image_embeddings/new.html.erb diff --git a/rails_app/app/views/image_embeddings/show.html.erb b/meme_search_pro/meme_search_app/app/views/image_embeddings/show.html.erb similarity index 100% rename from rails_app/app/views/image_embeddings/show.html.erb rename to meme_search_pro/meme_search_app/app/views/image_embeddings/show.html.erb diff --git a/rails_app/app/views/image_tags/_form.html.erb b/meme_search_pro/meme_search_app/app/views/image_tags/_form.html.erb similarity index 100% rename from rails_app/app/views/image_tags/_form.html.erb rename to meme_search_pro/meme_search_app/app/views/image_tags/_form.html.erb diff --git a/rails_app/app/views/image_tags/_image_tag.html.erb b/meme_search_pro/meme_search_app/app/views/image_tags/_image_tag.html.erb similarity index 100% rename from rails_app/app/views/image_tags/_image_tag.html.erb rename to meme_search_pro/meme_search_app/app/views/image_tags/_image_tag.html.erb diff --git a/rails_app/app/views/image_tags/edit.html.erb b/meme_search_pro/meme_search_app/app/views/image_tags/edit.html.erb similarity index 100% rename from rails_app/app/views/image_tags/edit.html.erb rename to meme_search_pro/meme_search_app/app/views/image_tags/edit.html.erb diff --git a/rails_app/app/views/image_tags/index.html.erb b/meme_search_pro/meme_search_app/app/views/image_tags/index.html.erb similarity index 100% rename from rails_app/app/views/image_tags/index.html.erb rename to meme_search_pro/meme_search_app/app/views/image_tags/index.html.erb diff --git a/rails_app/app/views/image_tags/new.html.erb b/meme_search_pro/meme_search_app/app/views/image_tags/new.html.erb similarity index 100% rename from rails_app/app/views/image_tags/new.html.erb rename to meme_search_pro/meme_search_app/app/views/image_tags/new.html.erb diff --git a/rails_app/app/views/image_tags/show.html.erb b/meme_search_pro/meme_search_app/app/views/image_tags/show.html.erb similarity index 100% rename from rails_app/app/views/image_tags/show.html.erb rename to meme_search_pro/meme_search_app/app/views/image_tags/show.html.erb diff --git a/rails_app/app/views/layouts/application.html.erb b/meme_search_pro/meme_search_app/app/views/layouts/application.html.erb similarity index 100% rename from rails_app/app/views/layouts/application.html.erb rename to meme_search_pro/meme_search_app/app/views/layouts/application.html.erb diff --git a/rails_app/app/views/layouts/mailer.html.erb b/meme_search_pro/meme_search_app/app/views/layouts/mailer.html.erb similarity index 100% rename from rails_app/app/views/layouts/mailer.html.erb rename to meme_search_pro/meme_search_app/app/views/layouts/mailer.html.erb diff --git a/rails_app/app/views/layouts/mailer.text.erb b/meme_search_pro/meme_search_app/app/views/layouts/mailer.text.erb similarity index 100% rename from rails_app/app/views/layouts/mailer.text.erb rename to meme_search_pro/meme_search_app/app/views/layouts/mailer.text.erb diff --git a/rails_app/app/views/pwa/manifest.json.erb b/meme_search_pro/meme_search_app/app/views/pwa/manifest.json.erb similarity index 100% rename from rails_app/app/views/pwa/manifest.json.erb rename to meme_search_pro/meme_search_app/app/views/pwa/manifest.json.erb diff --git a/rails_app/app/views/pwa/service-worker.js b/meme_search_pro/meme_search_app/app/views/pwa/service-worker.js similarity index 100% rename from rails_app/app/views/pwa/service-worker.js rename to meme_search_pro/meme_search_app/app/views/pwa/service-worker.js diff --git a/rails_app/app/views/settings/image_paths/_form.html.erb b/meme_search_pro/meme_search_app/app/views/settings/image_paths/_form.html.erb similarity index 100% rename from rails_app/app/views/settings/image_paths/_form.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/image_paths/_form.html.erb diff --git a/rails_app/app/views/settings/image_paths/_image_path.html.erb b/meme_search_pro/meme_search_app/app/views/settings/image_paths/_image_path.html.erb similarity index 100% rename from rails_app/app/views/settings/image_paths/_image_path.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/image_paths/_image_path.html.erb diff --git a/rails_app/app/views/settings/image_paths/edit.html.erb b/meme_search_pro/meme_search_app/app/views/settings/image_paths/edit.html.erb similarity index 100% rename from rails_app/app/views/settings/image_paths/edit.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/image_paths/edit.html.erb diff --git a/rails_app/app/views/settings/image_paths/index.html.erb b/meme_search_pro/meme_search_app/app/views/settings/image_paths/index.html.erb similarity index 100% rename from rails_app/app/views/settings/image_paths/index.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/image_paths/index.html.erb diff --git a/rails_app/app/views/settings/image_paths/new.html.erb b/meme_search_pro/meme_search_app/app/views/settings/image_paths/new.html.erb similarity index 100% rename from rails_app/app/views/settings/image_paths/new.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/image_paths/new.html.erb diff --git a/rails_app/app/views/settings/image_paths/show.html.erb b/meme_search_pro/meme_search_app/app/views/settings/image_paths/show.html.erb similarity index 100% rename from rails_app/app/views/settings/image_paths/show.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/image_paths/show.html.erb diff --git a/rails_app/app/views/settings/index.html.erb b/meme_search_pro/meme_search_app/app/views/settings/index.html.erb similarity index 100% rename from rails_app/app/views/settings/index.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/index.html.erb diff --git a/rails_app/app/views/settings/tag_names/_form.html.erb b/meme_search_pro/meme_search_app/app/views/settings/tag_names/_form.html.erb similarity index 100% rename from rails_app/app/views/settings/tag_names/_form.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/tag_names/_form.html.erb diff --git a/rails_app/app/views/settings/tag_names/_tag_name.html.erb b/meme_search_pro/meme_search_app/app/views/settings/tag_names/_tag_name.html.erb similarity index 100% rename from rails_app/app/views/settings/tag_names/_tag_name.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/tag_names/_tag_name.html.erb diff --git a/rails_app/app/views/settings/tag_names/edit.html.erb b/meme_search_pro/meme_search_app/app/views/settings/tag_names/edit.html.erb similarity index 100% rename from rails_app/app/views/settings/tag_names/edit.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/tag_names/edit.html.erb diff --git a/rails_app/app/views/settings/tag_names/index.html.erb b/meme_search_pro/meme_search_app/app/views/settings/tag_names/index.html.erb similarity index 100% rename from rails_app/app/views/settings/tag_names/index.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/tag_names/index.html.erb diff --git a/rails_app/app/views/settings/tag_names/new.html.erb b/meme_search_pro/meme_search_app/app/views/settings/tag_names/new.html.erb similarity index 100% rename from rails_app/app/views/settings/tag_names/new.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/tag_names/new.html.erb diff --git a/rails_app/app/views/settings/tag_names/show.html.erb b/meme_search_pro/meme_search_app/app/views/settings/tag_names/show.html.erb similarity index 100% rename from rails_app/app/views/settings/tag_names/show.html.erb rename to meme_search_pro/meme_search_app/app/views/settings/tag_names/show.html.erb diff --git a/rails_app/app/views/shared/_nav.html.erb b/meme_search_pro/meme_search_app/app/views/shared/_nav.html.erb similarity index 100% rename from rails_app/app/views/shared/_nav.html.erb rename to meme_search_pro/meme_search_app/app/views/shared/_nav.html.erb diff --git a/rails_app/app/views/shared/_notifications.html.erb b/meme_search_pro/meme_search_app/app/views/shared/_notifications.html.erb similarity index 100% rename from rails_app/app/views/shared/_notifications.html.erb rename to meme_search_pro/meme_search_app/app/views/shared/_notifications.html.erb diff --git a/rails_app/bin/brakeman b/meme_search_pro/meme_search_app/bin/brakeman similarity index 100% rename from rails_app/bin/brakeman rename to meme_search_pro/meme_search_app/bin/brakeman diff --git a/rails_app/bin/bundle b/meme_search_pro/meme_search_app/bin/bundle similarity index 100% rename from rails_app/bin/bundle rename to meme_search_pro/meme_search_app/bin/bundle diff --git a/rails_app/bin/dev b/meme_search_pro/meme_search_app/bin/dev similarity index 100% rename from rails_app/bin/dev rename to meme_search_pro/meme_search_app/bin/dev diff --git a/rails_app/bin/docker-entrypoint b/meme_search_pro/meme_search_app/bin/docker-entrypoint similarity index 100% rename from rails_app/bin/docker-entrypoint rename to meme_search_pro/meme_search_app/bin/docker-entrypoint diff --git a/rails_app/bin/importmap b/meme_search_pro/meme_search_app/bin/importmap similarity index 100% rename from rails_app/bin/importmap rename to meme_search_pro/meme_search_app/bin/importmap diff --git a/rails_app/bin/rails b/meme_search_pro/meme_search_app/bin/rails similarity index 100% rename from rails_app/bin/rails rename to meme_search_pro/meme_search_app/bin/rails diff --git a/rails_app/bin/rake b/meme_search_pro/meme_search_app/bin/rake similarity index 100% rename from rails_app/bin/rake rename to meme_search_pro/meme_search_app/bin/rake diff --git a/rails_app/bin/rubocop b/meme_search_pro/meme_search_app/bin/rubocop similarity index 100% rename from rails_app/bin/rubocop rename to meme_search_pro/meme_search_app/bin/rubocop diff --git a/rails_app/bin/setup b/meme_search_pro/meme_search_app/bin/setup similarity index 100% rename from rails_app/bin/setup rename to meme_search_pro/meme_search_app/bin/setup diff --git a/rails_app/config.ru b/meme_search_pro/meme_search_app/config.ru similarity index 100% rename from rails_app/config.ru rename to meme_search_pro/meme_search_app/config.ru diff --git a/rails_app/config/application.rb b/meme_search_pro/meme_search_app/config/application.rb similarity index 100% rename from rails_app/config/application.rb rename to meme_search_pro/meme_search_app/config/application.rb diff --git a/rails_app/config/boot.rb b/meme_search_pro/meme_search_app/config/boot.rb similarity index 100% rename from rails_app/config/boot.rb rename to meme_search_pro/meme_search_app/config/boot.rb diff --git a/rails_app/config/cable.yml b/meme_search_pro/meme_search_app/config/cable.yml similarity index 100% rename from rails_app/config/cable.yml rename to meme_search_pro/meme_search_app/config/cable.yml diff --git a/rails_app/config/credentials.yml.enc b/meme_search_pro/meme_search_app/config/credentials.yml.enc similarity index 100% rename from rails_app/config/credentials.yml.enc rename to meme_search_pro/meme_search_app/config/credentials.yml.enc diff --git a/rails_app/config/database.yml b/meme_search_pro/meme_search_app/config/database.yml similarity index 89% rename from rails_app/config/database.yml rename to meme_search_pro/meme_search_app/config/database.yml index 37c049f..ee28515 100644 --- a/rails_app/config/database.yml +++ b/meme_search_pro/meme_search_app/config/database.yml @@ -11,7 +11,6 @@ development: pool: 5 timeout: 5000 database: meme_development - # url: <%= ENV["DATABASE_URL"] %> production: adapter: postgresql diff --git a/rails_app/config/environment.rb b/meme_search_pro/meme_search_app/config/environment.rb similarity index 100% rename from rails_app/config/environment.rb rename to meme_search_pro/meme_search_app/config/environment.rb diff --git a/rails_app/config/environments/development.rb b/meme_search_pro/meme_search_app/config/environments/development.rb similarity index 100% rename from rails_app/config/environments/development.rb rename to meme_search_pro/meme_search_app/config/environments/development.rb diff --git a/rails_app/config/environments/production.rb b/meme_search_pro/meme_search_app/config/environments/production.rb similarity index 100% rename from rails_app/config/environments/production.rb rename to meme_search_pro/meme_search_app/config/environments/production.rb diff --git a/rails_app/config/environments/test.rb b/meme_search_pro/meme_search_app/config/environments/test.rb similarity index 100% rename from rails_app/config/environments/test.rb rename to meme_search_pro/meme_search_app/config/environments/test.rb diff --git a/rails_app/config/importmap.rb b/meme_search_pro/meme_search_app/config/importmap.rb similarity index 100% rename from rails_app/config/importmap.rb rename to meme_search_pro/meme_search_app/config/importmap.rb diff --git a/rails_app/config/initializers/assets.rb b/meme_search_pro/meme_search_app/config/initializers/assets.rb similarity index 100% rename from rails_app/config/initializers/assets.rb rename to meme_search_pro/meme_search_app/config/initializers/assets.rb diff --git a/rails_app/config/initializers/content_security_policy.rb b/meme_search_pro/meme_search_app/config/initializers/content_security_policy.rb similarity index 100% rename from rails_app/config/initializers/content_security_policy.rb rename to meme_search_pro/meme_search_app/config/initializers/content_security_policy.rb diff --git a/rails_app/config/initializers/filter_parameter_logging.rb b/meme_search_pro/meme_search_app/config/initializers/filter_parameter_logging.rb similarity index 100% rename from rails_app/config/initializers/filter_parameter_logging.rb rename to meme_search_pro/meme_search_app/config/initializers/filter_parameter_logging.rb diff --git a/rails_app/config/initializers/inflections.rb b/meme_search_pro/meme_search_app/config/initializers/inflections.rb similarity index 100% rename from rails_app/config/initializers/inflections.rb rename to meme_search_pro/meme_search_app/config/initializers/inflections.rb diff --git a/rails_app/config/initializers/model_setup.rb b/meme_search_pro/meme_search_app/config/initializers/model_setup.rb similarity index 100% rename from rails_app/config/initializers/model_setup.rb rename to meme_search_pro/meme_search_app/config/initializers/model_setup.rb diff --git a/rails_app/config/initializers/pagy.rb b/meme_search_pro/meme_search_app/config/initializers/pagy.rb similarity index 100% rename from rails_app/config/initializers/pagy.rb rename to meme_search_pro/meme_search_app/config/initializers/pagy.rb diff --git a/rails_app/config/initializers/permissions_policy.rb b/meme_search_pro/meme_search_app/config/initializers/permissions_policy.rb similarity index 100% rename from rails_app/config/initializers/permissions_policy.rb rename to meme_search_pro/meme_search_app/config/initializers/permissions_policy.rb diff --git a/rails_app/config/locales/en.yml b/meme_search_pro/meme_search_app/config/locales/en.yml similarity index 100% rename from rails_app/config/locales/en.yml rename to meme_search_pro/meme_search_app/config/locales/en.yml diff --git a/rails_app/config/puma.rb b/meme_search_pro/meme_search_app/config/puma.rb similarity index 100% rename from rails_app/config/puma.rb rename to meme_search_pro/meme_search_app/config/puma.rb diff --git a/rails_app/config/routes.rb b/meme_search_pro/meme_search_app/config/routes.rb similarity index 100% rename from rails_app/config/routes.rb rename to meme_search_pro/meme_search_app/config/routes.rb diff --git a/rails_app/config/storage.yml b/meme_search_pro/meme_search_app/config/storage.yml similarity index 100% rename from rails_app/config/storage.yml rename to meme_search_pro/meme_search_app/config/storage.yml diff --git a/rails_app/config/tailwind.config.js b/meme_search_pro/meme_search_app/config/tailwind.config.js similarity index 100% rename from rails_app/config/tailwind.config.js rename to meme_search_pro/meme_search_app/config/tailwind.config.js diff --git a/rails_app/db/migrate/20241021223150_install_neighbor_vector.rb b/meme_search_pro/meme_search_app/db/migrate/20241021223150_install_neighbor_vector.rb similarity index 100% rename from rails_app/db/migrate/20241021223150_install_neighbor_vector.rb rename to meme_search_pro/meme_search_app/db/migrate/20241021223150_install_neighbor_vector.rb diff --git a/rails_app/db/migrate/20241022170131_create_image_paths.rb b/meme_search_pro/meme_search_app/db/migrate/20241022170131_create_image_paths.rb similarity index 100% rename from rails_app/db/migrate/20241022170131_create_image_paths.rb rename to meme_search_pro/meme_search_app/db/migrate/20241022170131_create_image_paths.rb diff --git a/rails_app/db/migrate/20241022170251_create_image_cores.rb b/meme_search_pro/meme_search_app/db/migrate/20241022170251_create_image_cores.rb similarity index 100% rename from rails_app/db/migrate/20241022170251_create_image_cores.rb rename to meme_search_pro/meme_search_app/db/migrate/20241022170251_create_image_cores.rb diff --git a/rails_app/db/migrate/20241022170324_create_tag_names.rb b/meme_search_pro/meme_search_app/db/migrate/20241022170324_create_tag_names.rb similarity index 100% rename from rails_app/db/migrate/20241022170324_create_tag_names.rb rename to meme_search_pro/meme_search_app/db/migrate/20241022170324_create_tag_names.rb diff --git a/rails_app/db/migrate/20241022170402_create_image_tags.rb b/meme_search_pro/meme_search_app/db/migrate/20241022170402_create_image_tags.rb similarity index 100% rename from rails_app/db/migrate/20241022170402_create_image_tags.rb rename to meme_search_pro/meme_search_app/db/migrate/20241022170402_create_image_tags.rb diff --git a/rails_app/db/migrate/20241022170426_create_image_embeddings.rb b/meme_search_pro/meme_search_app/db/migrate/20241022170426_create_image_embeddings.rb similarity index 100% rename from rails_app/db/migrate/20241022170426_create_image_embeddings.rb rename to meme_search_pro/meme_search_app/db/migrate/20241022170426_create_image_embeddings.rb diff --git a/rails_app/db/schema.rb b/meme_search_pro/meme_search_app/db/schema.rb similarity index 100% rename from rails_app/db/schema.rb rename to meme_search_pro/meme_search_app/db/schema.rb diff --git a/rails_app/db/seeds.rb b/meme_search_pro/meme_search_app/db/seeds.rb similarity index 100% rename from rails_app/db/seeds.rb rename to meme_search_pro/meme_search_app/db/seeds.rb diff --git a/rails_app/embedding_model_download.rb b/meme_search_pro/meme_search_app/embedding_model_download.rb similarity index 100% rename from rails_app/embedding_model_download.rb rename to meme_search_pro/meme_search_app/embedding_model_download.rb diff --git a/rails_app/lib/assets/.keep b/meme_search_pro/meme_search_app/lib/assets/.keep similarity index 100% rename from rails_app/lib/assets/.keep rename to meme_search_pro/meme_search_app/lib/assets/.keep diff --git a/rails_app/lib/tasks/.keep b/meme_search_pro/meme_search_app/lib/tasks/.keep similarity index 100% rename from rails_app/lib/tasks/.keep rename to meme_search_pro/meme_search_app/lib/tasks/.keep diff --git a/rails_app/log/.keep b/meme_search_pro/meme_search_app/log/.keep similarity index 100% rename from rails_app/log/.keep rename to meme_search_pro/meme_search_app/log/.keep diff --git a/rails_app/public/404.html b/meme_search_pro/meme_search_app/public/404.html similarity index 100% rename from rails_app/public/404.html rename to meme_search_pro/meme_search_app/public/404.html diff --git a/rails_app/public/406-unsupported-browser.html b/meme_search_pro/meme_search_app/public/406-unsupported-browser.html similarity index 100% rename from rails_app/public/406-unsupported-browser.html rename to meme_search_pro/meme_search_app/public/406-unsupported-browser.html diff --git a/rails_app/public/422.html b/meme_search_pro/meme_search_app/public/422.html similarity index 100% rename from rails_app/public/422.html rename to meme_search_pro/meme_search_app/public/422.html diff --git a/rails_app/public/500.html b/meme_search_pro/meme_search_app/public/500.html similarity index 100% rename from rails_app/public/500.html rename to meme_search_pro/meme_search_app/public/500.html diff --git a/rails_app/public/icon.png b/meme_search_pro/meme_search_app/public/icon.png similarity index 100% rename from rails_app/public/icon.png rename to meme_search_pro/meme_search_app/public/icon.png diff --git a/rails_app/public/icon.svg b/meme_search_pro/meme_search_app/public/icon.svg similarity index 100% rename from rails_app/public/icon.svg rename to meme_search_pro/meme_search_app/public/icon.svg diff --git a/rails_app/public/memes/example_memes_1/all the fucks.jpg b/meme_search_pro/meme_search_app/public/memes/example_memes_1/all the fucks.jpg similarity index 100% rename from rails_app/public/memes/example_memes_1/all the fucks.jpg rename to meme_search_pro/meme_search_app/public/memes/example_memes_1/all the fucks.jpg diff --git a/rails_app/public/memes/example_memes_1/both pills.jpeg b/meme_search_pro/meme_search_app/public/memes/example_memes_1/both pills.jpeg similarity index 100% rename from rails_app/public/memes/example_memes_1/both pills.jpeg rename to meme_search_pro/meme_search_app/public/memes/example_memes_1/both pills.jpeg diff --git a/rails_app/public/memes/example_memes_2/no.jpg b/meme_search_pro/meme_search_app/public/memes/example_memes_2/no.jpg similarity index 100% rename from rails_app/public/memes/example_memes_2/no.jpg rename to meme_search_pro/meme_search_app/public/memes/example_memes_2/no.jpg diff --git a/rails_app/public/memes/example_memes_2/screenshot.jpg b/meme_search_pro/meme_search_app/public/memes/example_memes_2/screenshot.jpg similarity index 100% rename from rails_app/public/memes/example_memes_2/screenshot.jpg rename to meme_search_pro/meme_search_app/public/memes/example_memes_2/screenshot.jpg diff --git a/rails_app/public/memes/example_memes_3/happy.jpeg b/meme_search_pro/meme_search_app/public/memes/example_memes_3/happy.jpeg similarity index 100% rename from rails_app/public/memes/example_memes_3/happy.jpeg rename to meme_search_pro/meme_search_app/public/memes/example_memes_3/happy.jpeg diff --git a/rails_app/public/memes/example_memes_3/techlife.jpg b/meme_search_pro/meme_search_app/public/memes/example_memes_3/techlife.jpg similarity index 100% rename from rails_app/public/memes/example_memes_3/techlife.jpg rename to meme_search_pro/meme_search_app/public/memes/example_memes_3/techlife.jpg diff --git a/rails_app/public/robots.txt b/meme_search_pro/meme_search_app/public/robots.txt similarity index 100% rename from rails_app/public/robots.txt rename to meme_search_pro/meme_search_app/public/robots.txt diff --git a/rails_app/storage/.keep b/meme_search_pro/meme_search_app/storage/.keep similarity index 100% rename from rails_app/storage/.keep rename to meme_search_pro/meme_search_app/storage/.keep diff --git a/rails_app/test/application_system_test_case.rb b/meme_search_pro/meme_search_app/test/application_system_test_case.rb similarity index 100% rename from rails_app/test/application_system_test_case.rb rename to meme_search_pro/meme_search_app/test/application_system_test_case.rb diff --git a/rails_app/test/channels/application_cable/connection_test.rb b/meme_search_pro/meme_search_app/test/channels/application_cable/connection_test.rb similarity index 100% rename from rails_app/test/channels/application_cable/connection_test.rb rename to meme_search_pro/meme_search_app/test/channels/application_cable/connection_test.rb diff --git a/rails_app/test/channels/image_description_channel_test.rb b/meme_search_pro/meme_search_app/test/channels/image_description_channel_test.rb similarity index 100% rename from rails_app/test/channels/image_description_channel_test.rb rename to meme_search_pro/meme_search_app/test/channels/image_description_channel_test.rb diff --git a/rails_app/test/channels/image_status_channel_test.rb b/meme_search_pro/meme_search_app/test/channels/image_status_channel_test.rb similarity index 100% rename from rails_app/test/channels/image_status_channel_test.rb rename to meme_search_pro/meme_search_app/test/channels/image_status_channel_test.rb diff --git a/rails_app/test/controllers/.keep b/meme_search_pro/meme_search_app/test/controllers/.keep similarity index 100% rename from rails_app/test/controllers/.keep rename to meme_search_pro/meme_search_app/test/controllers/.keep diff --git a/rails_app/test/fixtures/files/.keep b/meme_search_pro/meme_search_app/test/fixtures/files/.keep similarity index 100% rename from rails_app/test/fixtures/files/.keep rename to meme_search_pro/meme_search_app/test/fixtures/files/.keep diff --git a/rails_app/test/fixtures/image_cores.yml b/meme_search_pro/meme_search_app/test/fixtures/image_cores.yml similarity index 100% rename from rails_app/test/fixtures/image_cores.yml rename to meme_search_pro/meme_search_app/test/fixtures/image_cores.yml diff --git a/rails_app/test/fixtures/image_paths.yml b/meme_search_pro/meme_search_app/test/fixtures/image_paths.yml similarity index 100% rename from rails_app/test/fixtures/image_paths.yml rename to meme_search_pro/meme_search_app/test/fixtures/image_paths.yml diff --git a/rails_app/test/fixtures/image_tags.yml b/meme_search_pro/meme_search_app/test/fixtures/image_tags.yml similarity index 100% rename from rails_app/test/fixtures/image_tags.yml rename to meme_search_pro/meme_search_app/test/fixtures/image_tags.yml diff --git a/rails_app/test/fixtures/tag_names.yml b/meme_search_pro/meme_search_app/test/fixtures/tag_names.yml similarity index 100% rename from rails_app/test/fixtures/tag_names.yml rename to meme_search_pro/meme_search_app/test/fixtures/tag_names.yml diff --git a/rails_app/test/helpers/.keep b/meme_search_pro/meme_search_app/test/helpers/.keep similarity index 100% rename from rails_app/test/helpers/.keep rename to meme_search_pro/meme_search_app/test/helpers/.keep diff --git a/rails_app/test/integration/.keep b/meme_search_pro/meme_search_app/test/integration/.keep similarity index 100% rename from rails_app/test/integration/.keep rename to meme_search_pro/meme_search_app/test/integration/.keep diff --git a/rails_app/test/mailers/.keep b/meme_search_pro/meme_search_app/test/mailers/.keep similarity index 100% rename from rails_app/test/mailers/.keep rename to meme_search_pro/meme_search_app/test/mailers/.keep diff --git a/rails_app/test/models/.keep b/meme_search_pro/meme_search_app/test/models/.keep similarity index 100% rename from rails_app/test/models/.keep rename to meme_search_pro/meme_search_app/test/models/.keep diff --git a/rails_app/test/system/.keep b/meme_search_pro/meme_search_app/test/system/.keep similarity index 100% rename from rails_app/test/system/.keep rename to meme_search_pro/meme_search_app/test/system/.keep diff --git a/rails_app/test/system/image_cores_test.rb b/meme_search_pro/meme_search_app/test/system/image_cores_test.rb similarity index 100% rename from rails_app/test/system/image_cores_test.rb rename to meme_search_pro/meme_search_app/test/system/image_cores_test.rb diff --git a/rails_app/test/system/image_paths_test.rb b/meme_search_pro/meme_search_app/test/system/image_paths_test.rb similarity index 100% rename from rails_app/test/system/image_paths_test.rb rename to meme_search_pro/meme_search_app/test/system/image_paths_test.rb diff --git a/rails_app/test/system/index_filter_test.rb b/meme_search_pro/meme_search_app/test/system/index_filter_test.rb similarity index 100% rename from rails_app/test/system/index_filter_test.rb rename to meme_search_pro/meme_search_app/test/system/index_filter_test.rb diff --git a/rails_app/test/system/search_test.rb b/meme_search_pro/meme_search_app/test/system/search_test.rb similarity index 100% rename from rails_app/test/system/search_test.rb rename to meme_search_pro/meme_search_app/test/system/search_test.rb diff --git a/rails_app/test/system/tag_names_test.rb b/meme_search_pro/meme_search_app/test/system/tag_names_test.rb similarity index 100% rename from rails_app/test/system/tag_names_test.rb rename to meme_search_pro/meme_search_app/test/system/tag_names_test.rb diff --git a/rails_app/test/test_helper.rb b/meme_search_pro/meme_search_app/test/test_helper.rb similarity index 100% rename from rails_app/test/test_helper.rb rename to meme_search_pro/meme_search_app/test/test_helper.rb diff --git a/rails_app/tmp/.keep b/meme_search_pro/meme_search_app/tmp/.keep similarity index 100% rename from rails_app/tmp/.keep rename to meme_search_pro/meme_search_app/tmp/.keep diff --git a/rails_app/tmp/pids/.keep b/meme_search_pro/meme_search_app/tmp/pids/.keep similarity index 100% rename from rails_app/tmp/pids/.keep rename to meme_search_pro/meme_search_app/tmp/pids/.keep diff --git a/rails_app/tmp/storage/.keep b/meme_search_pro/meme_search_app/tmp/storage/.keep similarity index 100% rename from rails_app/tmp/storage/.keep rename to meme_search_pro/meme_search_app/tmp/storage/.keep diff --git a/rails_app/vendor/.keep b/meme_search_pro/meme_search_app/vendor/.keep similarity index 100% rename from rails_app/vendor/.keep rename to meme_search_pro/meme_search_app/vendor/.keep diff --git a/rails_app/vendor/javascript/.keep b/meme_search_pro/meme_search_app/vendor/javascript/.keep similarity index 100% rename from rails_app/vendor/javascript/.keep rename to meme_search_pro/meme_search_app/vendor/javascript/.keep diff --git a/rails_app/vendor/javascript/tailwindcss-stimulus-components.js b/meme_search_pro/meme_search_app/vendor/javascript/tailwindcss-stimulus-components.js similarity index 100% rename from rails_app/vendor/javascript/tailwindcss-stimulus-components.js rename to meme_search_pro/meme_search_app/vendor/javascript/tailwindcss-stimulus-components.js diff --git a/rails_app/vendor/javascript/venobox.js b/meme_search_pro/meme_search_app/vendor/javascript/venobox.js similarity index 100% rename from rails_app/vendor/javascript/venobox.js rename to meme_search_pro/meme_search_app/vendor/javascript/venobox.js diff --git a/rails_app/test/controllers/image_cores_controller_test.rb b/rails_app/test/controllers/image_cores_controller_test.rb deleted file mode 100644 index 6046d64..0000000 --- a/rails_app/test/controllers/image_cores_controller_test.rb +++ /dev/null @@ -1,48 +0,0 @@ -require "test_helper" - -class ImageCoresControllerTest < ActionDispatch::IntegrationTest - setup do - @image_core = image_cores(:one) - end - - test "should get index" do - get image_cores_url - assert_response :success - end - - test "should get new" do - get new_image_core_url - assert_response :success - end - - test "should create image_core" do - assert_difference("ImageCore.count") do - post image_cores_url, params: { image_core: {} } - end - - assert_redirected_to image_core_url(ImageCore.last) - end - - test "should show image_core" do - get image_core_url(@image_core) - assert_response :success - end - - test "should get edit" do - get edit_image_core_url(@image_core) - assert_response :success - end - - test "should update image_core" do - patch image_core_url(@image_core), params: { image_core: {} } - assert_redirected_to image_core_url(@image_core) - end - - test "should destroy image_core" do - assert_difference("ImageCore.count", -1) do - delete image_core_url(@image_core) - end - - assert_redirected_to image_cores_url - end -end diff --git a/rails_app/test/controllers/image_embeddings_controller_test.rb b/rails_app/test/controllers/image_embeddings_controller_test.rb deleted file mode 100644 index 22fa353..0000000 --- a/rails_app/test/controllers/image_embeddings_controller_test.rb +++ /dev/null @@ -1,48 +0,0 @@ -require "test_helper" - -class ImageEmbeddingsControllerTest < ActionDispatch::IntegrationTest - setup do - @image_embedding = image_embeddings(:one) - end - - test "should get index" do - get image_embeddings_url - assert_response :success - end - - test "should get new" do - get new_image_embedding_url - assert_response :success - end - - test "should create image_embedding" do - assert_difference("ImageEmbedding.count") do - post image_embeddings_url, params: { image_embedding: {} } - end - - assert_redirected_to image_embedding_url(ImageEmbedding.last) - end - - test "should show image_embedding" do - get image_embedding_url(@image_embedding) - assert_response :success - end - - test "should get edit" do - get edit_image_embedding_url(@image_embedding) - assert_response :success - end - - test "should update image_embedding" do - patch image_embedding_url(@image_embedding), params: { image_embedding: {} } - assert_redirected_to image_embedding_url(@image_embedding) - end - - test "should destroy image_embedding" do - assert_difference("ImageEmbedding.count", -1) do - delete image_embedding_url(@image_embedding) - end - - assert_redirected_to image_embeddings_url - end -end diff --git a/rails_app/test/controllers/image_paths_controller_test.rb b/rails_app/test/controllers/image_paths_controller_test.rb deleted file mode 100644 index f52da5f..0000000 --- a/rails_app/test/controllers/image_paths_controller_test.rb +++ /dev/null @@ -1,48 +0,0 @@ -require "test_helper" - -class ImagePathsControllerTest < ActionDispatch::IntegrationTest - setup do - @image_path = image_paths(:one) - end - - test "should get index" do - get image_paths_url - assert_response :success - end - - test "should get new" do - get new_image_path_url - assert_response :success - end - - test "should create image_path" do - assert_difference("ImagePath.count") do - post image_paths_url, params: { image_path: { image_path: @image_path.image_path } } - end - - assert_redirected_to image_path_url(ImagePath.last) - end - - test "should show image_path" do - get image_path_url(@image_path) - assert_response :success - end - - test "should get edit" do - get edit_image_path_url(@image_path) - assert_response :success - end - - test "should update image_path" do - patch image_path_url(@image_path), params: { image_path: { image_path: @image_path.image_path } } - assert_redirected_to image_path_url(@image_path) - end - - test "should destroy image_path" do - assert_difference("ImagePath.count", -1) do - delete image_path_url(@image_path) - end - - assert_redirected_to image_paths_url - end -end diff --git a/rails_app/test/controllers/image_tags_controller_test.rb b/rails_app/test/controllers/image_tags_controller_test.rb deleted file mode 100644 index fafa1bd..0000000 --- a/rails_app/test/controllers/image_tags_controller_test.rb +++ /dev/null @@ -1,48 +0,0 @@ -require "test_helper" - -class ImageTagsControllerTest < ActionDispatch::IntegrationTest - setup do - @image_tag = image_tags(:one) - end - - test "should get index" do - get image_tags_url - assert_response :success - end - - test "should get new" do - get new_image_tag_url - assert_response :success - end - - test "should create image_tag" do - assert_difference("ImageTag.count") do - post image_tags_url, params: { image_tag: {} } - end - - assert_redirected_to image_tag_url(ImageTag.last) - end - - test "should show image_tag" do - get image_tag_url(@image_tag) - assert_response :success - end - - test "should get edit" do - get edit_image_tag_url(@image_tag) - assert_response :success - end - - test "should update image_tag" do - patch image_tag_url(@image_tag), params: { image_tag: {} } - assert_redirected_to image_tag_url(@image_tag) - end - - test "should destroy image_tag" do - assert_difference("ImageTag.count", -1) do - delete image_tag_url(@image_tag) - end - - assert_redirected_to image_tags_url - end -end diff --git a/rails_app/test/controllers/memes_controller_test.rb b/rails_app/test/controllers/memes_controller_test.rb deleted file mode 100644 index ebe4fcb..0000000 --- a/rails_app/test/controllers/memes_controller_test.rb +++ /dev/null @@ -1,48 +0,0 @@ -require "test_helper" - -class MemesControllerTest < ActionDispatch::IntegrationTest - setup do - @meme = memes(:one) - end - - test "should get index" do - get memes_url - assert_response :success - end - - test "should get new" do - get new_meme_url - assert_response :success - end - - test "should create meme" do - assert_difference("Meme.count") do - post memes_url, params: { meme: { description: @meme.description, filename: @meme.filename } } - end - - assert_redirected_to meme_url(Meme.last) - end - - test "should show meme" do - get meme_url(@meme) - assert_response :success - end - - test "should get edit" do - get edit_meme_url(@meme) - assert_response :success - end - - test "should update meme" do - patch meme_url(@meme), params: { meme: { description: @meme.description, filename: @meme.filename } } - assert_redirected_to meme_url(@meme) - end - - test "should destroy meme" do - assert_difference("Meme.count", -1) do - delete meme_url(@meme) - end - - assert_redirected_to memes_url - end -end diff --git a/rails_app/test/controllers/tag_names_controller_test.rb b/rails_app/test/controllers/tag_names_controller_test.rb deleted file mode 100644 index 9f43982..0000000 --- a/rails_app/test/controllers/tag_names_controller_test.rb +++ /dev/null @@ -1,48 +0,0 @@ -require "test_helper" - -class TagNamesControllerTest < ActionDispatch::IntegrationTest - setup do - @tag_name = tag_names(:one) - end - - test "should get index" do - get tag_names_url - assert_response :success - end - - test "should get new" do - get new_tag_name_url - assert_response :success - end - - test "should create tag_name" do - assert_difference("TagName.count") do - post tag_names_url, params: { tag_name: {} } - end - - assert_redirected_to tag_name_url(TagName.last) - end - - test "should show tag_name" do - get tag_name_url(@tag_name) - assert_response :success - end - - test "should get edit" do - get edit_tag_name_url(@tag_name) - assert_response :success - end - - test "should update tag_name" do - patch tag_name_url(@tag_name), params: { tag_name: {} } - assert_redirected_to tag_name_url(@tag_name) - end - - test "should destroy tag_name" do - assert_difference("TagName.count", -1) do - delete tag_name_url(@tag_name) - end - - assert_redirected_to tag_names_url - end -end diff --git a/rails_app/test/jobs/check_image_status_job_test.rb b/rails_app/test/jobs/check_image_status_job_test.rb deleted file mode 100644 index df4394d..0000000 --- a/rails_app/test/jobs/check_image_status_job_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class CheckImageStatusJobTest < ActiveJob::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/rails_app/test/models/embedding_test.rb b/rails_app/test/models/embedding_test.rb deleted file mode 100644 index d4c3d39..0000000 --- a/rails_app/test/models/embedding_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class EmbeddingTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/rails_app/test/models/image_core_test.rb b/rails_app/test/models/image_core_test.rb deleted file mode 100644 index dec34cb..0000000 --- a/rails_app/test/models/image_core_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class ImageCoreTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/rails_app/test/models/image_embedding_test.rb b/rails_app/test/models/image_embedding_test.rb deleted file mode 100644 index 4cc3f4e..0000000 --- a/rails_app/test/models/image_embedding_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class ImageEmbeddingTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/rails_app/test/models/image_path_test.rb b/rails_app/test/models/image_path_test.rb deleted file mode 100644 index dcee947..0000000 --- a/rails_app/test/models/image_path_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class ImagePathTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/rails_app/test/models/image_tag_test.rb b/rails_app/test/models/image_tag_test.rb deleted file mode 100644 index 794801f..0000000 --- a/rails_app/test/models/image_tag_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class ImageTagTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/rails_app/test/models/meme_test.rb b/rails_app/test/models/meme_test.rb deleted file mode 100644 index 922a309..0000000 --- a/rails_app/test/models/meme_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class MemeTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/rails_app/test/models/tag_name_test.rb b/rails_app/test/models/tag_name_test.rb deleted file mode 100644 index 08c5229..0000000 --- a/rails_app/test/models/tag_name_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class TagNameTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/rails_app/test/models/tag_test.rb b/rails_app/test/models/tag_test.rb deleted file mode 100644 index 1846cdb..0000000 --- a/rails_app/test/models/tag_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class TagTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end