sqlpkg 0.1.0-x86_64-linux → 0.1.1-x86_64-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: b187b87ea059f8fe3c905c6fa8a138881e7efdd743a6a566def0b96092f25748
4
- data.tar.gz: b4bf32183dff36343a5bd7c7ac663a90386b1c141e011d498aa708eecb67ff9c
3
+ metadata.gz: 72469641de420cedc2cda5f13efa63919512c94f5848df77edbc82c4b7e1b98c
4
+ data.tar.gz: 47d388db8bb2d40e9e25d970acd01d7b1075d730891af9caae34a97cf876b3a0
5
5
  SHA512:
6
- metadata.gz: dc248498fa21b93c25d0cd193ea00ed4fee60f7baca21b9f5291fbbfa5010d81fa5b3c6115dc4c43cbb14003c367989d20d13db71ace1554b12c3a090636eb09
7
- data.tar.gz: 75bbd1192df0d6339db603fbb19eab3c5ceefef9f8bc77877eed23e5f2024063e2bfad0b9c5adb88dc3e7ef235f992d399c1981cc7ccf41beed0d8888596f11b
6
+ metadata.gz: f9ef11983c64193061a7c27f608208e71bed0fc96e82ed2c4dbe39a9ae73d186f59e6c3772b4066659c5881a3434d1f264d956205ec1a1aebfd47e41f358d904
7
+ data.tar.gz: 7d970fdd91a9f24f052a573ba6cbd5f1bd9d6fcd65c0523929b48660e6946645b5e20065ce2bcdeb53b525b4209062e5f3526efd0de92b196d1bb784121e5358
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: x86_64-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