tiny_tds 2.1.4 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_tds
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-05-10 00:00:00.000000000 Z
13
+ date: 2023-12-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2
@@ -18,84 +18,98 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '2.0'
21
+ version: 2.5.0
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '2.0'
28
+ version: 2.5.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '13.0'
35
+ version: 13.0.0
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '13.0'
42
+ version: 13.0.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rake-compiler
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '1.0'
49
+ version: '1.2'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '1.0'
56
+ version: '1.2'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rake-compiler-dock
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '1.0'
63
+ version: 1.3.0
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: '1.0'
70
+ version: 1.3.0
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: minitest
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '5.6'
77
+ version: 5.14.0
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: '5.6'
84
+ version: 5.14.0
85
+ - !ruby/object:Gem::Dependency
86
+ name: minitest-ci
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: 3.4.0
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: 3.4.0
85
99
  - !ruby/object:Gem::Dependency
86
100
  name: connection_pool
87
101
  requirement: !ruby/object:Gem::Requirement
88
102
  requirements:
89
103
  - - "~>"
90
104
  - !ruby/object:Gem::Version
91
- version: '2.2'
105
+ version: 2.2.0
92
106
  type: :development
93
107
  prerelease: false
94
108
  version_requirements: !ruby/object:Gem::Requirement
95
109
  requirements:
96
110
  - - "~>"
97
111
  - !ruby/object:Gem::Version
98
- version: '2.2'
112
+ version: 2.2.0
99
113
  - !ruby/object:Gem::Dependency
100
114
  name: toxiproxy
101
115
  requirement: !ruby/object:Gem::Requirement
@@ -122,11 +136,11 @@ extensions:
122
136
  - ext/tiny_tds/extconf.rb
123
137
  extra_rdoc_files: []
124
138
  files:
139
+ - ".circleci/config.yml"
125
140
  - ".codeclimate.yml"
126
141
  - ".gitattributes"
127
142
  - ".gitignore"
128
143
  - ".rubocop.yml"
129
- - ".travis.yml"
130
144
  - CHANGELOG.md
131
145
  - CODE_OF_CONDUCT.md
132
146
  - Gemfile
@@ -135,7 +149,6 @@ files:
135
149
  - README.md
136
150
  - Rakefile
137
151
  - VERSION
138
- - appveyor.yml
139
152
  - bin/defncopy-ttds
140
153
  - bin/tsql-ttds
141
154
  - docker-compose.yml
@@ -158,6 +171,8 @@ files:
158
171
  - patches/freetds/1.00.27/0001-mingw_missing_inet_pton.diff
159
172
  - patches/freetds/1.00.27/0002-Don-t-use-MSYS2-file-libws2_32.diff
160
173
  - patches/libiconv/1.14/1-avoid-gets-error.patch
174
+ - setup_cimgruby_dev.sh
175
+ - start_dev.sh
161
176
  - tasks/native_gem.rake
162
177
  - tasks/package.rake
163
178
  - tasks/ports.rake
@@ -166,14 +181,15 @@ files:
166
181
  - tasks/ports/openssl.rb
167
182
  - tasks/ports/recipe.rb
168
183
  - tasks/test.rake
169
- - test/appveyor/dbsetup.ps1
170
- - test/appveyor/dbsetup.sql
171
184
  - test/benchmark/query.rb
172
185
  - test/benchmark/query_odbc.rb
173
186
  - test/benchmark/query_tinytds.rb
174
187
  - test/bin/install-freetds.sh
188
+ - test/bin/install-mssql.ps1
189
+ - test/bin/install-mssqltools.sh
175
190
  - test/bin/install-openssl.sh
176
- - test/bin/setup.sh
191
+ - test/bin/setup_tinytds_db.sh
192
+ - test/bin/setup_volume_permissions.sh
177
193
  - test/client_test.rb
178
194
  - test/gem_test.rb
179
195
  - test/result_test.rb
@@ -186,6 +202,8 @@ files:
186
202
  - test/schema/sqlserver_azure.sql
187
203
  - test/schema/sybase_ase.sql
188
204
  - test/schema_test.rb
205
+ - test/sql/db-create.sql
206
+ - test/sql/db-login.sql
189
207
  - test/test_helper.rb
190
208
  - test/thread_test.rb
191
209
  - tiny_tds.gemspec
@@ -210,30 +228,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
228
  - !ruby/object:Gem::Version
211
229
  version: '0'
212
230
  requirements: []
213
- rubygems_version: 3.0.3
231
+ rubygems_version: 3.2.33
214
232
  signing_key:
