activerecord-jdbc-alt-adapter 61.1.0-java → 61.3.0-java

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: 59345f12074c8042ddc27f2234fda3ed1e63a8b29610b45e42e6631621872a84
4
- data.tar.gz: aa1ec94c11f8776a6ac82f00be956105d254d158cd88709f762dd02e3aa424eb
3
+ metadata.gz: 781349fe765b4a4f4120f56bffc438f5b0aed6c88eace2e2c0d06ae9f0c2e74e
4
+ data.tar.gz: 26e984b439b7525c5952aaf30890f05463e6e0f0d56e350a9cd2ec201e32ebfb
5
5
  SHA512:
6
- metadata.gz: edaf34229e549b40849ff3ba02dd9cc00bde1d38d2dc4a5778ae4228597b0b4289e5314ba02fb7c201c6ea3b8be56f170bac91e7fd13e1cd4c82b1f49a4820c9
7
- data.tar.gz: 02f8789a6fb0e82ececd0050c751d8bc1d71efe57363cff5bb7ee78b880c1a331418920de618ff206a77892528c26b78be5a35526432c6f17188e06cd1cdc472
6
+ metadata.gz: aa7e6244bfbc98507d72bae0e5efd93c2da6bf7375e740d59bbdaf58cfa5908766e3a0e778fc1d2ac04508b19b7c70a54d69d7a701f5e26f19e54fca41ccb104
7
+ data.tar.gz: 0b3c681b353c0ec8cdaf45744cfba2684d989e38aef4bd501b198c91bf005c48df4f5efc9e3478ef6229ff082dad08e07dd701f1d81e644b527fff883adfe237
data/Gemfile CHANGED
@@ -50,19 +50,19 @@ end
50
50
  gem 'rake', '>= 11.1', require: nil
51
51
 
52
52
  group :test do
53
- gem 'test-unit', '~> 2.5.4', require: nil
54
- gem 'test-unit-context', '>= 0.4.0', require: nil
53
+ gem 'test-unit', require: nil
54
+ gem 'test-unit-context', require: nil
55
55
  gem 'mocha', '~> 1.2', require: false # Rails has '~> 0.14'
56
56
 
57
57
  gem 'bcrypt', '~> 3.1.11', require: false
58
- gem 'jdbc-mssql', '~> 0.9.0', require: nil
58
+ gem 'jdbc-mssql', '~> 12.2.0', require: nil
59
59
  # gem 'pry-debugger-jruby', platform: :jruby
60
60
  end
61
61
 
62
62
  group :rails do
63
63
  group :test do
64
- gem 'minitest', '~> 5.12.2', require: nil
65
- gem 'minitest-excludes', '~> 2.0.1', require: nil
64
+ gem 'minitest', require: nil
65
+ gem 'minitest-excludes', require: nil
66
66
  gem 'minitest-rg', require: nil
67
67
 
68
68
  gem 'benchmark-ips', require: nil
Binary file
@@ -78,12 +78,15 @@ ArJdbc::ConnectionMethods.module_eval do
78
78
  url << "sendTimeAsDatetime=#{config[:send_time_as_datetime] || false};"
79
79
  url << "loginTimeout=#{config[:login_timeout].to_i};" if config[:login_timeout]
80
80
  url << "lockTimeout=#{config[:lock_timeout].to_i};"
81
+ url << "encrypt=#{config[:encrypt]};" if config.key?(:encrypt)
82
+ url << "trustServerCertificate=#{config[:trust_server_certificate]};" if config.key?(:trust_server_certificate)
81
83
  app = config[:appname] || config[:application]
82
84
  url << "applicationName=#{app};" if app
83
85
  isc = config[:integrated_security] # Win only - needs sqljdbc_auth.dll
84
86
  url << "integratedSecurity=#{isc};" unless isc.nil?
85
87
  url
86
88
  end
89
+
87
90
  jdbc_connection(config)
88
91
  end
89
92
  alias_method :jdbcsqlserver_connection, :sqlserver_connection
@@ -14,61 +14,61 @@ module ActiveRecord
14
14
 
15
15
  # datetime with seconds always zero (:00) and without fractional seconds
16
16
  def smalldatetime(*args, **options)
17
- args.each { |name| column(name, :smalldatetime, options) }
17
+ args.each { |name| column(name, :smalldatetime, **options) }
18
18
  end
19
19
 
20
20
  # this is the old sql server datetime type, the precision is as follow
21
21
  # xx1, xx3, and xx7
22
22
  def datetime_basic(*args, **options)
23
- args.each { |name| column(name, :datetime_basic, options) }
23
+ args.each { |name| column(name, :datetime_basic, **options) }
24
24
  end
25
25
 
26
26
  def real(*args, **options)
27
- args.each { |name| column(name, :real, options) }
27
+ args.each { |name| column(name, :real, **options) }
28
28
  end
29
29
 
30
30
  def money(*args, **options)
31
- args.each { |name| column(name, :money, options) }
31
+ args.each { |name| column(name, :money, **options) }
32
32
  end
33
33
 
34
34
  def smallmoney(*args, **options)
35
- args.each { |name| column(name, :smallmoney, options) }
35
+ args.each { |name| column(name, :smallmoney, **options) }
36
36
  end
37
37
 
38
38
  def char(*args, **options)
39
- args.each { |name| column(name, :char, options) }
39
+ args.each { |name| column(name, :char, **options) }
40
40
  end
41
41
 
42
42
  def varchar(*args, **options)
43
- args.each { |name| column(name, :varchar, options) }
43
+ args.each { |name| column(name, :varchar, **options) }
44
44
  end
45
45
 
46
46
  def varchar_max(*args, **options)
47
- args.each { |name| column(name, :varchar_max, options) }
47
+ args.each { |name| column(name, :varchar_max, **options) }
48
48
  end
49
49
 
50
50
  def text_basic(*args, **options)
51
- args.each { |name| column(name, :text_basic, options) }
51
+ args.each { |name| column(name, :text_basic, **options) }
52
52
  end
53
53
 
54
54
  def nchar(*args, **options)
55
- args.each { |name| column(name, :nchar, options) }
55
+ args.each { |name| column(name, :nchar, **options) }
56
56
  end
57
57
 
58
58
  def ntext(*args, **options)
59
- args.each { |name| column(name, :ntext, options) }
59
+ args.each { |name| column(name, :ntext, **options) }
60
60
  end
61
61
 
62
62
  def binary_basic(*args, **options)
63
- args.each { |name| column(name, :binary_basic, options) }
63
+ args.each { |name| column(name, :binary_basic, **options) }
64
64
  end
65
65
 
66
66
  def varbinary(*args, **options)
67
- args.each { |name| column(name, :varbinary, options) }
67
+ args.each { |name| column(name, :varbinary, **options) }
68
68
  end
69
69
 
70
70
  def uuid(*args, **options)
71
- args.each { |name| column(name, :uniqueidentifier, options) }
71
+ args.each { |name| column(name, :uniqueidentifier, **options) }
72
72
  end
73
73
  end
74
74
 
@@ -138,7 +138,7 @@ module ActiveRecord
138
138
  execute "ALTER TABLE #{quote_table_name(table_name)} DROP COLUMN #{quote_column_name(column_name)}"
139
139
  end
140
140
 
141
- def drop_table(table_name, options = {})
141
+ def drop_table(table_name, **options)
142
142
  # mssql cannot recreate referenced table with force: :cascade
143
143
  # https://docs.microsoft.com/en-us/sql/t-sql/statements/drop-table-transact-sql?view=sql-server-2017
144
144
  if options[:force] == :cascade
@@ -248,7 +248,7 @@ module ActiveRecord
248
248
  (order_columns << super).join(', ')
249
249
  end
250
250
 
251
- def add_timestamps(table_name, options = {})
251
+ def add_timestamps(table_name, **options)
252
252
  if !options.key?(:precision) && supports_datetime_with_precision?
253
253
  options[:precision] = 7
254
254
  end
@@ -345,8 +345,8 @@ module ActiveRecord
345
345
  MSSQL::SchemaCreation.new(self)
346
346
  end
347
347
 
348
- def create_table_definition(*args)
349
- MSSQL::TableDefinition.new(self, *args)
348
+ def create_table_definition(name, **options)
349
+ MSSQL::TableDefinition.new(self, name, **options)
350
350
  end
351
351
 
352
352
  def new_column_from_field(table_name, field)
@@ -27,10 +27,10 @@ module ActiveRecord
27
27
  module RealTransactionExt
28
28
  attr_reader :initial_transaction_isolation
29
29
 
30
- def initialize(connection, options, *args)
30
+ def initialize(connection, isolation: nil, joinable: true, run_commit_callbacks: false)
31
31
  @connection = connection
32
32
 
33
- if options[:isolation]
33
+ if isolation
34
34
  @initial_transaction_isolation = current_transaction_isolation
35
35
  end
36
36
 
@@ -35,7 +35,7 @@ module ActiveRecord
35
35
  end
36
36
 
37
37
  class Money < Decimal
38
- def initialize(options = {})
38
+ def initialize(**options)
39
39
  super
40
40
  @precision = 19
41
41
  @scale = 4
@@ -46,7 +46,7 @@ module ActiveRecord
46
46
  end
47
47
 
48
48
  class SmallMoney < Decimal
49
- def initialize(options = {})
49
+ def initialize(**options)
50
50
  super
51
51
  @precision = 10
52
52
  @scale = 4
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ArJdbc
4
- VERSION = '61.1.0'
4
+ VERSION = '61.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-jdbc-alt-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 61.1.0
4
+ version: 61.3.0
5
5
  platform: java
6
6
  authors:
7
7
  - Nick Sieger, Ola Bini, Karol Bucek, Jesse Chavez, and JRuby contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-22 00:00:00.000000000 Z
11
+ date: 2024-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -17,8 +17,8 @@ dependencies:
17
17
  - !ruby/object:Gem::Version
18
18
  version: 6.1.0
19
19
  name: activerecord
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  - !ruby/object:Gem::Version
267
267
  version: '0'
268
268
  requirements: []
269
- rubygems_version: 3.1.6
269
+ rubygems_version: 3.3.26
270
270
  signing_key:
271
271
  specification_version: 4
272
272
  summary: ActiveRecord JDBC adapter, for use within JRuby on Rails and SQL Server