foobara 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6975f14259f6fa733c19dc1877d1868ef90b2f72a6408ba49cf1d0706ca69fe
4
- data.tar.gz: ab1c0f032c8f653c2b6f5d2b24aa1eded6a5cec1ec6994ee905e90d87edcb157
3
+ metadata.gz: b8eba3fdf241f3d5a5d1d65eeefc6ccd39175e63c4c6d86ece37af0bfb1126d0
4
+ data.tar.gz: 3d398fc443f593da6c7e6348469e1d9fe500eb319e3e7859a57dc046b7b58009
5
5
  SHA512:
6
- metadata.gz: ff85faf59d67f5d1cfeab25f3520633df1747025aa760428af91c0b6e100893ff722f9a5dcac86246009842a0b2a0930ae18be26baabedaba42b46aa94f36472
7
- data.tar.gz: 13ca3101da2f61f2d181a10a751e5e299722195cfdf1057a4216cf4bbf592728a2ec0cbbbfdc315827e74b6d579ba6e57fc5d31bdd7ab84323c48cffd6ba238b
6
+ metadata.gz: 01bf11b7499124317f6e941f0d0013eec1d0ccdc6132ed97e67b7b73a8a29b6820bb315fbc0c79dee7416cfe91ae7cb9c56c8b70ad197577981ec0288f39f64e
7
+ data.tar.gz: fff2fc836bada39c4302ad902462345bb7fcded4f2e74976ee862b24e1fbce66655fcc5f8171b3c2bf8b4d75564f772eb5afa50cdd90d452bb064002660c5753
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [0.2.3] - 2025-10-22
2
+
3
+ - Fix Persistence.register_base bug
4
+
5
+ # [0.2.2] - 2025-10-21
6
+
7
+ - Add a connect: option to EntityAttributesCrudDriver#initialize to allow skipping connecting by
8
+ default in cases where a more complex connection algorithm is needed, like pooling
9
+
1
10
  # [0.2.1] - 2025-10-21
2
11
 
3
12
  - Rename EntityBase#initialize prefix: to table_prefix: to avoid collision with redis-crud-driver
@@ -10,10 +10,13 @@ module Foobara
10
10
  end
11
11
  end
12
12
 
13
- def initialize(connection_or_credentials = nil, table_prefix: nil)
13
+ def initialize(connection_or_credentials = nil, table_prefix: nil, connect: true)
14
14
  self.table_prefix = table_prefix
15
- self.raw_connection = open_connection(connection_or_credentials)
16
15
  self.tables = {}
16
+
17
+ if connect
18
+ self.raw_connection = open_connection(connection_or_credentials)
19
+ end
17
20
  end
18
21
 
19
22
  # Default behavior is for technologies that don't have a connection concept
@@ -173,6 +173,8 @@ module Foobara
173
173
  # :nocov:
174
174
  in [] | [Array] | [Array, Hash]
175
175
  rest
176
+ in Array
177
+ [rest]
176
178
  end
177
179
 
178
180
  crud_driver = crud_driver_class.new(*crud_args, **opts, table_prefix:)
data/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Foobara
2
2
  module Version
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.2.3".freeze
4
4
  MINIMUM_RUBY_VERSION = ">= 3.4.0".freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi