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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a06ff1246ab3897a88169b8cad1bc69b1558bf6bb0d00d88408a88c6685fca3c
4
- data.tar.gz: 52a82309d53e22acc15f374d152fbf473f4011a0d3c1a20d713e1060e418a470
3
+ metadata.gz: 034d1786960dc8bf127bed6990eda216051465f6bbebc1c945aeb2657877c70a
4
+ data.tar.gz: fa18ebcf1977a3806a87f184bd542766c56f26e9689d4c50dc017a55ac190d32
5
5
  SHA512:
6
- metadata.gz: cd7cbe37593d41d81ddaa9e36eb36518ee0c431b96f8ecdadd4fe6ef1d13bb8eaacdd81762aa0d00b949183e215fdcc6cb2a1e8c9616e9d65d6ada156b1847ef
7
- data.tar.gz: 79cbc5dcafbe7cc3c6d26e68551031a70a03e12cd636e02edb122014a0e3449c87a233f94fd653cdb4ff577b0ac33fd7bb37b24dc9e863cb507df29a1cb986e8
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Bemi
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bemi-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - exAspArk