215
233
  specification_version: 4
216
234
  summary: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.
217
- test_files:
218
- - test/appveyor/dbsetup.ps1
219
- - test/appveyor/dbsetup.sql
220
- - test/benchmark/query.rb
221
- - test/benchmark/query_odbc.rb
222
- - test/benchmark/query_tinytds.rb
223
- - test/bin/install-freetds.sh
224
- - test/bin/install-openssl.sh
225
- - test/bin/setup.sh
226
- - test/client_test.rb
227
- - test/gem_test.rb
228
- - test/result_test.rb
229
- - test/schema/1px.gif
230
- - test/schema/sqlserver_2000.sql
231
- - test/schema/sqlserver_2005.sql
232
- - test/schema/sqlserver_2008.sql
233
- - test/schema/sqlserver_2014.sql
234
- - test/schema/sqlserver_2016.sql
235
- - test/schema/sqlserver_azure.sql
236
- - test/schema/sybase_ase.sql
237
- - test/schema_test.rb
238
- - test/test_helper.rb
239
- - test/thread_test.rb
235
+ test_files: []
data/.travis.yml DELETED
@@ -1,25 +0,0 @@
1
- sudo: required
2
- cache: bundler
3
- services:
4
- - docker
5
- env:
6
- global:
7
- - PATH=/opt/local/bin:$PATH
8
- - TESTOPTS="-v"
9
- - TINYTDS_UNIT_HOST=localhost
10
- rvm:
11
- - 2.4.5
12
- - 2.5.3
13
- - 2.6.1
14
- - 2.7.0
15
- before_install:
16
- - docker info
17
- - docker-compose up -d
18
- - sudo ./test/bin/install-openssl.sh
19
- - sudo ./test/bin/install-freetds.sh
20
- install:
21
- - gem install bundler
22
- - bundle --version
23
- - bundle install
24
- script:
25
- - bundle exec rake
data/appveyor.yml DELETED
@@ -1,72 +0,0 @@
1
- init:
2
- - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
3
- - SET RAKEOPT=-rdevkit
4
- - SET TESTOPTS='-v'
5
- - SET MAKE=make V=1 -j2
6
- clone_depth: 5
7
- skip_tags: true
8
- skip_branch_with_pr: true
9
- matrix:
10
- fast_finish: false
11
- install:
12
- # Output debugging info
13
- - ps: Update-AppveyorBuild -Version "$(Get-Content $env:appveyor_build_folder\VERSION).$env:appveyor_build_number"
14
- - ps: |
15
- if ($env:ruby_version -like "*head*") {
16
- $(new-object net.webclient).DownloadFile("https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-$env:ruby_version.exe", "$pwd/ruby-setup.exe")
17
- cmd /c ruby-setup.exe /verysilent /dir=C:/Ruby$env:ruby_version
18
- }
19
- - perl --version
20
- - ruby --version
21
- - gem --version
22
- # Update keyring according to https://www.msys2.org/news/#2020-06-29-new-packagers
23
- - C:\msys64\usr\bin\curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
24
- - C:\msys64\usr\bin\curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
25
- - ridk exec bash -c "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
26
- - ridk exec bash -c "pacman -U --noconfirm --config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
27
- # Update zstd and pacman first https://github.com/msys2/MSYS2-packages/issues/2300
28
- - C:\msys64\usr\bin\pacman --noconfirm --upgrade https://repo.msys2.org/msys/x86_64/zstd-1.4.7-1-x86_64.pkg.tar.xz # Must come First, or else pacman will install 1.4.8
29
- - C:\msys64\usr\bin\pacman --noconfirm --upgrade https://repo.msys2.org/msys/x86_64/pacman-5.2.2-5-x86_64.pkg.tar.xz
30
- # update packages
31
- - C:\msys64\usr\bin\pacman --noconfirm --ask 20 --sync --refresh --refresh --sysupgrade --sysupgrade
32
- # Kill all running msys2 binaries to avoid error "size of shared memory region changed".
33
- # See https://github.com/msys2/MSYS2-packages/issues/258
34
- - powershell -Command "Get-Process | Where-Object {$_.path -like 'C:\msys64*'} | Stop-Process"
35
- # refresh the package list to avoid "error: failed to prepare transaction (could not find database)"
36
- - ridk exec bash -c "pacman --noconfirm -Sy"
37
- # prevent freetds to link to wrong ws2_32 lib on i686-w64-mingw32
38
- - c:/msys64/usr/bin/rm /usr/lib/w32api/libws2_32.a
39
- # Set up project prerequisits
40
- - bundle install
41
- - bundle exec rake ports
42
- build: off
43
- branches:
44
- except:
45
- - /dev.*/
46
- test_script:
47
- - timeout /t 4 /nobreak > NUL
48
- - powershell -File "%APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.ps1"
49
- - timeout /t 4 /nobreak > NUL
50
- - ps: Start-Service 'MSSQL$SQL2014'
51
- - timeout /t 4 /nobreak > NUL
52
- - sqlcmd -S ".\SQL2014" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql
53
- - bundle exec rake ports build test TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2014" TINYTDS_SCHEMA=sqlserver_2014 TDSVER=7.1
54
- - bundle exec rake ports build test TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2014" TINYTDS_SCHEMA=sqlserver_2014
55
- - ps: Stop-Service 'MSSQL$SQL2014'
56
- - ps: Start-Service 'MSSQL$SQL2012SP1'
57
- - timeout /t 4 /nobreak > NUL
58
- - sqlcmd -S ".\SQL2012SP1" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql
59
- - bundle exec rake ports build test TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2012SP1" TINYTDS_SCHEMA=sqlserver_2014
60
- environment:
61
- CI_AZURE_HOST:
62
- secure: 8ydpYysZYKEBKvp6plKlYfepH98/zAuT27FFCaJ9Sss=
63
- TINYTDS_UNIT_AZURE_PASS:
64
- secure: fYKSKV4v+36OFQp2nZdX4DfUpgmy5cm0wuR73cgdmEk=
65
- matrix:
66
- - ruby_version: "24"
67
- - ruby_version: "25-x64"
68
- - ruby_version: "26"
69
- - ruby_version: "head-x64"
70
- on_failure:
71
- - find -name config.log | xargs cat
72
- - find -name compile.log | xargs cat
@@ -1,27 +0,0 @@
1
-
2
- Write-Output "Setting up..."
3
- [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null
4
- [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement") | Out-Null
5
-
6
- Write-Output "Setting variables..."
7
- $serverName = $env:COMPUTERNAME
8
- $instances = @('SQL2012SP1', 'SQL2014', 'SQL2016')
9
- $smo = 'Microsoft.SqlServer.Management.Smo.'
10
- $wmi = new-object ($smo + 'Wmi.ManagedComputer')
11
-
12
- Write-Output "Configure Instances..."
13
- foreach ($instance in $instances) {
14
- Write-Output "Instance $instance ..."
15
- Write-Output "Enable TCP/IP and port 1433..."
16
- $uri = "ManagedComputer[@Name='$serverName']/ServerInstance[@Name='$instance']/ServerProtocol[@Name='Tcp']"
17
- $tcp = $wmi.GetSmoObject($uri)
18
- $tcp.IsEnabled = $true
19
- foreach ($ipAddress in $Tcp.IPAddresses) {
20
- $ipAddress.IPAddressProperties["TcpDynamicPorts"].Value = ""
21
- $ipAddress.IPAddressProperties["TcpPort"].Value = "1433"
22
- }
23
- $tcp.Alter()
24
- }
25
-
26
- Set-Service SQLBrowser -StartupType Manual
27
- Start-Service SQLBrowser
@@ -1,9 +0,0 @@
1
- CREATE DATABASE [tinytdstest];
2
- GO
3
- CREATE LOGIN [tinytds] WITH PASSWORD = '', CHECK_POLICY = OFF, DEFAULT_DATABASE = [tinytdstest];
4
- GO
5
- USE [tinytdstest];
6
- CREATE USER [tinytds] FOR LOGIN [tinytds];
7
- GO
8
- EXEC sp_addrolemember N'db_owner', N'tinytds';
9
- GO
data/test/bin/setup.sh DELETED
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -x
4
- set -e
5
-
6
- tag=2017-GA
7
-
8
- docker pull metaskills/mssql-server-linux-tinytds:$tag
9
-
10
- container=$(docker ps -a -q --filter ancestor=metaskills/mssql-server-linux-tinytds:$tag)
11
- if [[ -z $container ]]; then
12
- docker run -p 1433:1433 -d metaskills/mssql-server-linux-tinytds:$tag && sleep 10
13
- exit
14
- fi
15
-
16
- container=$(docker ps -q --filter ancestor=metaskills/mssql-server-linux-tinytds:$tag)
17
- if [[ -z $container ]]; then
18
- docker start $container && sleep 10
19
- fi