sqlean 0.1.0-x86_64-darwin → 0.2.0-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -3
- data/README.md +19 -0
- data/lib/sqlean/upstream.rb +4 -2
- data/lib/sqlean/version.rb +2 -1
- data/lib/sqlean.rb +1 -18
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c7aacb3c13d074a79e9d8d9fce51e23eef0b27ed6c0823b32dd49637b7f0793
|
4
|
+
data.tar.gz: 0170b3e9153564cb664663eff56e706b1a3fcd74ff8ca2a2ddc86f707aef738f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f970cec5cad03758ac525feeaed059c1e8efc5f55d2766d92bc68ebc45564936b5f77294ed8b99cdd5939b7f75603b205f024db80920a0e1e72941a593bca32
|
7
|
+
data.tar.gz: 6bc54f6c300206985bc4b9eb29d85febb0de936e846b00abad4423bbc1fe645953099e00f930517d44e047ccb4fac5f28b5a40689b1f1a4c5958e216a85ad06a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
|
-
|
1
|
+
# SQLean for Ruby Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## v0.2.0 / 2024-11-24
|
4
4
|
|
5
|
-
-
|
5
|
+
- Support for x86_64-linux-musl with self-built extensions.
|
6
|
+
- Explicitly state no-support for aarch64-linux-musl.
|
7
|
+
|
8
|
+
|
9
|
+
## v0.1.0 / 2024-11-24
|
10
|
+
|
11
|
+
- Initial experimental release
|
data/README.md
CHANGED
@@ -92,6 +92,25 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
92
92
|
gem install sqlean
|
93
93
|
```
|
94
94
|
|
95
|
+
Note that right now, the only platforms supported are:
|
96
|
+
|
97
|
+
- MacOS / Darwin:
|
98
|
+
- x86_64
|
99
|
+
- arm64
|
100
|
+
- Linux
|
101
|
+
- x86_64 gnu
|
102
|
+
- x86_64 musl
|
103
|
+
- aarch64 gnu
|
104
|
+
- Windows
|
105
|
+
- mingw (64-bit)
|
106
|
+
|
107
|
+
Specifically what's missing is support for:
|
108
|
+
|
109
|
+
- Linux aarch64 musl
|
110
|
+
- Windows mingw32 (32-bit)
|
111
|
+
|
112
|
+
If you need support for one of these platforms, please open an issue. I would also gladly welcome folks who are willing to help add support.
|
113
|
+
|
95
114
|
|
96
115
|
## Development
|
97
116
|
|
data/lib/sqlean/upstream.rb
CHANGED
@@ -2,12 +2,14 @@
|
|
2
2
|
|
3
3
|
module SQLean
|
4
4
|
module Upstream
|
5
|
+
# The version of upstream sqlean extensions used.
|
5
6
|
VERSION = "0.27.1"
|
6
7
|
|
7
8
|
# rubygems platform name => upstream release filename fragment
|
8
9
|
NATIVE_PLATFORMS = {
|
9
|
-
"aarch64-linux" => "linux-arm64",
|
10
|
-
"x86_64-linux" => "linux-x86",
|
10
|
+
"aarch64-linux-gnu" => "linux-arm64",
|
11
|
+
"x86_64-linux-gnu" => "linux-x86",
|
12
|
+
"x86_64-linux-musl" => "linux-x86-musl",
|
11
13
|
|
12
14
|
"arm64-darwin" => "macos-arm64",
|
13
15
|
"x86_64-darwin" => "macos-x86",
|
data/lib/sqlean/version.rb
CHANGED
data/lib/sqlean.rb
CHANGED
@@ -8,9 +8,6 @@ module SQLean
|
|
8
8
|
class UnsupportedPlatform < StandardError; end
|
9
9
|
|
10
10
|
GEM_NAME = "sqlean"
|
11
|
-
WINDOWS_PLATFORM_REGEX = /mingw|mswin/ # :nodoc:
|
12
|
-
LINUX_PLATFORM_REGEX = /linux/ # :nodoc:
|
13
|
-
DARWIN_PLATFORM_REGEX = /darwin/ # :nodoc:
|
14
11
|
|
15
12
|
# Returns an absolute path to the SQLean bundle, containing all the SQLean extensions.
|
16
13
|
def self.sqlite_extension_path
|
@@ -125,7 +122,7 @@ module SQLean
|
|
125
122
|
# "private" methods
|
126
123
|
#
|
127
124
|
def self.file_path(name) # :nodoc:
|
128
|
-
File.join(SQLean.file_dir,
|
125
|
+
File.join(SQLean.file_dir, name)
|
129
126
|
end
|
130
127
|
|
131
128
|
def self.file_dir # :nodoc:
|
@@ -144,20 +141,6 @@ module SQLean
|
|
144
141
|
end
|
145
142
|
end
|
146
143
|
|
147
|
-
def self.file_ext # :nodoc:
|
148
|
-
@file_ext ||=
|
149
|
-
case platform
|
150
|
-
when WINDOWS_PLATFORM_REGEX
|
151
|
-
"dll"
|
152
|
-
when DARWIN_PLATFORM_REGEX
|
153
|
-
"dylib"
|
154
|
-
when LINUX_PLATFORM_REGEX
|
155
|
-
"so"
|
156
|
-
else
|
157
|
-
raise "Unknown or unsupported platform: #{platform}"
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
144
|
# here mostly for testing purposes (to stub)
|
162
145
|
def self.platform # :nodoc:
|
163
146
|
RUBY_PLATFORM
|