sqlean 0.1.0-x64-mingw → 0.2.0-x64-mingw

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: 586a15d8c42077119f4d8900416a5ae018a959a6571b5a5703f870cb584f72ca
4
- data.tar.gz: c66ed49ac9e26e050de2bccaa5ca74a9eb26701021a3bb5aa9679aa1412c87ef
3
+ metadata.gz: 46696a73e0fe7df27e489bdcd72c56cdc81afdb8f8f62007fd3bc6d2034b5567
4
+ data.tar.gz: 6ea01984f45a7e22c99d3de75d610bb33240e660c5fc51c8c1ddef792a2ac82c
5
5
  SHA512:
6
- metadata.gz: 98dd43a962aacf00c59a1d77d803053d7f3c05d4d8fd022f9e6aa5c8894b601b95d2e70b9288906f759dc8e89862c9c9fdb51efdfd8e8bfa00040680250a2bbb
7
- data.tar.gz: 6fb2c14880afa30bcd789df290299868b545cc52be2997f19fae0bf8e1fa3e92b29d10ebbdba9a14223e5cd3d09db83b6f3e9765b8329e6d13aac246a2f3afc3
6
+ metadata.gz: ca2b07710ba487b6eaa80d42f981a6668c422a94c0e1d40c15721c227ecdf305e8387c055cdbc629df37e1882ad6660710f4f68bad5fcae75d429b41cac6e200
7
+ data.tar.gz: fa924e288a4b96a42baa4626c16b40bd6a8138a33ccd8606a5d3d5c086529863bf204adfb5ae252c6067306fd12dcf9b2a17c7916fd9f228cc011cb6b00610c0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
- ## [Unreleased]
1
+ # SQLean for Ruby Changelog
2
2
 
3
- ## [0.1.0] - 2024-11-23
3
+ ## v0.2.0 / 2024-11-24
4
4
 
5
- - Initial release
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
 
@@ -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",
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SQLean
4
- VERSION = "0.1.0"
4
+ # The version of the SQLean gem.
5
+ VERSION = "0.2.0"
5
6
  end
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, "#{name}.#{SQLean.file_ext}")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: x64-mingw
6
6
  authors:
7
7
  - Mike Dalessio