Skip to content

Commit

Permalink
Missing magic comments for frozen_string_literal
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlyobvious committed Jan 5, 2024
1 parent badbe0d commit 1b556d2
Show file tree
Hide file tree
Showing 289 changed files with 574 additions and 1 deletion.
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'delegate'
module AggregateRoot
class InstrumentedRepository
Expand Down
1 change: 1 addition & 0 deletions aggregate_root/lib/aggregate_root/snapshot_repository.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'base64'
require 'ruby_event_store/event'

Expand Down
2 changes: 2 additions & 0 deletions 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"
Expand Down
2 changes: 2 additions & 0 deletions 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"
Expand Down
2 changes: 2 additions & 0 deletions contrib/dres_client/lib/dres_client/version.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module DresClient
VERSION = "0.6.0"
end
2 changes: 2 additions & 0 deletions contrib/dres_client/spec/dres_client_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"
require "uri"

Expand Down
2 changes: 2 additions & 0 deletions 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"
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module DresRails
class ApplicationController < ActionController::Base
def index
Expand Down
2 changes: 2 additions & 0 deletions 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"
Expand Down
2 changes: 2 additions & 0 deletions 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) }
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class CreateDresRailsQueues < ActiveRecord::Migration[5.2]
def change
create_table :dres_rails_queues do |t|
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class CreateQueueJobsTable < ActiveRecord::Migration[5.2]
def change
create_table :dres_rails_queue_jobs do |t|
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This migration comes from dres_rails (originally 20180802140810)
class CreateDresRailsQueues < ActiveRecord::Migration[5.2]
def change
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This migration comes from dres_rails (originally 20180809123523)
class CreateQueueJobsTable < ActiveRecord::Migration[5.2]
def change
Expand Down
2 changes: 2 additions & 0 deletions 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.
Expand Down
2 changes: 2 additions & 0 deletions contrib/dres_rails/spec/features/expose_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "rails_helper"
require "capybara"
require "timecop"
Expand Down
2 changes: 2 additions & 0 deletions 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"
Expand Down
2 changes: 2 additions & 0 deletions 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"
Expand Down
2 changes: 2 additions & 0 deletions contrib/minitest-ruby_event_store/Gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"
gemspec

Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Minitest
module RubyEventStore
class Error < StandardError
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Minitest
module RubyEventStore
module Assertions
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Minitest
module RubyEventStore
VERSION = "0.1.0"
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "../test_helper"

DummyEvent = Class.new(RubyEventStore::Event)
Expand Down
2 changes: 2 additions & 0 deletions 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"
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-flipper/spec/flipper_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

class CustomToggleAdded < RubyEventStore::Event
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/Gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"
gemspec

Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
class BatchResult
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
module CleanupStrategies
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
module CleanupStrategies
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
module CleanupStrategies
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "optparse"
require_relative "version"
require_relative "consumer"
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
class Configuration
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "logger"
require "redis"
require "active_record"
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
class FetchSpecification
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
module Metrics
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "influxdb"

module RubyEventStore
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
module Metrics
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "influxdb"

module RubyEventStore
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
class Runner
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
module Outbox
class Tempo
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/spec/batch_result_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/spec/cli_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/spec/consumer_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/spec/metrics/factory_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/spec/metrics/influx_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/spec/metrics/null_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/spec/repository_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/spec/runner_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "./support/sidekiq"

Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"
require "ruby_event_store/spec/scheduler_lint"
require_relative "./support/sidekiq"
Expand Down
2 changes: 2 additions & 0 deletions 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"
Expand Down
2 changes: 2 additions & 0 deletions 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")
Expand Down
2 changes: 2 additions & 0 deletions 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
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-outbox/spec/tempo_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-profiler/Gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"
gemspec

Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
class Profiler
METRICS = [/rails_event_store/, /aggregate_root/, "total"].freeze
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RubyEventStore
class Profiler
VERSION = "0.1.0"
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-profiler/spec/profiler_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions 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"
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-protobuf/Gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"
gemspec

Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-protobuf/spec/client_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"
require "time"
require "json"
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
2 changes: 2 additions & 0 deletions contrib/ruby_event_store-protobuf/spec/mappers/events_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"
require "ruby_event_store/spec/mapper_lint"

Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

module RubyEventStore
Expand Down

0 comments on commit 1b556d2

Please sign in to comment.