Skip to content

Commit eae87b2

Browse files
committed
v0.2.1: fix account slug normalization during login
1 parent 3ea82c5 commit eae87b2

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/),
66
and this project adheres to [Semantic Versioning](https://semver.org/).
77

8+
## [0.2.1] - 2026-02-21
9+
10+
### Fixed
11+
- Normalize account slugs at storage time during login (strip leading `/` from API response)
12+
813
## [0.2.0] - 2026-02-21
914

1015
### Changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
fizzy-cli (0.2.0)
4+
fizzy-cli (0.2.1)
55
thor (~> 1.5)
66

77
GEM
@@ -72,7 +72,7 @@ CHECKSUMS
7272
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
7373
bigdecimal (4.0.1) sha256=8b07d3d065a9f921c80ceaea7c9d4ae596697295b584c296fe599dd0ad01c4a7
7474
crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
75-
fizzy-cli (0.2.0)
75+
fizzy-cli (0.2.1)
7676
hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1
7777
json (2.18.1) sha256=fe112755501b8d0466b5ada6cf50c8c3f41e897fa128ac5d263ec09eedc9f986
7878
language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc

lib/fizzy/cli/auth.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def login
3737
# Build tokens data
3838
token_accounts = accounts.map do |a|
3939
{
40-
"account_slug" => a["slug"],
40+
"account_slug" => Auth.normalize_slug(a["slug"]),
4141
"account_name" => a["name"],
4242
"account_id" => a["id"],
4343
"access_token" => token,
@@ -53,7 +53,7 @@ def login
5353

5454
data = {
5555
"accounts" => token_accounts,
56-
"default_account" => accounts.first["slug"]
56+
"default_account" => Auth.normalize_slug(accounts.first["slug"])
5757
}
5858

5959
FileUtils.mkdir_p(Auth::CONFIG_DIR)

lib/fizzy/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Fizzy
4-
VERSION = "0.2.0"
4+
VERSION = "0.2.1"
55
end

0 commit comments

Comments
 (0)