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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '048980b3de42a4f124cb05b51099d6816780411652f23e1d25223301755dfa6b'
4
- data.tar.gz: d4a390d57cb665ae13589c1bdb48385684a31b17f91e1d6d9d87f0f608995a8a
3
+ metadata.gz: 6c7aacb3c13d074a79e9d8d9fce51e23eef0b27ed6c0823b32dd49637b7f0793
4
+ data.tar.gz: 0170b3e9153564cb664663eff56e706b1a3fcd74ff8ca2a2ddc86f707aef738f
5
5
  SHA512:
6
- metadata.gz: 67757bb45c237a427050050f7b7f59de30c5f764fafdbf6876385e198009504da906743c82772d873db328f0267d4992f1a0fd108366f392a34fbfd1c9f20e52
7
- data.tar.gz: 4763cab16c04f9719f8ed2871a13adc64c28bcd7cf19e68fffc24daaa1d361cf6cd0331a3718bf5fff7059f8abc04c9500932ed1fee7b05ae9e4468bd24cf09b
6
+ metadata.gz: 7f970cec5cad03758ac525feeaed059c1e8efc5f55d2766d92bc68ebc45564936b5f77294ed8b99cdd5939b7f75603b205f024db80920a0e1e72941a593bca32
7
+ data.tar.gz: 6bc54f6c300206985bc4b9eb29d85febb0de936e846b00abad4423bbc1fe645953099e00f930517d44e047ccb4fac5f28b5a40689b1f1a4c5958e216a85ad06a
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: x86_64-darwin
6
6
  authors:
7
7
  - Mike Dalessio