ree_lib 1.0.28 → 1.0.29

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: 1dee10604487127cc63af20d01924626af8cdd4e5559a1b8716d2065f2ef0c95
4
- data.tar.gz: 742e3d4ec4990eb9989cf904e7fb3eb5ed4eb6d06e5c3791a3188f1ec22cc7b5
3
+ metadata.gz: 84e4aade5b4eaae42f95c7664db6dd35ea318caf734d2890482d8e6d8fec060a
4
+ data.tar.gz: 65969441395458b1520c85e1f71dc610e8d2787a1c2cdcc493477eff93c0fa9a
5
5
  SHA512:
6
- metadata.gz: 54aa51badb91b3b3dba8ff6429d3f219bb17e099fb22b0202b6a8a72a65ab0425c56d5237df5fb7a27b8622db2a3f7b453162a6a7d2fc4681acb5c4bda2f840b
7
- data.tar.gz: 75729a0e3b80a7e57e18ba4a3c45a41a96d31dab16868e168e4a31e564166f32b2783ee16c0f4e27412c4edb56d01795875ca5e4d153159d68d71fa961aa3c2e
6
+ metadata.gz: a486a292e460edfd1ffb3304d7168ae8f5c9c615c6ae2b32dce08fa661f76f081b9082faa35b5077b43dc28fa0aa39dfb9eb7917fada4736e94cf7c0bbbc2260
7
+ data.tar.gz: 6582341e1519c1e06261d1c1e8faa85106e26c12ea4afe7f2a6788fcbf5d19f2c14c39e32b3f29e4ffa7c1bceba052608cbc5d9fdd39245ca09dbcf031dcd12b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ree_lib (1.0.28)
4
+ ree_lib (1.0.29)
5
5
  binding_of_caller (~> 1.0.0)
6
6
  i18n (~> 1.12.0)
7
7
  loofah (~> 2.18.0)
@@ -22,7 +22,7 @@ GEM
22
22
  msgpack (~> 1.2)
23
23
  commander (4.6.0)
24
24
  highline (~> 2.0.0)
25
- concurrent-ruby (1.1.10)
25
+ concurrent-ruby (1.2.0)
26
26
  crack (0.4.5)
27
27
  rexml
28
28
  crass (1.0.6)
@@ -36,9 +36,9 @@ GEM
36
36
  crass (~> 1.0.2)
37
37
  nokogiri (>= 1.5.9)
38
38
  msgpack (1.6.0)
39
- nokogiri (1.13.10-x86_64-darwin)
39
+ nokogiri (1.14.0-x86_64-darwin)
40
40
  racc (~> 1.4)
41
- nokogiri (1.13.10-x86_64-linux)
41
+ nokogiri (1.14.0-x86_64-linux)
42
42
  racc (~> 1.4)
43
43
  oj (3.13.23)
44
44
  pg (1.4.5)
@@ -46,7 +46,7 @@ GEM
46
46
  racc (1.6.2)
47
47
  rainbow (3.1.1)
48
48
  rake (13.0.6)
49
- ree (1.0.14)
49
+ ree (1.0.18)
50
50
  commander (~> 4.6.0)
51
51
  rexml (3.2.5)
52
52
  rollbar (3.3.3)
@@ -66,7 +66,7 @@ GEM
66
66
  sequel (5.58.0)
67
67
  sqlite3 (1.4.4)
68
68
  timecop (0.9.6)
69
- tzinfo (2.0.5)
69
+ tzinfo (2.0.6)
70
70
  concurrent-ruby (~> 1.0)
71
71
  webmock (3.18.1)
72
72
  addressable (>= 2.8.0)
@@ -25,6 +25,7 @@ class ReeDao::BuildPgConnection
25
25
  sslrootcert?: String,
26
26
  search_path?: String,
27
27
  use_iso_date_format?: Bool,
28
+ max_connections?: Integer,
28
29
  },
29
30
  Ksplat[
30
31
  RestKeys => Any # inherited from `build_connection` opts
@@ -13,6 +13,7 @@ class ReeDao::BuildSqliteConnection
13
13
  database: String,
14
14
  readonly?: Bool,
15
15
  timeout?: Integer,
16
+ max_connections?: Integer,
16
17
  },
17
18
  Ksplat[
18
19
  RestKeys => Any # inherited from `build_connection` opts
@@ -16,7 +16,7 @@
16
16
  "args": [
17
17
  {
18
18
  "arg": "conn_opts",
19
- "type": "{:conn_str? => String, :adapter => String, :database? => String, :encoding? => String, :user? => String, :password? => String, :host? => String, :port? => String, :convert_infinite_timestamps? => Or[string, nil, float], :connect_timeout? => Integer, :driver_options? => Hash, :notice_receiver? => Proc, :sslmode? => Or[disable, allow, prefer, require, verify-ca, verify-full...], :sslrootcert? => String, :search_path? => String, :use_iso_date_format? => Bool}"
19
+ "type": "{:conn_str? => String, :adapter => String, :database? => String, :encoding? => String, :user? => String, :password? => String, :host? => String, :port? => String, :convert_infinite_timestamps? => Or[string, nil, float], :connect_timeout? => Integer, :driver_options? => Hash, :notice_receiver? => Proc, :sslmode? => Or[disable, allow, prefer, require, verify-ca, verify-full...], :sslrootcert? => String, :search_path? => String, :use_iso_date_format? => Bool, :max_connections? => Integer}"
20
20
  },
21
21
  {
22
22
  "arg": "opts",
@@ -16,7 +16,7 @@
16
16
  "args": [
17
17
  {
18
18
  "arg": "conn_opts",
19
- "type": "{:database => String, :readonly? => Bool, :timeout? => Integer}"
19
+ "type": "{:database => String, :readonly? => Bool, :timeout? => Integer, :max_connections? => Integer}"
20
20
  },
21
21
  {
22
22
  "arg": "opts",
@@ -0,0 +1,10 @@
1
+ package_require('ree_dao')
2
+
3
+ RSpec.describe :build_sqlite_connection do
4
+ link :build_sqlite_connection, from: :ree_dao
5
+
6
+ it {
7
+ db = build_sqlite_connection({database: 'sqlite_db', max_connections: 2})
8
+ expect(db.pool.max_size).to eq 2
9
+ }
10
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReeLib
4
- VERSION = "1.0.28"
4
+ VERSION = "1.0.29"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ree_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.28
4
+ version: 1.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-10 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ree
@@ -260,6 +260,7 @@ files:
260
260
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/one_to_one.schema.json
261
261
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/persist_assoc.schema.json
262
262
  - lib/ree_lib/packages/ree_dao/spec/package_schema_spec.rb
263
+ - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/build_sqlite_connection/max_connections_spec.rb
263
264
  - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/build_sqlite_connection_spec.rb
264
265
  - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/one_to_many_spec.rb
265
266
  - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/one_to_one_spec.rb