tcb 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77ac348140af6f18f4416932f320bc474f3131c14903c592cf83f352a02e1297
|
|
4
|
+
data.tar.gz: 4f5462a8425eb01612a3e6ffb3b89c8c848504db97d8a2fb913c7961abbc67b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2eed8f7a67fcef1a356262a854b707964a2d5eb15c910a5a508368fc602e7f0892742e0ff24035a26f7542ae9de14740288db7fe07655d7e13e25a444db8799e
|
|
7
|
+
data.tar.gz: d41fd603ec8b6cc729396ea7ac5b9b692bd983b080f59e8f1df23faab88976563bd460513ed0634d25fba6a3911f77e583e8508c0ce455997347ed25eef00e12
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.6.1] - 2026-05-06
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Rails generators now invoked with lowercase namespace: `rails g tcb:install`, `rails g tcb:domain`, `rails g tcb:event_store`
|
|
13
|
+
|
|
8
14
|
## [0.6.0] - 2026-04-24
|
|
9
15
|
|
|
10
16
|
### Added
|
data/README.md
CHANGED
|
@@ -550,7 +550,7 @@ TCB::EventStore::ActiveRecord.new
|
|
|
550
550
|
Generate migration and AR model:
|
|
551
551
|
|
|
552
552
|
```
|
|
553
|
-
bin/rails generate
|
|
553
|
+
bin/rails generate tcb:event_store orders
|
|
554
554
|
```
|
|
555
555
|
|
|
556
556
|
---
|
|
@@ -562,7 +562,7 @@ TCB includes generators to scaffold domain modules, command handlers, and migrat
|
|
|
562
562
|
### Install
|
|
563
563
|
|
|
564
564
|
```bash
|
|
565
|
-
rails generate
|
|
565
|
+
rails generate tcb:install
|
|
566
566
|
```
|
|
567
567
|
|
|
568
568
|
Creates `config/initializers/tcb.rb` with a minimal configuration template.
|
|
@@ -570,7 +570,7 @@ Creates `config/initializers/tcb.rb` with a minimal configuration template.
|
|
|
570
570
|
### Domain module with event store
|
|
571
571
|
|
|
572
572
|
```bash
|
|
573
|
-
rails generate
|
|
573
|
+
rails generate tcb:event_store orders place_order:order_id,customer cancel_order:order_id,reason
|
|
574
574
|
```
|
|
575
575
|
|
|
576
576
|
Generates:
|
|
@@ -582,7 +582,7 @@ Generates:
|
|
|
582
582
|
### Domain module without persistence (pub/sub only)
|
|
583
583
|
|
|
584
584
|
```bash
|
|
585
|
-
rails generate
|
|
585
|
+
rails generate tcb:domain notifications send_welcome_email:user_id,email send_verification_sms:user_id,phone
|
|
586
586
|
```
|
|
587
587
|
|
|
588
588
|
Generates:
|
|
@@ -5,7 +5,7 @@ require_relative "../shared/command_argument"
|
|
|
5
5
|
module TCB
|
|
6
6
|
module Generators
|
|
7
7
|
class DomainGenerator < Rails::Generators::Base
|
|
8
|
-
namespace "
|
|
8
|
+
namespace "tcb:domain"
|
|
9
9
|
source_root File.expand_path("templates", __dir__)
|
|
10
10
|
|
|
11
11
|
argument :module_name, type: :string
|
|
@@ -5,7 +5,7 @@ require_relative "../shared/command_argument"
|
|
|
5
5
|
module TCB
|
|
6
6
|
module Generators
|
|
7
7
|
class EventStoreGenerator < Rails::Generators::Base
|
|
8
|
-
namespace "
|
|
8
|
+
namespace "tcb:event_store"
|
|
9
9
|
source_root File.expand_path("templates", __dir__)
|
|
10
10
|
|
|
11
11
|
argument :module_name, type: :string
|
data/lib/tcb/version.rb
CHANGED