event_sourcery 0.23.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61fe1c1886a98c249f210f252778de57849d7da3a2c1aafe7f503be3193399d4
4
- data.tar.gz: 8b3da0d26b96b02f4f7230c74891f6e3cab1cf46062559d00f4b9405f00a49bd
3
+ metadata.gz: c501d64a75ded41a08829c20ccf9bf9368c9227b7381023d7d2fe0d502ee8003
4
+ data.tar.gz: 22eb6a9e837155b0315377873e7bb17cf6dadb75ef402c78a47ae9ae1c71e5ba
5
5
  SHA512:
6
- metadata.gz: 53ad37d18c358351946bec8901ca83359b937097b2fdd55bdf63ad630acdb5e201f786791af0ab2d4d009ac3a836da6cad128f049858eeb52f72767ccbefde52
7
- data.tar.gz: 350b132bcaef85bd0a8f0bd4069bd48aae6a2111f2269a3cfa8b0886a38799a7c6228e88e863383bf47d49609e2e057db734193d02665ba970042fff3051cc22
6
+ metadata.gz: a3251f8d9966e191485a24c582ab616c39d2383caa551ea0efcc988eacf08c52104cd0b7a1121c210dbde2975d3becc4f210b93a964bf08a3fc46accfbf0109f
7
+ data.tar.gz: c621abddc5fa626fbc0fa02d0be371d25f18ed97d78f4f43c29f9fc6ffa460e6f698f0eccf55f1b9d61a2e0dddb8ec2036905b8e67c876fc9fe7962dfc73783f
data/CHANGELOG.md CHANGED
@@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.0] - 2023-11-29
11
+
12
+ ### Removed
13
+ - Removed Event.persisted? as it was potentially misleading ([#235])
14
+
15
+ [#235]: https://github.com/envato/event_sourcery/pull/235
16
+
17
+ ## [0.24.0] - 2021-11-18
18
+
19
+ ### Added
20
+
21
+ - Test against Ruby 3.0 in the CI build ([#229]).
22
+
23
+ ### Changed
24
+
25
+ - Use GitHub Actions for the CI build instead of Travis CI ([#228]).
26
+ - This project now uses `main` as its default branch ([#230]).
27
+ - Documentation updated to refer to `main` and links updated accordingly.
28
+
29
+ ### Removed
30
+ - Remove Ruby 2.3, 2.4 and 2.5 from the CI test matrix ([#232]).
31
+
32
+ [#228]: https://github.com/envato/event_sourcery/pull/228
33
+ [#229]: https://github.com/envato/event_sourcery/pull/229
34
+ [#230]: https://github.com/envato/event_sourcery/pull/230
35
+ [#232]: https://github.com/envato/event_sourcery/pull/232
36
+
10
37
  ## [0.23.1] - 2020-10-02
11
38
  ### Fixed
12
39
  - Upgrade development dependency Rake to version 13. This resolves
@@ -234,7 +261,9 @@ moving all Postgres related code into a separate gem.
234
261
  - EventSourcery no longer depends on Virtus.
235
262
  - `Command` and `CommandHandler` have been removed.
236
263
 
237
- [Unreleased]: https://github.com/envato/event_sourcery/compare/v0.23.1...HEAD
264
+ [Unreleased]: https://github.com/envato/event_sourcery/compare/v0.24.0...HEAD
265
+ [1.0.0]: https://github.com/envato/event_sourcery/compare/v0.24.0...v1.0.0
266
+ [0.24.0]: https://github.com/envato/event_sourcery/compare/v0.23.1...v0.24.0
238
267
  [0.23.1]: https://github.com/envato/event_sourcery/compare/v0.23.0...v0.23.1
239
268
  [0.23.0]: https://github.com/envato/event_sourcery/compare/v0.22.0...v0.23.0
240
269
  [0.22.0]: https://github.com/envato/event_sourcery/compare/v0.21.0...v0.22.0
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # EventSourcery
2
2
 
3
- [![Build Status](https://travis-ci.org/envato/event_sourcery.svg?branch=master)](https://travis-ci.org/envato/event_sourcery)
3
+ [![Build Status](https://github.com/envato/event_sourcery/workflows/tests/badge.svg?branch=main)](https://github.com/envato/event_sourcery/actions?query=workflow%3Atests+branch%3Amain)
4
4
 
5
5
  A framework for building event sourced, CQRS applications.
6
6
 
@@ -34,9 +34,9 @@ A framework for building event sourced, CQRS applications.
34
34
 
35
35
  ## Development Status
36
36
 
37
- EventSourcery is currently being used in production by multiple apps but we
38
- haven't finalized the API yet and things are still moving rapidly. Until we
39
- release a 1.0 things may change without first being deprecated.
37
+ [![Build Status](https://github.com/envato/event_sourcery/workflows/tests/badge.svg?branch=main)](https://github.com/envato/event_sourcery/actions?query=branch%3Amain)
38
+
39
+ Event Sourcery is in production use at [Envato](http://envato.com).
40
40
 
41
41
  ## Goals
42
42
 
@@ -105,7 +105,7 @@ To release a new version:
105
105
 
106
106
  1. Update the version number in `lib/event_sourcery/version.rb`
107
107
  2. Add the new version with release notes to CHANGELOG.md
108
- 3. Get these changes onto master via the normal PR process
108
+ 3. Get these changes onto main via the normal PR process
109
109
  4. Run `bundle exec rake release`, this will create a git tag for the
110
110
  version, push tags up to GitHub, and package the code in a `.gem` file.
111
111
 
@@ -218,7 +218,7 @@ The event store is a persistent store of events.
218
218
 
219
219
  EventSourcery currently supports a Postgres-based event store via the [event_sourcery-postgres gem](https://github.com/envato/event_sourcery-postgres).
220
220
 
221
- For more information about the `EventStore` API refer to [the postgres event store](https://github.com/envato/event_sourcery-postgres/blob/master/lib/event_sourcery/postgres/event_store.rb) or the [in memory event store in this repo](lib/event_sourcery/memory/event_store.rb)
221
+ For more information about the `EventStore` API refer to [the postgres event store](https://github.com/envato/event_sourcery-postgres/blob/HEAD/lib/event_sourcery/postgres/event_store.rb) or the [in memory event store in this repo](lib/event_sourcery/memory/event_store.rb)
222
222
 
223
223
  #### Storing Events
224
224
 
@@ -294,7 +294,7 @@ Reactors can be used to build [process managers or sagas](https://msdn.microsoft
294
294
 
295
295
  #### Running Multiple ESPs
296
296
 
297
- An EventSourcery application will typically have multiple ESPs running. EventSourcery provides a class called [ESPRunner](lib/event_sourcery/event_processing/esp_runner.rb) which can be used to run ESPs. It runs each ESP in a forked child process so each ESP can process the event store independently. You can find an example in [event_sourcery_todo_app](https://github.com/envato/event_sourcery_todo_app/blob/master/Rakefile).
297
+ An EventSourcery application will typically have multiple ESPs running. EventSourcery provides a class called [ESPRunner](lib/event_sourcery/event_processing/esp_runner.rb) which can be used to run ESPs. It runs each ESP in a forked child process so each ESP can process the event store independently. You can find an example in [event_sourcery_todo_app](https://github.com/envato/event_sourcery_todo_app/blob/HEAD/Rakefile).
298
298
 
299
299
  Note that you may instead choose to run each ESP in their own process directly. The coordination of this is not currently provided by EventSourcery.
300
300
 
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = 'https://github.com/envato/event_sourcery'
15
15
  spec.metadata = {
16
16
  'bug_tracker_uri' => 'https://github.com/envato/event_sourcery/issues',
17
- 'changelog_uri' => 'https://github.com/envato/event_sourcery/blob/master/CHANGELOG.md',
17
+ 'changelog_uri' => 'https://github.com/envato/event_sourcery/blob/HEAD/CHANGELOG.md',
18
18
  'source_code_uri' => 'https://github.com/envato/event_sourcery',
19
19
  }
20
20
 
@@ -3,7 +3,7 @@ module EventSourcery
3
3
  # EventSourcery::AggregateRoot provides a foundation for writing your own aggregate root classes.
4
4
  # You can use it by including it in your classes, as show in the example code.
5
5
  #
6
- # Excerpt from {https://github.com/envato/event_sourcery/blob/master/docs/core-concepts.md EventSourcery Core Concepts} on Aggregates follows:
6
+ # Excerpt from {https://github.com/envato/event_sourcery/blob/HEAD/docs/core-concepts.md EventSourcery Core Concepts} on Aggregates follows:
7
7
  # === Aggregates and Command Handling
8
8
  #
9
9
  # An aggregate is a cluster of domain objects that can be treated as a single unit.
@@ -18,7 +18,7 @@ module EventSourcery
18
18
  # A typical EventSourcery application will have one or more aggregate roots with multiple commands.
19
19
  #
20
20
  # The following partial example is taken from the EventSourceryTodoApp.
21
- # Refer a more complete example {https://github.com/envato/event_sourcery_todo_app/blob/master/app/aggregates/todo.rb here}.
21
+ # Refer a more complete example {https://github.com/envato/event_sourcery_todo_app/blob/HEAD/app/aggregates/todo.rb here}.
22
22
  #
23
23
  # @example
24
24
  # module EventSourceryTodoApp
@@ -95,11 +95,6 @@ module EventSourcery
95
95
  @causation_id = causation_id
96
96
  end
97
97
 
98
- # Is this event persisted?
99
- def persisted?
100
- !id.nil?
101
- end
102
-
103
98
  def hash
104
99
  [self.class, uuid].hash
105
100
  end
@@ -1,4 +1,4 @@
1
1
  module EventSourcery
2
2
  # Defines the version
3
- VERSION = '0.23.1'.freeze
3
+ VERSION = '1.0.0'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_sourcery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Envato
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2023-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -127,7 +127,7 @@ homepage: https://github.com/envato/event_sourcery
127
127
  licenses: []
128
128
  metadata:
129
129
  bug_tracker_uri: https://github.com/envato/event_sourcery/issues
130
- changelog_uri: https://github.com/envato/event_sourcery/blob/master/CHANGELOG.md
130
+ changelog_uri: https://github.com/envato/event_sourcery/blob/HEAD/CHANGELOG.md
131
131
  source_code_uri: https://github.com/envato/event_sourcery
132
132
  post_install_message:
133
133
  rdoc_options: []
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.1.4
147
+ rubygems_version: 3.3.7
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Event Sourcing Library