auction_fun_core 0.8.7 → 0.8.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/.standard.yml +2 -0
  3. data/CHANGELOG.md +29 -0
  4. data/Procfile +1 -0
  5. data/README.md +34 -32
  6. data/Rakefile +1 -1
  7. data/auction_fun_core.gemspec +1 -1
  8. data/i18n/en-US/contracts/contracts.en-US.yml +3 -0
  9. data/i18n/en-US/mail/application.en-US.yml +7 -0
  10. data/i18n/en-US/mail/auction_context/pre_auction/auction_start_reminder.en-US.yml +11 -0
  11. data/i18n/pt-BR/contracts/contracts.pt-BR.yml +3 -0
  12. data/i18n/pt-BR/mail/application.pt-BR.yml +7 -0
  13. data/i18n/pt-BR/mail/auction_context/pre_auction/auction_start_reminder.pt-BR.yml +11 -0
  14. data/lib/auction_fun_core/business/configuration.rb +31 -0
  15. data/lib/auction_fun_core/business/token_generator.rb +19 -1
  16. data/lib/auction_fun_core/contracts/application_contract.rb +9 -1
  17. data/lib/auction_fun_core/contracts/auction_context/create_contract.rb +35 -20
  18. data/lib/auction_fun_core/contracts/auction_context/post_auction/participant_contract.rb +23 -1
  19. data/lib/auction_fun_core/contracts/auction_context/post_auction/winner_contract.rb +22 -1
  20. data/lib/auction_fun_core/contracts/auction_context/pre_auction/auction_start_reminder_contract.rb +48 -0
  21. data/lib/auction_fun_core/contracts/auction_context/processor/finish/closed_contract.rb +19 -7
  22. data/lib/auction_fun_core/contracts/auction_context/processor/finish/penny_contract.rb +19 -7
  23. data/lib/auction_fun_core/contracts/auction_context/processor/finish/standard_contract.rb +19 -7
  24. data/lib/auction_fun_core/contracts/auction_context/processor/pause_contract.rb +16 -4
  25. data/lib/auction_fun_core/contracts/auction_context/processor/start_contract.rb +17 -5
  26. data/lib/auction_fun_core/contracts/auction_context/processor/unpause_contract.rb +16 -4
  27. data/lib/auction_fun_core/contracts/bid_context/create_bid_closed_contract.rb +20 -11
  28. data/lib/auction_fun_core/contracts/bid_context/create_bid_penny_contract.rb +18 -9
  29. data/lib/auction_fun_core/contracts/bid_context/create_bid_standard_contract.rb +19 -10
  30. data/lib/auction_fun_core/contracts/staff_context/authentication_contract.rb +18 -4
  31. data/lib/auction_fun_core/contracts/staff_context/registration_contract.rb +20 -8
  32. data/lib/auction_fun_core/contracts/user_context/authentication_contract.rb +18 -4
  33. data/lib/auction_fun_core/contracts/user_context/email_confirmation_contract.rb +17 -2
  34. data/lib/auction_fun_core/contracts/user_context/phone_confirmation_contract.rb +17 -2
  35. data/lib/auction_fun_core/contracts/user_context/registration_contract.rb +26 -8
  36. data/lib/auction_fun_core/entities/auction.rb +48 -4
  37. data/lib/auction_fun_core/entities/bid.rb +3 -2
  38. data/lib/auction_fun_core/entities/staff.rb +15 -2
  39. data/lib/auction_fun_core/entities/user.rb +31 -2
  40. data/lib/auction_fun_core/events/app.rb +8 -2
  41. data/lib/auction_fun_core/events/listener.rb +19 -16
  42. data/lib/auction_fun_core/operations/auction_context/create_operation.rb +25 -9
  43. data/lib/auction_fun_core/operations/auction_context/post_auction/participant_operation.rb +36 -3
  44. data/lib/auction_fun_core/operations/auction_context/post_auction/winner_operation.rb +36 -2
  45. data/lib/auction_fun_core/operations/auction_context/pre_auction/auction_start_reminder_operation.rb +96 -0
  46. data/lib/auction_fun_core/operations/auction_context/processor/finish/closed_operation.rb +82 -10
  47. data/lib/auction_fun_core/operations/auction_context/processor/finish/penny_operation.rb +81 -10
  48. data/lib/auction_fun_core/operations/auction_context/processor/finish/standard_operation.rb +81 -12
  49. data/lib/auction_fun_core/operations/auction_context/processor/pause_operation.rb +36 -1
  50. data/lib/auction_fun_core/operations/auction_context/processor/unpause_operation.rb +36 -1
  51. data/lib/auction_fun_core/relations/auctions.rb +178 -97
  52. data/lib/auction_fun_core/relations/bids.rb +18 -0
  53. data/lib/auction_fun_core/repos/auction_context/auction_repository.rb +40 -11
  54. data/lib/auction_fun_core/repos/bid_context/bid_repository.rb +27 -5
  55. data/lib/auction_fun_core/repos/staff_context/staff_repository.rb +63 -21
  56. data/lib/auction_fun_core/repos/user_context/user_repository.rb +69 -25
  57. data/lib/auction_fun_core/services/mail/auction_context/post_auction/participant_mailer.rb +7 -1
  58. data/lib/auction_fun_core/services/mail/auction_context/post_auction/winner_mailer.rb +7 -1
  59. data/lib/auction_fun_core/services/mail/auction_context/pre_auction/auction_start_reminder_mailer.rb +35 -0
  60. data/lib/auction_fun_core/services/mail/templates/auction_context/post_auction/participant.html.erb +1 -1
  61. data/lib/auction_fun_core/services/mail/templates/auction_context/post_auction/winner.html.erb +1 -1
  62. data/lib/auction_fun_core/services/mail/templates/auction_context/pre_auction/auction_start_reminder.html.erb +192 -0
  63. data/lib/auction_fun_core/services/mail/user_context/registration_mailer.rb +6 -0
  64. data/lib/auction_fun_core/version.rb +1 -1
  65. data/lib/auction_fun_core/workers/application_job.rb +10 -0
  66. data/lib/auction_fun_core/workers/operations/auction_context/post_auction/participant_operation_job.rb +7 -2
  67. data/lib/auction_fun_core/workers/operations/auction_context/post_auction/winner_operation_job.rb +6 -2
  68. data/lib/auction_fun_core/workers/operations/auction_context/pre_auction/auction_start_reminder_operation_job.rb +44 -0
  69. data/lib/auction_fun_core/workers/operations/auction_context/processor/finish/closed_operation_job.rb +6 -3
  70. data/lib/auction_fun_core/workers/operations/auction_context/processor/finish/penny_operation_job.rb +6 -3
  71. data/lib/auction_fun_core/workers/operations/auction_context/processor/finish/standard_operation_job.rb +6 -2
  72. data/lib/auction_fun_core/workers/operations/auction_context/processor/start_operation_job.rb +6 -3
  73. data/lib/auction_fun_core/workers/services/mail/auction_context/post_auction/participant_mailer_job.rb +12 -7
  74. data/lib/auction_fun_core/workers/services/mail/auction_context/post_auction/winner_mailer_job.rb +11 -5
  75. data/lib/auction_fun_core/workers/services/mail/auction_context/pre_auction/auction_start_reminder_mailer_job.rb +48 -0
  76. data/lib/auction_fun_core/workers/services/mail/user_context/registration_mailer_job.rb +8 -6
  77. data/spec/auction_fun_core/contracts/auction_context/create_contract_spec.rb +158 -0
  78. data/spec/auction_fun_core/contracts/auction_context/post_auction/participant_contract_spec.rb +77 -0
  79. data/spec/auction_fun_core/contracts/auction_context/post_auction/winner_contract_spec.rb +76 -0
  80. data/spec/auction_fun_core/contracts/auction_context/pre_auction/auction_start_reminder_contract_spec.rb +48 -0
  81. data/spec/auction_fun_core/contracts/auction_context/processor/finish/closed_contract_spec.rb +59 -0
  82. data/spec/auction_fun_core/contracts/auction_context/processor/finish/penny_contract_spec.rb +59 -0
  83. data/spec/auction_fun_core/contracts/auction_context/processor/finish/standard_contract_spec.rb +59 -0
  84. data/spec/auction_fun_core/contracts/auction_context/processor/pause_contract_spec.rb +39 -0
  85. data/spec/auction_fun_core/contracts/auction_context/processor/start_contract_spec.rb +59 -0
  86. data/spec/auction_fun_core/contracts/auction_context/processor/unpause_contract_spec.rb +39 -0
  87. data/spec/auction_fun_core/contracts/bid_context/create_bid_closed_contract_spec.rb +130 -0
  88. data/spec/auction_fun_core/contracts/bid_context/create_bid_penny_contract_spec.rb +118 -0
  89. data/spec/auction_fun_core/contracts/bid_context/create_bid_standard_contract_spec.rb +154 -0
  90. data/spec/auction_fun_core/contracts/staff_context/authentication_contract_spec.rb +89 -0
  91. data/spec/auction_fun_core/contracts/staff_context/registration_contract_spec.rb +24 -0
  92. data/spec/auction_fun_core/contracts/user_context/authentication_contract_spec.rb +89 -0
  93. data/spec/auction_fun_core/contracts/user_context/email_confirmation_contract_spec.rb +54 -0
  94. data/spec/auction_fun_core/contracts/user_context/phone_confirmation_contract_spec.rb +54 -0
  95. data/spec/auction_fun_core/contracts/user_context/registration_contract_spec.rb +27 -0
  96. data/spec/auction_fun_core/entities/auction_spec.rb +75 -0
  97. data/spec/auction_fun_core/entities/bid_spec.rb +7 -0
  98. data/spec/auction_fun_core/entities/staff_spec.rb +38 -0
  99. data/spec/auction_fun_core/entities/user_spec.rb +106 -0
  100. data/spec/auction_fun_core/operations/auction_context/create_operation_spec.rb +126 -0
  101. data/spec/auction_fun_core/operations/auction_context/post_auction/participant_operation_spec.rb +88 -0
  102. data/spec/auction_fun_core/operations/auction_context/post_auction/winner_operation_spec.rb +76 -0
  103. data/spec/auction_fun_core/operations/auction_context/pre_auction/auction_start_reminder_operation_spec.rb +98 -0
  104. data/spec/auction_fun_core/operations/auction_context/processor/finish/closed_operation_spec.rb +107 -0
  105. data/spec/auction_fun_core/operations/auction_context/processor/finish/penny_operation_spec.rb +107 -0
  106. data/spec/auction_fun_core/operations/auction_context/processor/finish/standard_operation_spec.rb +106 -0
  107. data/spec/auction_fun_core/operations/auction_context/processor/pause_operation_spec.rb +83 -0
  108. data/spec/auction_fun_core/operations/auction_context/processor/start_operation_spec.rb +147 -0
  109. data/spec/auction_fun_core/operations/auction_context/processor/unpause_operation_spec.rb +80 -0
  110. data/spec/auction_fun_core/operations/bid_context/create_bid_closed_operation_spec.rb +95 -0
  111. data/spec/auction_fun_core/operations/bid_context/create_bid_penny_operation_spec.rb +133 -0
  112. data/spec/auction_fun_core/operations/bid_context/create_bid_standard_operation_spec.rb +95 -0
  113. data/spec/auction_fun_core/operations/staff_context/authentication_operation_spec.rb +74 -0
  114. data/spec/auction_fun_core/operations/staff_context/registration_operation_spec.rb +93 -0
  115. data/spec/auction_fun_core/operations/user_context/authentication_operation_spec.rb +74 -0
  116. data/spec/auction_fun_core/operations/user_context/email_confirmation_operation_spec.rb +76 -0
  117. data/spec/auction_fun_core/operations/user_context/phone_confirmation_operation_spec.rb +76 -0
  118. data/spec/auction_fun_core/operations/user_context/registration_operation_spec.rb +100 -0
  119. data/spec/auction_fun_core/relations/auctions_spec.rb +471 -0
  120. data/spec/auction_fun_core/repos/auction_context/auction_repository_spec.rb +64 -0
  121. data/spec/auction_fun_core/repos/bid_context/bid_repository_spec.rb +64 -0
  122. data/spec/auction_fun_core/repos/staff_context/staff_repository_spec.rb +118 -0
  123. data/spec/auction_fun_core/repos/user_context/user_repository_spec.rb +117 -0
  124. data/spec/auction_fun_core/services/mail/auction_context/post_auction/participant_mailer_spec.rb +48 -0
  125. data/spec/auction_fun_core/services/mail/auction_context/post_auction/winner_mailer_spec.rb +48 -0
  126. data/spec/auction_fun_core/services/mail/auction_context/pre_auction/auction_start_reminder_mailer_spec.rb +40 -0
  127. data/spec/auction_fun_core/services/mail/user_context/registration_mailer_spec.rb +33 -0
  128. data/spec/auction_fun_core/workers/operations/auction_context/post_auction/participation_operation_job_spec.rb +54 -0
  129. data/spec/auction_fun_core/workers/operations/auction_context/post_auction/winner_operation_job_spec.rb +48 -0
  130. data/spec/auction_fun_core/workers/operations/auction_context/pre_auction/auction_start_reminder_operation_job_spec.rb +53 -0
  131. data/spec/auction_fun_core/workers/operations/auction_context/processor/finish/closed_operation_job_spec.rb +47 -0
  132. data/spec/auction_fun_core/workers/operations/auction_context/processor/finish/penny_operation_job_spec.rb +47 -0
  133. data/spec/auction_fun_core/workers/operations/auction_context/processor/finish/standard_operation_job_spec.rb +47 -0
  134. data/spec/auction_fun_core/workers/operations/auction_context/processor/start_operation_job_spec.rb +47 -0
  135. data/spec/auction_fun_core/workers/services/mail/auction_context/post_auction/participant_mailer_job_spec.rb +62 -0
  136. data/spec/auction_fun_core/workers/services/mail/auction_context/post_auction/pre_auction/auction_start_reminder_mailer_job_spec.rb +59 -0
  137. data/spec/auction_fun_core/workers/services/mail/auction_context/post_auction/winner_mailer_job_spec.rb +62 -0
  138. data/spec/auction_fun_core/workers/services/mail/user_context/registration_mailer_job_spec.rb +53 -0
  139. data/spec/auction_fun_core_spec.rb +7 -0
  140. data/spec/spec_helper.rb +61 -0
  141. data/spec/support/background_job.rb +7 -0
  142. data/spec/support/factories/auctions.rb +143 -0
  143. data/spec/support/factories/bids.rb +6 -0
  144. data/spec/support/factories/staffs.rb +18 -0
  145. data/spec/support/factories/users.rb +43 -0
  146. data/spec/support/faker.rb +6 -0
  147. data/spec/support/mail.rb +13 -0
  148. data/spec/support/shared_examples/validate_email_contract.rb +25 -0
  149. data/spec/support/shared_examples/validate_name_contract.rb +19 -0
  150. data/spec/support/shared_examples/validate_password_confirmation_contract.rb +16 -0
  151. data/spec/support/shared_examples/validate_password_contract.rb +18 -0
  152. data/spec/support/shared_examples/validate_phone_contract.rb +25 -0
  153. data/spec/support/shared_examples/validate_stopwatch_contract.rb +32 -0
  154. data/system/providers/background_job.rb +6 -0
  155. metadata +87 -2
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ shared_examples "validate_name_contract" do |factory_name|
4
+ let(:min) { AuctionFunCore::Business::Configuration::MIN_NAME_LENGTH }
5
+ let(:max) { AuctionFunCore::Business::Configuration::MAX_NAME_LENGTH }
6
+ let(:factory) { Factory[factory_name] }
7
+
8
+ context "when the characters in the name are outside the allowed range" do
9
+ let(:attributes) { {name: "abc"} }
10
+
11
+ it "expect failure with error messages" do
12
+ expect(subject).to be_failure
13
+
14
+ expect(subject.errors[:name]).to include(
15
+ I18n.t("contracts.errors.custom.macro.name_format", min: min, max: max)
16
+ )
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ shared_examples "validate_password_confirmation_contract" do |factory_name|
4
+ let(:factory) { Factory[factory_name] }
5
+
6
+ context "when password characters are outside the allowed range" do
7
+ let(:attributes) { {password: "password", password_confirmation: "1234567"} }
8
+
9
+ it "expect failure with error messages" do
10
+ expect(contract).to be_failure
11
+ expect(contract.errors[:password_confirmation]).to include(
12
+ I18n.t("contracts.errors.custom.default.password_confirmation")
13
+ )
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ shared_examples "validate_password_contract" do |factory_name|
4
+ let(:min) { AuctionFunCore::Business::Configuration::MIN_PASSWORD_LENGTH }
5
+ let(:max) { AuctionFunCore::Business::Configuration::MAX_PASSWORD_LENGTH }
6
+ let(:factory) { Factory[factory_name] }
7
+
8
+ context "when password characters are outside the allowed range" do
9
+ let(:attributes) { {password: "123", password_confirmation: "123"} }
10
+
11
+ it "expect failure with error messages" do
12
+ expect(contract).to be_failure
13
+ expect(contract.errors[:password]).to include(
14
+ I18n.t("contracts.errors.custom.macro.password_format", min: min, max: max)
15
+ )
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ shared_examples "validate_phone_contract" do |factory_name|
4
+ let(:factory) { Factory[factory_name] }
5
+
6
+ context "when phone is in wrong format" do
7
+ let(:attributes) { {phone: "12345"} }
8
+
9
+ it "expect failure with error messages" do
10
+ expect(subject).to be_failure
11
+
12
+ expect(subject.errors[:phone]).to include(I18n.t("contracts.errors.custom.macro.phone_format"))
13
+ end
14
+ end
15
+
16
+ context "when phone is already exists on database" do
17
+ let(:attributes) { {phone: factory.phone} }
18
+
19
+ it "expect failure with error messages" do
20
+ expect(subject).to be_failure
21
+
22
+ expect(subject.errors[:phone]).to include(I18n.t("contracts.errors.custom.default.taken"))
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ shared_examples "validate_stopwatch_contract" do
4
+ let(:min) { AuctionFunCore::Business::Configuration::AUCTION_STOPWATCH_MIN_VALUE }
5
+ let(:max) { AuctionFunCore::Business::Configuration::AUCTION_STOPWATCH_MAX_VALUE }
6
+
7
+ context "when kind is penny and stopwatch is blank" do
8
+ let(:attributes) { {auction_id: auction.id, kind: auction.kind} }
9
+
10
+ it "expect failure with error message" do
11
+ expect(contract).to be_failure
12
+ expect(contract.errors[:stopwatch]).to include(I18n.t("contracts.errors.filled?"))
13
+ end
14
+ end
15
+
16
+ context "when kind is penny and stopwatch is not within the allowed range" do
17
+ let(:attributes) do
18
+ {
19
+ auction_id: auction.id,
20
+ kind: auction.kind,
21
+ stopwatch: max + 1
22
+ }
23
+ end
24
+
25
+ it "expect failure with error message" do
26
+ expect(contract).to be_failure
27
+ expect(contract.errors[:stopwatch]).to include(
28
+ I18n.t("contracts.errors.included_in?.arg.range", list_left: min, list_right: max)
29
+ )
30
+ end
31
+ end
32
+ end
@@ -8,22 +8,28 @@ AuctionFunCore::Application.register_provider(:background_job) do
8
8
 
9
9
  start do
10
10
  Sidekiq.configure_server do |config|
11
+ # Set up Sidekiq server configuration
11
12
  config.redis = {url: target[:settings].redis_url}
12
13
  config.logger = target[:settings].logger
13
14
  config.average_scheduled_poll_interval = 3
14
15
 
16
+ # Configure client middleware for uniqueness
15
17
  config.client_middleware do |chain|
16
18
  chain.add SidekiqUniqueJobs::Middleware::Client
17
19
  end
18
20
 
21
+ # Configure server middleware for uniqueness
19
22
  config.server_middleware do |chain|
20
23
  chain.add SidekiqUniqueJobs::Middleware::Server
21
24
  end
22
25
 
26
+ # Configure Sidekiq Unique Jobs for the server
23
27
  SidekiqUniqueJobs::Server.configure(config)
24
28
  end
25
29
 
30
+ # Configure client middleware for uniqueness
26
31
  Sidekiq.configure_client do |config|
32
+ # Set up Sidekiq client configuration
27
33
  config.redis = {url: target[:settings].redis_url}
28
34
 
29
35
  config.client_middleware do |chain|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auction_fun_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Pacheco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-22 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -312,11 +312,13 @@ files:
312
312
  - i18n/en-US/mail/application.en-US.yml
