sqlpkg 0.1.0-arm64-darwin → 0.1.1-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +46 -8
- data/exe/sqlpkg +3 -3
- data/lib/sqlpkg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73667f21ad1cb0d3eda1089fd9c690cee13013d5c3477018fbf377c15597b129
|
4
|
+
data.tar.gz: 9cf3b36a153fc2b9ac2efd038f0fdfa4618a1a7c807add60a79f13deb4cbce73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 842b1b4d97e02d773386a2f770c5f1d11a350720f33763f7581f9b997f2af42ed586d2ea363e906a84361b80bfd95818a734c53aaa0e8441f0c75726a46f6491
|
7
|
+
data.tar.gz: 55230daa05e08a82090384d643064a19005d17db9ecca483a83be3ed9e941ac3e5d84d79c1ae8e5591e8398448b6440dacb6913dc9a992d585bde7ffc9969f4a
|
data/README.md
CHANGED
@@ -1,24 +1,62 @@
|
|
1
1
|
# sqlpkg-ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sqlpkg`. To experiment with that code, run `bin/console` for an interactive prompt.
|
3
|
+
[sqlpkg](https://sqlpkg.org/) is the (unofficial) SQLite package registry. This gem provides a Ruby interface to [its CLI](https://github.com/nalgeon/sqlpkg-cli).
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
-
|
11
7
|
Install the gem and add to the application's Gemfile by executing:
|
12
8
|
|
13
|
-
$ bundle add
|
9
|
+
$ bundle add sqlpkg
|
14
10
|
|
15
11
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
12
|
|
17
|
-
$ gem install
|
13
|
+
$ gem install sqlpkg
|
14
|
+
|
15
|
+
This gem wraps the standalone executable version of the [sqlpkg-cli](https://github.com/nalgeon/sqlpkg-cli#download-and-install-preferred-method). These executables are platform specific, so there are actually separate underlying gems per platform, but the correct gem will automatically be picked for your platform.
|
16
|
+
|
17
|
+
Supported platforms are:
|
18
|
+
|
19
|
+
* arm64-darwin (macos-arm64)
|
20
|
+
* x86_64-darwin (macos-x64)
|
21
|
+
* arm64-linux (linux-arm64)
|
22
|
+
* x86_64-linux (linux-x64)
|
23
|
+
|
24
|
+
### Using a local installation of `sqlpkg`
|
25
|
+
|
26
|
+
If you are not able to use the vendored standalone executables (for example, if you're on an unsupported platform), you can use a local installation of the `sqlpkg` executable by setting an environment variable named `SQLPKG_INSTALL_DIR` to the directory containing the executable.
|
27
|
+
|
28
|
+
For example, if you've installed `sqlpkg` so that the executable is found at `/usr/local/bin/sqlpkg`, then you should set your environment variable like so:
|
29
|
+
|
30
|
+
``` sh
|
31
|
+
SQLPKG_INSTALL_DIR=/usr/local/bin
|
32
|
+
```
|
33
|
+
|
34
|
+
This also works with relative paths. If you've installed into your app's directory at `./.bin/sqlpkg`:
|
35
|
+
|
36
|
+
``` sh
|
37
|
+
SQLPKG_INSTALL_DIR=.bin
|
38
|
+
```
|
18
39
|
|
19
40
|
## Usage
|
20
41
|
|
21
|
-
|
42
|
+
```shell
|
43
|
+
$ bundle exec sqlpkg help
|
44
|
+
┌────────────────────────────────────────────────┐
|
45
|
+
│ sqlpkg is an SQLite package manager. │
|
46
|
+
│ Use it to install or update SQLite extensions. │
|
47
|
+
│ │
|
48
|
+
│ Commands: │
|
49
|
+
│ help Display help │
|
50
|
+
│ info Display package information │
|
51
|
+
│ init Init project scope │
|
52
|
+
│ install Install packages │
|
53
|
+
│ list List installed packages │
|
54
|
+
│ uninstall Uninstall package │
|
55
|
+
│ update Update installed packages │
|
56
|
+
│ version Display version │
|
57
|
+
│ which Display path to extension file │
|
58
|
+
└────────────────────────────────────────────────┘
|
59
|
+
```
|
22
60
|
|
23
61
|
## Development
|
24
62
|
|
data/exe/sqlpkg
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
# because rubygems shims assume a gem's executables are Ruby
|
3
3
|
|
4
|
-
require "
|
4
|
+
require "sqlpkg/commands"
|
5
5
|
|
6
6
|
begin
|
7
|
-
command = [
|
7
|
+
command = [Sqlpkg::Commands.executable, *ARGV]
|
8
8
|
puts command.inspect
|
9
9
|
exec(*command)
|
10
|
-
rescue
|
10
|
+
rescue Sqlpkg::Commands::UnsupportedPlatformException, Sqlpkg::Commands::ExecutableNotFoundException => e
|
11
11
|
warn("ERROR: " + e.message)
|
12
12
|
exit 1
|
13
13
|
end
|
data/lib/sqlpkg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqlpkg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Stephen Margheim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|