foobara 0.2.1 → 0.2.2

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: 98a887c0ee93ae63163439a5da9df03c3f450672723f1e32ac124ff564564f09
4
+ data.tar.gz: 119f2e70b854d56ff961a055eb4ca779547e13a8ed1db68e306e4b6c9a37fa6b
5
5
  SHA512:
6
- metadata.gz: ff85faf59d67f5d1cfeab25f3520633df1747025aa760428af91c0b6e100893ff722f9a5dcac86246009842a0b2a0930ae18be26baabedaba42b46aa94f36472
7
- data.tar.gz: 13ca3101da2f61f2d181a10a751e5e299722195cfdf1057a4216cf4bbf592728a2ec0cbbbfdc315827e74b6d579ba6e57fc5d31bdd7ab84323c48cffd6ba238b
6
+ metadata.gz: f315b9474cff424bb466deb81ddfe59ce64e640677f660e0020b837d61097654c2732eafdd754b2cf5d7e91c552cf3fa3869263aefc648462258f50e1c9f5c3b
7
+ data.tar.gz: 220f4dc902f9f478d083c22b89d54a4c886eb7e3c9e1e439b3ddd8134277b77571b05c47968cc884e038a7fbb7287502a77f3fda4fb39e1923c5e6e03ad6f6fa
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # [0.2.2] - 2025-10-21
2
+
3
+ - Add a connect: option to EntityAttributesCrudDriver#initialize to allow skipping connecting by
4
+ default in cases where a more complex connection algorithm is needed, like pooling
5
+
1
6
  # [0.2.1] - 2025-10-21
2
7
 
3
8
  - 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
@@ -1,6 +1,6 @@
1
1
  module Foobara
2
2
  module Version
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.2.2".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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi