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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5a305c0c2ee88795cac09fabe5c275165fb83d6da1d83bc301a8097660d711c
4
- data.tar.gz: 68ee188aef588fd0e09d7779771de3eb47ed7ab5d9cfe426d3840b3015000064
3
+ metadata.gz: 4cfc3ef750c6d75e22a7c26c3695e5e9a50c841d868b663dbbd0f0b3aaf58987
4
+ data.tar.gz: 2e6d763e7662cb24e13e3dbdb7147709b5d69a5e1d5fca893f68a36a0bde9f76
5
5
  SHA512:
6
- metadata.gz: af2cb8dd1b51f7569d864aa41c4f0c52105696bea48e6c6fb50dd76b1d9bd11cf5e724cfdccb717bf5d42e2e84f032e10af1ada89ce9a3b74e660bc0a6f7c4f0
7
- data.tar.gz: 75b8d8f25a7efcfb38606414e1457b3bdbf0bedbe3d1ee0ec3b5dea2ee0a58ddb5292a9f1078dc212a9cc43df0625122e3a288d2fb78437479cd15bc26efeecd
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 "Firebird driver requires the 'fb' gem. Install it with: gem install fb"
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
- "The 'mongo' gem is required for MongoDB connections. " \
14
- "Install: gem install mongo"
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
- require "tiny_tds"
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
- require "mysql2"
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
- "The 'ruby-odbc' gem is required for ODBC connections. " \
25
- "Install: gem install ruby-odbc"
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
- require "pg"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tina4
4
- VERSION = "3.13.5"
4
+ VERSION = "3.13.6"
5
5
  end
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.5
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-05 00:00:00.000000000 Z
11
+ date: 2026-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack