sqlean 0.1.0-arm64-darwin → 0.2.0-arm64-darwin

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: 17fd8a46db99a01a69269ffa6e4538c134151366677f36c5d07a36b7da2388dc
4
- data.tar.gz: 547e4bc2c6327d2804ac9dcb3c1ba9f0a6432c819f3ad36b29a1df0f9ab2489f
3
+ metadata.gz: da65bcab6add6d1f18ecf07ab2150bfe5334a16e4146229189f0a2811d14e713
4
+ data.tar.gz: 3d7cfd1beecf418e4367c56f3b3e6477e360abbc206da3ec4384b5621f8f520a
5
5
  SHA512:
6
- metadata.gz: fa71f076575fee845200dae5298650773b85752d34f4b9ddfc1ba5918a0a63d21749c917da3c208eea16e74ed631398919dbb530f622e9dad3f81a070b973985
7
- data.tar.gz: 2b754a7745d1980bcd229bd5baddd78f5698a7eb164f3d4d60efa31cb793966342f6b9cd8a574428d153d487b5aef7c6384bcaec6dfd2c79936a1be63b80cb0d
6
+ metadata.gz: 15d6d199268ed4138f5d547b9062f1eb2bdd3b79c4bc10f18578b5d51b3c26b061b3b5ab12b5cf4853cac4c27790fc32a8a5555553729fb1d6abf9844e98051f
7
+ data.tar.gz: ae20e5caeeffe7205f8bf550f33cbb11d8e98f1c517f3b37774355a7857e674eaf1cbe7885654d0153ddeed8f637008909dff220ab82aef9d871c1a65363ba49
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: arm64-darwin
6
6
  authors:
7
7
  - Mike Dalessio