fizzy-cli 0.2.0 → 0.2.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: 8dff080f62b6b259b77127650d8be4044a35ecd86959efb4aeef2145c1446f54
4
- data.tar.gz: c91fc7730a30946f973afed8f3e88599b4f1e6133f4985c012b26c323112f3aa
3
+ metadata.gz: 7a2f5999437ef4bab56bbc88f4eaad9082b769177505540c349be4a2088d21c8
4
+ data.tar.gz: 4ff1b8da7d8467610a83984e1b9cb896416b236b33b34e8cfeb73c05cdd5e86f
5
5
  SHA512:
6
- metadata.gz: 920efebccdd3501bf2337d2ba494fc7d8a83ec975494069a973dffa20537f8cf6fd3e9aff8f67f509f4cd011e24b1787ff8370fb909591fbf3b820d55c03c096
7
- data.tar.gz: 05d674ae7f2cd41978a6e4ef18a108812e54314fb6a8a0f0a1c5c1dacb096119aebf6b69561b376ee4f6559f9b1b9051121a5d7ba9067aeb383a501ab31e69da
6
+ metadata.gz: '039bde465bd76827a99f32fc83892307f46b5053069d4ccfce5a70fc67ea8e1dc6decffa96f851c2a267a113742b758f2628c0330601d6234d9c53a9efa29109'
7
+ data.tar.gz: f23f826a522ceaa23e7a88603980b14fb303f516c0f84a24992a91aa115d607a0000a2aaaf9a35bbf25ae5a3c7eb38157788594c8eb15eb8d9710f37632806f3
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
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
+
8
13
  ## [0.2.0] - 2026-02-21
9
14
 
10
15
  ### Changed
@@ -37,7 +37,7 @@ module Fizzy
37
37
  # Build tokens data
38
38
  token_accounts = accounts.map do |a|
39
39
  {
40
- "account_slug" => a["slug"],
40
+ "account_slug" => Auth.normalize_slug(a["slug"]),
41
41
  "account_name" => a["name"],
42
42
  "account_id" => a["id"],
43
43
  "access_token" => token,
@@ -53,7 +53,7 @@ module Fizzy
53
53
 
54
54
  data = {
55
55
  "accounts" => token_accounts,
56
- "default_account" => accounts.first["slug"]
56
+ "default_account" => Auth.normalize_slug(accounts.first["slug"])
57
57
  }
58
58
 
59
59
  FileUtils.mkdir_p(Auth::CONFIG_DIR)
data/lib/fizzy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fizzy
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fizzy-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Paluy