iriq 0.35.0 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +4 -4
- data/lib/iriq/cli.rb +7 -8
- data/lib/iriq/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7789e605db47007d56e1cd228b5a132b3da619582b4aed92ac02a085339832e9
|
|
4
|
+
data.tar.gz: bff4a386150181bbd1e4b8ff9d4e1f4c039a27f8bd36736ea14c185069d8af9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8e79a3f4e012d2ceb2777d6c0816a4797e67dae688394ae49cbf19aff3a9bff9b6304ed0a11e7456c3cddec55a0691c3457fa9b57f717b55b82bb31161209c5
|
|
7
|
+
data.tar.gz: 102c06bf3146ff083444832f2d62dc274d1e07831223a6ee54ce4112f21ad5a5854a1de152424159855836d1be5d698b08de8a1129206e126e11b411c3935860
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
### 0.35.1 (2026-09-15)
|
|
2
|
+
|
|
3
|
+
#### What you must do
|
|
4
|
+
|
|
5
|
+
- **macOS: move your corpus, or point `IRIQ_CORPUS` at it.** The default corpus is now `~/.local/share/iriq/default.db` (or `$XDG_DATA_HOME/iriq/default.db` when that's set), not `~/Library/Application Support/iriq/default.db`. iriq doesn't move it: the first run of this version starts an empty corpus and prints `created corpus at …`. To keep what yours has learned, before that run: `mkdir -p ~/.local/share && mv ~/Library/Application\ Support/iriq ~/.local/share/iriq`. Or set `IRIQ_CORPUS=~/Library/Application\ Support/iriq/default.db`. Linux is unaffected; Windows is unchanged.
|
|
6
|
+
|
|
7
|
+
#### Changed
|
|
8
|
+
|
|
9
|
+
- **The default corpus follows XDG on macOS too:** `$XDG_DATA_HOME/iriq` if set and non-empty, else `~/.local/share/iriq`; `%LOCALAPPDATA%\iriq` on Windows. `--corpus` and `IRIQ_CORPUS` still override it. The Ruby CLI on Windows no longer honors `XDG_DATA_HOME`, matching the Rust CLI.
|
|
10
|
+
|
|
1
11
|
### 0.35.0 (2026-09-15)
|
|
2
12
|
|
|
3
13
|
A hardening round. Rust library consumers have migration work; CLI users mostly get fixes, plus a few rules made explicit.
|
data/README.md
CHANGED
|
@@ -138,10 +138,10 @@ The corpus only acts on evidence: it changes a shape only at a position or
|
|
|
138
138
|
param it has seen at least 5 times. Until then, `-n` prints exactly what `-C`
|
|
139
139
|
would. Dates and currencies always print canonically (`2024-01-15`, `USD`).
|
|
140
140
|
|
|
141
|
-
The default corpus lives at `$XDG_DATA_HOME/iriq/default.db
|
|
142
|
-
|
|
143
|
-
`%LOCALAPPDATA%/iriq/default.db`
|
|
144
|
-
one-line stderr notice. Three knobs control it:
|
|
141
|
+
The default corpus lives at `$XDG_DATA_HOME/iriq/default.db`, or
|
|
142
|
+
`~/.local/share/iriq/default.db` when `XDG_DATA_HOME` is unset (macOS and
|
|
143
|
+
Linux alike; `%LOCALAPPDATA%/iriq/default.db` on Windows). First-run creation
|
|
144
|
+
prints a one-line stderr notice. Three knobs control it:
|
|
145
145
|
|
|
146
146
|
```sh
|
|
147
147
|
$ iriq --no-corpus -n https://foo.com/users/123 # one-shot ephemeral; or -C
|
data/lib/iriq/cli.rb
CHANGED
|
@@ -307,16 +307,15 @@ module Iriq
|
|
|
307
307
|
default_corpus_path
|
|
308
308
|
end
|
|
309
309
|
|
|
310
|
-
#
|
|
311
|
-
#
|
|
312
|
-
# runtimes share the same default.db.
|
|
310
|
+
# %LOCALAPPDATA%\iriq on Windows; everywhere else (macOS included)
|
|
311
|
+
# $XDG_DATA_HOME/iriq if set and non-empty, else ~/.local/share/iriq.
|
|
312
|
+
# Mirrored in Rust so both runtimes share the same default.db.
|
|
313
313
|
def default_corpus_path
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
elsif RUBY_PLATFORM =~ /darwin/
|
|
317
|
-
File.expand_path("~/Library/Application Support/iriq")
|
|
318
|
-
elsif RUBY_PLATFORM =~ /mingw|mswin|cygwin/
|
|
314
|
+
xdg = ENV["XDG_DATA_HOME"].to_s
|
|
315
|
+
base = if RUBY_PLATFORM =~ /mingw|mswin|cygwin/
|
|
319
316
|
File.join(ENV["LOCALAPPDATA"].to_s.empty? ? File.expand_path("~/AppData/Local") : ENV["LOCALAPPDATA"], "iriq")
|
|
317
|
+
elsif !xdg.empty?
|
|
318
|
+
File.join(xdg, "iriq")
|
|
320
319
|
else
|
|
321
320
|
File.expand_path("~/.local/share/iriq")
|
|
322
321
|
end
|
data/lib/iriq/version.rb
CHANGED