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 +4 -4
- data/CHANGELOG.md +9 -0
- data/projects/persistence/src/entity_attributes_crud_driver.rb +5 -2
- data/projects/persistence/src/persistence.rb +2 -0
- data/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: b8eba3fdf241f3d5a5d1d65eeefc6ccd39175e63c4c6d86ece37af0bfb1126d0
|
|
4
|
+
data.tar.gz: 3d398fc443f593da6c7e6348469e1d9fe500eb319e3e7859a57dc046b7b58009
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/version.rb
CHANGED