sqlpkg 0.1.0-arm64-linux → 0.1.1-arm64-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +46 -8
  3. data/exe/sqlpkg +3 -3
  4. data/lib/sqlpkg/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd49606639a392dcd5ade4201bcfc735af10f140c60f7183baef5eb43973ea31
4
- data.tar.gz: 8620cb302a55fbfafcb2726193de570c93509e63257e2f9bfaf20ae7cd30290b
3
+ metadata.gz: 9e166f7f9f9f3e163a538f3e41b10ae34072e4aee98df764d261da20d3289722
4
+ data.tar.gz: b81065bf57e645828e568b9ac15e7033433470f265755a6e81afe05869f39939
5
5
  SHA512:
6
- metadata.gz: 6e512b733b64a4d3ff438bfa945922c8e1acd02da866e6bd066cd1dc70acafbaf9ef15bb3da40e1a0ef6392b149d2205c2ec699e8b36993300e8b5749ed5ee4c
7
- data.tar.gz: b9dc97e756293e595e383b9b6c22f1064caf3ef861b7712a34ab8ffac0aed8fb5bc1cb953860495d8346901a72ea4bbeaee8c40a02d351618544939d28baf790
6
+ metadata.gz: d557a5052790f70a0fb27332fdf196b6a30cd9a47427e9eb8502e949fea3aad5a61032067fd173ab3429fc3625c0287d4c855e33e16d9a5b91aa6625a7c23772
7
+ data.tar.gz: 4b363edc6a64ad7d8f78419d6ec0f97b1868cbd9d0f4f89d66cb7b3396172eefb4e6ce9860ad1e2397ba22a77236a53fb64a831c0bf72fbdc17f60947c9ffd53
data/README.md CHANGED
@@ -1,24 +1,62 @@
1
1
  # sqlpkg-ruby
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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
- TODO: Write usage instructions here
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 "litestream/commands"
4
+ require "sqlpkg/commands"
5
5
 
6
6
  begin
7
- command = [Litestream::Commands.executable, *ARGV]
7
+ command = [Sqlpkg::Commands.executable, *ARGV]
8
8
  puts command.inspect
9
9
  exec(*command)
10
- rescue Litestream::Commands::UnsupportedPlatformException, Litestream::Commands::ExecutableNotFoundException => e
10
+ rescue Sqlpkg::Commands::UnsupportedPlatformException, Sqlpkg::Commands::ExecutableNotFoundException => e
11
11
  warn("ERROR: " + e.message)
12
12
  exit 1
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Sqlpkg
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
4
+ version: 0.1.1
5
5
  platform: arm64-linux
6
6
  authors:
7
7
  - Stephen Margheim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-20 00:00:00.000000000 Z
11
+ date: 2023-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip