Skip to content

Commit

Permalink
Merge pull request #57 from zilverline/update_sequent
Browse files Browse the repository at this point in the history
Update sequent to version 7
  • Loading branch information
lvonk authored Nov 7, 2023
2 parents 8e985a4 + 0d3f845 commit 756b5ca
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 30 deletions.
12 changes: 6 additions & 6 deletions building-a-web-application/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GIT
remote: https://github.com/zilverline/sequent.git
revision: 4387610ef7fc7dbaa0ffdb724d968fdb0d5e19ae
revision: 498812fb86edd319310be5b6ea2d53719e81cf14
specs:
sequent (6.0.2)
activemodel (>= 5.0, < 7.1)
activerecord (>= 5.0, < 7.1)
sequent (7.0.1)
activemodel (>= 5.0, < 7.2)
activerecord (>= 5.0, < 7.2)
bcrypt (~> 3.1)
i18n
oj (~> 3)
Expand Down Expand Up @@ -46,13 +46,13 @@ GEM
ruby2_keywords (~> 0.0.1)
oj (3.16.1)
parallel (1.23.0)
parser (3.2.2.3)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
pg (1.5.4)
postgresql_cursor (0.6.8)
activerecord (>= 6.0)
racc (1.7.1)
racc (1.7.3)
rack (2.2.8)
rack-protection (3.0.4)
rack
Expand Down
4 changes: 2 additions & 2 deletions building-a-web-application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ To create the test database:

```
cd building-a-web-application
RACK_ENV=test bundle exec rake sequent:db:create
SEQUENT_ENV=test bundle exec rake sequent:db:create
```

And running the spec:

```
RACK_ENV=test bundle exec rspec
SEQUENT_ENV=test bundle exec rspec
```
11 changes: 1 addition & 10 deletions building-a-web-application/config/initializers/sequent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,5 @@

Sequent.configure do |config|
config.migrations_class_name = 'Migrations'

config.command_handlers = [
PostCommandHandler,
AuthorCommandHandler,
].map(&:new)

config.event_handlers = [
PostProjector,
AuthorProjector
].map(&:new)
config.enable_autoregistration = true
end
8 changes: 4 additions & 4 deletions rails-blog/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GIT
remote: https://github.com/zilverline/sequent.git
revision: 4387610ef7fc7dbaa0ffdb724d968fdb0d5e19ae
revision: 498812fb86edd319310be5b6ea2d53719e81cf14
specs:
sequent (6.0.2)
activemodel (>= 5.0, < 7.1)
activerecord (>= 5.0, < 7.1)
sequent (7.0.1)
activemodel (>= 5.0, < 7.2)
activerecord (>= 5.0, < 7.2)
bcrypt (~> 3.1)
i18n
oj (~> 3)
Expand Down
9 changes: 1 addition & 8 deletions rails-blog/config/initializers/sequent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
Rails.application.reloader.to_prepare do
Sequent.configure do |config|
config.migrations_class_name = 'SequentMigrations'

config.command_handlers = [
Post::PostCommandHandler.new,
]

config.event_handlers = [
Post::PostProjector.new,
]
config.enable_autoregistration = true

config.logger = Logger.new(STDOUT)

Expand Down

0 comments on commit 756b5ca

Please sign in to comment.