ibm_db 5.4.0-x86-mingw32 → 5.4.1-x86-mingw32

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: 53ebbd59f14d4e0274c0833df140ec787ebf91bf9a972a8253ca1116b8f600c9
4
- data.tar.gz: 0a58578883d5ab1a48ce28adc24a50cb8cbf44928b5ef8847af571de53e7a898
3
+ metadata.gz: 2e62033e57a0d57fae397b74428536f126dce2a31a573b30df976ed902908e67
4
+ data.tar.gz: 54b78eda3f9937513228f38f1d2965ecf962fa8b28ac29d41ae32e7e45fd0d5c
5
5
  SHA512:
6
- metadata.gz: e349b375fffd4e049ed8dc10811dfbfc1829d044d660596cbdd5f8a10fa51e7e056676c5a234c327d90cb75243f05f8f1482215c54b81543ba9f9f9567c6f947
7
- data.tar.gz: 12fc93d1bc0f44c8dd641c07a7ef461a7896ecc4ba5332a4272c4e7f9cf177c60fdcb5f1b26510703e5cd4b1960ada1719a31dd1ffc3a9b9ab60b268f247beb6
6
+ metadata.gz: 5abd34ebab746f0c4acf20e550db9ff61579f074f7a89e82e2802f9cb338457120687556b69c8f10cbe68875070d057115f1ed7470962a28149cd09a9d8b0842
7
+ data.tar.gz: 2c225a2ce903679a07745c0052ea1ff29dbd489eb11e55654dc102546c7735e6b2feee5733815cac4463b88ea6e205ef59d6cc3fb4dbe7c241effdedaaa1a749
data/CHANGES CHANGED
@@ -1,5 +1,10 @@
1
1
  Change Log
2
2
  ==============
3
+ 2023/03/29 (IBM_DB adapter 5.4.1, driver 3.1.0)
4
+ - Download clidriver issue fixed and replaced http links with https.
5
+
6
+ 2023/01/06 (IBM_DB adapter 5.4.0, driver 3.1.0)
7
+ - Support for Ruby 3.1 and Rails 7.0
3
8
 
4
9
  2022/10/06 (IBM_DB adapter 5.3.2, driver 3.0.6)
5
10
  - Allowed all rails versions < 6.2 in gemspec, replaced limit clause with FETCH FIRST n ROWS
data/ext/extconf.rb CHANGED
@@ -5,7 +5,7 @@ require 'rubygems/package'
5
5
  require 'zlib'
6
6
  require 'zip'
7
7
  require 'fileutils'
8
-
8
+ require 'down'
9
9
 
10
10
  # +----------------------------------------------------------------------+
11
11
  # | Licensed Materials - Property of IBM |
@@ -49,50 +49,50 @@ if(RUBY_PLATFORM =~ /aix/i)
49
49
  #AIX
50
50
  if(is64Bit)
51
51
  puts "Detected platform - aix 64"
52
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/aix64_odbc_cli.tar.gz"
52
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/aix64_odbc_cli.tar.gz"
53
53
  else
54
54
  puts "Detected platform - aix 32"
55
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/aix32_odbc_cli.tar.gz"
55
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/aix32_odbc_cli.tar.gz"
56
56
  end
57
57
  elsif (RUBY_PLATFORM =~ /powerpc/ || RUBY_PLATFORM =~ /ppc/)
58
58
  #PPC
59
59
  if(is64Bit)
60
60
  puts "Detected platform - ppc linux 64"
61
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ppc64_odbc_cli.tar.gz"
61
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ppc64_odbc_cli.tar.gz"
62
62
  else
63
63
  puts "Detected platform - ppc linux 64"
64
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ppc32_odbc_cli.tar.gz"
64
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ppc32_odbc_cli.tar.gz"
65
65
  end
66
66
  elsif (RUBY_PLATFORM =~ /linux/)
67
67
  #x86
68
68
  if(is64Bit)
69
69
  puts "Detected platform - linux x86 64"
70
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz"
70
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz"
71
71
  else
72
72
  puts "Detected platform - linux 32"
