pg_eventstore 0.5.0 → 0.5.3

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: e1716f5a502b55d670c94cd1950f03dfa1e307050a665435840004e1eb6e2158
4
- data.tar.gz: d76b116150c351e00fa72b88c03472dbe987140c88b00e1211e81e7eb580a8cb
3
+ metadata.gz: 9ff6744fcbb7387086608ace4a5321be8b43c9ce8aa849844c1e561f643d10f2
4
+ data.tar.gz: 4f86667aca4204f3f299c2ef65789d4f95f9375c1f92a4fca2944e521e1b7301
5
5
  SHA512:
6
- metadata.gz: 131c82d96b36d105a8b5f90829864ceca96209a5dfd09ed56b27e55f7f6dc755f30fffc10c837f62017ee557a7611518f5550b43d21af00112399e7f0fe3ede1
7
- data.tar.gz: ce52feba0bee2e4737a9e8edae5fa880ca1d66cd15e07045bd6bd965713a7f5aed0370e119d3edf63760340f369c18c242555ae0ef0d3c94cec9447791d39ec0
6
+ metadata.gz: 349e2df7cefbf8b2974db1483aa5f8bb7ae48e76060a9ea5cf298f99c1a7b69ca4c9a4bb5152a93db247f4c50693260098e655bbaf131b39ba08e7811b8dc660
7
+ data.tar.gz: 2ec05356d0d7430ff8cfdd9a94ea19e2b9f272c091cc6a6dae3baa7d85a1c07e498d39572e1d98a074bf760e75f2b9cdb84b3c536a634d9b905ee69d8e2a13b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.3] - 2024-02-07
4
+
5
+ - Fix `pg_eventstore:drop` rake task
6
+
7
+ ## [0.5.2] - 2024-02-06
8
+
9
+ - Improve speed of `PgEventstore::Stream#eql?` a bit
10
+
11
+ ## [0.5.1] - 2024-02-06
12
+
13
+ - Fix `PgEventstore::Stream` to be properly recognizable inside Hash
14
+
3
15
  ## [0.5.0] - 2024-02-05
4
16
 
5
17
  - Fix event class resolving when providing `resolve_link_tos: true` option
@@ -64,6 +64,19 @@ module PgEventstore
64
64
  deconstruct_keys(nil)
65
65
  end
66
66
 
67
+ # @return [Integer]
68
+ def hash
69
+ to_hash.hash
70
+ end
71
+
72
+ # @param another [Object]
73
+ # @return [Boolean]
74
+ def eql?(another)
75
+ return false unless another.is_a?(Stream)
76
+
77
+ hash == another.hash
78
+ end
79
+
67
80
  def ==(other_stream)
68
81
  return false unless other_stream.is_a?(Stream)
69
82
 
@@ -59,10 +59,10 @@ namespace :pg_eventstore do
59
59
  DROP TABLE IF EXISTS public.streams;
60
60
  DROP TABLE IF EXISTS public.event_types;
61
61
  DROP TABLE IF EXISTS public.migrations;
62
- DROP TABLE IF EXISTS public.subscriptions_set;
63
- DROP TABLE IF EXISTS public.subscriptions;
64
62
  DROP TABLE IF EXISTS public.subscription_commands;
65
63
  DROP TABLE IF EXISTS public.subscriptions_set_commands;
64
+ DROP TABLE IF EXISTS public.subscriptions_set;
65
+ DROP TABLE IF EXISTS public.subscriptions;
66
66
  DROP EXTENSION IF EXISTS "uuid-ossp";
67
67
  DROP EXTENSION IF EXISTS pgcrypto;
68
68
  SQL
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgEventstore
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_eventstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Dzyzenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-05 00:00:00.000000000 Z
11
+ date: 2024-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg