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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aad1274de2d7cae934f5b940e97f498193883addffcab77e8420f47425b155fb
4
- data.tar.gz: f6b0f21f92304b161e43c5ca367a0ac7f24ae087a987634d902cddd9807fad74
3
+ metadata.gz: 7789e605db47007d56e1cd228b5a132b3da619582b4aed92ac02a085339832e9
4
+ data.tar.gz: bff4a386150181bbd1e4b8ff9d4e1f4c039a27f8bd36736ea14c185069d8af9b
5
5
  SHA512:
6
- metadata.gz: 443e74eb1cb032d04baa078c1114d1287fb8597258003755fcadbea0b750be074de302a97c794cadd15783c3251296bf3f40735bf96c4886a20cd036180cb93d
7
- data.tar.gz: 2a93211667789f9430df9dee556ecb0aa05702f5c39fad23d3a6b803b946ba91c3af3df9d57fbd0a5c84bca40e8e7a4b3a741c920a59dbf1755e7325ab323d06
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` (Linux),
142
- `~/Library/Application Support/iriq/default.db` (macOS), or
143
- `%LOCALAPPDATA%/iriq/default.db` (Windows). First-run creation prints a
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
- # Platform-aware default. XDG-honoring on Linux + BSD, Apple-style on
311
- # macOS, %LOCALAPPDATA% on Windows. Same logic in Rust so both
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
- base = if (xdg = ENV["XDG_DATA_HOME"].to_s) && !xdg.empty?
315
- File.join(xdg, "iriq")
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
@@ -1,3 +1,3 @@
1
1
  module Iriq
2
- VERSION = "0.35.0"
2
+ VERSION = "0.35.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iriq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.35.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper