bemi-rails 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bemi/change_query_helpers.rb +3 -0
- data/lib/bemi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 034d1786960dc8bf127bed6990eda216051465f6bbebc1c945aeb2657877c70a
|
4
|
+
data.tar.gz: fa18ebcf1977a3806a87f184bd542766c56f26e9689d4c50dc017a55ac190d32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0846a99d796f74d54d4a0f4ae69107895ba1621e11f3ca33afddb5f598b23eee6375be68ef076a58295b4d3bf85abc3a5e38756c5c5570bc5c593b6d8f0f5f6
|
7
|
+
data.tar.gz: 0aed91366aa8245cf97f0d87043c4c7b0686c45e8f661f6a7c3fe658ac49dc36cf65656073a37d70c14a8bb0361c3d6c978b33ae1d44e839553aa043d7093ea1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
#### [v0.4.0](https://github.com/BemiHQ/bemi-rails/compare/v0.3.0...v0.4.0) - 2024-04-26
|
2
|
+
|
3
|
+
- Allow filtering changes by values with negative matching
|
4
|
+
|
1
5
|
#### [v0.3.0](https://github.com/BemiHQ/bemi-rails/compare/v0.2.1...v0.3.0) - 2024-04-26
|
2
6
|
|
3
7
|
- Allow querying changes by a record
|
@@ -7,8 +7,11 @@ module Bemi::ChangeQueryHelpers
|
|
7
7
|
|
8
8
|
included do
|
9
9
|
scope :before, ->(hash) { where('before @> ?', hash.to_json) }
|
10
|
+
scope :before_not, ->(hash) { where.not('before @> ?', hash.to_json) }
|
10
11
|
scope :after, ->(hash) { where('after @> ?', hash.to_json) }
|
12
|
+
scope :after_not, ->(hash) { where.not('after @> ?', hash.to_json) }
|
11
13
|
scope :context, ->(hash) { where('context @> ?', hash.to_json) }
|
14
|
+
scope :context_not, ->(hash) { where.not('context @> ?', hash.to_json) }
|
12
15
|
|
13
16
|
scope :created, -> { where(operation: 'CREATE') }
|
14
17
|
scope :updated, -> { where(operation: 'UPDATE') }
|
data/lib/bemi/version.rb
CHANGED