73
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxia32_odbc_cli.tar.gz"
73
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxia32_odbc_cli.tar.gz"
74
74
  end
75
75
  elsif (RUBY_PLATFORM =~ /sparc/i)
76
76
  #Solaris
77
77
  if(is64Bit)
78
78
  puts "Detected platform - sun sparc64"
79
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sun64_odbc_cli.tar.gz"
79
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sun64_odbc_cli.tar.gz"
80
80
  else
81
81
  puts "Detected platform - sun sparc32"
82
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sun32_odbc_cli.tar.gz"
82
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sun32_odbc_cli.tar.gz"
83
83
  end
84
84
  elsif (RUBY_PLATFORM =~ /solaris/i)
85
85
  if(is64Bit)
86
86
  puts "Detected platform - sun amd64"
87
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sunamd64_odbc_cli.tar.gz"
87
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sunamd64_odbc_cli.tar.gz"
88
88
  else
89
89
  puts "Detected platform - sun amd32"
90
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sunamd32_odbc_cli.tar.gz"
90
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sunamd32_odbc_cli.tar.gz"
91
91
  end
92
92
  elsif (RUBY_PLATFORM =~ /darwin/i)
93
93
  if(is64Bit)
94
94
  puts "Detected platform - MacOS darwin64"
95
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz"
95
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz"
96
96
  else
97
97
  puts "Mac OS 32 bit not supported. Please use an x64 architecture."
98
98
  end
@@ -100,10 +100,10 @@ elsif (RUBY_PLATFORM =~ /mswin/ || RUBY_PLATFORM =~ /mingw/)
100
100
  ZIP = true
101
101
  if(is64Bit)
102
102
  puts "Detected platform - windows 64"
103
- DOWNLOADLINK= "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip"
103
+ DOWNLOADLINK= "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip"
104
104
  else
105
105
  puts "Detected platform - windows 32"
106
- DOWNLOADLINK= "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/nt32_odbc_cli.zip"
106
+ DOWNLOADLINK= "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/nt32_odbc_cli.zip"
107
107
  end
108
108
  end
109
109
 
@@ -114,24 +114,13 @@ def downloadCLIPackage(destination, link = nil)
114
114
  downloadLink = link
115
115
  end
116
116
 
117
- uri = URI.parse(downloadLink)
118
117
  if ZIP
119
118
  filename = "#{destination}/clidriver.zip"
120
119
  else
121
120
  filename = "#{destination}/clidriver.tar.gz"
122
121
  end
123
-
124
- headers = {
125
- 'Accept-Encoding' => 'identity',
126
- }
127
-
128
- request = Net::HTTP::Get.new(uri.request_uri, headers)
129
- http = Net::HTTP.new(uri.host, uri.port)
130
- response = http.request(request)
131
-
132
- f = open(filename, 'wb')
133
- f.write(response.body)
134
- f.close()
122
+
123
+ Down.download(downloadLink, destination: filename, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE)
135
124
 
136
125
  filename
137
126
  end
data/ext/ibm_db.so CHANGED
Binary file
@@ -59,9 +59,9 @@ if(needToDownloadedCLIPackage == true)
59
59
 
60
60
  if (RUBY_PLATFORM =~ /mswin/ || RUBY_PLATFORM =~ /mingw/)
61
61
  if(is64Bit)
62
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip"
62
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip"
63
63
  else
64
- DOWNLOADLINK = "http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/nt32_odbc_cli.zip"
64
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/nt32_odbc_cli.zip"
65
65
  end
66
66
  end
67
67
 
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.4.1
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - IBM
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-28 00:00:00.000000000 Z
11
+ date: 2023-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zip
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: down
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: activerecord
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +81,6 @@ files:
67
81
  - MANIFEST
68
82
  - ParameterizedQueries README
69
83
  - README
70
- - debug.log
71
84
  - ext/Makefile
72
85
  - ext/Makefile.nt32
73
86
  - ext/Makefile.nt32.191
data/debug.log DELETED
@@ -1 +0,0 @@
1
- # Logfile created on 2023-03-28 15:47:54 -0400 by logger.rb/v1.5.0