313
313
  - i18n/en-US/mail/auction_context/post_auction/participant.en-US.yml
314
314
  - i18n/en-US/mail/auction_context/post_auction/winner.en-US.yml
315
+ - i18n/en-US/mail/auction_context/pre_auction/auction_start_reminder.en-US.yml
315
316
  - i18n/en-US/mail/user_context/registration.en-US.yml
316
317
  - i18n/pt-BR/contracts/contracts.pt-BR.yml
317
318
  - i18n/pt-BR/mail/application.pt-BR.yml
318
319
  - i18n/pt-BR/mail/auction_context/post_auction/participant.pt-BR.yml
319
320
  - i18n/pt-BR/mail/auction_context/post_auction/winner.pt-BR.yml
321
+ - i18n/pt-BR/mail/auction_context/pre_auction/auction_start_reminder.pt-BR.yml
320
322
  - i18n/pt-BR/mail/user_context/registration.pt-BR.yml
321
323
  - lib/auction_fun_core.rb
322
324
  - lib/auction_fun_core/business/configuration.rb
@@ -333,6 +335,7 @@ files:
333
335
  - lib/auction_fun_core/contracts/auction_context/create_contract.rb
334
336
  - lib/auction_fun_core/contracts/auction_context/post_auction/participant_contract.rb
