Skip to content

Commit

Permalink
Check Style/FrozenStringLiteralComment
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlyobvious committed Nov 20, 2024
1 parent b41ba28 commit e09dd6e
Show file tree
Hide file tree
Showing 94 changed files with 94 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/actor_like/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/actor_like/lib/aggregate_repository.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
class AggregateRepository
def initialize(event_store)
@event_store = event_store
Expand Down
1 change: 1 addition & 0 deletions examples/actor_like/lib/aggregate_root.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module AggregateRoot
module ClassMethods
def on(*event_klasses, &block)
Expand Down
1 change: 1 addition & 0 deletions examples/actor_like/lib/aggregate_state.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module AggregateState
module ClassMethods
def on(*event_klasses, &block)
Expand Down
1 change: 1 addition & 0 deletions examples/actor_like/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../shared/lib/project_management"
require_relative "aggregate_state"
require_relative "aggregate_root"
Expand Down
1 change: 1 addition & 0 deletions examples/actor_like/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/actor_like/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Issue
include AggregateRoot
Expand Down
1 change: 1 addition & 0 deletions examples/actor_like/lib/project_management/issue_state.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class IssueState < Struct.new(:id, :status)
include AggregateState
Expand Down
1 change: 1 addition & 0 deletions examples/actor_like/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/aggregate_root/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/aggregate_root/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "aggregate_root"

require_relative "../../../shared/lib/project_management"
Expand Down
1 change: 1 addition & 0 deletions examples/aggregate_root/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/aggregate_root/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Issue
include AggregateRoot
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
Repository = AggregateRoot::Repository
end
1 change: 1 addition & 0 deletions examples/aggregate_root/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/decider/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/decider/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../shared/lib/project_management"
require_relative "project_management/handler"
require_relative "project_management/issue"
Expand Down
1 change: 1 addition & 0 deletions examples/decider/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/decider/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
module Issue
InvalidTransition = Class.new(StandardError)
Expand Down
1 change: 1 addition & 0 deletions examples/decider/lib/project_management/repository.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Repository
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/decider/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/document_way/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/document_way/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "active_record"

require_relative "../../../shared/lib/project_management"
Expand Down
1 change: 1 addition & 0 deletions examples/document_way/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/document_way/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Issue
InvalidTransition = Class.new(StandardError)
Expand Down
1 change: 1 addition & 0 deletions examples/document_way/lib/project_management/repository.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Repository
class Record < ActiveRecord::Base
Expand Down
1 change: 1 addition & 0 deletions examples/document_way/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/duck_typing/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/duck_typing/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "tty-prompt"

require_relative "../../../shared/lib/project_management"
Expand Down
1 change: 1 addition & 0 deletions examples/duck_typing/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/duck_typing/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Issue
def open = Open.new
Expand Down
1 change: 1 addition & 0 deletions examples/duck_typing/lib/project_management/repository.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Repository
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/duck_typing/lib/project_management/ui.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class UI
def initialize
Expand Down
1 change: 1 addition & 0 deletions examples/duck_typing/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/extracted_state/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/extracted_state/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../shared/lib/project_management"
require_relative "project_management/handler"
require_relative "project_management/issue"
Expand Down
1 change: 1 addition & 0 deletions examples/extracted_state/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/extracted_state/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Issue
InvalidTransition = Class.new(StandardError)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
IssueState =
Data.define(:id, :status) do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Repository
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/extracted_state/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/functional/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/functional/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../shared/lib/project_management"
require_relative "project_management/handler"
require_relative "project_management/issue"
Expand Down
1 change: 1 addition & 0 deletions examples/functional/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/functional/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
module Issue
InvalidTransition = Class.new(StandardError)
Expand Down
1 change: 1 addition & 0 deletions examples/functional/lib/project_management/issue_state.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
IssueState =
Data.define(:id, :status) do
Expand Down
1 change: 1 addition & 0 deletions examples/functional/lib/project_management/repository.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Repository
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/functional/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/polymorphic/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/polymorphic/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../shared/lib/project_management"
require_relative "project_management/handler"
require_relative "project_management/issue"
1 change: 1 addition & 0 deletions examples/polymorphic/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/polymorphic/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Issue
InvalidTransition = Class.new(StandardError)
Expand Down
1 change: 1 addition & 0 deletions examples/polymorphic/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/poro/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/poro/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../shared/lib/project_management"
require_relative "project_management/issue"
require_relative "project_management/issue_projection"
Expand Down
1 change: 1 addition & 0 deletions examples/poro/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/poro/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Issue
InvalidTransition = Class.new(StandardError)
Expand Down
1 change: 1 addition & 0 deletions examples/poro/lib/project_management/issue_projection.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class IssueProjection
State = Struct.new(:status)
Expand Down
1 change: 1 addition & 0 deletions examples/poro/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/query_based/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/query_based/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../shared/lib/project_management"
require_relative "project_management/issue"
require_relative "project_management/repository"
Expand Down
1 change: 1 addition & 0 deletions examples/query_based/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/query_based/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
Issue =
Data.define(:status) do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class IssueProjection
def self.call(query, initial_issue)
Expand Down
1 change: 1 addition & 0 deletions examples/query_based/lib/project_management/repository.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Repository
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/query_based/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/rails_way/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/rails_way/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "active_record"
require "aasm"

Expand Down
1 change: 1 addition & 0 deletions examples/rails_way/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/rails_way/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Issue < ActiveRecord::Base
include AASM
Expand Down
1 change: 1 addition & 0 deletions examples/rails_way/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/repository/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/repository/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../shared/lib/project_management"
require_relative "project_management/repository"
require_relative "project_management/issue"
Expand Down
1 change: 1 addition & 0 deletions examples/repository/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/repository/lib/project_management/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Issue
InvalidTransition = Class.new(StandardError)
Expand Down
1 change: 1 addition & 0 deletions examples/repository/lib/project_management/repository.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Repository
def initialize(event_store)
Expand Down
1 change: 1 addition & 0 deletions examples/repository/test/issue_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "minitest/autorun"
require "minitest/mock"
require "mutant/minitest/coverage"
Expand Down
1 change: 1 addition & 0 deletions examples/roles/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem "ruby_event_store"
Expand Down
1 change: 1 addition & 0 deletions examples/roles/lib/project_management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../shared/lib/project_management"
require_relative "project_management/handler"
require_relative "project_management/issue"
1 change: 1 addition & 0 deletions examples/roles/lib/project_management/handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ProjectManagement
class Handler
def initialize(event_store)
Expand Down
Loading

0 comments on commit e09dd6e

Please sign in to comment.