From 8557e3f0f6e07f5c153934cc17f78c79acdf4423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sat, 30 Dec 2023 10:48:03 +0100 Subject: [PATCH 1/8] Set enable-frozen-string-literal --- .github/workflows/aggregate_root_coverage.yml | 1 + .github/workflows/aggregate_root_mutate.yml | 1 + .github/workflows/aggregate_root_test.yml | 1 + .github/workflows/dres_client_test.yml | 1 + .github/workflows/dres_rails_test.yml | 1 + .github/workflows/minitest-ruby_event_store_coverage.yml | 1 + .github/workflows/minitest-ruby_event_store_mutate.yml | 1 + .github/workflows/minitest-ruby_event_store_test.yml | 1 + .github/workflows/rails_event_store_coverage.yml | 1 + .github/workflows/rails_event_store_mutate.yml | 1 + .github/workflows/rails_event_store_test.yml | 1 + .github/workflows/ruby_event_store-active_record_coverage.yml | 1 + .github/workflows/ruby_event_store-active_record_mutate.yml | 1 + .github/workflows/ruby_event_store-active_record_test.yml | 1 + .github/workflows/ruby_event_store-browser_assets.yml | 1 + .github/workflows/ruby_event_store-browser_coverage.yml | 1 + .github/workflows/ruby_event_store-browser_mutate.yml | 1 + .github/workflows/ruby_event_store-browser_test.yml | 1 + .github/workflows/ruby_event_store-flipper_coverage.yml | 1 + .github/workflows/ruby_event_store-flipper_mutate.yml | 1 + .github/workflows/ruby_event_store-flipper_test.yml | 1 + .github/workflows/ruby_event_store-newrelic_coverage.yml | 1 + .github/workflows/ruby_event_store-newrelic_mutate.yml | 1 + .github/workflows/ruby_event_store-newrelic_test.yml | 1 + .github/workflows/ruby_event_store-outbox_coverage.yml | 1 + .github/workflows/ruby_event_store-outbox_mutate.yml | 1 + .github/workflows/ruby_event_store-outbox_test.yml | 1 + .github/workflows/ruby_event_store-profiler_coverage.yml | 1 + .github/workflows/ruby_event_store-profiler_mutate.yml | 1 + .github/workflows/ruby_event_store-profiler_test.yml | 1 + .github/workflows/ruby_event_store-protobuf_coverage.yml | 1 + .github/workflows/ruby_event_store-protobuf_mutate.yml | 1 + .github/workflows/ruby_event_store-protobuf_test.yml | 1 + .github/workflows/ruby_event_store-rom_coverage.yml | 1 + .github/workflows/ruby_event_store-rom_mutate.yml | 1 + .github/workflows/ruby_event_store-rom_test.yml | 1 + .github/workflows/ruby_event_store-rspec_coverage.yml | 1 + .github/workflows/ruby_event_store-rspec_mutate.yml | 1 + .github/workflows/ruby_event_store-rspec_test.yml | 1 + .github/workflows/ruby_event_store-sequel_coverage.yml | 1 + .github/workflows/ruby_event_store-sequel_mutate.yml | 1 + .github/workflows/ruby_event_store-sequel_test.yml | 1 + .../workflows/ruby_event_store-sidekiq_scheduler_coverage.yml | 1 + .github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml | 1 + .github/workflows/ruby_event_store-sidekiq_scheduler_test.yml | 1 + .github/workflows/ruby_event_store-transformations_coverage.yml | 1 + .github/workflows/ruby_event_store-transformations_mutate.yml | 1 + .github/workflows/ruby_event_store-transformations_test.yml | 1 + .github/workflows/ruby_event_store_coverage.yml | 1 + .github/workflows/ruby_event_store_mutate.yml | 1 + .github/workflows/ruby_event_store_test.yml | 1 + support/ci/generate | 2 +- 52 files changed, 52 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aggregate_root_coverage.yml b/.github/workflows/aggregate_root_coverage.yml index 6faafe8eda..7af8392afc 100644 --- a/.github/workflows/aggregate_root_coverage.yml +++ b/.github/workflows/aggregate_root_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: aggregate_root + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index 66961abf45..c82ad4f115 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: aggregate_root + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index d5fecb7876..8087069a2a 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: aggregate_root + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index 67c60304ac..a9410443ac 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/dres_client + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index 278dba8dad..1346ffcd4c 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/dres_rails + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" diff --git a/.github/workflows/minitest-ruby_event_store_coverage.yml b/.github/workflows/minitest-ruby_event_store_coverage.yml index 4e04efac82..a526d29348 100644 --- a/.github/workflows/minitest-ruby_event_store_coverage.yml +++ b/.github/workflows/minitest-ruby_event_store_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/minitest-ruby_event_store + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index 9161e15f6e..e8bd58e78c 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/minitest-ruby_event_store + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index e87400ae80..0fdd6fd15c 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/minitest-ruby_event_store + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/rails_event_store_coverage.yml b/.github/workflows/rails_event_store_coverage.yml index 23fe8190ce..f66b2a11e0 100644 --- a/.github/workflows/rails_event_store_coverage.yml +++ b/.github/workflows/rails_event_store_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: rails_event_store + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index 80b4a35140..0280ae6791 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: rails_event_store + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index 43de1045e7..8721c90836 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: rails_event_store + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-active_record_coverage.yml b/.github/workflows/ruby_event_store-active_record_coverage.yml index c5878f2ecc..278d432028 100644 --- a/.github/workflows/ruby_event_store-active_record_coverage.yml +++ b/.github/workflows/ruby_event_store-active_record_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-active_record + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index 722e03e536..dda76950ef 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-active_record + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index d384cfb92d..7484ded249 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-active_record + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" diff --git a/.github/workflows/ruby_event_store-browser_assets.yml b/.github/workflows/ruby_event_store-browser_assets.yml index 2cba867e8b..2bbaf95a3f 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -11,6 +11,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-browser + RUBYOPT: "--enable-frozen-string-literal" steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/ruby_event_store-browser_coverage.yml b/.github/workflows/ruby_event_store-browser_coverage.yml index 19bcf69505..5e248a4204 100644 --- a/.github/workflows/ruby_event_store-browser_coverage.yml +++ b/.github/workflows/ruby_event_store-browser_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-browser + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index b005cb3c3e..40e23c5731 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-browser + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index 9764b63a0e..b7112fb4f3 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-browser + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-flipper_coverage.yml b/.github/workflows/ruby_event_store-flipper_coverage.yml index 5995ce1ab0..d90ff70049 100644 --- a/.github/workflows/ruby_event_store-flipper_coverage.yml +++ b/.github/workflows/ruby_event_store-flipper_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-flipper + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index 59135fa8f1..beefa3f494 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-flipper + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index 7c42ea87b8..d9ffce3dd0 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-flipper + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-newrelic_coverage.yml b/.github/workflows/ruby_event_store-newrelic_coverage.yml index c5e77d3817..44f9eee794 100644 --- a/.github/workflows/ruby_event_store-newrelic_coverage.yml +++ b/.github/workflows/ruby_event_store-newrelic_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index 22aca17f4e..07ec495dc4 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index 5e71481300..74b5d62ad4 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-outbox_coverage.yml b/.github/workflows/ruby_event_store-outbox_coverage.yml index 2d3cd2acc8..045ddc3980 100644 --- a/.github/workflows/ruby_event_store-outbox_coverage.yml +++ b/.github/workflows/ruby_event_store-outbox_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-outbox + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index 36c8836762..141b0fb431 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-outbox + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index 3797a15683..f6379c12c8 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-outbox + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" diff --git a/.github/workflows/ruby_event_store-profiler_coverage.yml b/.github/workflows/ruby_event_store-profiler_coverage.yml index 7ccb6a4e85..7c4b76b15c 100644 --- a/.github/workflows/ruby_event_store-profiler_coverage.yml +++ b/.github/workflows/ruby_event_store-profiler_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-profiler + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index 1ec849d891..1e34f475e5 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-profiler + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index 63c86f6465..19611f9ad0 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-profiler + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-protobuf_coverage.yml b/.github/workflows/ruby_event_store-protobuf_coverage.yml index 40eaf41c5e..448c432b44 100644 --- a/.github/workflows/ruby_event_store-protobuf_coverage.yml +++ b/.github/workflows/ruby_event_store-protobuf_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-protobuf + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index 1281c5f082..7ddb9bf46a 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-protobuf + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index c51264ffb1..f6b89bd2cc 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-protobuf + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" diff --git a/.github/workflows/ruby_event_store-rom_coverage.yml b/.github/workflows/ruby_event_store-rom_coverage.yml index 0488a00e61..a3f31de6c7 100644 --- a/.github/workflows/ruby_event_store-rom_coverage.yml +++ b/.github/workflows/ruby_event_store-rom_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-rom + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index d405482412..89f6545946 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-rom + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index 6c2eeca053..530caa4193 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-rom + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" diff --git a/.github/workflows/ruby_event_store-rspec_coverage.yml b/.github/workflows/ruby_event_store-rspec_coverage.yml index af23fb7665..8aacd636dc 100644 --- a/.github/workflows/ruby_event_store-rspec_coverage.yml +++ b/.github/workflows/ruby_event_store-rspec_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-rspec + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index 944c5b5b10..9564945773 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-rspec + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index 3260279aa6..f6e0713738 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-rspec + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-sequel_coverage.yml b/.github/workflows/ruby_event_store-sequel_coverage.yml index 81197b03e7..b4a0a1ae99 100644 --- a/.github/workflows/ruby_event_store-sequel_coverage.yml +++ b/.github/workflows/ruby_event_store-sequel_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sequel + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index a6559f04d7..33ebcc99dd 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sequel + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index 4d71de2257..0cc8f022e5 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sequel + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml index 6311e2c236..3c640e8624 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index 0d7980750e..636fef247f 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index 2afb931b71..f65fda88ff 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-transformations_coverage.yml b/.github/workflows/ruby_event_store-transformations_coverage.yml index 7e85db96ca..9b95eae314 100644 --- a/.github/workflows/ruby_event_store-transformations_coverage.yml +++ b/.github/workflows/ruby_event_store-transformations_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-transformations + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index 7c5c63d7be..fb718e31c7 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-transformations + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index f4de04e5b6..ce924ba371 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-transformations + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store_coverage.yml b/.github/workflows/ruby_event_store_coverage.yml index 965dce3e91..e0b870aaa9 100644 --- a/.github/workflows/ruby_event_store_coverage.yml +++ b/.github/workflows/ruby_event_store_coverage.yml @@ -29,6 +29,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index 82e328e7b8..9d0a064fd1 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index 9baf6214bc..a8a9e32a63 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -37,6 +37,7 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store + RUBYOPT: "--enable-frozen-string-literal" RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" strategy: diff --git a/support/ci/generate b/support/ci/generate index 8024c664ad..2b85953842 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -560,7 +560,7 @@ class CI { "runs-on" => "ubuntu-20.04", "timeout-minutes" => 120, - "env" => { "WORKING_DIRECTORY" => working_directory }.merge(env(matrix)), + "env" => { "WORKING_DIRECTORY" => working_directory, "RUBYOPT" => "--enable-frozen-string-literal" }.merge(env(matrix)), "services" => services.reduce(&:merge), "strategy" => { "fail-fast" => false, From c43ce834146e0b135f61589b182904b0987659df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Fri, 5 Jan 2024 21:42:00 +0100 Subject: [PATCH 2/8] Questionable expectation it is https://arkency.slack.com/archives/C7B95EW3V/p1599652904153200 https://arkency.slack.com/archives/C03SU0Z5H/p1514999208000082 https://github.com/RailsEventStore/rails_event_store/pull/177#discussion_r159511529 --- ruby_event_store/spec/in_memory_repository_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/ruby_event_store/spec/in_memory_repository_spec.rb b/ruby_event_store/spec/in_memory_repository_spec.rb index 277d91844e..557f002e8a 100644 --- a/ruby_event_store/spec/in_memory_repository_spec.rb +++ b/ruby_event_store/spec/in_memory_repository_spec.rb @@ -22,7 +22,6 @@ module RubyEventStore Stream.new("stream"), ExpectedVersion.none ) - expect(eid).not_to receive(:eql?) expect do repository.append_to_stream( [SRecord.new(event_id: "a1b49edb-7636-416f-874a-88f94b859bef")], From 4e26d578ff1f32154f0febbb92f53c74ef70fdeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Fri, 5 Jan 2024 21:48:34 +0100 Subject: [PATCH 3/8] Mutable string required here --- .../lib/ruby_event_store/spec/event_repository_lint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb index d3808a610e..1980054cdd 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb @@ -909,7 +909,7 @@ def read_events_backward(repository, stream = nil, from: nil, to: nil, count: ni specify "can store arbitrary binary data" do skip unless helper.supports_binary? - binary = "\xB0" + binary = String.new("\xB0") expect(binary.valid_encoding?).to eq(false) binary.force_encoding("binary") expect(binary.valid_encoding?).to eq(true) From 19eed6afcbd2741f19c8589c0d9d5a928c05d5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Fri, 5 Jan 2024 21:49:22 +0100 Subject: [PATCH 4/8] Can't tell what was supposed to be proved here --- .../lib/ruby_event_store/spec/event_repository_lint.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb index 1980054cdd..d16091773c 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb @@ -909,10 +909,7 @@ def read_events_backward(repository, stream = nil, from: nil, to: nil, count: ni specify "can store arbitrary binary data" do skip unless helper.supports_binary? - binary = String.new("\xB0") - expect(binary.valid_encoding?).to eq(false) - binary.force_encoding("binary") - expect(binary.valid_encoding?).to eq(true) + binary = String.new("\xB0").force_encoding("binary") repository.append_to_stream([event = SRecord.new(data: binary, metadata: binary)], stream, version_none) end From badbe0dafa294fd800b139cb523ff8dc7a6eb15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Fri, 5 Jan 2024 22:06:06 +0100 Subject: [PATCH 5/8] Keep concurrent-ruby up-to-date --- ruby_event_store/Gemfile | 2 +- ruby_event_store/Gemfile.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruby_event_store/Gemfile b/ruby_event_store/Gemfile index 51ea249a93..6f59013f46 100644 --- a/ruby_event_store/Gemfile +++ b/ruby_event_store/Gemfile @@ -5,4 +5,4 @@ gemspec eval_gemfile "../support/bundler/Gemfile.shared" gem "activesupport", "~> 7.0.7" -gem "concurrent-ruby", "1.1.8" +gem "concurrent-ruby", "~> 1.2" diff --git a/ruby_event_store/Gemfile.lock b/ruby_event_store/Gemfile.lock index b23d77d4c4..465a134f37 100644 --- a/ruby_event_store/Gemfile.lock +++ b/ruby_event_store/Gemfile.lock @@ -18,7 +18,7 @@ GEM minitest (>= 5.1) tzinfo (~> 2.0) ast (2.4.2) - concurrent-ruby (1.1.8) + concurrent-ruby (1.2.2) diff-lcs (1.5.0) i18n (1.14.1) concurrent-ruby (~> 1.0) @@ -71,7 +71,7 @@ PLATFORMS DEPENDENCIES activesupport (~> 7.0.7) - concurrent-ruby (= 1.1.8) + concurrent-ruby (~> 1.2) mutant (= 0.11.22) mutant-license! mutant-minitest (= 0.11.22) From 1b556d24a7812d8022ccd7bfc5a72f6c1f0e8eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Fri, 5 Jan 2024 22:24:04 +0100 Subject: [PATCH 6/8] Missing magic comments for frozen_string_literal --- aggregate_root/lib/aggregate_root/instrumented_repository.rb | 1 + aggregate_root/lib/aggregate_root/snapshot_repository.rb | 1 + contrib/dres_client/dres_client.gemspec | 2 ++ contrib/dres_client/lib/dres_client.rb | 2 ++ contrib/dres_client/lib/dres_client/version.rb | 2 ++ contrib/dres_client/spec/dres_client_spec.rb | 2 ++ contrib/dres_client/spec/spec_helper.rb | 2 ++ .../app/controllers/dres_rails/application_controller.rb | 2 ++ contrib/dres_rails/app/models/dres_rails/job.rb | 2 ++ contrib/dres_rails/app/models/dres_rails/queue.rb | 2 ++ .../db/migrate/20180802140810_create_dres_rails_queues.rb | 2 ++ .../db/migrate/20180809123523_create_queue_jobs_table.rb | 2 ++ .../20180802142436_create_dres_rails_queues.dres_rails.rb | 2 ++ .../20180809123950_create_queue_jobs_table.dres_rails.rb | 2 ++ contrib/dres_rails/spec/dummy/db/schema.rb | 2 ++ contrib/dres_rails/spec/features/expose_spec.rb | 2 ++ contrib/dres_rails/spec/models/queue_spec.rb | 2 ++ contrib/dres_rails/spec/spec_helper.rb | 2 ++ contrib/minitest-ruby_event_store/Gemfile | 2 ++ .../minitest-ruby_event_store/lib/minitest/ruby_event_store.rb | 2 ++ .../lib/minitest/ruby_event_store/assertions.rb | 2 ++ .../lib/minitest/ruby_event_store/version.rb | 2 ++ .../test/minitest/ruby_event_store_test.rb | 2 ++ contrib/minitest-ruby_event_store/test/test_helper.rb | 2 ++ contrib/ruby_event_store-flipper/spec/flipper_spec.rb | 2 ++ contrib/ruby_event_store-outbox/Gemfile | 2 ++ .../lib/ruby_event_store/outbox/batch_result.rb | 2 ++ .../lib/ruby_event_store/outbox/cleanup_strategies.rb | 2 ++ .../outbox/cleanup_strategies/clean_old_enqueued.rb | 2 ++ .../lib/ruby_event_store/outbox/cleanup_strategies/none.rb | 2 ++ .../ruby_event_store-outbox/lib/ruby_event_store/outbox/cli.rb | 2 ++ .../lib/ruby_event_store/outbox/configuration.rb | 2 ++ .../lib/ruby_event_store/outbox/consumer.rb | 2 ++ .../lib/ruby_event_store/outbox/fetch_specification.rb | 2 ++ .../lib/ruby_event_store/outbox/metrics.rb | 2 ++ .../lib/ruby_event_store/outbox/metrics/influx.rb | 2 ++ .../lib/ruby_event_store/outbox/metrics/null.rb | 2 ++ .../lib/ruby_event_store/outbox/metrics/test.rb | 2 ++ .../lib/ruby_event_store/outbox/runner.rb | 2 ++ .../lib/ruby_event_store/outbox/tempo.rb | 2 ++ contrib/ruby_event_store-outbox/spec/batch_result_spec.rb | 2 ++ contrib/ruby_event_store-outbox/spec/cli_spec.rb | 2 ++ contrib/ruby_event_store-outbox/spec/consumer_spec.rb | 2 ++ contrib/ruby_event_store-outbox/spec/metrics/factory_spec.rb | 2 ++ contrib/ruby_event_store-outbox/spec/metrics/influx_spec.rb | 2 ++ contrib/ruby_event_store-outbox/spec/metrics/null_spec.rb | 2 ++ contrib/ruby_event_store-outbox/spec/repository_spec.rb | 2 ++ contrib/ruby_event_store-outbox/spec/runner_spec.rb | 2 ++ .../ruby_event_store-outbox/spec/sidekiq_correctness_spec.rb | 2 ++ contrib/ruby_event_store-outbox/spec/sidekiq_scheduler_spec.rb | 2 ++ contrib/ruby_event_store-outbox/spec/spec_helper.rb | 2 ++ contrib/ruby_event_store-outbox/spec/support/db.rb | 2 ++ contrib/ruby_event_store-outbox/spec/support/sidekiq.rb | 2 ++ contrib/ruby_event_store-outbox/spec/tempo_spec.rb | 2 ++ contrib/ruby_event_store-profiler/Gemfile | 2 ++ .../ruby_event_store-profiler/lib/ruby_event_store/profiler.rb | 2 ++ .../lib/ruby_event_store/profiler/version.rb | 2 ++ contrib/ruby_event_store-profiler/spec/profiler_spec.rb | 2 ++ contrib/ruby_event_store-profiler/spec/spec_helper.rb | 2 ++ contrib/ruby_event_store-protobuf/Gemfile | 2 ++ contrib/ruby_event_store-protobuf/spec/client_spec.rb | 2 ++ contrib/ruby_event_store-protobuf/spec/link_by_metadata_spec.rb | 2 ++ contrib/ruby_event_store-protobuf/spec/mappers/events_pb.rb | 2 ++ contrib/ruby_event_store-protobuf/spec/mappers/protobuf_spec.rb | 2 ++ .../spec/mappers/transformation/proto_event_spec.rb | 2 ++ .../spec/mappers/transformation/protobuf_encoder_spec.rb | 2 ++ .../transformation/protobuf_nested_struct_metadata_spec.rb | 2 ++ contrib/ruby_event_store-protobuf/spec/no_warnings_spec.rb | 2 ++ .../ruby_event_store-protobuf/spec/protobuf_integration_spec.rb | 2 ++ contrib/ruby_event_store-protobuf/spec/spec_helper.rb | 2 ++ contrib/ruby_event_store-rom/Gemfile | 2 ++ contrib/ruby_event_store-rom/Rakefile | 2 ++ .../db/migrate/20210806000000_create_ruby_event_store_tables.rb | 2 ++ contrib/ruby_event_store-rom/spec/rom/event_repository_spec.rb | 2 ++ contrib/ruby_event_store-rom/spec/rom/no_warnings_spec.rb | 2 ++ contrib/ruby_event_store-rom/spec/rom/rom_spec.rb | 2 ++ contrib/ruby_event_store-rom/spec/spec_helper.rb | 2 ++ contrib/ruby_event_store-sequel/Gemfile | 2 ++ .../generators/templates/1_create_ruby_event_store_tables.rb | 2 ++ .../templates/mysql/1_create_ruby_event_store_tables.rb | 2 ++ .../templates/postgres/1_create_ruby_event_store_tables.rb | 2 ++ .../lib/ruby_event_store/sequel/index_violation_detector.rb | 2 +- contrib/ruby_event_store-sequel/spec/event_repository_spec.rb | 2 ++ contrib/ruby_event_store-sequel/spec/spec_helper.rb | 2 ++ contrib/ruby_event_store-sidekiq_scheduler/Gemfile | 2 ++ .../lib/ruby_event_store/sidekiq_scheduler.rb | 2 ++ .../spec/async_handler_helpers_spec.rb | 2 ++ .../ruby_event_store-sidekiq_scheduler/spec/no_warnings_spec.rb | 2 ++ .../spec/sidekiq_scheduler_spec.rb | 2 ++ contrib/ruby_event_store-sidekiq_scheduler/spec/spec_helper.rb | 2 ++ contrib/ruby_event_store-transformations/Gemfile | 2 ++ .../lib/ruby_event_store/transformations/identity_map.rb | 2 ++ rails_event_store/Gemfile | 2 ++ rails_event_store/lib/generators/templates/bc_spec.rb | 2 ++ rails_event_store/lib/generators/templates/module.rb | 2 ++ rails_event_store/lib/generators/templates/require_bc_spec.rb | 2 ++ rails_event_store/lib/generators/templates/require_bc_test.rb | 2 ++ rails_event_store/lib/generators/templates/spec_helper.rb | 2 ++ rails_event_store/lib/generators/templates/test_helper.rb | 2 ++ rails_event_store/spec/active_job_id_only_scheduler_spec.rb | 2 ++ rails_event_store/spec/active_job_scheduler_spec.rb | 2 ++ rails_event_store/spec/after_commit_async_dispatcher_spec.rb | 2 ++ rails_event_store/spec/async_handler_helpers_spec.rb | 2 ++ rails_event_store/spec/browser_integration_spec.rb | 2 ++ rails_event_store/spec/client_spec.rb | 2 ++ rails_event_store/spec/dummy_6_0/Gemfile | 2 ++ rails_event_store/spec/dummy_6_0/Rakefile | 2 ++ rails_event_store/spec/dummy_6_0/config/application.rb | 2 ++ rails_event_store/spec/dummy_6_0/config/boot.rb | 2 ++ rails_event_store/spec/dummy_6_0/config/environment.rb | 2 ++ .../spec/dummy_6_0/config/environments/development.rb | 2 ++ .../spec/dummy_6_0/config/environments/production.rb | 2 ++ rails_event_store/spec/dummy_6_0/config/environments/test.rb | 2 ++ .../config/initializers/application_controller_renderer.rb | 2 ++ .../spec/dummy_6_0/config/initializers/backtrace_silencers.rb | 2 ++ .../dummy_6_0/config/initializers/content_security_policy.rb | 2 ++ .../spec/dummy_6_0/config/initializers/cookies_serializer.rb | 2 ++ .../dummy_6_0/config/initializers/filter_parameter_logging.rb | 2 ++ .../spec/dummy_6_0/config/initializers/inflections.rb | 2 ++ .../spec/dummy_6_0/config/initializers/mime_types.rb | 2 ++ .../spec/dummy_6_0/config/initializers/wrap_parameters.rb | 2 ++ rails_event_store/spec/dummy_6_0/config/routes.rb | 2 ++ rails_event_store/spec/dummy_6_0/config/spring.rb | 2 ++ rails_event_store/spec/dummy_6_0/test/test_helper.rb | 2 ++ rails_event_store/spec/dummy_6_1/Gemfile | 2 ++ rails_event_store/spec/dummy_6_1/Rakefile | 2 ++ rails_event_store/spec/dummy_6_1/config/application.rb | 2 ++ rails_event_store/spec/dummy_6_1/config/boot.rb | 2 ++ rails_event_store/spec/dummy_6_1/config/environment.rb | 2 ++ .../spec/dummy_6_1/config/environments/development.rb | 2 ++ .../spec/dummy_6_1/config/environments/production.rb | 2 ++ rails_event_store/spec/dummy_6_1/config/environments/test.rb | 2 ++ .../config/initializers/application_controller_renderer.rb | 2 ++ .../spec/dummy_6_1/config/initializers/backtrace_silencers.rb | 2 ++ .../dummy_6_1/config/initializers/content_security_policy.rb | 2 ++ .../spec/dummy_6_1/config/initializers/cookies_serializer.rb | 2 ++ .../dummy_6_1/config/initializers/filter_parameter_logging.rb | 2 ++ .../spec/dummy_6_1/config/initializers/inflections.rb | 2 ++ .../spec/dummy_6_1/config/initializers/mime_types.rb | 2 ++ .../spec/dummy_6_1/config/initializers/permissions_policy.rb | 2 ++ .../spec/dummy_6_1/config/initializers/wrap_parameters.rb | 2 ++ rails_event_store/spec/dummy_6_1/config/routes.rb | 2 ++ rails_event_store/spec/dummy_6_1/config/spring.rb | 2 ++ rails_event_store/spec/dummy_6_1/test/test_helper.rb | 2 ++ rails_event_store/spec/dummy_7_0/Gemfile | 2 ++ rails_event_store/spec/dummy_7_0/Rakefile | 2 ++ rails_event_store/spec/dummy_7_0/config/application.rb | 2 ++ rails_event_store/spec/dummy_7_0/config/boot.rb | 2 ++ rails_event_store/spec/dummy_7_0/config/environment.rb | 2 ++ .../spec/dummy_7_0/config/environments/development.rb | 2 ++ .../spec/dummy_7_0/config/environments/production.rb | 2 ++ rails_event_store/spec/dummy_7_0/config/environments/test.rb | 2 ++ .../config/initializers/application_controller_renderer.rb | 2 ++ .../spec/dummy_7_0/config/initializers/backtrace_silencers.rb | 2 ++ .../dummy_7_0/config/initializers/content_security_policy.rb | 2 ++ .../spec/dummy_7_0/config/initializers/cookies_serializer.rb | 2 ++ .../dummy_7_0/config/initializers/filter_parameter_logging.rb | 2 ++ .../spec/dummy_7_0/config/initializers/inflections.rb | 2 ++ .../spec/dummy_7_0/config/initializers/mime_types.rb | 2 ++ .../spec/dummy_7_0/config/initializers/permissions_policy.rb | 2 ++ .../spec/dummy_7_0/config/initializers/wrap_parameters.rb | 2 ++ rails_event_store/spec/dummy_7_0/config/routes.rb | 2 ++ rails_event_store/spec/dummy_7_0/config/spring.rb | 2 ++ rails_event_store/spec/dummy_7_0/test/test_helper.rb | 2 ++ rails_event_store/spec/example_invoicing_app.rb | 2 ++ rails_event_store/spec/full_story_spec.rb | 2 ++ rails_event_store/spec/json_client_spec.rb | 2 ++ rails_event_store/spec/link_by_metadata_spec.rb | 2 ++ rails_event_store/spec/middleware_integration_spec.rb | 2 ++ rails_event_store/spec/middleware_spec.rb | 2 ++ rails_event_store/spec/no_warnings_spec.rb | 2 ++ .../spec/rails_event_id_index_migration_generator_spec.rb | 2 ++ .../rails_foreign_key_on_event_id_migration_generator_spec.rb | 2 ++ rails_event_store/spec/rails_migration_generator_spec.rb | 2 ++ rails_event_store/spec/spec_helper.rb | 2 ++ rails_event_store/spec/support/fake_configuration.rb | 2 ++ rails_event_store/spec/support/test_application.rb | 2 ++ railseventstore.org/helpers/table_of_contents_helper.rb | 2 ++ ruby_event_store-active_record/Gemfile | 2 ++ .../lib/rails_event_store_active_record.rb | 2 ++ .../active_record/generators/migration_generator.rb | 1 + .../ruby_event_store/active_record/tasks/migration_tasks.rake | 2 ++ ruby_event_store-active_record/spec/batch_enumerator_spec.rb | 2 ++ ruby_event_store-active_record/spec/event_repository_spec.rb | 2 ++ ruby_event_store-active_record/spec/migration_generator_spec.rb | 2 ++ ruby_event_store-active_record/spec/no_warnings_spec.rb | 2 ++ .../spec/pg_linearized_event_repository_spec.rb | 2 ++ ruby_event_store-active_record/spec/rake_task_spec.rb | 2 ++ ruby_event_store-active_record/spec/spec_helper.rb | 2 ++ .../spec/with_abstract_base_class_spec.rb | 2 ++ ruby_event_store-active_record/spec/with_default_models_spec.rb | 2 ++ ruby_event_store-browser/Gemfile | 2 ++ ruby_event_store-browser/devserver/config.ru | 2 ++ .../spec/api/event_correlation_causation_streams_spec.rb | 2 ++ ruby_event_store-browser/spec/api/event_spec.rb | 2 ++ .../spec/api/events_from_stream_pagination_spec.rb | 2 ++ ruby_event_store-browser/spec/api/events_from_stream_spec.rb | 2 ++ .../spec/api/stream_related_streams_spec.rb | 2 ++ ruby_event_store-browser/spec/api/stream_spec.rb | 2 ++ ruby_event_store-browser/spec/browser_settings_spec.rb | 2 ++ ruby_event_store-browser/spec/deprecation_spec.rb | 2 ++ ruby_event_store-browser/spec/gem_source_spec.rb | 2 ++ ruby_event_store-browser/spec/legacy_event_spec.rb | 2 ++ ruby_event_store-browser/spec/no_warnings_spec.rb | 2 ++ ruby_event_store-browser/spec/router_spec.rb | 2 ++ ruby_event_store-browser/spec/spec_helper.rb | 2 ++ ruby_event_store-browser/spec/support/api_client.rb | 2 ++ ruby_event_store-browser/spec/support/csp_app.rb | 2 ++ ruby_event_store-browser/spec/support/integration_helpers.rb | 2 ++ ruby_event_store-browser/spec/support/web_client.rb | 2 ++ ruby_event_store-browser/spec/ui_spec.rb | 2 ++ ruby_event_store-browser/spec/urls_spec.rb | 2 ++ ruby_event_store-browser/spec/web_spec.rb | 2 ++ ruby_event_store-rspec/Gemfile | 2 ++ .../lib/ruby_event_store/rspec/expected_collection.rb | 2 ++ .../lib/ruby_event_store/rspec/fetch_events.rb | 2 ++ .../lib/ruby_event_store/rspec/fetch_unpublished_events.rb | 2 ++ .../lib/ruby_event_store/rspec/match_events.rb | 2 ++ ruby_event_store-rspec/spec/no_warnings_spec.rb | 2 ++ .../spec/ruby_event_store/rspec/apply_spec.rb | 2 ++ .../spec/ruby_event_store/rspec/be_event_spec.rb | 2 ++ .../spec/ruby_event_store/rspec/expected_collection_spec.rb | 2 ++ .../spec/ruby_event_store/rspec/have_applied_spec.rb | 2 ++ .../spec/ruby_event_store/rspec/have_published_spec.rb | 2 ++ .../ruby_event_store/rspec/have_subscribed_to_events_spec.rb | 2 ++ .../spec/ruby_event_store/rspec/matchers_spec.rb | 2 ++ .../spec/ruby_event_store/rspec/publish_spec.rb | 2 ++ .../rspec/step_by_step_failure_message_formatter_spec.rb | 2 ++ ruby_event_store-rspec/spec/spec_helper.rb | 2 ++ ruby_event_store/Gemfile | 2 ++ ruby_event_store/lib/ruby_event_store/spec/broker_lint.rb | 2 ++ ruby_event_store/lib/ruby_event_store/spec/dispatcher_lint.rb | 2 ++ ruby_event_store/lib/ruby_event_store/spec/event_lint.rb | 2 ++ .../lib/ruby_event_store/spec/event_repository_lint.rb | 2 ++ ruby_event_store/lib/ruby_event_store/spec/mapper_lint.rb | 2 ++ ruby_event_store/lib/ruby_event_store/spec/scheduler_lint.rb | 2 ++ .../lib/ruby_event_store/spec/subscriptions_lint.rb | 2 ++ ruby_event_store/spec/batch_enumerator_spec.rb | 2 ++ ruby_event_store/spec/broker_spec.rb | 2 ++ ruby_event_store/spec/client_notify_subscribers_spec.rb | 2 ++ ruby_event_store/spec/client_spec.rb | 2 ++ ruby_event_store/spec/client_subscriptions_spec.rb | 2 ++ ruby_event_store/spec/composed_dispatcher_spec.rb | 2 ++ ruby_event_store/spec/correlated_commands_spec.rb | 2 ++ ruby_event_store/spec/dispatcher_spec.rb | 2 ++ ruby_event_store/spec/expected_version_spec.rb | 2 ++ ruby_event_store/spec/get_event_spec.rb | 2 ++ ruby_event_store/spec/immediate_async_dispatcher_spec.rb | 2 ++ ruby_event_store/spec/in_memory_repository_spec.rb | 2 ++ ruby_event_store/spec/instrumented_dispatcher_spec.rb | 2 ++ ruby_event_store/spec/instrumented_repository_spec.rb | 2 ++ ruby_event_store/spec/instrumented_subscriptions_spec.rb | 2 ++ ruby_event_store/spec/link_by_metadata_spec.rb | 2 ++ ruby_event_store/spec/mappers/custom_mapper_with_types_spec.rb | 2 ++ ruby_event_store/spec/mappers/default_spec.rb | 2 ++ ruby_event_store/spec/mappers/encryption_mapper_spec.rb | 2 ++ ruby_event_store/spec/mappers/forgotten_data_spec.rb | 2 ++ ruby_event_store/spec/mappers/instrumented_mapper_spec.rb | 2 ++ ruby_event_store/spec/mappers/null_mapper_spec.rb | 2 ++ ruby_event_store/spec/mappers/pipeline_spec.rb | 2 ++ ruby_event_store/spec/mappers/transform_keys_spec.rb | 2 ++ .../spec/mappers/transformation/domain_event_spec.rb | 2 ++ ruby_event_store/spec/mappers/transformation/encryption_spec.rb | 2 ++ .../spec/mappers/transformation/event_class_remapper_spec.rb | 2 ++ .../spec/mappers/transformation/preserve_types_spec.rb | 2 ++ .../spec/mappers/transformation/stringify_metadata_keys_spec.rb | 2 ++ .../spec/mappers/transformation/symbolize_metadata_keys_spec.rb | 2 ++ ruby_event_store/spec/mappers/transformation/upcast_spec.rb | 2 ++ ruby_event_store/spec/metadata_spec.rb | 2 ++ ruby_event_store/spec/no_warnings_spec.rb | 2 ++ ruby_event_store/spec/projection_spec.rb | 2 ++ ruby_event_store/spec/record_spec.rb | 2 ++ ruby_event_store/spec/serialized_record_spec.rb | 2 ++ ruby_event_store/spec/spec_helper.rb | 2 ++ ruby_event_store/spec/specification_spec.rb | 2 ++ ruby_event_store/spec/stream_spec.rb | 2 ++ ruby_event_store/spec/subscriptions_spec.rb | 2 ++ ruby_event_store/spec/support/correlatable.rb | 2 ++ ruby_event_store/spec/within_spec.rb | 2 ++ support/helpers/migrator.rb | 2 ++ support/helpers/protobuf_helper.rb | 2 ++ support/helpers/redis_client_unix_socket_patch.rb | 2 ++ support/helpers/rspec_defaults.rb | 2 ++ support/helpers/rspec_sql_matchers.rb | 2 ++ support/helpers/schema_helper.rb | 2 ++ support/helpers/silence_stdout.rb | 2 ++ support/helpers/silence_warnings.rb | 2 ++ support/helpers/subprocess_helper.rb | 2 ++ support/helpers/time_enrichment.rb | 2 ++ 289 files changed, 574 insertions(+), 1 deletion(-) diff --git a/aggregate_root/lib/aggregate_root/instrumented_repository.rb b/aggregate_root/lib/aggregate_root/instrumented_repository.rb index 34145fc779..59648d0ad1 100644 --- a/aggregate_root/lib/aggregate_root/instrumented_repository.rb +++ b/aggregate_root/lib/aggregate_root/instrumented_repository.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require 'delegate' module AggregateRoot class InstrumentedRepository diff --git a/aggregate_root/lib/aggregate_root/snapshot_repository.rb b/aggregate_root/lib/aggregate_root/snapshot_repository.rb index 2b04ff244e..5ad2e9ffb9 100644 --- a/aggregate_root/lib/aggregate_root/snapshot_repository.rb +++ b/aggregate_root/lib/aggregate_root/snapshot_repository.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require 'base64' require 'ruby_event_store/event' diff --git a/contrib/dres_client/dres_client.gemspec b/contrib/dres_client/dres_client.gemspec index 96b4e6a765..0b1c942829 100644 --- a/contrib/dres_client/dres_client.gemspec +++ b/contrib/dres_client/dres_client.gemspec @@ -1,3 +1,5 @@ +# frozen_string_literal: true + lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "dres_client/version" diff --git a/contrib/dres_client/lib/dres_client.rb b/contrib/dres_client/lib/dres_client.rb index 6ce8d780c7..4f943fde8f 100644 --- a/contrib/dres_client/lib/dres_client.rb +++ b/contrib/dres_client/lib/dres_client.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "dres_client/version" require "net/http" require "net/https" diff --git a/contrib/dres_client/lib/dres_client/version.rb b/contrib/dres_client/lib/dres_client/version.rb index 4c597e27fa..9dea253191 100644 --- a/contrib/dres_client/lib/dres_client/version.rb +++ b/contrib/dres_client/lib/dres_client/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DresClient VERSION = "0.6.0" end diff --git a/contrib/dres_client/spec/dres_client_spec.rb b/contrib/dres_client/spec/dres_client_spec.rb index 43fb4b6d66..b988bb2271 100644 --- a/contrib/dres_client/spec/dres_client_spec.rb +++ b/contrib/dres_client/spec/dres_client_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "uri" diff --git a/contrib/dres_client/spec/spec_helper.rb b/contrib/dres_client/spec/spec_helper.rb index ebfb901f06..4e26ce34f9 100644 --- a/contrib/dres_client/spec/spec_helper.rb +++ b/contrib/dres_client/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "../../../support/helpers/rspec_defaults" require "dres_client" require "webmock/rspec" diff --git a/contrib/dres_rails/app/controllers/dres_rails/application_controller.rb b/contrib/dres_rails/app/controllers/dres_rails/application_controller.rb index e76baa1922..f2257d6502 100644 --- a/contrib/dres_rails/app/controllers/dres_rails/application_controller.rb +++ b/contrib/dres_rails/app/controllers/dres_rails/application_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DresRails class ApplicationController < ActionController::Base def index diff --git a/contrib/dres_rails/app/models/dres_rails/job.rb b/contrib/dres_rails/app/models/dres_rails/job.rb index c6232c37fc..6a73f106f5 100644 --- a/contrib/dres_rails/app/models/dres_rails/job.rb +++ b/contrib/dres_rails/app/models/dres_rails/job.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DresRails class Job < ::ActiveRecord::Base self.table_name = "dres_rails_queue_jobs" diff --git a/contrib/dres_rails/app/models/dres_rails/queue.rb b/contrib/dres_rails/app/models/dres_rails/queue.rb index 2079bcbd29..89e06aecc4 100644 --- a/contrib/dres_rails/app/models/dres_rails/queue.rb +++ b/contrib/dres_rails/app/models/dres_rails/queue.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DresRails class Queue < ::ActiveRecord::Base has_many :jobs, -> { order(:id) } diff --git a/contrib/dres_rails/db/migrate/20180802140810_create_dres_rails_queues.rb b/contrib/dres_rails/db/migrate/20180802140810_create_dres_rails_queues.rb index b465fc83d7..a4f45ea4f1 100644 --- a/contrib/dres_rails/db/migrate/20180802140810_create_dres_rails_queues.rb +++ b/contrib/dres_rails/db/migrate/20180802140810_create_dres_rails_queues.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateDresRailsQueues < ActiveRecord::Migration[5.2] def change create_table :dres_rails_queues do |t| diff --git a/contrib/dres_rails/db/migrate/20180809123523_create_queue_jobs_table.rb b/contrib/dres_rails/db/migrate/20180809123523_create_queue_jobs_table.rb index 5747fcef6a..143a6bfdc1 100644 --- a/contrib/dres_rails/db/migrate/20180809123523_create_queue_jobs_table.rb +++ b/contrib/dres_rails/db/migrate/20180809123523_create_queue_jobs_table.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateQueueJobsTable < ActiveRecord::Migration[5.2] def change create_table :dres_rails_queue_jobs do |t| diff --git a/contrib/dres_rails/spec/dummy/db/migrate/20180802142436_create_dres_rails_queues.dres_rails.rb b/contrib/dres_rails/spec/dummy/db/migrate/20180802142436_create_dres_rails_queues.dres_rails.rb index 7e89b74907..3711556547 100644 --- a/contrib/dres_rails/spec/dummy/db/migrate/20180802142436_create_dres_rails_queues.dres_rails.rb +++ b/contrib/dres_rails/spec/dummy/db/migrate/20180802142436_create_dres_rails_queues.dres_rails.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This migration comes from dres_rails (originally 20180802140810) class CreateDresRailsQueues < ActiveRecord::Migration[5.2] def change diff --git a/contrib/dres_rails/spec/dummy/db/migrate/20180809123950_create_queue_jobs_table.dres_rails.rb b/contrib/dres_rails/spec/dummy/db/migrate/20180809123950_create_queue_jobs_table.dres_rails.rb index 7f4f707cc5..597a1bd09b 100644 --- a/contrib/dres_rails/spec/dummy/db/migrate/20180809123950_create_queue_jobs_table.dres_rails.rb +++ b/contrib/dres_rails/spec/dummy/db/migrate/20180809123950_create_queue_jobs_table.dres_rails.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This migration comes from dres_rails (originally 20180809123523) class CreateQueueJobsTable < ActiveRecord::Migration[5.2] def change diff --git a/contrib/dres_rails/spec/dummy/db/schema.rb b/contrib/dres_rails/spec/dummy/db/schema.rb index d714a55e45..a6856a304b 100644 --- a/contrib/dres_rails/spec/dummy/db/schema.rb +++ b/contrib/dres_rails/spec/dummy/db/schema.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # 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. diff --git a/contrib/dres_rails/spec/features/expose_spec.rb b/contrib/dres_rails/spec/features/expose_spec.rb index 2c2589aa91..f2e92fb953 100644 --- a/contrib/dres_rails/spec/features/expose_spec.rb +++ b/contrib/dres_rails/spec/features/expose_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rails_helper" require "capybara" require "timecop" diff --git a/contrib/dres_rails/spec/models/queue_spec.rb b/contrib/dres_rails/spec/models/queue_spec.rb index 9a8f2add35..a762e3ba8c 100644 --- a/contrib/dres_rails/spec/models/queue_spec.rb +++ b/contrib/dres_rails/spec/models/queue_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rails_helper" require_relative "../../db/migrate/20180802140810_create_dres_rails_queues" require_relative "../../db/migrate/20180809123523_create_queue_jobs_table" diff --git a/contrib/dres_rails/spec/spec_helper.rb b/contrib/dres_rails/spec/spec_helper.rb index 182c7b507d..5c8d89347f 100644 --- a/contrib/dres_rails/spec/spec_helper.rb +++ b/contrib/dres_rails/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "../../../support/helpers/rspec_defaults" require_relative "../../../support/helpers/migrator" require_relative "../../../support/helpers/schema_helper" diff --git a/contrib/minitest-ruby_event_store/Gemfile b/contrib/minitest-ruby_event_store/Gemfile index 45ca7c49de..aa158cec4e 100644 --- a/contrib/minitest-ruby_event_store/Gemfile +++ b/contrib/minitest-ruby_event_store/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store.rb b/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store.rb index 1234a92771..f62cc3e10f 100644 --- a/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store.rb +++ b/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Minitest module RubyEventStore class Error < StandardError diff --git a/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store/assertions.rb b/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store/assertions.rb index eabd1bcf44..d8bd5fb1a0 100644 --- a/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store/assertions.rb +++ b/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store/assertions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Minitest module RubyEventStore module Assertions diff --git a/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store/version.rb b/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store/version.rb index dc49a29540..0846048373 100644 --- a/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store/version.rb +++ b/contrib/minitest-ruby_event_store/lib/minitest/ruby_event_store/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Minitest module RubyEventStore VERSION = "0.1.0" diff --git a/contrib/minitest-ruby_event_store/test/minitest/ruby_event_store_test.rb b/contrib/minitest-ruby_event_store/test/minitest/ruby_event_store_test.rb index d664c63ffd..a93bc8a0c4 100644 --- a/contrib/minitest-ruby_event_store/test/minitest/ruby_event_store_test.rb +++ b/contrib/minitest-ruby_event_store/test/minitest/ruby_event_store_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "../test_helper" DummyEvent = Class.new(RubyEventStore::Event) diff --git a/contrib/minitest-ruby_event_store/test/test_helper.rb b/contrib/minitest-ruby_event_store/test/test_helper.rb index e5d2fc146b..db38bcdbb2 100644 --- a/contrib/minitest-ruby_event_store/test/test_helper.rb +++ b/contrib/minitest-ruby_event_store/test/test_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "minitest/ruby_event_store" require "ruby_event_store" require "ruby_event_store/transformations" diff --git a/contrib/ruby_event_store-flipper/spec/flipper_spec.rb b/contrib/ruby_event_store-flipper/spec/flipper_spec.rb index 1482dab827..487bf6c93e 100644 --- a/contrib/ruby_event_store-flipper/spec/flipper_spec.rb +++ b/contrib/ruby_event_store-flipper/spec/flipper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" class CustomToggleAdded < RubyEventStore::Event diff --git a/contrib/ruby_event_store-outbox/Gemfile b/contrib/ruby_event_store-outbox/Gemfile index 2bc8db1c26..30c9236ace 100644 --- a/contrib/ruby_event_store-outbox/Gemfile +++ b/contrib/ruby_event_store-outbox/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/batch_result.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/batch_result.rb index d504d71887..571045ada9 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/batch_result.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/batch_result.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox class BatchResult diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies.rb index 2330add0cf..8bf0da23eb 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox module CleanupStrategies diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies/clean_old_enqueued.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies/clean_old_enqueued.rb index 47b79eae6c..76b7491287 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies/clean_old_enqueued.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies/clean_old_enqueued.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox module CleanupStrategies diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies/none.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies/none.rb index ae8941085a..21366d0d91 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies/none.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cleanup_strategies/none.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox module CleanupStrategies diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cli.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cli.rb index a3cb4b98cc..7ed8ca547c 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cli.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/cli.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "optparse" require_relative "version" require_relative "consumer" diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/configuration.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/configuration.rb index bfcf78c4da..98a61d18cf 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/configuration.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/configuration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox class Configuration diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/consumer.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/consumer.rb index 9b7d7b10ec..56561f86b8 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/consumer.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/consumer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "logger" require "redis" require "active_record" diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/fetch_specification.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/fetch_specification.rb index ec76290a82..3f6a7a59ac 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/fetch_specification.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/fetch_specification.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox class FetchSpecification diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics.rb index 7ebc7a2bd4..f866d0ea77 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox module Metrics diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/influx.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/influx.rb index 3153349b1e..1d8878e978 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/influx.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/influx.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "influxdb" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/null.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/null.rb index 9a71c4125c..42aa385759 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/null.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/null.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox module Metrics diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/test.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/test.rb index 9267c0d329..d8c4df5e37 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/test.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/metrics/test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "influxdb" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/runner.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/runner.rb index 1f1a97f953..060af19df0 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/runner.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/runner.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox class Runner diff --git a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/tempo.rb b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/tempo.rb index e30824c5a7..60541e0041 100644 --- a/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/tempo.rb +++ b/contrib/ruby_event_store-outbox/lib/ruby_event_store/outbox/tempo.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Outbox class Tempo diff --git a/contrib/ruby_event_store-outbox/spec/batch_result_spec.rb b/contrib/ruby_event_store-outbox/spec/batch_result_spec.rb index 9d04777cbb..7005b198c9 100644 --- a/contrib/ruby_event_store-outbox/spec/batch_result_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/batch_result_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/spec/cli_spec.rb b/contrib/ruby_event_store-outbox/spec/cli_spec.rb index 1ba441e904..276594adac 100644 --- a/contrib/ruby_event_store-outbox/spec/cli_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/cli_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/spec/consumer_spec.rb b/contrib/ruby_event_store-outbox/spec/consumer_spec.rb index 7b353d78a7..6590fa915d 100644 --- a/contrib/ruby_event_store-outbox/spec/consumer_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/consumer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/spec/metrics/factory_spec.rb b/contrib/ruby_event_store-outbox/spec/metrics/factory_spec.rb index 9ac109dd10..aae75c99ef 100644 --- a/contrib/ruby_event_store-outbox/spec/metrics/factory_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/metrics/factory_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/spec/metrics/influx_spec.rb b/contrib/ruby_event_store-outbox/spec/metrics/influx_spec.rb index acb8f9e199..e3cf38c53e 100644 --- a/contrib/ruby_event_store-outbox/spec/metrics/influx_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/metrics/influx_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/spec/metrics/null_spec.rb b/contrib/ruby_event_store-outbox/spec/metrics/null_spec.rb index e096a8a2f3..e6dae0f1a4 100644 --- a/contrib/ruby_event_store-outbox/spec/metrics/null_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/metrics/null_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/spec/repository_spec.rb b/contrib/ruby_event_store-outbox/spec/repository_spec.rb index 2a919bf2a5..3d81cf1ef4 100644 --- a/contrib/ruby_event_store-outbox/spec/repository_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/repository_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/spec/runner_spec.rb b/contrib/ruby_event_store-outbox/spec/runner_spec.rb index 6639d1d4f4..385aa7582c 100644 --- a/contrib/ruby_event_store-outbox/spec/runner_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/runner_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-outbox/spec/sidekiq_correctness_spec.rb b/contrib/ruby_event_store-outbox/spec/sidekiq_correctness_spec.rb index 00270203e7..1721d2be37 100644 --- a/contrib/ruby_event_store-outbox/spec/sidekiq_correctness_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/sidekiq_correctness_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require_relative "./support/sidekiq" diff --git a/contrib/ruby_event_store-outbox/spec/sidekiq_scheduler_spec.rb b/contrib/ruby_event_store-outbox/spec/sidekiq_scheduler_spec.rb index 7c683ae256..5a6e82c560 100644 --- a/contrib/ruby_event_store-outbox/spec/sidekiq_scheduler_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/sidekiq_scheduler_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/scheduler_lint" require_relative "./support/sidekiq" diff --git a/contrib/ruby_event_store-outbox/spec/spec_helper.rb b/contrib/ruby_event_store-outbox/spec/spec_helper.rb index 260125de97..73464eb8c3 100644 --- a/contrib/ruby_event_store-outbox/spec/spec_helper.rb +++ b/contrib/ruby_event_store-outbox/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store" require "ruby_event_store/outbox" require "ruby_event_store/outbox/cli" diff --git a/contrib/ruby_event_store-outbox/spec/support/db.rb b/contrib/ruby_event_store-outbox/spec/support/db.rb index 6176736ff8..05fdc2a2fa 100644 --- a/contrib/ruby_event_store-outbox/spec/support/db.rb +++ b/contrib/ruby_event_store-outbox/spec/support/db.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + def drop_tables ActiveRecord::Migration.drop_table("event_store_outbox") ActiveRecord::Migration.drop_table("event_store_outbox_locks") diff --git a/contrib/ruby_event_store-outbox/spec/support/sidekiq.rb b/contrib/ruby_event_store-outbox/spec/support/sidekiq.rb index ed94ff2334..e936239641 100644 --- a/contrib/ruby_event_store-outbox/spec/support/sidekiq.rb +++ b/contrib/ruby_event_store-outbox/spec/support/sidekiq.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + def reset_sidekiq_middlewares Sidekiq.configure_client { |config| config.client_middleware { |chain| chain.clear } } end diff --git a/contrib/ruby_event_store-outbox/spec/tempo_spec.rb b/contrib/ruby_event_store-outbox/spec/tempo_spec.rb index d63c06f0c9..1564874d16 100644 --- a/contrib/ruby_event_store-outbox/spec/tempo_spec.rb +++ b/contrib/ruby_event_store-outbox/spec/tempo_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-profiler/Gemfile b/contrib/ruby_event_store-profiler/Gemfile index febdc16e88..fa0826b387 100644 --- a/contrib/ruby_event_store-profiler/Gemfile +++ b/contrib/ruby_event_store-profiler/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/contrib/ruby_event_store-profiler/lib/ruby_event_store/profiler.rb b/contrib/ruby_event_store-profiler/lib/ruby_event_store/profiler.rb index 6fdd3314c1..afae2072ec 100644 --- a/contrib/ruby_event_store-profiler/lib/ruby_event_store/profiler.rb +++ b/contrib/ruby_event_store-profiler/lib/ruby_event_store/profiler.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore class Profiler METRICS = [/rails_event_store/, /aggregate_root/, "total"].freeze diff --git a/contrib/ruby_event_store-profiler/lib/ruby_event_store/profiler/version.rb b/contrib/ruby_event_store-profiler/lib/ruby_event_store/profiler/version.rb index 6ef0ea02f5..bd3d0db419 100644 --- a/contrib/ruby_event_store-profiler/lib/ruby_event_store/profiler/version.rb +++ b/contrib/ruby_event_store-profiler/lib/ruby_event_store/profiler/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore class Profiler VERSION = "0.1.0" diff --git a/contrib/ruby_event_store-profiler/spec/profiler_spec.rb b/contrib/ruby_event_store-profiler/spec/profiler_spec.rb index bdaeb6efa0..7ff558d190 100644 --- a/contrib/ruby_event_store-profiler/spec/profiler_spec.rb +++ b/contrib/ruby_event_store-profiler/spec/profiler_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-profiler/spec/spec_helper.rb b/contrib/ruby_event_store-profiler/spec/spec_helper.rb index d49e028cec..ee26ebdffd 100644 --- a/contrib/ruby_event_store-profiler/spec/spec_helper.rb +++ b/contrib/ruby_event_store-profiler/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "../../support/helpers/rspec_defaults" require "ruby_event_store" require "ruby_event_store/profiler" diff --git a/contrib/ruby_event_store-protobuf/Gemfile b/contrib/ruby_event_store-protobuf/Gemfile index 8b839c76b5..397e32446c 100644 --- a/contrib/ruby_event_store-protobuf/Gemfile +++ b/contrib/ruby_event_store-protobuf/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/contrib/ruby_event_store-protobuf/spec/client_spec.rb b/contrib/ruby_event_store-protobuf/spec/client_spec.rb index 51f7361372..f85c824275 100644 --- a/contrib/ruby_event_store-protobuf/spec/client_spec.rb +++ b/contrib/ruby_event_store-protobuf/spec/client_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "time" require "json" diff --git a/contrib/ruby_event_store-protobuf/spec/link_by_metadata_spec.rb b/contrib/ruby_event_store-protobuf/spec/link_by_metadata_spec.rb index e7f9a06a94..a7282f2ee0 100644 --- a/contrib/ruby_event_store-protobuf/spec/link_by_metadata_spec.rb +++ b/contrib/ruby_event_store-protobuf/spec/link_by_metadata_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-protobuf/spec/mappers/events_pb.rb b/contrib/ruby_event_store-protobuf/spec/mappers/events_pb.rb index 881d5e4693..69b2286abc 100644 --- a/contrib/ruby_event_store-protobuf/spec/mappers/events_pb.rb +++ b/contrib/ruby_event_store-protobuf/spec/mappers/events_pb.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Generated by the protocol buffer compiler. DO NOT EDIT! # source: events.proto3 diff --git a/contrib/ruby_event_store-protobuf/spec/mappers/protobuf_spec.rb b/contrib/ruby_event_store-protobuf/spec/mappers/protobuf_spec.rb index a1499ee8d6..1afa7d4c4b 100644 --- a/contrib/ruby_event_store-protobuf/spec/mappers/protobuf_spec.rb +++ b/contrib/ruby_event_store-protobuf/spec/mappers/protobuf_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/mapper_lint" diff --git a/contrib/ruby_event_store-protobuf/spec/mappers/transformation/proto_event_spec.rb b/contrib/ruby_event_store-protobuf/spec/mappers/transformation/proto_event_spec.rb index 7915a72d4c..2a9ebdabf1 100644 --- a/contrib/ruby_event_store-protobuf/spec/mappers/transformation/proto_event_spec.rb +++ b/contrib/ruby_event_store-protobuf/spec/mappers/transformation/proto_event_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-protobuf/spec/mappers/transformation/protobuf_encoder_spec.rb b/contrib/ruby_event_store-protobuf/spec/mappers/transformation/protobuf_encoder_spec.rb index 8ada946e99..54d992b012 100644 --- a/contrib/ruby_event_store-protobuf/spec/mappers/transformation/protobuf_encoder_spec.rb +++ b/contrib/ruby_event_store-protobuf/spec/mappers/transformation/protobuf_encoder_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-protobuf/spec/mappers/transformation/protobuf_nested_struct_metadata_spec.rb b/contrib/ruby_event_store-protobuf/spec/mappers/transformation/protobuf_nested_struct_metadata_spec.rb index 133239938b..2aae615cfb 100644 --- a/contrib/ruby_event_store-protobuf/spec/mappers/transformation/protobuf_nested_struct_metadata_spec.rb +++ b/contrib/ruby_event_store-protobuf/spec/mappers/transformation/protobuf_nested_struct_metadata_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-protobuf/spec/no_warnings_spec.rb b/contrib/ruby_event_store-protobuf/spec/no_warnings_spec.rb index 33e9dcc927..323a6ae958 100644 --- a/contrib/ruby_event_store-protobuf/spec/no_warnings_spec.rb +++ b/contrib/ruby_event_store-protobuf/spec/no_warnings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-protobuf/spec/protobuf_integration_spec.rb b/contrib/ruby_event_store-protobuf/spec/protobuf_integration_spec.rb index e06ab8c743..a78e8f24e6 100644 --- a/contrib/ruby_event_store-protobuf/spec/protobuf_integration_spec.rb +++ b/contrib/ruby_event_store-protobuf/spec/protobuf_integration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "rails_event_store" diff --git a/contrib/ruby_event_store-protobuf/spec/spec_helper.rb b/contrib/ruby_event_store-protobuf/spec/spec_helper.rb index b42e474507..05d318cced 100644 --- a/contrib/ruby_event_store-protobuf/spec/spec_helper.rb +++ b/contrib/ruby_event_store-protobuf/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store" require "ruby_event_store/protobuf" require_relative "mappers/events_pb" diff --git a/contrib/ruby_event_store-rom/Gemfile b/contrib/ruby_event_store-rom/Gemfile index 6896d8df59..3c8550f37f 100644 --- a/contrib/ruby_event_store-rom/Gemfile +++ b/contrib/ruby_event_store-rom/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/contrib/ruby_event_store-rom/Rakefile b/contrib/ruby_event_store-rom/Rakefile index 6b5bc69105..d5bdb68e5d 100644 --- a/contrib/ruby_event_store-rom/Rakefile +++ b/contrib/ruby_event_store-rom/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "bundler/gem_tasks" require "rspec/core/rake_task" require "ruby_event_store/rom/adapters/sql/rake_task" diff --git a/contrib/ruby_event_store-rom/db/migrate/20210806000000_create_ruby_event_store_tables.rb b/contrib/ruby_event_store-rom/db/migrate/20210806000000_create_ruby_event_store_tables.rb index cb5fa6e892..394a6d9509 100644 --- a/contrib/ruby_event_store-rom/db/migrate/20210806000000_create_ruby_event_store_tables.rb +++ b/contrib/ruby_event_store-rom/db/migrate/20210806000000_create_ruby_event_store_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rom/sql" ::ROM::SQL.migration do diff --git a/contrib/ruby_event_store-rom/spec/rom/event_repository_spec.rb b/contrib/ruby_event_store-rom/spec/rom/event_repository_spec.rb index e0c7cbe083..19bcf62c9a 100644 --- a/contrib/ruby_event_store-rom/spec/rom/event_repository_spec.rb +++ b/contrib/ruby_event_store-rom/spec/rom/event_repository_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/event_repository_lint" diff --git a/contrib/ruby_event_store-rom/spec/rom/no_warnings_spec.rb b/contrib/ruby_event_store-rom/spec/rom/no_warnings_spec.rb index 01235b6c5f..472c3f1fc8 100644 --- a/contrib/ruby_event_store-rom/spec/rom/no_warnings_spec.rb +++ b/contrib/ruby_event_store-rom/spec/rom/no_warnings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-rom/spec/rom/rom_spec.rb b/contrib/ruby_event_store-rom/spec/rom/rom_spec.rb index 226b04aa29..3c16bc6c77 100644 --- a/contrib/ruby_event_store-rom/spec/rom/rom_spec.rb +++ b/contrib/ruby_event_store-rom/spec/rom/rom_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-rom/spec/spec_helper.rb b/contrib/ruby_event_store-rom/spec/spec_helper.rb index d430281be8..c26b5e822c 100644 --- a/contrib/ruby_event_store-rom/spec/spec_helper.rb +++ b/contrib/ruby_event_store-rom/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store/rom" require "dry/inflector" require_relative "../../../support/helpers/rspec_defaults" diff --git a/contrib/ruby_event_store-sequel/Gemfile b/contrib/ruby_event_store-sequel/Gemfile index 3c42ab9d29..70cab04cb5 100644 --- a/contrib/ruby_event_store-sequel/Gemfile +++ b/contrib/ruby_event_store-sequel/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/1_create_ruby_event_store_tables.rb b/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/1_create_ruby_event_store_tables.rb index 82ea539898..fdaf56be13 100644 --- a/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/1_create_ruby_event_store_tables.rb +++ b/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/1_create_ruby_event_store_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ::Sequel.migration do up do ENV["DATA_TYPE"] ||= "text" diff --git a/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/mysql/1_create_ruby_event_store_tables.rb b/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/mysql/1_create_ruby_event_store_tables.rb index 367e0fa64d..c5507efe40 100644 --- a/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/mysql/1_create_ruby_event_store_tables.rb +++ b/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/mysql/1_create_ruby_event_store_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ::Sequel.migration do up do ENV["DATA_TYPE"] ||= "text" diff --git a/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/postgres/1_create_ruby_event_store_tables.rb b/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/postgres/1_create_ruby_event_store_tables.rb index 24be7ac61f..953b22321d 100644 --- a/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/postgres/1_create_ruby_event_store_tables.rb +++ b/contrib/ruby_event_store-sequel/lib/ruby_event_store/generators/templates/postgres/1_create_ruby_event_store_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ::Sequel.migration do up do ENV["DATA_TYPE"] ||= "text" diff --git a/contrib/ruby_event_store-sequel/lib/ruby_event_store/sequel/index_violation_detector.rb b/contrib/ruby_event_store-sequel/lib/ruby_event_store/sequel/index_violation_detector.rb index 4f21ac4519..95a7c2908c 100644 --- a/contrib/ruby_event_store-sequel/lib/ruby_event_store/sequel/index_violation_detector.rb +++ b/contrib/ruby_event_store-sequel/lib/ruby_event_store/sequel/index_violation_detector.rb @@ -1,4 +1,4 @@ -#frozen_string_literal: true +# frozen_string_literal: true module RubyEventStore module Sequel diff --git a/contrib/ruby_event_store-sequel/spec/event_repository_spec.rb b/contrib/ruby_event_store-sequel/spec/event_repository_spec.rb index 8765942379..adf7b4313b 100644 --- a/contrib/ruby_event_store-sequel/spec/event_repository_spec.rb +++ b/contrib/ruby_event_store-sequel/spec/event_repository_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/event_repository_lint" diff --git a/contrib/ruby_event_store-sequel/spec/spec_helper.rb b/contrib/ruby_event_store-sequel/spec/spec_helper.rb index 2cf1dfac0c..270134591a 100644 --- a/contrib/ruby_event_store-sequel/spec/spec_helper.rb +++ b/contrib/ruby_event_store-sequel/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store/sequel" require_relative "../../../support/helpers/rspec_defaults" require_relative "../../../support/helpers/rspec_sql_matchers" diff --git a/contrib/ruby_event_store-sidekiq_scheduler/Gemfile b/contrib/ruby_event_store-sidekiq_scheduler/Gemfile index b01beba378..6a179064c5 100644 --- a/contrib/ruby_event_store-sidekiq_scheduler/Gemfile +++ b/contrib/ruby_event_store-sidekiq_scheduler/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/contrib/ruby_event_store-sidekiq_scheduler/lib/ruby_event_store/sidekiq_scheduler.rb b/contrib/ruby_event_store-sidekiq_scheduler/lib/ruby_event_store/sidekiq_scheduler.rb index 11d95a5b81..f177d6fcd7 100644 --- a/contrib/ruby_event_store-sidekiq_scheduler/lib/ruby_event_store/sidekiq_scheduler.rb +++ b/contrib/ruby_event_store-sidekiq_scheduler/lib/ruby_event_store/sidekiq_scheduler.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "sidekiq" module RubyEventStore diff --git a/contrib/ruby_event_store-sidekiq_scheduler/spec/async_handler_helpers_spec.rb b/contrib/ruby_event_store-sidekiq_scheduler/spec/async_handler_helpers_spec.rb index 325bd41842..f4bf642647 100644 --- a/contrib/ruby_event_store-sidekiq_scheduler/spec/async_handler_helpers_spec.rb +++ b/contrib/ruby_event_store-sidekiq_scheduler/spec/async_handler_helpers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-sidekiq_scheduler/spec/no_warnings_spec.rb b/contrib/ruby_event_store-sidekiq_scheduler/spec/no_warnings_spec.rb index 2f5f16afc8..69dce03ba8 100644 --- a/contrib/ruby_event_store-sidekiq_scheduler/spec/no_warnings_spec.rb +++ b/contrib/ruby_event_store-sidekiq_scheduler/spec/no_warnings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-sidekiq_scheduler/spec/sidekiq_scheduler_spec.rb b/contrib/ruby_event_store-sidekiq_scheduler/spec/sidekiq_scheduler_spec.rb index d9eb8d42ea..b8cc4fc351 100644 --- a/contrib/ruby_event_store-sidekiq_scheduler/spec/sidekiq_scheduler_spec.rb +++ b/contrib/ruby_event_store-sidekiq_scheduler/spec/sidekiq_scheduler_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/contrib/ruby_event_store-sidekiq_scheduler/spec/spec_helper.rb b/contrib/ruby_event_store-sidekiq_scheduler/spec/spec_helper.rb index 1a56082981..b55c7128cd 100644 --- a/contrib/ruby_event_store-sidekiq_scheduler/spec/spec_helper.rb +++ b/contrib/ruby_event_store-sidekiq_scheduler/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store" require "ruby_event_store/spec/scheduler_lint" require "ruby_event_store/sidekiq_scheduler" diff --git a/contrib/ruby_event_store-transformations/Gemfile b/contrib/ruby_event_store-transformations/Gemfile index 74b56a51a7..243bca80d7 100644 --- a/contrib/ruby_event_store-transformations/Gemfile +++ b/contrib/ruby_event_store-transformations/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/contrib/ruby_event_store-transformations/lib/ruby_event_store/transformations/identity_map.rb b/contrib/ruby_event_store-transformations/lib/ruby_event_store/transformations/identity_map.rb index 7eb067ba90..a6ea7ecc4f 100644 --- a/contrib/ruby_event_store-transformations/lib/ruby_event_store/transformations/identity_map.rb +++ b/contrib/ruby_event_store-transformations/lib/ruby_event_store/transformations/identity_map.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Transformations class IdentityMap diff --git a/rails_event_store/Gemfile b/rails_event_store/Gemfile index 23fa514714..7aec6a3790 100644 --- a/rails_event_store/Gemfile +++ b/rails_event_store/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/rails_event_store/lib/generators/templates/bc_spec.rb b/rails_event_store/lib/generators/templates/bc_spec.rb index 7eb497eec2..e11f204605 100644 --- a/rails_event_store/lib/generators/templates/bc_spec.rb +++ b/rails_event_store/lib/generators/templates/bc_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "spec_helper" ::RSpec.describe <%= bounded_context_namespace %> do diff --git a/rails_event_store/lib/generators/templates/module.rb b/rails_event_store/lib/generators/templates/module.rb index f60aedd0dc..cee74a308d 100644 --- a/rails_event_store/lib/generators/templates/module.rb +++ b/rails_event_store/lib/generators/templates/module.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + module <%= bounded_context_namespace %> end diff --git a/rails_event_store/lib/generators/templates/require_bc_spec.rb b/rails_event_store/lib/generators/templates/require_bc_spec.rb index f182dc9d42..39b8a4eba8 100644 --- a/rails_event_store/lib/generators/templates/require_bc_spec.rb +++ b/rails_event_store/lib/generators/templates/require_bc_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rails_helper" path = Rails.root.join("<%= bounded_context_name %>/spec") diff --git a/rails_event_store/lib/generators/templates/require_bc_test.rb b/rails_event_store/lib/generators/templates/require_bc_test.rb index a8e354d964..2f7287f17e 100644 --- a/rails_event_store/lib/generators/templates/require_bc_test.rb +++ b/rails_event_store/lib/generators/templates/require_bc_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" Dir[Rails.root.join("<%= bounded_context_name %>/test/*_test.rb")].each { |file| require file } \ No newline at end of file diff --git a/rails_event_store/lib/generators/templates/spec_helper.rb b/rails_event_store/lib/generators/templates/spec_helper.rb index ae23b0d7b0..be2e8308cc 100644 --- a/rails_event_store/lib/generators/templates/spec_helper.rb +++ b/rails_event_store/lib/generators/templates/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ENV["RAILS_ENV"] = "test" $LOAD_PATH.push File.expand_path("../../../spec", __FILE__) diff --git a/rails_event_store/lib/generators/templates/test_helper.rb b/rails_event_store/lib/generators/templates/test_helper.rb index d4ad9575b9..bbbd3ecfd3 100644 --- a/rails_event_store/lib/generators/templates/test_helper.rb +++ b/rails_event_store/lib/generators/templates/test_helper.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + require_relative "../lib/<%= bounded_context_name %>" diff --git a/rails_event_store/spec/active_job_id_only_scheduler_spec.rb b/rails_event_store/spec/active_job_id_only_scheduler_spec.rb index 9b605aa218..024f5ec4d8 100644 --- a/rails_event_store/spec/active_job_id_only_scheduler_spec.rb +++ b/rails_event_store/spec/active_job_id_only_scheduler_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/scheduler_lint" diff --git a/rails_event_store/spec/active_job_scheduler_spec.rb b/rails_event_store/spec/active_job_scheduler_spec.rb index 9040cd5c9f..bfa663d9cd 100644 --- a/rails_event_store/spec/active_job_scheduler_spec.rb +++ b/rails_event_store/spec/active_job_scheduler_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/scheduler_lint" diff --git a/rails_event_store/spec/after_commit_async_dispatcher_spec.rb b/rails_event_store/spec/after_commit_async_dispatcher_spec.rb index 59e799e574..d48402542e 100644 --- a/rails_event_store/spec/after_commit_async_dispatcher_spec.rb +++ b/rails_event_store/spec/after_commit_async_dispatcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/dispatcher_lint" diff --git a/rails_event_store/spec/async_handler_helpers_spec.rb b/rails_event_store/spec/async_handler_helpers_spec.rb index 86d79f4c75..1f2c3b2404 100644 --- a/rails_event_store/spec/async_handler_helpers_spec.rb +++ b/rails_event_store/spec/async_handler_helpers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "action_controller/railtie" require_relative "../../support/helpers/silence_stdout" diff --git a/rails_event_store/spec/browser_integration_spec.rb b/rails_event_store/spec/browser_integration_spec.rb index 44682f1a4d..b4232f7abc 100644 --- a/rails_event_store/spec/browser_integration_spec.rb +++ b/rails_event_store/spec/browser_integration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "rails_event_store/middleware" require "rack/test" diff --git a/rails_event_store/spec/client_spec.rb b/rails_event_store/spec/client_spec.rb index ba258e8b4d..121ad33bf9 100644 --- a/rails_event_store/spec/client_spec.rb +++ b/rails_event_store/spec/client_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "action_controller/railtie" diff --git a/rails_event_store/spec/dummy_6_0/Gemfile b/rails_event_store/spec/dummy_6_0/Gemfile index ec14e91477..78f6dcba99 100644 --- a/rails_event_store/spec/dummy_6_0/Gemfile +++ b/rails_event_store/spec/dummy_6_0/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gem "rails_event_store", path: "../../" diff --git a/rails_event_store/spec/dummy_6_0/Rakefile b/rails_event_store/spec/dummy_6_0/Rakefile index 9a5ea7383a..d2a78aa258 100644 --- a/rails_event_store/spec/dummy_6_0/Rakefile +++ b/rails_event_store/spec/dummy_6_0/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # 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. diff --git a/rails_event_store/spec/dummy_6_0/config/application.rb b/rails_event_store/spec/dummy_6_0/config/application.rb index f163906c6c..333131bdd4 100644 --- a/rails_event_store/spec/dummy_6_0/config/application.rb +++ b/rails_event_store/spec/dummy_6_0/config/application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "boot" require "rails" diff --git a/rails_event_store/spec/dummy_6_0/config/boot.rb b/rails_event_store/spec/dummy_6_0/config/boot.rb index 282011619d..c2241d7074 100644 --- a/rails_event_store/spec/dummy_6_0/config/boot.rb +++ b/rails_event_store/spec/dummy_6_0/config/boot.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile. diff --git a/rails_event_store/spec/dummy_6_0/config/environment.rb b/rails_event_store/spec/dummy_6_0/config/environment.rb index cac5315775..7df99e89c6 100644 --- a/rails_event_store/spec/dummy_6_0/config/environment.rb +++ b/rails_event_store/spec/dummy_6_0/config/environment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Load the Rails application. require_relative "application" diff --git a/rails_event_store/spec/dummy_6_0/config/environments/development.rb b/rails_event_store/spec/dummy_6_0/config/environments/development.rb index 6d38d9ae87..b30eed62a5 100644 --- a/rails_event_store/spec/dummy_6_0/config/environments/development.rb +++ b/rails_event_store/spec/dummy_6_0/config/environments/development.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. diff --git a/rails_event_store/spec/dummy_6_0/config/environments/production.rb b/rails_event_store/spec/dummy_6_0/config/environments/production.rb index 852de46a87..fef3ae1771 100644 --- a/rails_event_store/spec/dummy_6_0/config/environments/production.rb +++ b/rails_event_store/spec/dummy_6_0/config/environments/production.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. diff --git a/rails_event_store/spec/dummy_6_0/config/environments/test.rb b/rails_event_store/spec/dummy_6_0/config/environments/test.rb index a3bb7c1100..75f1c8b77f 100644 --- a/rails_event_store/spec/dummy_6_0/config/environments/test.rb +++ b/rails_event_store/spec/dummy_6_0/config/environments/test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # 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 diff --git a/rails_event_store/spec/dummy_6_0/config/initializers/application_controller_renderer.rb b/rails_event_store/spec/dummy_6_0/config/initializers/application_controller_renderer.rb index 89d2efab2b..6d56e43900 100644 --- a/rails_event_store/spec/dummy_6_0/config/initializers/application_controller_renderer.rb +++ b/rails_event_store/spec/dummy_6_0/config/initializers/application_controller_renderer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do diff --git a/rails_event_store/spec/dummy_6_0/config/initializers/backtrace_silencers.rb b/rails_event_store/spec/dummy_6_0/config/initializers/backtrace_silencers.rb index 59385cdf37..4b63f2893d 100644 --- a/rails_event_store/spec/dummy_6_0/config/initializers/backtrace_silencers.rb +++ b/rails_event_store/spec/dummy_6_0/config/initializers/backtrace_silencers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # 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. diff --git a/rails_event_store/spec/dummy_6_0/config/initializers/content_security_policy.rb b/rails_event_store/spec/dummy_6_0/config/initializers/content_security_policy.rb index d3bcaa5ec8..e3c9649655 100644 --- a/rails_event_store/spec/dummy_6_0/config/initializers/content_security_policy.rb +++ b/rails_event_store/spec/dummy_6_0/config/initializers/content_security_policy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Define an application-wide content security policy diff --git a/rails_event_store/spec/dummy_6_0/config/initializers/cookies_serializer.rb b/rails_event_store/spec/dummy_6_0/config/initializers/cookies_serializer.rb index 5a6a32d371..ee8dff9c99 100644 --- a/rails_event_store/spec/dummy_6_0/config/initializers/cookies_serializer.rb +++ b/rails_event_store/spec/dummy_6_0/config/initializers/cookies_serializer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. diff --git a/rails_event_store/spec/dummy_6_0/config/initializers/filter_parameter_logging.rb b/rails_event_store/spec/dummy_6_0/config/initializers/filter_parameter_logging.rb index 4a994e1e7b..7a4f47b4c2 100644 --- a/rails_event_store/spec/dummy_6_0/config/initializers/filter_parameter_logging.rb +++ b/rails_event_store/spec/dummy_6_0/config/initializers/filter_parameter_logging.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. diff --git a/rails_event_store/spec/dummy_6_0/config/initializers/inflections.rb b/rails_event_store/spec/dummy_6_0/config/initializers/inflections.rb index ac033bf9dc..dc84742212 100644 --- a/rails_event_store/spec/dummy_6_0/config/initializers/inflections.rb +++ b/rails_event_store/spec/dummy_6_0/config/initializers/inflections.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/rails_event_store/spec/dummy_6_0/config/initializers/mime_types.rb b/rails_event_store/spec/dummy_6_0/config/initializers/mime_types.rb index dc1899682b..be6fedc535 100644 --- a/rails_event_store/spec/dummy_6_0/config/initializers/mime_types.rb +++ b/rails_event_store/spec/dummy_6_0/config/initializers/mime_types.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/rails_event_store/spec/dummy_6_0/config/initializers/wrap_parameters.rb b/rails_event_store/spec/dummy_6_0/config/initializers/wrap_parameters.rb index 7d38ae7dc9..8266df3a8a 100644 --- a/rails_event_store/spec/dummy_6_0/config/initializers/wrap_parameters.rb +++ b/rails_event_store/spec/dummy_6_0/config/initializers/wrap_parameters.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which diff --git a/rails_event_store/spec/dummy_6_0/config/routes.rb b/rails_event_store/spec/dummy_6_0/config/routes.rb index c06383a172..cefb14fb52 100644 --- a/rails_event_store/spec/dummy_6_0/config/routes.rb +++ b/rails_event_store/spec/dummy_6_0/config/routes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.routes.draw do # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html end diff --git a/rails_event_store/spec/dummy_6_0/config/spring.rb b/rails_event_store/spec/dummy_6_0/config/spring.rb index 872444bd0c..77c64c9bc0 100644 --- a/rails_event_store/spec/dummy_6_0/config/spring.rb +++ b/rails_event_store/spec/dummy_6_0/config/spring.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + Spring.watch(".ruby-version", ".rbenv-vars", "tmp/restart.txt", "tmp/caching-dev.txt") diff --git a/rails_event_store/spec/dummy_6_0/test/test_helper.rb b/rails_event_store/spec/dummy_6_0/test/test_helper.rb index 5ef1f1753c..4d2e6796ae 100644 --- a/rails_event_store/spec/dummy_6_0/test/test_helper.rb +++ b/rails_event_store/spec/dummy_6_0/test/test_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ENV["RAILS_ENV"] ||= "test" require_relative "../config/environment" require "rails/test_help" diff --git a/rails_event_store/spec/dummy_6_1/Gemfile b/rails_event_store/spec/dummy_6_1/Gemfile index 02d5c185dd..6c24f281e9 100644 --- a/rails_event_store/spec/dummy_6_1/Gemfile +++ b/rails_event_store/spec/dummy_6_1/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gem "rails_event_store", path: "../../" diff --git a/rails_event_store/spec/dummy_6_1/Rakefile b/rails_event_store/spec/dummy_6_1/Rakefile index 9a5ea7383a..d2a78aa258 100644 --- a/rails_event_store/spec/dummy_6_1/Rakefile +++ b/rails_event_store/spec/dummy_6_1/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # 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. diff --git a/rails_event_store/spec/dummy_6_1/config/application.rb b/rails_event_store/spec/dummy_6_1/config/application.rb index f961f31de5..be720db88a 100644 --- a/rails_event_store/spec/dummy_6_1/config/application.rb +++ b/rails_event_store/spec/dummy_6_1/config/application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "boot" require "rails" diff --git a/rails_event_store/spec/dummy_6_1/config/boot.rb b/rails_event_store/spec/dummy_6_1/config/boot.rb index 282011619d..c2241d7074 100644 --- a/rails_event_store/spec/dummy_6_1/config/boot.rb +++ b/rails_event_store/spec/dummy_6_1/config/boot.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile. diff --git a/rails_event_store/spec/dummy_6_1/config/environment.rb b/rails_event_store/spec/dummy_6_1/config/environment.rb index cac5315775..7df99e89c6 100644 --- a/rails_event_store/spec/dummy_6_1/config/environment.rb +++ b/rails_event_store/spec/dummy_6_1/config/environment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Load the Rails application. require_relative "application" diff --git a/rails_event_store/spec/dummy_6_1/config/environments/development.rb b/rails_event_store/spec/dummy_6_1/config/environments/development.rb index 502ec3123f..9a8bb5468f 100644 --- a/rails_event_store/spec/dummy_6_1/config/environments/development.rb +++ b/rails_event_store/spec/dummy_6_1/config/environments/development.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/core_ext/integer/time" Rails.application.configure do diff --git a/rails_event_store/spec/dummy_6_1/config/environments/production.rb b/rails_event_store/spec/dummy_6_1/config/environments/production.rb index 07eff15888..2e4a559a04 100644 --- a/rails_event_store/spec/dummy_6_1/config/environments/production.rb +++ b/rails_event_store/spec/dummy_6_1/config/environments/production.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/core_ext/integer/time" Rails.application.configure do diff --git a/rails_event_store/spec/dummy_6_1/config/environments/test.rb b/rails_event_store/spec/dummy_6_1/config/environments/test.rb index 4b6d6203b7..d0e7c9a31f 100644 --- a/rails_event_store/spec/dummy_6_1/config/environments/test.rb +++ b/rails_event_store/spec/dummy_6_1/config/environments/test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/core_ext/integer/time" # The test environment is used exclusively to run your application's diff --git a/rails_event_store/spec/dummy_6_1/config/initializers/application_controller_renderer.rb b/rails_event_store/spec/dummy_6_1/config/initializers/application_controller_renderer.rb index 89d2efab2b..6d56e43900 100644 --- a/rails_event_store/spec/dummy_6_1/config/initializers/application_controller_renderer.rb +++ b/rails_event_store/spec/dummy_6_1/config/initializers/application_controller_renderer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do diff --git a/rails_event_store/spec/dummy_6_1/config/initializers/backtrace_silencers.rb b/rails_event_store/spec/dummy_6_1/config/initializers/backtrace_silencers.rb index 33699c3091..74f30e8875 100644 --- a/rails_event_store/spec/dummy_6_1/config/initializers/backtrace_silencers.rb +++ b/rails_event_store/spec/dummy_6_1/config/initializers/backtrace_silencers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # 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. diff --git a/rails_event_store/spec/dummy_6_1/config/initializers/content_security_policy.rb b/rails_event_store/spec/dummy_6_1/config/initializers/content_security_policy.rb index 41c43016f1..87fd451f00 100644 --- a/rails_event_store/spec/dummy_6_1/config/initializers/content_security_policy.rb +++ b/rails_event_store/spec/dummy_6_1/config/initializers/content_security_policy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Define an application-wide content security policy diff --git a/rails_event_store/spec/dummy_6_1/config/initializers/cookies_serializer.rb b/rails_event_store/spec/dummy_6_1/config/initializers/cookies_serializer.rb index 5a6a32d371..ee8dff9c99 100644 --- a/rails_event_store/spec/dummy_6_1/config/initializers/cookies_serializer.rb +++ b/rails_event_store/spec/dummy_6_1/config/initializers/cookies_serializer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. diff --git a/rails_event_store/spec/dummy_6_1/config/initializers/filter_parameter_logging.rb b/rails_event_store/spec/dummy_6_1/config/initializers/filter_parameter_logging.rb index 4fa04d95de..e214a4cad3 100644 --- a/rails_event_store/spec/dummy_6_1/config/initializers/filter_parameter_logging.rb +++ b/rails_event_store/spec/dummy_6_1/config/initializers/filter_parameter_logging.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. diff --git a/rails_event_store/spec/dummy_6_1/config/initializers/inflections.rb b/rails_event_store/spec/dummy_6_1/config/initializers/inflections.rb index ac033bf9dc..dc84742212 100644 --- a/rails_event_store/spec/dummy_6_1/config/initializers/inflections.rb +++ b/rails_event_store/spec/dummy_6_1/config/initializers/inflections.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/rails_event_store/spec/dummy_6_1/config/initializers/mime_types.rb b/rails_event_store/spec/dummy_6_1/config/initializers/mime_types.rb index dc1899682b..be6fedc535 100644 --- a/rails_event_store/spec/dummy_6_1/config/initializers/mime_types.rb +++ b/rails_event_store/spec/dummy_6_1/config/initializers/mime_types.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/rails_event_store/spec/dummy_6_1/config/initializers/permissions_policy.rb b/rails_event_store/spec/dummy_6_1/config/initializers/permissions_policy.rb index 00f64d71b0..810aadeb98 100644 --- a/rails_event_store/spec/dummy_6_1/config/initializers/permissions_policy.rb +++ b/rails_event_store/spec/dummy_6_1/config/initializers/permissions_policy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Define an application-wide HTTP permissions policy. For further # information see https://developers.google.com/web/updates/2018/06/feature-policy # diff --git a/rails_event_store/spec/dummy_6_1/config/initializers/wrap_parameters.rb b/rails_event_store/spec/dummy_6_1/config/initializers/wrap_parameters.rb index 7d38ae7dc9..8266df3a8a 100644 --- a/rails_event_store/spec/dummy_6_1/config/initializers/wrap_parameters.rb +++ b/rails_event_store/spec/dummy_6_1/config/initializers/wrap_parameters.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which diff --git a/rails_event_store/spec/dummy_6_1/config/routes.rb b/rails_event_store/spec/dummy_6_1/config/routes.rb index c06383a172..cefb14fb52 100644 --- a/rails_event_store/spec/dummy_6_1/config/routes.rb +++ b/rails_event_store/spec/dummy_6_1/config/routes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.routes.draw do # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html end diff --git a/rails_event_store/spec/dummy_6_1/config/spring.rb b/rails_event_store/spec/dummy_6_1/config/spring.rb index 872444bd0c..77c64c9bc0 100644 --- a/rails_event_store/spec/dummy_6_1/config/spring.rb +++ b/rails_event_store/spec/dummy_6_1/config/spring.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + Spring.watch(".ruby-version", ".rbenv-vars", "tmp/restart.txt", "tmp/caching-dev.txt") diff --git a/rails_event_store/spec/dummy_6_1/test/test_helper.rb b/rails_event_store/spec/dummy_6_1/test/test_helper.rb index 5ef1f1753c..4d2e6796ae 100644 --- a/rails_event_store/spec/dummy_6_1/test/test_helper.rb +++ b/rails_event_store/spec/dummy_6_1/test/test_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ENV["RAILS_ENV"] ||= "test" require_relative "../config/environment" require "rails/test_help" diff --git a/rails_event_store/spec/dummy_7_0/Gemfile b/rails_event_store/spec/dummy_7_0/Gemfile index 7a5794a0a8..30627b321a 100644 --- a/rails_event_store/spec/dummy_7_0/Gemfile +++ b/rails_event_store/spec/dummy_7_0/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gem "rails_event_store", path: "../../" diff --git a/rails_event_store/spec/dummy_7_0/Rakefile b/rails_event_store/spec/dummy_7_0/Rakefile index 9a5ea7383a..d2a78aa258 100644 --- a/rails_event_store/spec/dummy_7_0/Rakefile +++ b/rails_event_store/spec/dummy_7_0/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # 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. diff --git a/rails_event_store/spec/dummy_7_0/config/application.rb b/rails_event_store/spec/dummy_7_0/config/application.rb index 39163cae57..60934188ab 100644 --- a/rails_event_store/spec/dummy_7_0/config/application.rb +++ b/rails_event_store/spec/dummy_7_0/config/application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "boot" require "rails" diff --git a/rails_event_store/spec/dummy_7_0/config/boot.rb b/rails_event_store/spec/dummy_7_0/config/boot.rb index 282011619d..c2241d7074 100644 --- a/rails_event_store/spec/dummy_7_0/config/boot.rb +++ b/rails_event_store/spec/dummy_7_0/config/boot.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile. diff --git a/rails_event_store/spec/dummy_7_0/config/environment.rb b/rails_event_store/spec/dummy_7_0/config/environment.rb index cac5315775..7df99e89c6 100644 --- a/rails_event_store/spec/dummy_7_0/config/environment.rb +++ b/rails_event_store/spec/dummy_7_0/config/environment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Load the Rails application. require_relative "application" diff --git a/rails_event_store/spec/dummy_7_0/config/environments/development.rb b/rails_event_store/spec/dummy_7_0/config/environments/development.rb index 502ec3123f..9a8bb5468f 100644 --- a/rails_event_store/spec/dummy_7_0/config/environments/development.rb +++ b/rails_event_store/spec/dummy_7_0/config/environments/development.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/core_ext/integer/time" Rails.application.configure do diff --git a/rails_event_store/spec/dummy_7_0/config/environments/production.rb b/rails_event_store/spec/dummy_7_0/config/environments/production.rb index 07eff15888..2e4a559a04 100644 --- a/rails_event_store/spec/dummy_7_0/config/environments/production.rb +++ b/rails_event_store/spec/dummy_7_0/config/environments/production.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/core_ext/integer/time" Rails.application.configure do diff --git a/rails_event_store/spec/dummy_7_0/config/environments/test.rb b/rails_event_store/spec/dummy_7_0/config/environments/test.rb index 4b6d6203b7..d0e7c9a31f 100644 --- a/rails_event_store/spec/dummy_7_0/config/environments/test.rb +++ b/rails_event_store/spec/dummy_7_0/config/environments/test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/core_ext/integer/time" # The test environment is used exclusively to run your application's diff --git a/rails_event_store/spec/dummy_7_0/config/initializers/application_controller_renderer.rb b/rails_event_store/spec/dummy_7_0/config/initializers/application_controller_renderer.rb index 89d2efab2b..6d56e43900 100644 --- a/rails_event_store/spec/dummy_7_0/config/initializers/application_controller_renderer.rb +++ b/rails_event_store/spec/dummy_7_0/config/initializers/application_controller_renderer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do diff --git a/rails_event_store/spec/dummy_7_0/config/initializers/backtrace_silencers.rb b/rails_event_store/spec/dummy_7_0/config/initializers/backtrace_silencers.rb index 33699c3091..74f30e8875 100644 --- a/rails_event_store/spec/dummy_7_0/config/initializers/backtrace_silencers.rb +++ b/rails_event_store/spec/dummy_7_0/config/initializers/backtrace_silencers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # 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. diff --git a/rails_event_store/spec/dummy_7_0/config/initializers/content_security_policy.rb b/rails_event_store/spec/dummy_7_0/config/initializers/content_security_policy.rb index 41c43016f1..87fd451f00 100644 --- a/rails_event_store/spec/dummy_7_0/config/initializers/content_security_policy.rb +++ b/rails_event_store/spec/dummy_7_0/config/initializers/content_security_policy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Define an application-wide content security policy diff --git a/rails_event_store/spec/dummy_7_0/config/initializers/cookies_serializer.rb b/rails_event_store/spec/dummy_7_0/config/initializers/cookies_serializer.rb index 5a6a32d371..ee8dff9c99 100644 --- a/rails_event_store/spec/dummy_7_0/config/initializers/cookies_serializer.rb +++ b/rails_event_store/spec/dummy_7_0/config/initializers/cookies_serializer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. diff --git a/rails_event_store/spec/dummy_7_0/config/initializers/filter_parameter_logging.rb b/rails_event_store/spec/dummy_7_0/config/initializers/filter_parameter_logging.rb index 4fa04d95de..e214a4cad3 100644 --- a/rails_event_store/spec/dummy_7_0/config/initializers/filter_parameter_logging.rb +++ b/rails_event_store/spec/dummy_7_0/config/initializers/filter_parameter_logging.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. diff --git a/rails_event_store/spec/dummy_7_0/config/initializers/inflections.rb b/rails_event_store/spec/dummy_7_0/config/initializers/inflections.rb index ac033bf9dc..dc84742212 100644 --- a/rails_event_store/spec/dummy_7_0/config/initializers/inflections.rb +++ b/rails_event_store/spec/dummy_7_0/config/initializers/inflections.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/rails_event_store/spec/dummy_7_0/config/initializers/mime_types.rb b/rails_event_store/spec/dummy_7_0/config/initializers/mime_types.rb index dc1899682b..be6fedc535 100644 --- a/rails_event_store/spec/dummy_7_0/config/initializers/mime_types.rb +++ b/rails_event_store/spec/dummy_7_0/config/initializers/mime_types.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/rails_event_store/spec/dummy_7_0/config/initializers/permissions_policy.rb b/rails_event_store/spec/dummy_7_0/config/initializers/permissions_policy.rb index 00f64d71b0..810aadeb98 100644 --- a/rails_event_store/spec/dummy_7_0/config/initializers/permissions_policy.rb +++ b/rails_event_store/spec/dummy_7_0/config/initializers/permissions_policy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Define an application-wide HTTP permissions policy. For further # information see https://developers.google.com/web/updates/2018/06/feature-policy # diff --git a/rails_event_store/spec/dummy_7_0/config/initializers/wrap_parameters.rb b/rails_event_store/spec/dummy_7_0/config/initializers/wrap_parameters.rb index 7d38ae7dc9..8266df3a8a 100644 --- a/rails_event_store/spec/dummy_7_0/config/initializers/wrap_parameters.rb +++ b/rails_event_store/spec/dummy_7_0/config/initializers/wrap_parameters.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which diff --git a/rails_event_store/spec/dummy_7_0/config/routes.rb b/rails_event_store/spec/dummy_7_0/config/routes.rb index c06383a172..cefb14fb52 100644 --- a/rails_event_store/spec/dummy_7_0/config/routes.rb +++ b/rails_event_store/spec/dummy_7_0/config/routes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.routes.draw do # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html end diff --git a/rails_event_store/spec/dummy_7_0/config/spring.rb b/rails_event_store/spec/dummy_7_0/config/spring.rb index 872444bd0c..77c64c9bc0 100644 --- a/rails_event_store/spec/dummy_7_0/config/spring.rb +++ b/rails_event_store/spec/dummy_7_0/config/spring.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + Spring.watch(".ruby-version", ".rbenv-vars", "tmp/restart.txt", "tmp/caching-dev.txt") diff --git a/rails_event_store/spec/dummy_7_0/test/test_helper.rb b/rails_event_store/spec/dummy_7_0/test/test_helper.rb index 5ef1f1753c..4d2e6796ae 100644 --- a/rails_event_store/spec/dummy_7_0/test/test_helper.rb +++ b/rails_event_store/spec/dummy_7_0/test/test_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ENV["RAILS_ENV"] ||= "test" require_relative "../config/environment" require "rails/test_help" diff --git a/rails_event_store/spec/example_invoicing_app.rb b/rails_event_store/spec/example_invoicing_app.rb index 2fb59b6a66..035ba3d5a7 100644 --- a/rails_event_store/spec/example_invoicing_app.rb +++ b/rails_event_store/spec/example_invoicing_app.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class OrderCreated < RubyEventStore::Event end diff --git a/rails_event_store/spec/full_story_spec.rb b/rails_event_store/spec/full_story_spec.rb index 74eaa6393b..6b85adcacb 100644 --- a/rails_event_store/spec/full_story_spec.rb +++ b/rails_event_store/spec/full_story_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RailsEventStore diff --git a/rails_event_store/spec/json_client_spec.rb b/rails_event_store/spec/json_client_spec.rb index 4997dfc0f6..f63cc777a8 100644 --- a/rails_event_store/spec/json_client_spec.rb +++ b/rails_event_store/spec/json_client_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "active_support" require "active_support/core_ext/time" diff --git a/rails_event_store/spec/link_by_metadata_spec.rb b/rails_event_store/spec/link_by_metadata_spec.rb index 0b59132ade..c4cab2c4c8 100644 --- a/rails_event_store/spec/link_by_metadata_spec.rb +++ b/rails_event_store/spec/link_by_metadata_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "action_controller/railtie" diff --git a/rails_event_store/spec/middleware_integration_spec.rb b/rails_event_store/spec/middleware_integration_spec.rb index bac5b9d8fa..3cdda14a1d 100644 --- a/rails_event_store/spec/middleware_integration_spec.rb +++ b/rails_event_store/spec/middleware_integration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "rails_event_store/middleware" require "rack/test" diff --git a/rails_event_store/spec/middleware_spec.rb b/rails_event_store/spec/middleware_spec.rb index 5ddd583d6c..042864b56a 100644 --- a/rails_event_store/spec/middleware_spec.rb +++ b/rails_event_store/spec/middleware_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "rails_event_store/middleware" require "support/test_application" diff --git a/rails_event_store/spec/no_warnings_spec.rb b/rails_event_store/spec/no_warnings_spec.rb index 5b1f35eeaa..de2fa7b2cf 100644 --- a/rails_event_store/spec/no_warnings_spec.rb +++ b/rails_event_store/spec/no_warnings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/rails_event_store/spec/rails_event_id_index_migration_generator_spec.rb b/rails_event_store/spec/rails_event_id_index_migration_generator_spec.rb index 3318d3ebfc..d30655f042 100644 --- a/rails_event_store/spec/rails_event_id_index_migration_generator_spec.rb +++ b/rails_event_store/spec/rails_event_id_index_migration_generator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "pp" require_relative "../../support/helpers/silence_stdout" diff --git a/rails_event_store/spec/rails_foreign_key_on_event_id_migration_generator_spec.rb b/rails_event_store/spec/rails_foreign_key_on_event_id_migration_generator_spec.rb index 49d152eaaa..8983da17d3 100644 --- a/rails_event_store/spec/rails_foreign_key_on_event_id_migration_generator_spec.rb +++ b/rails_event_store/spec/rails_foreign_key_on_event_id_migration_generator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "pp" require_relative "../../support/helpers/silence_stdout" diff --git a/rails_event_store/spec/rails_migration_generator_spec.rb b/rails_event_store/spec/rails_migration_generator_spec.rb index 72760f0c8d..e9f130ea4b 100644 --- a/rails_event_store/spec/rails_migration_generator_spec.rb +++ b/rails_event_store/spec/rails_migration_generator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "pp" require_relative "../../support/helpers/silence_stdout" diff --git a/rails_event_store/spec/spec_helper.rb b/rails_event_store/spec/spec_helper.rb index 105601e1e7..2884fb2703 100644 --- a/rails_event_store/spec/spec_helper.rb +++ b/rails_event_store/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rails_event_store" require "example_invoicing_app" require "support/fake_configuration" diff --git a/rails_event_store/spec/support/fake_configuration.rb b/rails_event_store/spec/support/fake_configuration.rb index ae77d89553..e0fd50291e 100644 --- a/rails_event_store/spec/support/fake_configuration.rb +++ b/rails_event_store/spec/support/fake_configuration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class FakeConfiguration def initialize @options = {} diff --git a/rails_event_store/spec/support/test_application.rb b/rails_event_store/spec/support/test_application.rb index 72e39c0c0f..909909a473 100644 --- a/rails_event_store/spec/support/test_application.rb +++ b/rails_event_store/spec/support/test_application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "action_controller/railtie" require "rails_event_store/railtie" require "securerandom" diff --git a/railseventstore.org/helpers/table_of_contents_helper.rb b/railseventstore.org/helpers/table_of_contents_helper.rb index 13682fedc2..a9a629af9e 100644 --- a/railseventstore.org/helpers/table_of_contents_helper.rb +++ b/railseventstore.org/helpers/table_of_contents_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module TableOfContentsHelper def table_of_contents content_without_frontmatter = File.readlines(current_page.source_file).drop(3).join("\n") diff --git a/ruby_event_store-active_record/Gemfile b/ruby_event_store-active_record/Gemfile index fb17e08762..78297dd33d 100644 --- a/ruby_event_store-active_record/Gemfile +++ b/ruby_event_store-active_record/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec name: "ruby_event_store-active_record" diff --git a/ruby_event_store-active_record/lib/rails_event_store_active_record.rb b/ruby_event_store-active_record/lib/rails_event_store_active_record.rb index e3e9e3a5fd..0dfb4c2ac8 100644 --- a/ruby_event_store-active_record/lib/rails_event_store_active_record.rb +++ b/ruby_event_store-active_record/lib/rails_event_store_active_record.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store/active_record" RailsEventStoreActiveRecord = RubyEventStore::ActiveRecord diff --git a/ruby_event_store-active_record/lib/ruby_event_store/active_record/generators/migration_generator.rb b/ruby_event_store-active_record/lib/ruby_event_store/active_record/generators/migration_generator.rb index 40ab2f9b1f..3675952653 100644 --- a/ruby_event_store-active_record/lib/ruby_event_store/active_record/generators/migration_generator.rb +++ b/ruby_event_store-active_record/lib/ruby_event_store/active_record/generators/migration_generator.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require "erb" module RubyEventStore diff --git a/ruby_event_store-active_record/lib/ruby_event_store/active_record/tasks/migration_tasks.rake b/ruby_event_store-active_record/lib/ruby_event_store/active_record/tasks/migration_tasks.rake index a95332ca6a..ee2a9f8525 100644 --- a/ruby_event_store-active_record/lib/ruby_event_store/active_record/tasks/migration_tasks.rake +++ b/ruby_event_store-active_record/lib/ruby_event_store/active_record/tasks/migration_tasks.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "../generators/migration_generator" desc "Generate migration" diff --git a/ruby_event_store-active_record/spec/batch_enumerator_spec.rb b/ruby_event_store-active_record/spec/batch_enumerator_spec.rb index 4bdcc50cc5..911390707f 100644 --- a/ruby_event_store-active_record/spec/batch_enumerator_spec.rb +++ b/ruby_event_store-active_record/spec/batch_enumerator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/active_record/batch_enumerator" diff --git a/ruby_event_store-active_record/spec/event_repository_spec.rb b/ruby_event_store-active_record/spec/event_repository_spec.rb index f3f4f17b8b..dfd8bc9466 100644 --- a/ruby_event_store-active_record/spec/event_repository_spec.rb +++ b/ruby_event_store-active_record/spec/event_repository_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store" require "ruby_event_store/spec/event_repository_lint" diff --git a/ruby_event_store-active_record/spec/migration_generator_spec.rb b/ruby_event_store-active_record/spec/migration_generator_spec.rb index 49b1f83f7c..a799f68bb1 100644 --- a/ruby_event_store-active_record/spec/migration_generator_spec.rb +++ b/ruby_event_store-active_record/spec/migration_generator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require_relative "../../support/helpers/silence_stdout" diff --git a/ruby_event_store-active_record/spec/no_warnings_spec.rb b/ruby_event_store-active_record/spec/no_warnings_spec.rb index bf1b627a25..ef4eba73e2 100644 --- a/ruby_event_store-active_record/spec/no_warnings_spec.rb +++ b/ruby_event_store-active_record/spec/no_warnings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-active_record/spec/pg_linearized_event_repository_spec.rb b/ruby_event_store-active_record/spec/pg_linearized_event_repository_spec.rb index 9ab59ab1f5..cb17225f7c 100644 --- a/ruby_event_store-active_record/spec/pg_linearized_event_repository_spec.rb +++ b/ruby_event_store-active_record/spec/pg_linearized_event_repository_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store" require "ruby_event_store/spec/event_repository_lint" diff --git a/ruby_event_store-active_record/spec/rake_task_spec.rb b/ruby_event_store-active_record/spec/rake_task_spec.rb index a3ed3edb7b..ecef5b13c9 100644 --- a/ruby_event_store-active_record/spec/rake_task_spec.rb +++ b/ruby_event_store-active_record/spec/rake_task_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require_relative "../../support/helpers/silence_stdout" require "rake" diff --git a/ruby_event_store-active_record/spec/spec_helper.rb b/ruby_event_store-active_record/spec/spec_helper.rb index c62ae47498..42cbf95f79 100644 --- a/ruby_event_store-active_record/spec/spec_helper.rb +++ b/ruby_event_store-active_record/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store/active_record" require_relative "../../support/helpers/rspec_defaults" require_relative "../../support/helpers/rspec_sql_matchers" diff --git a/ruby_event_store-active_record/spec/with_abstract_base_class_spec.rb b/ruby_event_store-active_record/spec/with_abstract_base_class_spec.rb index 32fee07a01..59c1387a5e 100644 --- a/ruby_event_store-active_record/spec/with_abstract_base_class_spec.rb +++ b/ruby_event_store-active_record/spec/with_abstract_base_class_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store" require "ruby_event_store/spec/event_repository_lint" diff --git a/ruby_event_store-active_record/spec/with_default_models_spec.rb b/ruby_event_store-active_record/spec/with_default_models_spec.rb index 1a4eaca33a..adbca8ed3b 100644 --- a/ruby_event_store-active_record/spec/with_default_models_spec.rb +++ b/ruby_event_store-active_record/spec/with_default_models_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/Gemfile b/ruby_event_store-browser/Gemfile index 0ce210d544..aefa9beab3 100644 --- a/ruby_event_store-browser/Gemfile +++ b/ruby_event_store-browser/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/ruby_event_store-browser/devserver/config.ru b/ruby_event_store-browser/devserver/config.ru index 634cf223bc..b0cd35fb2a 100644 --- a/ruby_event_store-browser/devserver/config.ru +++ b/ruby_event_store-browser/devserver/config.ru @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store" require_relative "../lib/ruby_event_store/browser/app" require_relative "../spec/support/csp_app" diff --git a/ruby_event_store-browser/spec/api/event_correlation_causation_streams_spec.rb b/ruby_event_store-browser/spec/api/event_correlation_causation_streams_spec.rb index d9354ee03c..f980a1a79e 100644 --- a/ruby_event_store-browser/spec/api/event_correlation_causation_streams_spec.rb +++ b/ruby_event_store-browser/spec/api/event_correlation_causation_streams_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/api/event_spec.rb b/ruby_event_store-browser/spec/api/event_spec.rb index 0d170f34c0..848ce2af32 100644 --- a/ruby_event_store-browser/spec/api/event_spec.rb +++ b/ruby_event_store-browser/spec/api/event_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/api/events_from_stream_pagination_spec.rb b/ruby_event_store-browser/spec/api/events_from_stream_pagination_spec.rb index d8d202b3da..28c7d41fce 100644 --- a/ruby_event_store-browser/spec/api/events_from_stream_pagination_spec.rb +++ b/ruby_event_store-browser/spec/api/events_from_stream_pagination_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/api/events_from_stream_spec.rb b/ruby_event_store-browser/spec/api/events_from_stream_spec.rb index d29c87973a..9487ff1096 100644 --- a/ruby_event_store-browser/spec/api/events_from_stream_spec.rb +++ b/ruby_event_store-browser/spec/api/events_from_stream_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/api/stream_related_streams_spec.rb b/ruby_event_store-browser/spec/api/stream_related_streams_spec.rb index 0a761159cc..a48da18c85 100644 --- a/ruby_event_store-browser/spec/api/stream_related_streams_spec.rb +++ b/ruby_event_store-browser/spec/api/stream_related_streams_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/api/stream_spec.rb b/ruby_event_store-browser/spec/api/stream_spec.rb index a2b5739abc..b4dce03376 100644 --- a/ruby_event_store-browser/spec/api/stream_spec.rb +++ b/ruby_event_store-browser/spec/api/stream_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/browser_settings_spec.rb b/ruby_event_store-browser/spec/browser_settings_spec.rb index 00cd39f8d2..74668fadaf 100644 --- a/ruby_event_store-browser/spec/browser_settings_spec.rb +++ b/ruby_event_store-browser/spec/browser_settings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/deprecation_spec.rb b/ruby_event_store-browser/spec/deprecation_spec.rb index d2971ad647..a834946c64 100644 --- a/ruby_event_store-browser/spec/deprecation_spec.rb +++ b/ruby_event_store-browser/spec/deprecation_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/gem_source_spec.rb b/ruby_event_store-browser/spec/gem_source_spec.rb index ac5b5e348c..2213827faf 100644 --- a/ruby_event_store-browser/spec/gem_source_spec.rb +++ b/ruby_event_store-browser/spec/gem_source_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/legacy_event_spec.rb b/ruby_event_store-browser/spec/legacy_event_spec.rb index 6dd6ce504c..c588ec6e69 100644 --- a/ruby_event_store-browser/spec/legacy_event_spec.rb +++ b/ruby_event_store-browser/spec/legacy_event_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/no_warnings_spec.rb b/ruby_event_store-browser/spec/no_warnings_spec.rb index 0abbc2d46b..0fba61d8bb 100644 --- a/ruby_event_store-browser/spec/no_warnings_spec.rb +++ b/ruby_event_store-browser/spec/no_warnings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/router_spec.rb b/ruby_event_store-browser/spec/router_spec.rb index bb820f6a9d..b1bba140a5 100644 --- a/ruby_event_store-browser/spec/router_spec.rb +++ b/ruby_event_store-browser/spec/router_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/spec_helper.rb b/ruby_event_store-browser/spec/spec_helper.rb index bc93e838d7..2a3dc49cce 100644 --- a/ruby_event_store-browser/spec/spec_helper.rb +++ b/ruby_event_store-browser/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store" require "ruby_event_store/browser/app" require "rack/test" diff --git a/ruby_event_store-browser/spec/support/api_client.rb b/ruby_event_store-browser/spec/support/api_client.rb index 3d6770e24d..ac39ef93e2 100644 --- a/ruby_event_store-browser/spec/support/api_client.rb +++ b/ruby_event_store-browser/spec/support/api_client.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "json-schema" class ApiClient diff --git a/ruby_event_store-browser/spec/support/csp_app.rb b/ruby_event_store-browser/spec/support/csp_app.rb index 1d0eebce60..f2552e7928 100644 --- a/ruby_event_store-browser/spec/support/csp_app.rb +++ b/ruby_event_store-browser/spec/support/csp_app.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CspApp def initialize(app, policy) @app = app diff --git a/ruby_event_store-browser/spec/support/integration_helpers.rb b/ruby_event_store-browser/spec/support/integration_helpers.rb index 265e214b28..da922655c4 100644 --- a/ruby_event_store-browser/spec/support/integration_helpers.rb +++ b/ruby_event_store-browser/spec/support/integration_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module Browser module IntegrationHelpers diff --git a/ruby_event_store-browser/spec/support/web_client.rb b/ruby_event_store-browser/spec/support/web_client.rb index 7f5aec6e5c..4ec2fb64f7 100644 --- a/ruby_event_store-browser/spec/support/web_client.rb +++ b/ruby_event_store-browser/spec/support/web_client.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class WebClient extend Forwardable def_delegators :@session, :get, :post diff --git a/ruby_event_store-browser/spec/ui_spec.rb b/ruby_event_store-browser/spec/ui_spec.rb index bca9765093..41ecbe149a 100644 --- a/ruby_event_store-browser/spec/ui_spec.rb +++ b/ruby_event_store-browser/spec/ui_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" FooBarEvent = Class.new(::RubyEventStore::Event) diff --git a/ruby_event_store-browser/spec/urls_spec.rb b/ruby_event_store-browser/spec/urls_spec.rb index 516a5f5108..0e5eac14cb 100644 --- a/ruby_event_store-browser/spec/urls_spec.rb +++ b/ruby_event_store-browser/spec/urls_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-browser/spec/web_spec.rb b/ruby_event_store-browser/spec/web_spec.rb index 08df987a25..3acf98ac69 100644 --- a/ruby_event_store-browser/spec/web_spec.rb +++ b/ruby_event_store-browser/spec/web_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/Gemfile b/ruby_event_store-rspec/Gemfile index bcb2e6ee23..2ac2ef5695 100644 --- a/ruby_event_store-rspec/Gemfile +++ b/ruby_event_store-rspec/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/ruby_event_store-rspec/lib/ruby_event_store/rspec/expected_collection.rb b/ruby_event_store-rspec/lib/ruby_event_store/rspec/expected_collection.rb index df1169c9c3..be270880dd 100644 --- a/ruby_event_store-rspec/lib/ruby_event_store/rspec/expected_collection.rb +++ b/ruby_event_store-rspec/lib/ruby_event_store/rspec/expected_collection.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module RSpec class ExpectedCollection diff --git a/ruby_event_store-rspec/lib/ruby_event_store/rspec/fetch_events.rb b/ruby_event_store-rspec/lib/ruby_event_store/rspec/fetch_events.rb index cf8b975b81..19e5a933e5 100644 --- a/ruby_event_store-rspec/lib/ruby_event_store/rspec/fetch_events.rb +++ b/ruby_event_store-rspec/lib/ruby_event_store/rspec/fetch_events.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module RSpec class FetchEvents diff --git a/ruby_event_store-rspec/lib/ruby_event_store/rspec/fetch_unpublished_events.rb b/ruby_event_store-rspec/lib/ruby_event_store/rspec/fetch_unpublished_events.rb index 5b11937662..aca41fbcb0 100644 --- a/ruby_event_store-rspec/lib/ruby_event_store/rspec/fetch_unpublished_events.rb +++ b/ruby_event_store-rspec/lib/ruby_event_store/rspec/fetch_unpublished_events.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module RSpec class FetchUnpublishedEvents diff --git a/ruby_event_store-rspec/lib/ruby_event_store/rspec/match_events.rb b/ruby_event_store-rspec/lib/ruby_event_store/rspec/match_events.rb index a02b7390c0..f4146100e2 100644 --- a/ruby_event_store-rspec/lib/ruby_event_store/rspec/match_events.rb +++ b/ruby_event_store-rspec/lib/ruby_event_store/rspec/match_events.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore module RSpec class MatchEvents diff --git a/ruby_event_store-rspec/spec/no_warnings_spec.rb b/ruby_event_store-rspec/spec/no_warnings_spec.rb index 86ed7886f0..e468130e1f 100644 --- a/ruby_event_store-rspec/spec/no_warnings_spec.rb +++ b/ruby_event_store-rspec/spec/no_warnings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/ruby_event_store/rspec/apply_spec.rb b/ruby_event_store-rspec/spec/ruby_event_store/rspec/apply_spec.rb index 4c6578a94b..7bf8c103b0 100644 --- a/ruby_event_store-rspec/spec/ruby_event_store/rspec/apply_spec.rb +++ b/ruby_event_store-rspec/spec/ruby_event_store/rspec/apply_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/ruby_event_store/rspec/be_event_spec.rb b/ruby_event_store-rspec/spec/ruby_event_store/rspec/be_event_spec.rb index de8b8c8903..538f2640a4 100644 --- a/ruby_event_store-rspec/spec/ruby_event_store/rspec/be_event_spec.rb +++ b/ruby_event_store-rspec/spec/ruby_event_store/rspec/be_event_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/ruby_event_store/rspec/expected_collection_spec.rb b/ruby_event_store-rspec/spec/ruby_event_store/rspec/expected_collection_spec.rb index e4330f9681..ff2a82b834 100644 --- a/ruby_event_store-rspec/spec/ruby_event_store/rspec/expected_collection_spec.rb +++ b/ruby_event_store-rspec/spec/ruby_event_store/rspec/expected_collection_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_applied_spec.rb b/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_applied_spec.rb index bdd400298e..4e0121a6fb 100644 --- a/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_applied_spec.rb +++ b/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_applied_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_published_spec.rb b/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_published_spec.rb index 69ba37e3e9..20eddad52c 100644 --- a/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_published_spec.rb +++ b/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_published_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_subscribed_to_events_spec.rb b/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_subscribed_to_events_spec.rb index 406efbe848..63f32aacf9 100644 --- a/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_subscribed_to_events_spec.rb +++ b/ruby_event_store-rspec/spec/ruby_event_store/rspec/have_subscribed_to_events_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/ruby_event_store/rspec/matchers_spec.rb b/ruby_event_store-rspec/spec/ruby_event_store/rspec/matchers_spec.rb index d25224081f..6b9c963245 100644 --- a/ruby_event_store-rspec/spec/ruby_event_store/rspec/matchers_spec.rb +++ b/ruby_event_store-rspec/spec/ruby_event_store/rspec/matchers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/ruby_event_store/rspec/publish_spec.rb b/ruby_event_store-rspec/spec/ruby_event_store/rspec/publish_spec.rb index 9217a1d7ed..101168e9c8 100644 --- a/ruby_event_store-rspec/spec/ruby_event_store/rspec/publish_spec.rb +++ b/ruby_event_store-rspec/spec/ruby_event_store/rspec/publish_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/ruby_event_store/rspec/step_by_step_failure_message_formatter_spec.rb b/ruby_event_store-rspec/spec/ruby_event_store/rspec/step_by_step_failure_message_formatter_spec.rb index f08028fe35..5afb0b3b1c 100644 --- a/ruby_event_store-rspec/spec/ruby_event_store/rspec/step_by_step_failure_message_formatter_spec.rb +++ b/ruby_event_store-rspec/spec/ruby_event_store/rspec/step_by_step_failure_message_formatter_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store-rspec/spec/spec_helper.rb b/ruby_event_store-rspec/spec/spec_helper.rb index 8dd5035a34..1976519c48 100644 --- a/ruby_event_store-rspec/spec/spec_helper.rb +++ b/ruby_event_store-rspec/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "aggregate_root" require "ruby_event_store" require "ruby_event_store/rspec" diff --git a/ruby_event_store/Gemfile b/ruby_event_store/Gemfile index 6f59013f46..71aa72e443 100644 --- a/ruby_event_store/Gemfile +++ b/ruby_event_store/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/ruby_event_store/lib/ruby_event_store/spec/broker_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/broker_lint.rb index 07f6538c21..4ec82bda66 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/broker_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/broker_lint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec.shared_examples :broker do |broker_klass| let(:event) { instance_double(::RubyEventStore::Event, event_type: "EventType") } let(:record) { instance_double(::RubyEventStore::Record) } diff --git a/ruby_event_store/lib/ruby_event_store/spec/dispatcher_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/dispatcher_lint.rb index ab8255e986..b0f8b7395b 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/dispatcher_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/dispatcher_lint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec.shared_examples :dispatcher do |dispatcher| specify "#call" do expect(dispatcher).to respond_to(:call).with(3).arguments diff --git a/ruby_event_store/lib/ruby_event_store/spec/event_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/event_lint.rb index 91b8539d33..974f094071 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/event_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/event_lint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec.shared_examples :event do |event_class, data, metadata| it "allows initialization" do expect { diff --git a/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb index d16091773c..faebee594f 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore # @private class SRecord diff --git a/ruby_event_store/lib/ruby_event_store/spec/mapper_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/mapper_lint.rb index ec8aa18347..ab66d6447b 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/mapper_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/mapper_lint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RubyEventStore ::RSpec.shared_examples :mapper do |mapper, event| specify "event_to_record returns instance of Record" do diff --git a/ruby_event_store/lib/ruby_event_store/spec/scheduler_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/scheduler_lint.rb index bf0a5ceca6..e9a0719d4c 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/scheduler_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/scheduler_lint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec.shared_examples :scheduler do |scheduler| specify "#call" do expect(scheduler).to respond_to(:call).with(2).arguments diff --git a/ruby_event_store/lib/ruby_event_store/spec/subscriptions_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/subscriptions_lint.rb index b950ef2385..8e80a4f00d 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/subscriptions_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/subscriptions_lint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec.shared_examples :subscriptions do |subscriptions_class| Test1DomainEvent = Class.new(RubyEventStore::Event) Test2DomainEvent = Class.new(RubyEventStore::Event) diff --git a/ruby_event_store/spec/batch_enumerator_spec.rb b/ruby_event_store/spec/batch_enumerator_spec.rb index 9c4f014e51..f709b36863 100644 --- a/ruby_event_store/spec/batch_enumerator_spec.rb +++ b/ruby_event_store/spec/batch_enumerator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/batch_enumerator" diff --git a/ruby_event_store/spec/broker_spec.rb b/ruby_event_store/spec/broker_spec.rb index 3ba744e1e4..329b4a7129 100644 --- a/ruby_event_store/spec/broker_spec.rb +++ b/ruby_event_store/spec/broker_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/broker_lint" diff --git a/ruby_event_store/spec/client_notify_subscribers_spec.rb b/ruby_event_store/spec/client_notify_subscribers_spec.rb index a8462297f4..799c7c7be4 100644 --- a/ruby_event_store/spec/client_notify_subscribers_spec.rb +++ b/ruby_event_store/spec/client_notify_subscribers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "time" diff --git a/ruby_event_store/spec/client_spec.rb b/ruby_event_store/spec/client_spec.rb index ee3b4fe39f..d9a4a88b8b 100644 --- a/ruby_event_store/spec/client_spec.rb +++ b/ruby_event_store/spec/client_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "time" require "json" diff --git a/ruby_event_store/spec/client_subscriptions_spec.rb b/ruby_event_store/spec/client_subscriptions_spec.rb index 057a894c1b..5afe9d733d 100644 --- a/ruby_event_store/spec/client_subscriptions_spec.rb +++ b/ruby_event_store/spec/client_subscriptions_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" class CustomDispatcher diff --git a/ruby_event_store/spec/composed_dispatcher_spec.rb b/ruby_event_store/spec/composed_dispatcher_spec.rb index 40bb453a2d..7758ecda71 100644 --- a/ruby_event_store/spec/composed_dispatcher_spec.rb +++ b/ruby_event_store/spec/composed_dispatcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/dispatcher_lint" diff --git a/ruby_event_store/spec/correlated_commands_spec.rb b/ruby_event_store/spec/correlated_commands_spec.rb index cba96cdf80..515bd4dc0f 100644 --- a/ruby_event_store/spec/correlated_commands_spec.rb +++ b/ruby_event_store/spec/correlated_commands_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "time" diff --git a/ruby_event_store/spec/dispatcher_spec.rb b/ruby_event_store/spec/dispatcher_spec.rb index a3bee9aaab..95dc4768f7 100644 --- a/ruby_event_store/spec/dispatcher_spec.rb +++ b/ruby_event_store/spec/dispatcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/dispatcher_lint" diff --git a/ruby_event_store/spec/expected_version_spec.rb b/ruby_event_store/spec/expected_version_spec.rb index b8a4b91470..6faf224b0b 100644 --- a/ruby_event_store/spec/expected_version_spec.rb +++ b/ruby_event_store/spec/expected_version_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/get_event_spec.rb b/ruby_event_store/spec/get_event_spec.rb index 5dead74ff1..b9dce69919 100644 --- a/ruby_event_store/spec/get_event_spec.rb +++ b/ruby_event_store/spec/get_event_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/event_lint" diff --git a/ruby_event_store/spec/immediate_async_dispatcher_spec.rb b/ruby_event_store/spec/immediate_async_dispatcher_spec.rb index c9fc5e93fc..c182f48404 100644 --- a/ruby_event_store/spec/immediate_async_dispatcher_spec.rb +++ b/ruby_event_store/spec/immediate_async_dispatcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/dispatcher_lint" require "ruby_event_store/spec/scheduler_lint" diff --git a/ruby_event_store/spec/in_memory_repository_spec.rb b/ruby_event_store/spec/in_memory_repository_spec.rb index 557f002e8a..491a3454f3 100644 --- a/ruby_event_store/spec/in_memory_repository_spec.rb +++ b/ruby_event_store/spec/in_memory_repository_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/event_repository_lint" diff --git a/ruby_event_store/spec/instrumented_dispatcher_spec.rb b/ruby_event_store/spec/instrumented_dispatcher_spec.rb index 0c5a756c5b..2e5717fb96 100644 --- a/ruby_event_store/spec/instrumented_dispatcher_spec.rb +++ b/ruby_event_store/spec/instrumented_dispatcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/dispatcher_lint" require "active_support/core_ext/object/try" diff --git a/ruby_event_store/spec/instrumented_repository_spec.rb b/ruby_event_store/spec/instrumented_repository_spec.rb index c95b2add32..3545d28b23 100644 --- a/ruby_event_store/spec/instrumented_repository_spec.rb +++ b/ruby_event_store/spec/instrumented_repository_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/event_repository_lint" require "active_support/core_ext/object/try" diff --git a/ruby_event_store/spec/instrumented_subscriptions_spec.rb b/ruby_event_store/spec/instrumented_subscriptions_spec.rb index c6ee32466e..4b63d707b1 100644 --- a/ruby_event_store/spec/instrumented_subscriptions_spec.rb +++ b/ruby_event_store/spec/instrumented_subscriptions_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "active_support/core_ext/object/try" require "active_support/notifications" diff --git a/ruby_event_store/spec/link_by_metadata_spec.rb b/ruby_event_store/spec/link_by_metadata_spec.rb index 9e74cfcca8..8243f42a33 100644 --- a/ruby_event_store/spec/link_by_metadata_spec.rb +++ b/ruby_event_store/spec/link_by_metadata_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/mappers/custom_mapper_with_types_spec.rb b/ruby_event_store/spec/mappers/custom_mapper_with_types_spec.rb index 8f71e5812f..84e11a7ffd 100644 --- a/ruby_event_store/spec/mappers/custom_mapper_with_types_spec.rb +++ b/ruby_event_store/spec/mappers/custom_mapper_with_types_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'json' require 'ruby_event_store/spec/mapper_lint' diff --git a/ruby_event_store/spec/mappers/default_spec.rb b/ruby_event_store/spec/mappers/default_spec.rb index aa5faae14d..5502f69796 100644 --- a/ruby_event_store/spec/mappers/default_spec.rb +++ b/ruby_event_store/spec/mappers/default_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "json" require "ruby_event_store/spec/mapper_lint" diff --git a/ruby_event_store/spec/mappers/encryption_mapper_spec.rb b/ruby_event_store/spec/mappers/encryption_mapper_spec.rb index 04047cd433..de74ea6863 100644 --- a/ruby_event_store/spec/mappers/encryption_mapper_spec.rb +++ b/ruby_event_store/spec/mappers/encryption_mapper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "openssl" require "json" diff --git a/ruby_event_store/spec/mappers/forgotten_data_spec.rb b/ruby_event_store/spec/mappers/forgotten_data_spec.rb index 8afeb2ee3e..dccfb18835 100644 --- a/ruby_event_store/spec/mappers/forgotten_data_spec.rb +++ b/ruby_event_store/spec/mappers/forgotten_data_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/mappers/instrumented_mapper_spec.rb b/ruby_event_store/spec/mappers/instrumented_mapper_spec.rb index bcd41dada6..88833cd63e 100644 --- a/ruby_event_store/spec/mappers/instrumented_mapper_spec.rb +++ b/ruby_event_store/spec/mappers/instrumented_mapper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/dispatcher_lint" require "active_support/core_ext/object/try" diff --git a/ruby_event_store/spec/mappers/null_mapper_spec.rb b/ruby_event_store/spec/mappers/null_mapper_spec.rb index 762411fcfd..88eb5f72c7 100644 --- a/ruby_event_store/spec/mappers/null_mapper_spec.rb +++ b/ruby_event_store/spec/mappers/null_mapper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/mapper_lint" diff --git a/ruby_event_store/spec/mappers/pipeline_spec.rb b/ruby_event_store/spec/mappers/pipeline_spec.rb index feb8c3b51f..fba5b19ed2 100644 --- a/ruby_event_store/spec/mappers/pipeline_spec.rb +++ b/ruby_event_store/spec/mappers/pipeline_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/mappers/transform_keys_spec.rb b/ruby_event_store/spec/mappers/transform_keys_spec.rb index ef39526333..416bdf3989 100644 --- a/ruby_event_store/spec/mappers/transform_keys_spec.rb +++ b/ruby_event_store/spec/mappers/transform_keys_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/mappers/transformation/domain_event_spec.rb b/ruby_event_store/spec/mappers/transformation/domain_event_spec.rb index 5b039a51ba..aac4ad200b 100644 --- a/ruby_event_store/spec/mappers/transformation/domain_event_spec.rb +++ b/ruby_event_store/spec/mappers/transformation/domain_event_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/mappers/transformation/encryption_spec.rb b/ruby_event_store/spec/mappers/transformation/encryption_spec.rb index 842d729d31..4a99ca6769 100644 --- a/ruby_event_store/spec/mappers/transformation/encryption_spec.rb +++ b/ruby_event_store/spec/mappers/transformation/encryption_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "openssl" diff --git a/ruby_event_store/spec/mappers/transformation/event_class_remapper_spec.rb b/ruby_event_store/spec/mappers/transformation/event_class_remapper_spec.rb index 19a83ec1f8..2ca44274dc 100644 --- a/ruby_event_store/spec/mappers/transformation/event_class_remapper_spec.rb +++ b/ruby_event_store/spec/mappers/transformation/event_class_remapper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/mappers/transformation/preserve_types_spec.rb b/ruby_event_store/spec/mappers/transformation/preserve_types_spec.rb index d43b1ec964..f4252002cb 100644 --- a/ruby_event_store/spec/mappers/transformation/preserve_types_spec.rb +++ b/ruby_event_store/spec/mappers/transformation/preserve_types_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "json" require "active_support" diff --git a/ruby_event_store/spec/mappers/transformation/stringify_metadata_keys_spec.rb b/ruby_event_store/spec/mappers/transformation/stringify_metadata_keys_spec.rb index cd0665f745..afebe34836 100644 --- a/ruby_event_store/spec/mappers/transformation/stringify_metadata_keys_spec.rb +++ b/ruby_event_store/spec/mappers/transformation/stringify_metadata_keys_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "json" diff --git a/ruby_event_store/spec/mappers/transformation/symbolize_metadata_keys_spec.rb b/ruby_event_store/spec/mappers/transformation/symbolize_metadata_keys_spec.rb index 8d3c4fb713..0fdac514ac 100644 --- a/ruby_event_store/spec/mappers/transformation/symbolize_metadata_keys_spec.rb +++ b/ruby_event_store/spec/mappers/transformation/symbolize_metadata_keys_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "json" diff --git a/ruby_event_store/spec/mappers/transformation/upcast_spec.rb b/ruby_event_store/spec/mappers/transformation/upcast_spec.rb index 9221dfb71c..41e3eb6e17 100644 --- a/ruby_event_store/spec/mappers/transformation/upcast_spec.rb +++ b/ruby_event_store/spec/mappers/transformation/upcast_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/metadata_spec.rb b/ruby_event_store/spec/metadata_spec.rb index 020644a513..953f39b529 100644 --- a/ruby_event_store/spec/metadata_spec.rb +++ b/ruby_event_store/spec/metadata_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/no_warnings_spec.rb b/ruby_event_store/spec/no_warnings_spec.rb index e4b9baca0a..530e66a559 100644 --- a/ruby_event_store/spec/no_warnings_spec.rb +++ b/ruby_event_store/spec/no_warnings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/projection_spec.rb b/ruby_event_store/spec/projection_spec.rb index b004dff155..b70e9f405e 100644 --- a/ruby_event_store/spec/projection_spec.rb +++ b/ruby_event_store/spec/projection_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/record_spec.rb b/ruby_event_store/spec/record_spec.rb index 37f882bf18..647fe4518f 100644 --- a/ruby_event_store/spec/record_spec.rb +++ b/ruby_event_store/spec/record_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "bigdecimal" diff --git a/ruby_event_store/spec/serialized_record_spec.rb b/ruby_event_store/spec/serialized_record_spec.rb index 398a70dcd1..e470036ff3 100644 --- a/ruby_event_store/spec/serialized_record_spec.rb +++ b/ruby_event_store/spec/serialized_record_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/spec_helper.rb b/ruby_event_store/spec/spec_helper.rb index ef088c0000..c19d404391 100644 --- a/ruby_event_store/spec/spec_helper.rb +++ b/ruby_event_store/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ruby_event_store" require_relative "../../support/helpers/rspec_defaults" require_relative "../../support/helpers/time_enrichment" diff --git a/ruby_event_store/spec/specification_spec.rb b/ruby_event_store/spec/specification_spec.rb index 42f57b2a4f..51cd56fdc4 100644 --- a/ruby_event_store/spec/specification_spec.rb +++ b/ruby_event_store/spec/specification_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/stream_spec.rb b/ruby_event_store/spec/stream_spec.rb index 179c39aefe..705efa84e4 100644 --- a/ruby_event_store/spec/stream_spec.rb +++ b/ruby_event_store/spec/stream_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/ruby_event_store/spec/subscriptions_spec.rb b/ruby_event_store/spec/subscriptions_spec.rb index addc120626..3eedadd1f6 100644 --- a/ruby_event_store/spec/subscriptions_spec.rb +++ b/ruby_event_store/spec/subscriptions_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "ruby_event_store/spec/subscriptions_lint" diff --git a/ruby_event_store/spec/support/correlatable.rb b/ruby_event_store/spec/support/correlatable.rb index afdc0a7806..080f12803f 100644 --- a/ruby_event_store/spec/support/correlatable.rb +++ b/ruby_event_store/spec/support/correlatable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec.shared_examples :correlatable do |factory| specify "correlation_id && causation_id" do e0 = factory.call(event_id: "doh") diff --git a/ruby_event_store/spec/within_spec.rb b/ruby_event_store/spec/within_spec.rb index 6b66e066d6..31caa1357e 100644 --- a/ruby_event_store/spec/within_spec.rb +++ b/ruby_event_store/spec/within_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module RubyEventStore diff --git a/support/helpers/migrator.rb b/support/helpers/migrator.rb index c1de851fe7..296b47031c 100644 --- a/support/helpers/migrator.rb +++ b/support/helpers/migrator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "erb" class Migrator diff --git a/support/helpers/protobuf_helper.rb b/support/helpers/protobuf_helper.rb index 32caab18dd..3d633a8d3b 100644 --- a/support/helpers/protobuf_helper.rb +++ b/support/helpers/protobuf_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ProtobufHelper def require_protobuf_dependencies begin diff --git a/support/helpers/redis_client_unix_socket_patch.rb b/support/helpers/redis_client_unix_socket_patch.rb index cf0154794d..00412a74c7 100644 --- a/support/helpers/redis_client_unix_socket_patch.rb +++ b/support/helpers/redis_client_unix_socket_patch.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + if defined? RedisClient raise "RedisClient version changed" unless RedisClient::VERSION == "0.14.1" diff --git a/support/helpers/rspec_defaults.rb b/support/helpers/rspec_defaults.rb index 448d3d4680..5a3e4030cb 100644 --- a/support/helpers/rspec_defaults.rb +++ b/support/helpers/rspec_defaults.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "silence_warnings" RSpec.configure do |config| diff --git a/support/helpers/rspec_sql_matchers.rb b/support/helpers/rspec_sql_matchers.rb index 1fc9ef2333..b7b2f68e82 100644 --- a/support/helpers/rspec_sql_matchers.rb +++ b/support/helpers/rspec_sql_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/isolated_execution_state" require "active_support/notifications" diff --git a/support/helpers/schema_helper.rb b/support/helpers/schema_helper.rb index bcd6fa5e58..588f5be96b 100644 --- a/support/helpers/schema_helper.rb +++ b/support/helpers/schema_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "migrator" require_relative "subprocess_helper" diff --git a/support/helpers/silence_stdout.rb b/support/helpers/silence_stdout.rb index 9f0e7fd031..8620902aad 100644 --- a/support/helpers/silence_stdout.rb +++ b/support/helpers/silence_stdout.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module SilenceStdout def silence_stdout $stdout = StringIO.new diff --git a/support/helpers/silence_warnings.rb b/support/helpers/silence_warnings.rb index f1715ba4b0..bf39e32313 100644 --- a/support/helpers/silence_warnings.rb +++ b/support/helpers/silence_warnings.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module SilenceWarnings def silence_warnings old_verbose, $VERBOSE = $VERBOSE, nil diff --git a/support/helpers/subprocess_helper.rb b/support/helpers/subprocess_helper.rb index a7d6bbe8bc..1b367d15eb 100644 --- a/support/helpers/subprocess_helper.rb +++ b/support/helpers/subprocess_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "childprocess" require "tempfile" diff --git a/support/helpers/time_enrichment.rb b/support/helpers/time_enrichment.rb index 6964322ee8..a23cfdf4fe 100644 --- a/support/helpers/time_enrichment.rb +++ b/support/helpers/time_enrichment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module TimeEnrichment def with(event, timestamp: Time.now.utc, valid_at: nil) event.metadata[:timestamp] ||= timestamp From 33b12343635f8e462edb9ff7dc39f8519744ea60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Fri, 5 Jan 2024 22:30:24 +0100 Subject: [PATCH 7/8] Expect frozen_string_literal in generated BC files --- rails_event_store/spec/generators_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rails_event_store/spec/generators_spec.rb b/rails_event_store/spec/generators_spec.rb index 44bdcdface..d66c2b5f84 100644 --- a/rails_event_store/spec/generators_spec.rb +++ b/rails_event_store/spec/generators_spec.rb @@ -107,6 +107,8 @@ module MumboJumbo def expect_identity_access_spec_helper expect("identity_access/spec/spec_helper.rb").to match_content(<<~EOF) + # frozen_string_literal: true + ENV["RAILS_ENV"] = "test" $LOAD_PATH.push File.expand_path("../../../spec", __FILE__) @@ -119,6 +121,8 @@ def expect_identity_access_spec_helper def expect_identity_access_bc_spec expect("identity_access/spec/identity_access_spec.rb").to match_content(<<~EOF) + # frozen_string_literal: true + require_relative "spec_helper" ::RSpec.describe IdentityAccess do @@ -128,6 +132,8 @@ def expect_identity_access_bc_spec def expect_identity_access_require_bc_spec expect("spec/identity_access_spec.rb").to match_content(<<~'EOF') + # frozen_string_literal: true + require "rails_helper" path = Rails.root.join("identity_access/spec") @@ -139,12 +145,16 @@ def expect_identity_access_require_bc_spec def expect_identity_access_test_helper expect("identity_access/test/test_helper.rb").to match_content(<<~EOF) + # frozen_string_literal: true + require_relative "../lib/identity_access" EOF end def expect_identity_access_bc_test expect("test/identity_access_test.rb").to match_content(<<~EOF) + # frozen_string_literal: true + require_relative "test_helper" Dir[Rails.root.join("identity_access/test/*_test.rb")].each { |file| require file } From e613fce605c2b7210399465754a6b8cff542de98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Fri, 5 Jan 2024 23:58:00 +0100 Subject: [PATCH 8/8] Run with freeze-friendly json-schema https://github.com/voxpupuli/json-schema/pull/507 --- ruby_event_store-browser/Gemfile | 2 +- ruby_event_store-browser/Gemfile.lock | 11 ++++++++--- ruby_event_store-browser/Gemfile.rack_2_0 | 2 +- ruby_event_store-browser/Gemfile.rack_2_0.lock | 11 ++++++++--- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/ruby_event_store-browser/Gemfile b/ruby_event_store-browser/Gemfile index aefa9beab3..1a5ee2e610 100644 --- a/ruby_event_store-browser/Gemfile +++ b/ruby_event_store-browser/Gemfile @@ -9,7 +9,7 @@ gem "ruby_event_store", path: ".." gem "rack-test" gem "capybara", "~> 3.35" -gem "json-schema" +gem "json-schema", github: "mostlyobvious/json-schema" gem "rack", "~> 3.0" gem "webrick" gem "cuprite" diff --git a/ruby_event_store-browser/Gemfile.lock b/ruby_event_store-browser/Gemfile.lock index 5f8c0b1857..5cb20c165d 100644 --- a/ruby_event_store-browser/Gemfile.lock +++ b/ruby_event_store-browser/Gemfile.lock @@ -1,3 +1,10 @@ +GIT + remote: https://github.com/mostlyobvious/json-schema.git + revision: 3dd3e77d468538a114d212187bed912dcbff96f4 + specs: + json-schema (4.1.1) + addressable (>= 2.8) + PATH remote: .. specs: @@ -41,8 +48,6 @@ GEM concurrent-ruby (~> 1.1) webrick (~> 1.7) websocket-driver (>= 0.6, < 0.8) - json-schema (4.1.1) - addressable (>= 2.8) matrix (0.4.2) mini_mime (1.1.5) mini_portile2 (2.8.5) @@ -116,7 +121,7 @@ PLATFORMS DEPENDENCIES capybara (~> 3.35) cuprite - json-schema + json-schema! mutant (= 0.11.22) mutant-license! mutant-minitest (= 0.11.22) diff --git a/ruby_event_store-browser/Gemfile.rack_2_0 b/ruby_event_store-browser/Gemfile.rack_2_0 index e8fb4f188d..db1278f748 100644 --- a/ruby_event_store-browser/Gemfile.rack_2_0 +++ b/ruby_event_store-browser/Gemfile.rack_2_0 @@ -7,7 +7,7 @@ gem "ruby_event_store", path: ".." gem "rack-test" gem "capybara", "~> 3.35" -gem "json-schema" +gem "json-schema", github: "mostlyobvious/json-schema" gem "rack", "~> 2.0" gem "webrick" gem "cuprite" diff --git a/ruby_event_store-browser/Gemfile.rack_2_0.lock b/ruby_event_store-browser/Gemfile.rack_2_0.lock index f5c298aa3a..a7e4df71ca 100644 --- a/ruby_event_store-browser/Gemfile.rack_2_0.lock +++ b/ruby_event_store-browser/Gemfile.rack_2_0.lock @@ -1,3 +1,10 @@ +GIT + remote: https://github.com/mostlyobvious/json-schema.git + revision: 3dd3e77d468538a114d212187bed912dcbff96f4 + specs: + json-schema (4.1.1) + addressable (>= 2.8) + PATH remote: .. specs: @@ -41,8 +48,6 @@ GEM concurrent-ruby (~> 1.1) webrick (~> 1.7) websocket-driver (>= 0.6, < 0.8) - json-schema (4.1.1) - addressable (>= 2.8) matrix (0.4.2) mini_mime (1.1.5) mini_portile2 (2.8.5) @@ -113,7 +118,7 @@ PLATFORMS DEPENDENCIES capybara (~> 3.35) cuprite - json-schema + json-schema! mutant (= 0.11.22) mutant-license! mutant-minitest (= 0.11.22)