335
337
  - lib/auction_fun_core/contracts/auction_context/post_auction/winner_contract.rb
338
+ - lib/auction_fun_core/contracts/auction_context/pre_auction/auction_start_reminder_contract.rb
336
339
  - lib/auction_fun_core/contracts/auction_context/processor/finish/closed_contract.rb
337
340
  - lib/auction_fun_core/contracts/auction_context/processor/finish/penny_contract.rb
338
341
  - lib/auction_fun_core/contracts/auction_context/processor/finish/standard_contract.rb
@@ -357,6 +360,7 @@ files:
357
360
  - lib/auction_fun_core/operations/auction_context/create_operation.rb
358
361
  - lib/auction_fun_core/operations/auction_context/post_auction/participant_operation.rb
359
362
  - lib/auction_fun_core/operations/auction_context/post_auction/winner_operation.rb
363
+ - lib/auction_fun_core/operations/auction_context/pre_auction/auction_start_reminder_operation.rb
360
364
  - lib/auction_fun_core/operations/auction_context/processor/finish/closed_operation.rb
361
365
  - lib/auction_fun_core/operations/auction_context/processor/finish/penny_operation.rb
362
366
  - lib/auction_fun_core/operations/auction_context/processor/finish/standard_operation.rb
@@ -383,8 +387,10 @@ files:
383
387
  - lib/auction_fun_core/repos/user_context/user_repository.rb
384
388
  - lib/auction_fun_core/services/mail/auction_context/post_auction/participant_mailer.rb
385
389
  - lib/auction_fun_core/services/mail/auction_context/post_auction/winner_mailer.rb
390
+ - lib/auction_fun_core/services/mail/auction_context/pre_auction/auction_start_reminder_mailer.rb
386
391
  - lib/auction_fun_core/services/mail/templates/auction_context/post_auction/participant.html.erb
387
392
  - lib/auction_fun_core/services/mail/templates/auction_context/post_auction/winner.html.erb
393
+ - lib/auction_fun_core/services/mail/templates/auction_context/pre_auction/auction_start_reminder.html.erb
388
394
  - lib/auction_fun_core/services/mail/templates/layout.html.erb
389
395
  - lib/auction_fun_core/services/mail/templates/user_context/registration.html.erb
390
396
  - lib/auction_fun_core/services/mail/user_context/registration_mailer.rb
@@ -392,14 +398,93 @@ files:
392
398
  - lib/auction_fun_core/workers/application_job.rb
393
399
  - lib/auction_fun_core/workers/operations/auction_context/post_auction/participant_operation_job.rb
394
400
  - lib/auction_fun_core/workers/operations/auction_context/post_auction/winner_operation_job.rb
401
+ - lib/auction_fun_core/workers/operations/auction_context/pre_auction/auction_start_reminder_operation_job.rb
395
402
  - lib/auction_fun_core/workers/operations/auction_context/processor/finish/closed_operation_job.rb
396
403
  - lib/auction_fun_core/workers/operations/auction_context/processor/finish/penny_operation_job.rb
397
404
  - lib/auction_fun_core/workers/operations/auction_context/processor/finish/standard_operation_job.rb
398
405
  - lib/auction_fun_core/workers/operations/auction_context/processor/start_operation_job.rb
399
406
  - lib/auction_fun_core/workers/services/mail/auction_context/post_auction/participant_mailer_job.rb
400
407
  - lib/auction_fun_core/workers/services/mail/auction_context/post_auction/winner_mailer_job.rb
408
+ - lib/auction_fun_core/workers/services/mail/auction_context/pre_auction/auction_start_reminder_mailer_job.rb
401
409
  - lib/auction_fun_core/workers/services/mail/user_context/registration_mailer_job.rb
402
410
  - lib/tasks/database.rake
411
+ - spec/auction_fun_core/contracts/auction_context/create_contract_spec.rb
412
+ - spec/auction_fun_core/contracts/auction_context/post_auction/participant_contract_spec.rb
413
+ - spec/auction_fun_core/contracts/auction_context/post_auction/winner_contract_spec.rb
414
+ - spec/auction_fun_core/contracts/auction_context/pre_auction/auction_start_reminder_contract_spec.rb
415
+ - spec/auction_fun_core/contracts/auction_context/processor/finish/closed_contract_spec.rb
416
+ - spec/auction_fun_core/contracts/auction_context/processor/finish/penny_contract_spec.rb
417
+ - spec/auction_fun_core/contracts/auction_context/processor/finish/standard_contract_spec.rb
418
+ - spec/auction_fun_core/contracts/auction_context/processor/pause_contract_spec.rb
419
+ - spec/auction_fun_core/contracts/auction_context/processor/start_contract_spec.rb
420
+ - spec/auction_fun_core/contracts/auction_context/processor/unpause_contract_spec.rb
421
+ - spec/auction_fun_core/contracts/bid_context/create_bid_closed_contract_spec.rb
422
+ - spec/auction_fun_core/contracts/bid_context/create_bid_penny_contract_spec.rb
423
+ - spec/auction_fun_core/contracts/bid_context/create_bid_standard_contract_spec.rb
424
+ - spec/auction_fun_core/contracts/staff_context/authentication_contract_spec.rb
425
+ - spec/auction_fun_core/contracts/staff_context/registration_contract_spec.rb
426
+ - spec/auction_fun_core/contracts/user_context/authentication_contract_spec.rb
427
+ - spec/auction_fun_core/contracts/user_context/email_confirmation_contract_spec.rb
428
+ - spec/auction_fun_core/contracts/user_context/phone_confirmation_contract_spec.rb
429
+ - spec/auction_fun_core/contracts/user_context/registration_contract_spec.rb
430
+ - spec/auction_fun_core/entities/auction_spec.rb
431
+ - spec/auction_fun_core/entities/bid_spec.rb
432
+ - spec/auction_fun_core/entities/staff_spec.rb
433
+ - spec/auction_fun_core/entities/user_spec.rb
434
+ - spec/auction_fun_core/operations/auction_context/create_operation_spec.rb
435
+ - spec/auction_fun_core/operations/auction_context/post_auction/participant_operation_spec.rb
436
+ - spec/auction_fun_core/operations/auction_context/post_auction/winner_operation_spec.rb
437
+ - spec/auction_fun_core/operations/auction_context/pre_auction/auction_start_reminder_operation_spec.rb
438
+ - spec/auction_fun_core/operations/auction_context/processor/finish/closed_operation_spec.rb
439
+ - spec/auction_fun_core/operations/auction_context/processor/finish/penny_operation_spec.rb
440
+ - spec/auction_fun_core/operations/auction_context/processor/finish/standard_operation_spec.rb
441
+ - spec/auction_fun_core/operations/auction_context/processor/pause_operation_spec.rb
442
+ - spec/auction_fun_core/operations/auction_context/processor/start_operation_spec.rb
443
+ - spec/auction_fun_core/operations/auction_context/processor/unpause_operation_spec.rb
444
+ - spec/auction_fun_core/operations/bid_context/create_bid_closed_operation_spec.rb
445
+ - spec/auction_fun_core/operations/bid_context/create_bid_penny_operation_spec.rb
446
+ - spec/auction_fun_core/operations/bid_context/create_bid_standard_operation_spec.rb
447
+ - spec/auction_fun_core/operations/staff_context/authentication_operation_spec.rb
448
+ - spec/auction_fun_core/operations/staff_context/registration_operation_spec.rb
449
+ - spec/auction_fun_core/operations/user_context/authentication_operation_spec.rb
450
+ - spec/auction_fun_core/operations/user_context/email_confirmation_operation_spec.rb
451
+ - spec/auction_fun_core/operations/user_context/phone_confirmation_operation_spec.rb
452
+ - spec/auction_fun_core/operations/user_context/registration_operation_spec.rb
453
+ - spec/auction_fun_core/relations/auctions_spec.rb
454
+ - spec/auction_fun_core/repos/auction_context/auction_repository_spec.rb
455
+ - spec/auction_fun_core/repos/bid_context/bid_repository_spec.rb
456
+ - spec/auction_fun_core/repos/staff_context/staff_repository_spec.rb
457
+ - spec/auction_fun_core/repos/user_context/user_repository_spec.rb
458
+ - spec/auction_fun_core/services/mail/auction_context/post_auction/participant_mailer_spec.rb
459
+ - spec/auction_fun_core/services/mail/auction_context/post_auction/winner_mailer_spec.rb
460
+ - spec/auction_fun_core/services/mail/auction_context/pre_auction/auction_start_reminder_mailer_spec.rb
461
+ - spec/auction_fun_core/services/mail/user_context/registration_mailer_spec.rb
462
+ - spec/auction_fun_core/workers/operations/auction_context/post_auction/participation_operation_job_spec.rb
463
+ - spec/auction_fun_core/workers/operations/auction_context/post_auction/winner_operation_job_spec.rb
464
+ - spec/auction_fun_core/workers/operations/auction_context/pre_auction/auction_start_reminder_operation_job_spec.rb
465
+ - spec/auction_fun_core/workers/operations/auction_context/processor/finish/closed_operation_job_spec.rb
466
+ - spec/auction_fun_core/workers/operations/auction_context/processor/finish/penny_operation_job_spec.rb
467
+ - spec/auction_fun_core/workers/operations/auction_context/processor/finish/standard_operation_job_spec.rb
468
+ - spec/auction_fun_core/workers/operations/auction_context/processor/start_operation_job_spec.rb
469
+ - spec/auction_fun_core/workers/services/mail/auction_context/post_auction/participant_mailer_job_spec.rb
470
+ - spec/auction_fun_core/workers/services/mail/auction_context/post_auction/pre_auction/auction_start_reminder_mailer_job_spec.rb
471
+ - spec/auction_fun_core/workers/services/mail/auction_context/post_auction/winner_mailer_job_spec.rb
472
+ - spec/auction_fun_core/workers/services/mail/user_context/registration_mailer_job_spec.rb
473
+ - spec/auction_fun_core_spec.rb
474
+ - spec/spec_helper.rb
475
+ - spec/support/background_job.rb
476
+ - spec/support/factories/auctions.rb
477
+ - spec/support/factories/bids.rb
478
+ - spec/support/factories/staffs.rb
479
+ - spec/support/factories/users.rb
480
+ - spec/support/faker.rb
481
+ - spec/support/mail.rb
482
+ - spec/support/shared_examples/validate_email_contract.rb
483
+ - spec/support/shared_examples/validate_name_contract.rb
484
+ - spec/support/shared_examples/validate_password_confirmation_contract.rb
485
+ - spec/support/shared_examples/validate_password_contract.rb
486
+ - spec/support/shared_examples/validate_phone_contract.rb
487
+ - spec/support/shared_examples/validate_stopwatch_contract.rb
403
488
  - system/providers/background_job.rb
404
489
  - system/providers/core.rb
405
490
  - system/providers/db.rb