diff --git a/.github/workflows/specs_mysql_60.yml b/.github/workflows/specs_mysql_60.yml deleted file mode 100644 index 8961dec..0000000 --- a/.github/workflows/specs_mysql_60.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -name: Specs Rails 6.0 MySQL - -on: - pull_request: - branches: [main] - push: - branches: [main] - -jobs: - tests: - runs-on: ubuntu-latest - - strategy: - matrix: - ruby: ['2.7', '3.0'] - gemfile: ['rails_6_0_mysql'] - - env: - BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile - DB_TEST: mysql - MYSQL_DB_HOST: 127.0.0.1 - MYSQL_DB_USERNAME: root - MYSQL_DB_PASSWORD: root - RAILS: '6.0' - - services: - mysql: - image: mysql - env: - MYSQL_USER: root - MYSQL_PASSWORD: root - # options: >- - # --health-cmd="mysqladmin ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - ports: - - 3306:3306 - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - - name: Start database service - run: sudo /etc/init.d/mysql start - - - name: Create database - run: bundle exec rails db:create - - - name: Apply migrations - run: bundle exec rails db:migrate - - - name: Run tests - run: bundle exec rspec --profile diff --git a/.github/workflows/specs_postgres_60.yml b/.github/workflows/specs_postgres_60.yml deleted file mode 100644 index 754ebdd..0000000 --- a/.github/workflows/specs_postgres_60.yml +++ /dev/null @@ -1,65 +0,0 @@ ---- -name: Specs Rails 6.0 Postgres - -on: - pull_request: - branches: [main] - push: - branches: [main] - -jobs: - tests: - runs-on: ubuntu-latest - - strategy: - matrix: - ruby: ['2.7', '3.0'] - gemfile: ['rails_6_0_postgres'] - - env: - BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile - DB_TEST: postgres - PG_DB_HOST: 127.0.0.1 - PG_DB_USERNAME: postgres - PG_DB_PASSWORD: postgres - RAILS: '6.0' - - services: - postgres: - image: postgres:latest - env: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5432:5432 - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - - name: Create database - run: bundle exec rails db:create - - - name: Apply migrations - run: bundle exec rails db:migrate - - - name: Run tests - run: bundle exec rspec --profile - - # - name: Upload coverage results - # uses: actions/upload-artifact@main - # if: always() - # with: - # name: coverage-report - # path: coverage/index.html diff --git a/Appraisals b/Appraisals index 0498332..fbee1de 100644 --- a/Appraisals +++ b/Appraisals @@ -1,10 +1,5 @@ # frozen_string_literal: true -appraise 'rails-6_0-postgres' do - gem 'pg' - gem 'rails', '~> 6.0.0' -end - appraise 'rails-6_1-postgres' do gem 'pg' gem 'rails', '~> 6.1.0' @@ -20,11 +15,6 @@ appraise 'rails-7_1-postgres' do gem 'rails', '~> 7.1.0' end -appraise 'rails-6_0-mysql' do - gem 'mysql2' - gem 'rails', '~> 6.0.0' -end - appraise 'rails-6_1-mysql' do gem 'mysql2' gem 'rails', '~> 6.1.0' diff --git a/gemfiles/rails_6_0_mysql.gemfile b/gemfiles/rails_6_0_mysql.gemfile deleted file mode 100644 index 197b97c..0000000 --- a/gemfiles/rails_6_0_mysql.gemfile +++ /dev/null @@ -1,25 +0,0 @@ -# This file was generated by Appraisal - -source "https://rubygems.org" - -gem "mysql2" -gem "rails", "~> 6.0.0" - -group :development, :test do - gem "simplecov" - gem "simplecov-lcov" - gem "capybara" - gem "rspec_junit_formatter" - gem "rspec-rails" - gem "selenium-webdriver" - gem "brakeman" - gem "fasterer" - gem "rubocop" - gem "rubocop-packaging" - gem "rubocop-performance" - gem "rubocop-rails" - gem "rubocop-rspec" - gem "pry-rails" -end - -gemspec path: "../" diff --git a/gemfiles/rails_6_0_mysql.gemfile.lock b/gemfiles/rails_6_0_mysql.gemfile.lock deleted file mode 100644 index 4ca11ae..0000000 --- a/gemfiles/rails_6_0_mysql.gemfile.lock +++ /dev/null @@ -1,266 +0,0 @@ -PATH - remote: .. - specs: - active_storage_db (1.2.0) - activestorage (>= 6.0) - rails (>= 6.0) - -GEM - remote: https://rubygems.org/ - specs: - actioncable (6.0.4.6) - actionpack (= 6.0.4.6) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailbox (6.0.4.6) - actionpack (= 6.0.4.6) - activejob (= 6.0.4.6) - activerecord (= 6.0.4.6) - activestorage (= 6.0.4.6) - activesupport (= 6.0.4.6) - mail (>= 2.7.1) - actionmailer (6.0.4.6) - actionpack (= 6.0.4.6) - actionview (= 6.0.4.6) - activejob (= 6.0.4.6) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (6.0.4.6) - actionview (= 6.0.4.6) - activesupport (= 6.0.4.6) - rack (~> 2.0, >= 2.0.8) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.0.4.6) - actionpack (= 6.0.4.6) - activerecord (= 6.0.4.6) - activestorage (= 6.0.4.6) - activesupport (= 6.0.4.6) - nokogiri (>= 1.8.5) - actionview (6.0.4.6) - activesupport (= 6.0.4.6) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.0.4.6) - activesupport (= 6.0.4.6) - globalid (>= 0.3.6) - activemodel (6.0.4.6) - activesupport (= 6.0.4.6) - activerecord (6.0.4.6) - activemodel (= 6.0.4.6) - activesupport (= 6.0.4.6) - activestorage (6.0.4.6) - actionpack (= 6.0.4.6) - activejob (= 6.0.4.6) - activerecord (= 6.0.4.6) - marcel (~> 1.0.0) - activesupport (6.0.4.6) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2, >= 2.2.2) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - appraisal (2.4.1) - bundler - rake - thor (>= 0.14.0) - ast (2.4.2) - brakeman (5.2.1) - builder (3.2.4) - capybara (3.36.0) - addressable - matrix - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - childprocess (4.1.0) - coderay (1.1.3) - colorize (0.8.1) - concurrent-ruby (1.1.9) - crass (1.0.6) - diff-lcs (1.5.0) - docile (1.4.0) - erubi (1.10.0) - factory_bot (6.2.0) - activesupport (>= 5.0.0) - factory_bot_rails (6.2.0) - factory_bot (~> 6.2.0) - railties (>= 5.0.0) - fasterer (0.9.0) - colorize (~> 0.7) - ruby_parser (>= 3.14.1) - globalid (1.0.0) - activesupport (>= 5.0) - i18n (1.10.0) - concurrent-ruby (~> 1.0) - loofah (2.14.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - marcel (1.0.2) - matrix (0.4.2) - method_source (1.0.0) - mini_mime (1.1.2) - mini_portile2 (2.8.4) - minitest (5.15.0) - mysql2 (0.5.5) - nio4r (2.5.8) - nokogiri (1.13.3) - mini_portile2 (~> 2.8.0) - racc (~> 1.4) - parallel (1.21.0) - parser (3.1.1.0) - ast (~> 2.4.1) - pry (0.14.1) - coderay (~> 1.1) - method_source (~> 1.0) - pry-rails (0.3.9) - pry (>= 0.10.4) - public_suffix (4.0.6) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (6.0.4.6) - actioncable (= 6.0.4.6) - actionmailbox (= 6.0.4.6) - actionmailer (= 6.0.4.6) - actionpack (= 6.0.4.6) - actiontext (= 6.0.4.6) - actionview (= 6.0.4.6) - activejob (= 6.0.4.6) - activemodel (= 6.0.4.6) - activerecord (= 6.0.4.6) - activestorage (= 6.0.4.6) - activesupport (= 6.0.4.6) - bundler (>= 1.3.0) - railties (= 6.0.4.6) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (6.0.4.6) - actionpack (= 6.0.4.6) - activesupport (= 6.0.4.6) - method_source - rake (>= 0.8.7) - thor (>= 0.20.3, < 2.0) - rainbow (3.1.1) - rake (13.0.6) - regexp_parser (2.2.1) - rexml (3.2.5) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-rails (5.1.0) - actionpack (>= 5.2) - activesupport (>= 5.2) - railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) - rspec-support (3.11.0) - rspec_junit_formatter (0.5.1) - rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.25.1) - parallel (~> 1.10) - parser (>= 3.1.0.0) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.15.1, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.16.0) - parser (>= 3.1.1.0) - rubocop-packaging (0.5.1) - rubocop (>= 0.89, < 2.0) - rubocop-performance (1.13.2) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) - rubocop-rails (2.13.2) - activesupport (>= 4.2.0) - rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.8.0) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) - ruby_parser (3.18.1) - sexp_processor (~> 4.16) - rubyzip (2.3.2) - selenium-webdriver (4.1.0) - childprocess (>= 0.5, < 5.0) - rexml (~> 3.2, >= 3.2.5) - rubyzip (>= 1.2.2) - sexp_processor (4.16.0) - simplecov (0.21.2) - docile (~> 1.1) - simplecov-html (~> 0.11) - simplecov_json_formatter (~> 0.1) - simplecov-html (0.12.3) - simplecov-lcov (0.8.0) - simplecov_json_formatter (0.1.4) - sprockets (4.0.2) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) - sprockets (>= 3.0.0) - thor (1.2.1) - thread_safe (0.3.6) - tzinfo (1.2.9) - thread_safe (~> 0.1) - unicode-display_width (2.1.0) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - xpath (3.2.0) - nokogiri (~> 1.8) - zeitwerk (2.5.4) - -PLATFORMS - arm64-darwin-22 - x86_64-darwin-21 - x86_64-linux - -DEPENDENCIES - active_storage_db! - appraisal (~> 2.4) - brakeman - capybara - factory_bot_rails (~> 6.1) - fasterer - mysql2 - pry-rails - rails (~> 6.0.0) - rspec-rails - rspec_junit_formatter - rubocop - rubocop-packaging - rubocop-performance - rubocop-rails - rubocop-rspec - selenium-webdriver - simplecov - simplecov-lcov - -BUNDLED WITH - 2.3.8 diff --git a/gemfiles/rails_6_0_postgres.gemfile b/gemfiles/rails_6_0_postgres.gemfile deleted file mode 100644 index b9a071d..0000000 --- a/gemfiles/rails_6_0_postgres.gemfile +++ /dev/null @@ -1,25 +0,0 @@ -# This file was generated by Appraisal - -source "https://rubygems.org" - -gem "pg" -gem "rails", "~> 6.0.0" - -group :development, :test do - gem "simplecov" - gem "simplecov-lcov" - gem "capybara" - gem "rspec_junit_formatter" - gem "rspec-rails" - gem "selenium-webdriver" - gem "brakeman" - gem "fasterer" - gem "rubocop" - gem "rubocop-packaging" - gem "rubocop-performance" - gem "rubocop-rails" - gem "rubocop-rspec" - gem "pry-rails" -end - -gemspec path: "../" diff --git a/gemfiles/rails_6_0_postgres.gemfile.lock b/gemfiles/rails_6_0_postgres.gemfile.lock deleted file mode 100644 index 3bc57e0..0000000 --- a/gemfiles/rails_6_0_postgres.gemfile.lock +++ /dev/null @@ -1,270 +0,0 @@ -PATH - remote: .. - specs: - active_storage_db (1.2.0) - activestorage (>= 6.0) - rails (>= 6.0) - -GEM - remote: https://rubygems.org/ - specs: - actioncable (6.0.4.6) - actionpack (= 6.0.4.6) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailbox (6.0.4.6) - actionpack (= 6.0.4.6) - activejob (= 6.0.4.6) - activerecord (= 6.0.4.6) - activestorage (= 6.0.4.6) - activesupport (= 6.0.4.6) - mail (>= 2.7.1) - actionmailer (6.0.4.6) - actionpack (= 6.0.4.6) - actionview (= 6.0.4.6) - activejob (= 6.0.4.6) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (6.0.4.6) - actionview (= 6.0.4.6) - activesupport (= 6.0.4.6) - rack (~> 2.0, >= 2.0.8) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.0.4.6) - actionpack (= 6.0.4.6) - activerecord (= 6.0.4.6) - activestorage (= 6.0.4.6) - activesupport (= 6.0.4.6) - nokogiri (>= 1.8.5) - actionview (6.0.4.6) - activesupport (= 6.0.4.6) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.0.4.6) - activesupport (= 6.0.4.6) - globalid (>= 0.3.6) - activemodel (6.0.4.6) - activesupport (= 6.0.4.6) - activerecord (6.0.4.6) - activemodel (= 6.0.4.6) - activesupport (= 6.0.4.6) - activestorage (6.0.4.6) - actionpack (= 6.0.4.6) - activejob (= 6.0.4.6) - activerecord (= 6.0.4.6) - marcel (~> 1.0.0) - activesupport (6.0.4.6) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2, >= 2.2.2) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - appraisal (2.4.1) - bundler - rake - thor (>= 0.14.0) - ast (2.4.2) - brakeman (5.2.1) - builder (3.2.4) - capybara (3.36.0) - addressable - matrix - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - childprocess (4.1.0) - coderay (1.1.3) - colorize (0.8.1) - concurrent-ruby (1.1.9) - crass (1.0.6) - diff-lcs (1.5.0) - docile (1.4.0) - erubi (1.10.0) - factory_bot (6.2.0) - activesupport (>= 5.0.0) - factory_bot_rails (6.2.0) - factory_bot (~> 6.2.0) - railties (>= 5.0.0) - fasterer (0.9.0) - colorize (~> 0.7) - ruby_parser (>= 3.14.1) - globalid (1.0.0) - activesupport (>= 5.0) - i18n (1.10.0) - concurrent-ruby (~> 1.0) - loofah (2.14.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - marcel (1.0.2) - matrix (0.4.2) - method_source (1.0.0) - mini_mime (1.1.2) - mini_portile2 (2.8.4) - minitest (5.15.0) - nio4r (2.5.8) - nokogiri (1.13.3) - mini_portile2 (~> 2.8.0) - racc (~> 1.4) - nokogiri (1.13.3-x86_64-darwin) - racc (~> 1.4) - nokogiri (1.13.3-x86_64-linux) - racc (~> 1.4) - parallel (1.21.0) - parser (3.1.1.0) - ast (~> 2.4.1) - pg (1.3.3) - pry (0.14.1) - coderay (~> 1.1) - method_source (~> 1.0) - pry-rails (0.3.9) - pry (>= 0.10.4) - public_suffix (4.0.6) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (6.0.4.6) - actioncable (= 6.0.4.6) - actionmailbox (= 6.0.4.6) - actionmailer (= 6.0.4.6) - actionpack (= 6.0.4.6) - actiontext (= 6.0.4.6) - actionview (= 6.0.4.6) - activejob (= 6.0.4.6) - activemodel (= 6.0.4.6) - activerecord (= 6.0.4.6) - activestorage (= 6.0.4.6) - activesupport (= 6.0.4.6) - bundler (>= 1.3.0) - railties (= 6.0.4.6) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (6.0.4.6) - actionpack (= 6.0.4.6) - activesupport (= 6.0.4.6) - method_source - rake (>= 0.8.7) - thor (>= 0.20.3, < 2.0) - rainbow (3.1.1) - rake (13.0.6) - regexp_parser (2.2.1) - rexml (3.2.5) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-rails (5.1.0) - actionpack (>= 5.2) - activesupport (>= 5.2) - railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) - rspec-support (3.11.0) - rspec_junit_formatter (0.5.1) - rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.25.1) - parallel (~> 1.10) - parser (>= 3.1.0.0) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.15.1, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.16.0) - parser (>= 3.1.1.0) - rubocop-packaging (0.5.1) - rubocop (>= 0.89, < 2.0) - rubocop-performance (1.13.2) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) - rubocop-rails (2.13.2) - activesupport (>= 4.2.0) - rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.8.0) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) - ruby_parser (3.18.1) - sexp_processor (~> 4.16) - rubyzip (2.3.2) - selenium-webdriver (4.1.0) - childprocess (>= 0.5, < 5.0) - rexml (~> 3.2, >= 3.2.5) - rubyzip (>= 1.2.2) - sexp_processor (4.16.0) - simplecov (0.21.2) - docile (~> 1.1) - simplecov-html (~> 0.11) - simplecov_json_formatter (~> 0.1) - simplecov-html (0.12.3) - simplecov-lcov (0.8.0) - simplecov_json_formatter (0.1.4) - sprockets (4.0.2) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) - sprockets (>= 3.0.0) - thor (1.2.1) - thread_safe (0.3.6) - tzinfo (1.2.9) - thread_safe (~> 0.1) - unicode-display_width (2.1.0) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - xpath (3.2.0) - nokogiri (~> 1.8) - zeitwerk (2.5.4) - -PLATFORMS - arm64-darwin-22 - x86_64-darwin-21 - x86_64-linux - -DEPENDENCIES - active_storage_db! - appraisal (~> 2.4) - brakeman - capybara - factory_bot_rails (~> 6.1) - fasterer - pg - pry-rails - rails (~> 6.0.0) - rspec-rails - rspec_junit_formatter - rubocop - rubocop-packaging - rubocop-performance - rubocop-rails - rubocop-rspec - selenium-webdriver - simplecov - simplecov-lcov - -BUNDLED WITH - 2.3.8 diff --git a/spec/dummy60/Rakefile b/spec/dummy60/Rakefile deleted file mode 100644 index e85f913..0000000 --- a/spec/dummy60/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -# Add your own tasks in files placed in lib/tasks ending in .rake, -# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. - -require_relative 'config/application' - -Rails.application.load_tasks diff --git a/spec/dummy60/app/assets/config/active_storage_db_manifest.js b/spec/dummy60/app/assets/config/active_storage_db_manifest.js deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/app/assets/config/manifest.js b/spec/dummy60/app/assets/config/manifest.js deleted file mode 100644 index e44eece..0000000 --- a/spec/dummy60/app/assets/config/manifest.js +++ /dev/null @@ -1,3 +0,0 @@ -//= link_tree ../images -//= link_directory ../stylesheets .css -//= link active_storage_db_manifest.js diff --git a/spec/dummy60/app/assets/images/.keep b/spec/dummy60/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/app/assets/stylesheets/application.css b/spec/dummy60/app/assets/stylesheets/application.css deleted file mode 100644 index 0ebd7fe..0000000 --- a/spec/dummy60/app/assets/stylesheets/application.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the bottom of the - * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS - * files in this directory. Styles in this file should be added after the last require_* statement. - * It is generally better to create a new file per style scope. - * - *= require_tree . - *= require_self - */ diff --git a/spec/dummy60/app/channels/application_cable/channel.rb b/spec/dummy60/app/channels/application_cable/channel.rb deleted file mode 100644 index d672697..0000000 --- a/spec/dummy60/app/channels/application_cable/channel.rb +++ /dev/null @@ -1,4 +0,0 @@ -module ApplicationCable - class Channel < ActionCable::Channel::Base - end -end diff --git a/spec/dummy60/app/channels/application_cable/connection.rb b/spec/dummy60/app/channels/application_cable/connection.rb deleted file mode 100644 index 0ff5442..0000000 --- a/spec/dummy60/app/channels/application_cable/connection.rb +++ /dev/null @@ -1,4 +0,0 @@ -module ApplicationCable - class Connection < ActionCable::Connection::Base - end -end diff --git a/spec/dummy60/app/controllers b/spec/dummy60/app/controllers deleted file mode 120000 index f26fb71..0000000 --- a/spec/dummy60/app/controllers +++ /dev/null @@ -1 +0,0 @@ -../../dummy_base/app/controllers \ No newline at end of file diff --git a/spec/dummy60/app/helpers/application_helper.rb b/spec/dummy60/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/spec/dummy60/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/spec/dummy60/app/javascript/packs/application.js b/spec/dummy60/app/javascript/packs/application.js deleted file mode 100644 index 67ce467..0000000 --- a/spec/dummy60/app/javascript/packs/application.js +++ /dev/null @@ -1,15 +0,0 @@ -// This is a manifest file that'll be compiled into application.js, which will include all the files -// listed below. -// -// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, -// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. -// -// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the -// compiled file. JavaScript code in this file should be added after the last require_* statement. -// -// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require rails-ujs -//= require activestorage -//= require_tree . diff --git a/spec/dummy60/app/jobs/application_job.rb b/spec/dummy60/app/jobs/application_job.rb deleted file mode 100644 index d394c3d..0000000 --- a/spec/dummy60/app/jobs/application_job.rb +++ /dev/null @@ -1,7 +0,0 @@ -class ApplicationJob < ActiveJob::Base - # Automatically retry jobs that encountered a deadlock - # retry_on ActiveRecord::Deadlocked - - # Most jobs are safe to ignore if the underlying records are no longer available - # discard_on ActiveJob::DeserializationError -end diff --git a/spec/dummy60/app/mailers/application_mailer.rb b/spec/dummy60/app/mailers/application_mailer.rb deleted file mode 100644 index 286b223..0000000 --- a/spec/dummy60/app/mailers/application_mailer.rb +++ /dev/null @@ -1,4 +0,0 @@ -class ApplicationMailer < ActionMailer::Base - default from: 'from@example.com' - layout 'mailer' -end diff --git a/spec/dummy60/app/models/application_record.rb b/spec/dummy60/app/models/application_record.rb deleted file mode 100644 index 10a4cba..0000000 --- a/spec/dummy60/app/models/application_record.rb +++ /dev/null @@ -1,3 +0,0 @@ -class ApplicationRecord < ActiveRecord::Base - self.abstract_class = true -end diff --git a/spec/dummy60/app/models/post.rb b/spec/dummy60/app/models/post.rb deleted file mode 120000 index 98be2dd..0000000 --- a/spec/dummy60/app/models/post.rb +++ /dev/null @@ -1 +0,0 @@ -../../../dummy_base/app/models/post.rb \ No newline at end of file diff --git a/spec/dummy60/app/views/layouts/application.html.erb b/spec/dummy60/app/views/layouts/application.html.erb deleted file mode 100644 index 24307d3..0000000 --- a/spec/dummy60/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Dummy - <%= csrf_meta_tags %> - <%= csp_meta_tag %> - - <%= stylesheet_link_tag 'application', media: 'all' %> - - - - <%= yield %> - - diff --git a/spec/dummy60/app/views/layouts/mailer.html.erb b/spec/dummy60/app/views/layouts/mailer.html.erb deleted file mode 100644 index cbd34d2..0000000 --- a/spec/dummy60/app/views/layouts/mailer.html.erb +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - <%= yield %> - - diff --git a/spec/dummy60/app/views/layouts/mailer.text.erb b/spec/dummy60/app/views/layouts/mailer.text.erb deleted file mode 100644 index 37f0bdd..0000000 --- a/spec/dummy60/app/views/layouts/mailer.text.erb +++ /dev/null @@ -1 +0,0 @@ -<%= yield %> diff --git a/spec/dummy60/app/views/posts b/spec/dummy60/app/views/posts deleted file mode 120000 index 0eae153..0000000 --- a/spec/dummy60/app/views/posts +++ /dev/null @@ -1 +0,0 @@ -../../../dummy_base/app/views/posts \ No newline at end of file diff --git a/spec/dummy60/bin/rails b/spec/dummy60/bin/rails deleted file mode 100755 index 0739660..0000000 --- a/spec/dummy60/bin/rails +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -APP_PATH = File.expand_path('../config/application', __dir__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/spec/dummy60/bin/rake b/spec/dummy60/bin/rake deleted file mode 100755 index 1724048..0000000 --- a/spec/dummy60/bin/rake +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/spec/dummy60/bin/setup b/spec/dummy60/bin/setup deleted file mode 100755 index 0e39e8c..0000000 --- a/spec/dummy60/bin/setup +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env ruby -require 'fileutils' - -# path to your application root. -APP_ROOT = File.expand_path('..', __dir__) - -def system!(*args) - system(*args) || abort("\n== Command #{args} failed ==") -end - -FileUtils.chdir APP_ROOT do - # This script is a way to setup or update your development environment automatically. - # This script is idempotent, so that you can run it at anytime and get an expectable outcome. - # Add necessary setup steps to this file. - - puts '== Installing dependencies ==' - system! 'gem install bundler --conservative' - system('bundle check') || system!('bundle install') - - # puts "\n== Copying sample files ==" - # unless File.exist?('config/database.yml') - # FileUtils.cp 'config/database.yml.sample', 'config/database.yml' - # end - - puts "\n== Preparing database ==" - system! 'bin/rails db:prepare' - - puts "\n== Removing old logs and tempfiles ==" - system! 'bin/rails log:clear tmp:clear' - - puts "\n== Restarting application server ==" - system! 'bin/rails restart' -end diff --git a/spec/dummy60/config.ru b/spec/dummy60/config.ru deleted file mode 100644 index f7ba0b5..0000000 --- a/spec/dummy60/config.ru +++ /dev/null @@ -1,5 +0,0 @@ -# This file is used by Rack-based servers to start the application. - -require_relative 'config/environment' - -run Rails.application diff --git a/spec/dummy60/config/application.rb b/spec/dummy60/config/application.rb deleted file mode 100644 index fd451aa..0000000 --- a/spec/dummy60/config/application.rb +++ /dev/null @@ -1,19 +0,0 @@ -require_relative 'boot' - -require 'rails/all' - -Bundler.require(*Rails.groups) -require "active_storage_db" - -module Dummy - class Application < Rails::Application - # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 6.0 - - # Settings in config/environments/* take precedence over those specified here. - # Application configuration can go into files in config/initializers - # -- all .rb files in that directory are automatically loaded after loading - # the framework and any gems in your application. - end -end - diff --git a/spec/dummy60/config/boot.rb b/spec/dummy60/config/boot.rb deleted file mode 100644 index c9aef85..0000000 --- a/spec/dummy60/config/boot.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Set up gems listed in the Gemfile. -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__) - -require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) -$LOAD_PATH.unshift File.expand_path('../../../lib', __dir__) diff --git a/spec/dummy60/config/cable.yml b/spec/dummy60/config/cable.yml deleted file mode 100644 index 98367f8..0000000 --- a/spec/dummy60/config/cable.yml +++ /dev/null @@ -1,10 +0,0 @@ -development: - adapter: async - -test: - adapter: test - -production: - adapter: redis - url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> - channel_prefix: dummy_production diff --git a/spec/dummy60/config/database.yml b/spec/dummy60/config/database.yml deleted file mode 100644 index 8cc79a4..0000000 --- a/spec/dummy60/config/database.yml +++ /dev/null @@ -1,28 +0,0 @@ -<% case ENV['DB_TEST'] -when 'mysql' %> -test: &test - adapter: mysql2 - host: <%= ENV.fetch('MYSQL_DB_HOST') { '127.0.0.1' } %> - # port: <%= ENV.fetch('MYSQL_DB_PORT') { 3306 } %> - database: <%= ENV.fetch('MYSQL_DB_NAME') { ver = ENV.fetch('RAILS', '').tr('.', ''); "active_storage_db_#{ver}-test" } %> - username: <%= ENV.fetch('MYSQL_DB_USERNAME') { '' } %> - password: <%= ENV.fetch('MYSQL_DB_PASSWORD') { '' } %> - encoding: utf8 - pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %> -<% when 'postgres', 'postgresql' %> -test: &test - adapter: postgresql - host: <%= ENV.fetch('PG_DB_HOST') { '127.0.0.1' } %> - database: <%= ENV.fetch('PG_DB_NAME') { ver = ENV.fetch('RAILS', '').tr('.', ''); "active_storage_db_#{ver}-test" } %> - username: <%= ENV.fetch('PG_DB_USERNAME') { '' } %> - password: <%= ENV.fetch('PG_DB_PASSWORD') { '' } %> - encoding: utf8 - min_messages: warning - pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %> -<% else %> - <% raise "Invalid or empty env DB_TEST #{ENV['DB_TEST']}" %> -<% end %> - -development: - <<: *test - database: "active_storage_db-dev" diff --git a/spec/dummy60/config/environment.rb b/spec/dummy60/config/environment.rb deleted file mode 100644 index 426333b..0000000 --- a/spec/dummy60/config/environment.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Load the Rails application. -require_relative 'application' - -# Initialize the Rails application. -Rails.application.initialize! diff --git a/spec/dummy60/config/environments/development.rb b/spec/dummy60/config/environments/development.rb deleted file mode 100644 index d41ec22..0000000 --- a/spec/dummy60/config/environments/development.rb +++ /dev/null @@ -1,62 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # In the development environment your application's code is reloaded on - # every request. This slows down response time but is perfect for development - # since you don't have to restart the web server when you make code changes. - config.cache_classes = false - - # Do not eager load code on boot. - config.eager_load = false - - # Show full error reports. - config.consider_all_requests_local = true - - # Enable/disable caching. By default caching is disabled. - # Run rails dev:cache to toggle caching. - if Rails.root.join('tmp', 'caching-dev.txt').exist? - config.action_controller.perform_caching = true - config.action_controller.enable_fragment_cache_logging = true - - config.cache_store = :memory_store - config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{2.days.to_i}" - } - else - config.action_controller.perform_caching = false - - config.cache_store = :null_store - end - - # Store uploaded files on the local file system (see config/storage.yml for options). - config.active_storage.service = :db - - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false - - config.action_mailer.perform_caching = false - - # Print deprecation notices to the Rails logger. - config.active_support.deprecation = :log - - # Raise an error on page load if there are pending migrations. - config.active_record.migration_error = :page_load - - # Highlight code that triggered database queries in logs. - config.active_record.verbose_query_logs = true - - # Debug mode disables concatenation and preprocessing of assets. - # This option may cause significant delays in view rendering with a large - # number of complex assets. - config.assets.debug = true - - # Suppress logger output for asset requests. - config.assets.quiet = true - - # Raises error for missing translations. - # config.action_view.raise_on_missing_translations = true - - # Use an evented file watcher to asynchronously detect changes in source code, - # routes, locales, etc. This feature depends on the listen gem. - # config.file_watcher = ActiveSupport::EventedFileUpdateChecker -end diff --git a/spec/dummy60/config/environments/production.rb b/spec/dummy60/config/environments/production.rb deleted file mode 100644 index 2129323..0000000 --- a/spec/dummy60/config/environments/production.rb +++ /dev/null @@ -1,112 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # Code is not reloaded between requests. - config.cache_classes = true - - # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both threaded web servers - # and those relying on copy on write to perform better. - # Rake tasks automatically ignore this option for performance. - config.eager_load = true - - # Full error reports are disabled and caching is turned on. - config.consider_all_requests_local = false - config.action_controller.perform_caching = true - - # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] - # or in config/master.key. This key is used to decrypt credentials (and other encrypted files). - # config.require_master_key = true - - # Disable serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # Compress CSS using a preprocessor. - # config.assets.css_compressor = :sass - - # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false - - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.action_controller.asset_host = 'http://assets.example.com' - - # Specifies the header that your server uses for sending files. - # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache - # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX - - # Store uploaded files on the local file system (see config/storage.yml for options). - config.active_storage.service = :db - - # Mount Action Cable outside main process or domain. - # config.action_cable.mount_path = nil - # config.action_cable.url = 'wss://example.com/cable' - # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] - - # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # Prepend all log lines with the following tags. - config.log_tags = [ :request_id ] - - # Use a different cache store in production. - # config.cache_store = :mem_cache_store - - # Use a real queuing backend for Active Job (and separate queues per environment). - # config.active_job.queue_adapter = :resque - # config.active_job.queue_name_prefix = "dummy_production" - - config.action_mailer.perform_caching = false - - # Ignore bad email addresses and do not raise email delivery errors. - # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false - - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true - - # Send deprecation notices to registered listeners. - config.active_support.deprecation = :notify - - # Use default logging formatter so that PID and timestamp are not suppressed. - config.log_formatter = ::Logger::Formatter.new - - # Use a different logger for distributed setups. - # require 'syslog/logger' - # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') - - if ENV["RAILS_LOG_TO_STDOUT"].present? - logger = ActiveSupport::Logger.new(STDOUT) - logger.formatter = config.log_formatter - config.logger = ActiveSupport::TaggedLogging.new(logger) - end - - # Do not dump schema after migrations. - config.active_record.dump_schema_after_migration = false - - # Inserts middleware to perform automatic connection switching. - # The `database_selector` hash is used to pass options to the DatabaseSelector - # middleware. The `delay` is used to determine how long to wait after a write - # to send a subsequent read to the primary. - # - # The `database_resolver` class is used by the middleware to determine which - # database is appropriate to use based on the time delay. - # - # The `database_resolver_context` class is used by the middleware to set - # timestamps for the last write to the primary. The resolver uses the context - # class timestamps to determine how long to wait before reading from the - # replica. - # - # By default Rails will store a last write timestamp in the session. The - # DatabaseSelector middleware is designed as such you can define your own - # strategy for connection switching and pass that into the middleware through - # these configuration options. - # config.active_record.database_selector = { delay: 2.seconds } - # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver - # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session -end diff --git a/spec/dummy60/config/environments/test.rb b/spec/dummy60/config/environments/test.rb deleted file mode 100644 index 37f7514..0000000 --- a/spec/dummy60/config/environments/test.rb +++ /dev/null @@ -1,49 +0,0 @@ -# The test environment is used exclusively to run your application's -# test suite. You never need to work with it otherwise. Remember that -# your test database is "scratch space" for the test suite and is wiped -# and recreated between test runs. Don't rely on the data there! - -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - config.cache_classes = false - config.action_view.cache_template_loading = true - - # Do not eager load code on boot. This avoids loading your whole application - # just for the purpose of running a single test. If you are using a tool that - # preloads Rails for running tests, you may have to set it to true. - config.eager_load = false - - # Configure public file server for tests with Cache-Control for performance. - config.public_file_server.enabled = true - config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{1.hour.to_i}" - } - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - config.cache_store = :null_store - - # Raise exceptions instead of rendering exception templates. - config.action_dispatch.show_exceptions = false - - # Disable request forgery protection in test environment. - config.action_controller.allow_forgery_protection = false - - # Store uploaded files on the local file system in a temporary directory. - config.active_storage.service = :db - - config.action_mailer.perform_caching = false - - # Tell Action Mailer not to deliver emails to the real world. - # The :test delivery method accumulates sent emails in the - # ActionMailer::Base.deliveries array. - config.action_mailer.delivery_method = :test - - # Print deprecation notices to the stderr. - config.active_support.deprecation = :stderr - - # Raises error for missing translations. - # config.action_view.raise_on_missing_translations = true -end diff --git a/spec/dummy60/config/initializers/application_controller_renderer.rb b/spec/dummy60/config/initializers/application_controller_renderer.rb deleted file mode 100644 index 89d2efa..0000000 --- a/spec/dummy60/config/initializers/application_controller_renderer.rb +++ /dev/null @@ -1,8 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# ActiveSupport::Reloader.to_prepare do -# ApplicationController.renderer.defaults.merge!( -# http_host: 'example.org', -# https: false -# ) -# end diff --git a/spec/dummy60/config/initializers/assets.rb b/spec/dummy60/config/initializers/assets.rb deleted file mode 100644 index fe48fc3..0000000 --- a/spec/dummy60/config/initializers/assets.rb +++ /dev/null @@ -1,12 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path. -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in the app/assets -# folder are already added. -# Rails.application.config.assets.precompile += %w( admin.js admin.css ) diff --git a/spec/dummy60/config/initializers/backtrace_silencers.rb b/spec/dummy60/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/spec/dummy60/config/initializers/backtrace_silencers.rb +++ /dev/null @@ -1,7 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. -# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } - -# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. -# Rails.backtrace_cleaner.remove_silencers! diff --git a/spec/dummy60/config/initializers/content_security_policy.rb b/spec/dummy60/config/initializers/content_security_policy.rb deleted file mode 100644 index 41c4301..0000000 --- a/spec/dummy60/config/initializers/content_security_policy.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Define an application-wide content security policy -# For further information see the following documentation -# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy - -# Rails.application.config.content_security_policy do |policy| -# policy.default_src :self, :https -# policy.font_src :self, :https, :data -# policy.img_src :self, :https, :data -# policy.object_src :none -# policy.script_src :self, :https -# policy.style_src :self, :https - -# # Specify URI for violation reports -# # policy.report_uri "/csp-violation-report-endpoint" -# end - -# If you are using UJS then enable automatic nonce generation -# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } - -# Set the nonce only to specific directives -# Rails.application.config.content_security_policy_nonce_directives = %w(script-src) - -# Report CSP violations to a specified URI -# For further information see the following documentation: -# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only -# Rails.application.config.content_security_policy_report_only = true diff --git a/spec/dummy60/config/initializers/cookies_serializer.rb b/spec/dummy60/config/initializers/cookies_serializer.rb deleted file mode 100644 index 5a6a32d..0000000 --- a/spec/dummy60/config/initializers/cookies_serializer.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Specify a serializer for the signed and encrypted cookie jars. -# Valid options are :json, :marshal, and :hybrid. -Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/spec/dummy60/config/initializers/filter_parameter_logging.rb b/spec/dummy60/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/spec/dummy60/config/initializers/filter_parameter_logging.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] diff --git a/spec/dummy60/config/initializers/inflections.rb b/spec/dummy60/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/spec/dummy60/config/initializers/inflections.rb +++ /dev/null @@ -1,16 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new inflection rules using the following format. Inflections -# are locale specific, and you may define rules for as many different -# locales as you wish. All of these examples are active by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' -# inflect.uncountable %w( fish sheep ) -# end - -# These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym 'RESTful' -# end diff --git a/spec/dummy60/config/initializers/mime_types.rb b/spec/dummy60/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/spec/dummy60/config/initializers/mime_types.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf diff --git a/spec/dummy60/config/initializers/wrap_parameters.rb b/spec/dummy60/config/initializers/wrap_parameters.rb deleted file mode 100644 index bbfc396..0000000 --- a/spec/dummy60/config/initializers/wrap_parameters.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# This file contains settings for ActionController::ParamsWrapper which -# is enabled by default. - -# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] -end - -# To enable root element in JSON for ActiveRecord objects. -# ActiveSupport.on_load(:active_record) do -# self.include_root_in_json = true -# end diff --git a/spec/dummy60/config/locales/en.yml b/spec/dummy60/config/locales/en.yml deleted file mode 100644 index cf9b342..0000000 --- a/spec/dummy60/config/locales/en.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Files in the config/locales directory are used for internationalization -# and are automatically loaded by Rails. If you want to use locales other -# than English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t 'hello' -# -# In views, this is aliased to just `t`: -# -# <%= t('hello') %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# The following keys must be escaped otherwise they will not be retrieved by -# the default I18n backend: -# -# true, false, on, off, yes, no -# -# Instead, surround them with single quotes. -# -# en: -# 'true': 'foo' -# -# To learn more, please read the Rails Internationalization guide -# available at https://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world" diff --git a/spec/dummy60/config/puma.rb b/spec/dummy60/config/puma.rb deleted file mode 100644 index 5ed4437..0000000 --- a/spec/dummy60/config/puma.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Puma can serve each request in a thread from an internal thread pool. -# The `threads` method setting takes two numbers: a minimum and maximum. -# Any libraries that use thread pools should be configured to match -# the maximum value specified for Puma. Default is set to 5 threads for minimum -# and maximum; this matches the default thread size of Active Record. -# -max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } -min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count } -threads min_threads_count, max_threads_count - -# Specifies the `port` that Puma will listen on to receive requests; default is 3000. -# -port ENV.fetch("PORT") { 3000 } - -# Specifies the `environment` that Puma will run in. -# -environment ENV.fetch("RAILS_ENV") { "development" } - -# Specifies the `pidfile` that Puma will use. -pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" } - -# Specifies the number of `workers` to boot in clustered mode. -# Workers are forked web server processes. If using threads and workers together -# the concurrency of the application would be max `threads` * `workers`. -# Workers do not work on JRuby or Windows (both of which do not support -# processes). -# -# workers ENV.fetch("WEB_CONCURRENCY") { 2 } - -# Use the `preload_app!` method when specifying a `workers` number. -# This directive tells Puma to first boot the application and load code -# before forking the application. This takes advantage of Copy On Write -# process behavior so workers use less memory. -# -# preload_app! - -# Allow puma to be restarted by `rails restart` command. -plugin :tmp_restart diff --git a/spec/dummy60/config/routes.rb b/spec/dummy60/config/routes.rb deleted file mode 120000 index 2accd53..0000000 --- a/spec/dummy60/config/routes.rb +++ /dev/null @@ -1 +0,0 @@ -../../dummy_base/config/routes.rb \ No newline at end of file diff --git a/spec/dummy60/config/spring.rb b/spec/dummy60/config/spring.rb deleted file mode 100644 index db5bf13..0000000 --- a/spec/dummy60/config/spring.rb +++ /dev/null @@ -1,6 +0,0 @@ -Spring.watch( - ".ruby-version", - ".rbenv-vars", - "tmp/restart.txt", - "tmp/caching-dev.txt" -) diff --git a/spec/dummy60/config/storage.yml b/spec/dummy60/config/storage.yml deleted file mode 100644 index ddaed31..0000000 --- a/spec/dummy60/config/storage.yml +++ /dev/null @@ -1,37 +0,0 @@ -test: - service: Disk - root: <%= Rails.root.join("tmp/storage") %> - -local: - service: Disk - root: <%= Rails.root.join("storage") %> - -db: - service: DB - -# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) -# amazon: -# service: S3 -# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> -# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> -# region: us-east-1 -# bucket: your_own_bucket - -# Remember not to checkin your GCS keyfile to a repository -# google: -# service: GCS -# project: your_project -# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> -# bucket: your_own_bucket - -# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) -# microsoft: -# service: AzureStorage -# storage_account_name: your_account_name -# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> -# container: your_container_name - -# mirror: -# service: Mirror -# primary: local -# mirrors: [ amazon, google, microsoft ] diff --git a/spec/dummy60/db/migrate/20200702202020_create_active_storage_tables.active_storage.rb b/spec/dummy60/db/migrate/20200702202020_create_active_storage_tables.active_storage.rb deleted file mode 100644 index fddfb99..0000000 --- a/spec/dummy60/db/migrate/20200702202020_create_active_storage_tables.active_storage.rb +++ /dev/null @@ -1,35 +0,0 @@ -# This migration comes from active_storage (originally 20170806125915) -class CreateActiveStorageTables < ActiveRecord::Migration[6.0] - def change - create_table :active_storage_blobs do |t| - t.string :key, null: false - t.string :filename, null: false - t.string :content_type - t.text :metadata - t.bigint :byte_size, null: false - t.string :checksum, null: false - t.datetime :created_at, null: false - - t.index [ :key ], unique: true - end - - create_table :active_storage_attachments do |t| - t.string :name, null: false - t.references :record, null: false, polymorphic: true, index: false - t.references :blob, null: false - - t.datetime :created_at, null: false - - t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true - t.foreign_key :active_storage_blobs, column: :blob_id - end - - create_table :active_storage_variant_records do |t| - t.belongs_to :blob, null: false, index: false - t.string :variation_digest, null: false - - t.index %i[ blob_id variation_digest ], name: "index_active_storage_variant_records_uniqueness", unique: true - t.foreign_key :active_storage_blobs, column: :blob_id - end - end -end diff --git a/spec/dummy60/db/migrate/20220202010101_create_posts.rb b/spec/dummy60/db/migrate/20220202010101_create_posts.rb deleted file mode 100644 index e46710e..0000000 --- a/spec/dummy60/db/migrate/20220202010101_create_posts.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreatePosts < ActiveRecord::Migration[6.0] - def change - create_table :posts do |t| - t.string :title - t.text :content - t.boolean :published - - t.timestamps - end - end -end diff --git a/spec/dummy60/db/schema.rb b/spec/dummy60/db/schema.rb deleted file mode 100644 index bc6c5de..0000000 --- a/spec/dummy60/db/schema.rb +++ /dev/null @@ -1,62 +0,0 @@ -# This file is auto-generated from the current state of the database. Instead -# of editing this file, please use the migrations feature of Active Record to -# incrementally modify your database, and then regenerate this schema definition. -# -# This file is the source Rails uses to define your schema when running `rails -# db:schema:load`. When creating a new database, `rails db:schema:load` tends to -# be faster and is potentially less error prone than running all of your -# migrations from scratch. Old migrations may fail to apply correctly if those -# migrations use external dependencies or application code. -# -# It's strongly recommended that you check this file into your version control system. - -ActiveRecord::Schema.define(version: 2022_02_02_010101) do - - # These are extensions that must be enabled in order to support this database - enable_extension "plpgsql" - - create_table "active_storage_attachments", force: :cascade do |t| - t.string "name", null: false - t.string "record_type", null: false - t.bigint "record_id", null: false - t.bigint "blob_id", null: false - t.datetime "created_at", null: false - t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" - t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true - end - - create_table "active_storage_blobs", force: :cascade do |t| - t.string "key", null: false - t.string "filename", null: false - t.string "content_type" - t.text "metadata" - t.bigint "byte_size", null: false - t.string "checksum", null: false - t.datetime "created_at", null: false - t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true - end - - create_table "active_storage_db_files", force: :cascade do |t| - t.string "ref", null: false - t.binary "data", null: false - t.datetime "created_at", null: false - t.index ["ref"], name: "index_active_storage_db_files_on_ref", unique: true - end - - create_table "active_storage_variant_records", force: :cascade do |t| - t.bigint "blob_id", null: false - t.string "variation_digest", null: false - t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true - end - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.boolean "published" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false - end - - add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" - add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" -end diff --git a/spec/dummy60/lib/assets/.keep b/spec/dummy60/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/log/.keep b/spec/dummy60/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/public/404.html b/spec/dummy60/public/404.html deleted file mode 100644 index 2be3af2..0000000 --- a/spec/dummy60/public/404.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The page you were looking for doesn't exist (404) - - - - - - -
-
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/dummy60/public/422.html b/spec/dummy60/public/422.html deleted file mode 100644 index c08eac0..0000000 --- a/spec/dummy60/public/422.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The change you wanted was rejected (422) - - - - - - -
-
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/dummy60/public/500.html b/spec/dummy60/public/500.html deleted file mode 100644 index 78a030a..0000000 --- a/spec/dummy60/public/500.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - We're sorry, but something went wrong (500) - - - - - - -
-
-

We're sorry, but something went wrong.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/dummy60/public/apple-touch-icon-precomposed.png b/spec/dummy60/public/apple-touch-icon-precomposed.png deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/public/apple-touch-icon.png b/spec/dummy60/public/apple-touch-icon.png deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/public/favicon.ico b/spec/dummy60/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/storage/.keep b/spec/dummy60/storage/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/tmp/.keep b/spec/dummy60/tmp/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/tmp/pids/.keep b/spec/dummy60/tmp/pids/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy60/tmp/storage/.keep b/spec/dummy60/tmp/storage/.keep deleted file mode 100644 index e69de29..0000000