tina4ruby 3.13.5 → 3.13.6
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/lib/tina4/drivers/firebird_driver.rb +4 -1
- data/lib/tina4/drivers/mongodb_driver.rb +3 -2
- data/lib/tina4/drivers/mssql_driver.rb +8 -1
- data/lib/tina4/drivers/mysql_driver.rb +8 -1
- data/lib/tina4/drivers/odbc_driver.rb +3 -2
- data/lib/tina4/drivers/postgres_driver.rb +8 -1
- data/lib/tina4/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4cfc3ef750c6d75e22a7c26c3695e5e9a50c841d868b663dbbd0f0b3aaf58987
|
|
4
|
+
data.tar.gz: 2e6d763e7662cb24e13e3dbdb7147709b5d69a5e1d5fca893f68a36a0bde9f76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f340ff33f11ec9e0c3c4cb577fb6eff61d5d674a69ca714fb7adf2e610e08f37201ec582c8e1e854ea31e52700195a7ed6308a4c102b0ff99ea1ebe362f0d6b0
|
|
7
|
+
data.tar.gz: 5f0d2ab921df913639914dfdb0799691353201b8bb12997524322181cbd22266ac537e409045212cf7c56a8cfb5db1d4a350f90adc3cf3dc53d817213c2a0b2d
|
|
@@ -118,7 +118,10 @@ module Tina4
|
|
|
118
118
|
|
|
119
119
|
open_connection
|
|
120
120
|
rescue LoadError
|
|
121
|
-
raise
|
|
121
|
+
raise LoadError,
|
|
122
|
+
"The 'fb' gem is required for Firebird connections. Install one of:\n" \
|
|
123
|
+
" bundle add fb # if your project uses Bundler\n" \
|
|
124
|
+
" gem install fb # bare driver"
|
|
122
125
|
end
|
|
123
126
|
|
|
124
127
|
def close
|
|
@@ -10,8 +10,9 @@ module Tina4
|
|
|
10
10
|
require "mongo"
|
|
11
11
|
rescue LoadError
|
|
12
12
|
raise LoadError,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
"The 'mongo' gem is required for MongoDB connections. Install one of:\n" \
|
|
14
|
+
" bundle add mongo # if your project uses Bundler\n" \
|
|
15
|
+
" gem install mongo # bare driver"
|
|
15
16
|
end
|
|
16
17
|
|
|
17
18
|
uri = build_uri(connection_string, username, password)
|
|
@@ -6,7 +6,14 @@ module Tina4
|
|
|
6
6
|
attr_reader :connection
|
|
7
7
|
|
|
8
8
|
def connect(connection_string, username: nil, password: nil)
|
|
9
|
-
|
|
9
|
+
begin
|
|
10
|
+
require "tiny_tds"
|
|
11
|
+
rescue LoadError
|
|
12
|
+
raise LoadError,
|
|
13
|
+
"The 'tiny_tds' gem is required for MSSQL connections. Install one of:\n" \
|
|
14
|
+
" bundle add tiny_tds # if your project uses Bundler\n" \
|
|
15
|
+
" gem install tiny_tds # bare driver"
|
|
16
|
+
end
|
|
10
17
|
uri = parse_connection(connection_string)
|
|
11
18
|
@connection = TinyTds::Client.new(
|
|
12
19
|
host: uri[:host],
|
|
@@ -6,7 +6,14 @@ module Tina4
|
|
|
6
6
|
attr_reader :connection
|
|
7
7
|
|
|
8
8
|
def connect(connection_string, username: nil, password: nil)
|
|
9
|
-
|
|
9
|
+
begin
|
|
10
|
+
require "mysql2"
|
|
11
|
+
rescue LoadError
|
|
12
|
+
raise LoadError,
|
|
13
|
+
"The 'mysql2' gem is required for MySQL connections. Install one of:\n" \
|
|
14
|
+
" bundle add mysql2 # if your project uses Bundler\n" \
|
|
15
|
+
" gem install mysql2 # bare driver"
|
|
16
|
+
end
|
|
10
17
|
uri = URI.parse(connection_string)
|
|
11
18
|
@connection = Mysql2::Client.new(
|
|
12
19
|
host: uri.host || "localhost",
|
|
@@ -21,8 +21,9 @@ module Tina4
|
|
|
21
21
|
require "odbc"
|
|
22
22
|
rescue LoadError
|
|
23
23
|
raise LoadError,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
"The 'ruby-odbc' gem is required for ODBC connections. Install one of:\n" \
|
|
25
|
+
" bundle add ruby-odbc # if your project uses Bundler\n" \
|
|
26
|
+
" gem install ruby-odbc # bare driver"
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
dsn_string = connection_string.to_s
|
|
@@ -6,7 +6,14 @@ module Tina4
|
|
|
6
6
|
attr_reader :connection
|
|
7
7
|
|
|
8
8
|
def connect(connection_string, username: nil, password: nil)
|
|
9
|
-
|
|
9
|
+
begin
|
|
10
|
+
require "pg"
|
|
11
|
+
rescue LoadError
|
|
12
|
+
raise LoadError,
|
|
13
|
+
"The 'pg' gem is required for PostgreSQL connections. Install one of:\n" \
|
|
14
|
+
" bundle add pg # if your project uses Bundler\n" \
|
|
15
|
+
" gem install pg # bare driver"
|
|
16
|
+
end
|
|
10
17
|
url = connection_string
|
|
11
18
|
if username || password
|
|
12
19
|
uri = URI.parse(url)
|
data/lib/tina4/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tina4ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.13.
|
|
4
|
+
version: 3.13.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tina4 Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|