fizzy-cli 0.6.0 → 0.6.2

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: 1684a8ac9b61399c368c8ff3b5828f00f965d65cfedadaa03c23eefe002f4661
4
- data.tar.gz: 31615887c4f1c5bbdc7b33c08e216690a1b440b8551e8328ecbefcb455e2fbe4
3
+ metadata.gz: efe749ed1dc92baf36b4697b83f86994ae34ead9c4a158f98a6cf608b33114ad
4
+ data.tar.gz: 3adee01c37ca5939762c0199d54a8e7749779e2d2c29f9d1b07668ddb5512e49
5
5
  SHA512:
6
- metadata.gz: 262b4e467ca32aaa6e202bb21358d0111870ca449983112abdd0d45cfe8e87229b904f0b28185c7ab4246848f69222d9e363aadae9bb49a25af4314a4e96bc5e
7
- data.tar.gz: c6d180d3c263bbf9eefe2bcdd28de99809d825d8af974044e64a8d91c66ac45d7cd35ef07e5dad3204b59187fa6e1c62d4aed303655585ffe5693cd20b95268c
6
+ metadata.gz: 7aafef3d823f393aa066694f7e9bb3105bdb6393f36e38de1f08b07d64bfd31754bbce0d8b441c64c57d36b61e23ac3221d32a005d550d413f6b9e8246e5eb51
7
+ data.tar.gz: 4a7a464768cc0602c453a3ee1e66c0440d54d3d4db32eddf47a979096b2be8d9688f81a801fdc540bbc81f60f228295c51de71b8d5a80be9a57eef79b4d9ef89
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ 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.6.1] - 2026-02-23
9
+
10
+ ### Fixed
11
+ - Thor `ask()` returns nil in non-TTY environments (CI, piped input) causing NoMethodError on `init` command
12
+ - Init test uses basic line editor to avoid Readline bypassing `$stdin` in CI
13
+
8
14
  ## [0.6.0] - 2026-02-23
9
15
 
10
16
  ### Added
data/README.md CHANGED
@@ -10,7 +10,7 @@ A Ruby command-line client for [Fizzy](https://fizzy.do) project management.
10
10
  Requires Ruby >= 3.2.
11
11
 
12
12
  ```sh
13
- gem install fizzy
13
+ gem install fizzy-cli
14
14
  ```
15
15
 
16
16
  ### AI Agent Skill
@@ -12,7 +12,7 @@ module Fizzy
12
12
  s = resp.body
13
13
  output_detail(s, pairs: [
14
14
  ["ID", s["id"]],
15
- ["Description", s["description"]],
15
+ ["Description", s["content"]],
16
16
  ["Completed", s["completed"]],
17
17
  ["Position", s["position"]]
18
18
  ])
@@ -21,11 +21,11 @@ module Fizzy
21
21
  desc "create DESCRIPTION", "Add a step to a card"
22
22
  option :card, required: true, type: :numeric, desc: "Card number"
23
23
  def create(description)
24
- resp = client.post("cards/#{options[:card]}/steps", body: { description: description })
24
+ resp = client.post("cards/#{options[:card]}/steps", body: { content: description })
25
25
  s = resp.body
26
26
  output_detail(s, pairs: [
27
27
  ["ID", s["id"]],
28
- ["Description", s["description"]]
28
+ ["Description", s["content"]]
29
29
  ])
30
30
  end
31
31
 
@@ -34,7 +34,9 @@ module Fizzy
34
34
  option :description, desc: "New description"
35
35
  option :completed, type: :boolean, desc: "Mark completed"
36
36
  def update(step_id)
37
- body = build_body(:description, :completed)
37
+ body = {}
38
+ body[:content] = options[:description] if options[:description]
39
+ body[:completed] = options[:completed] unless options[:completed].nil?
38
40
  raise Thor::Error, "Nothing to update. Provide --description or --completed" if body.empty?
39
41
 
40
42
  path = "cards/#{options[:card]}/steps/#{step_id}"
@@ -43,7 +45,7 @@ module Fizzy
43
45
  if s
44
46
  output_detail(s, pairs: [
45
47
  ["ID", s["id"]],
46
- ["Description", s["description"]],
48
+ ["Description", s["content"]],
47
49
  ["Completed", s["completed"]]
48
50
  ])
49
51
  else
data/lib/fizzy/cli.rb CHANGED
@@ -92,7 +92,7 @@ module Fizzy
92
92
  say " #{i + 1}. #{a["account_name"]} (#{a["account_slug"]})#{marker}"
93
93
  end
94
94
 
95
- choice = ask("Select account number [1]:").strip
95
+ choice = ask("Select account number [1]:").to_s.strip
96
96
  choice = "1" if choice.empty?
97
97
  idx = choice.to_i - 1
98
98
  raise Thor::Error, "Invalid selection" unless idx >= 0 && idx < accounts.size
@@ -114,7 +114,7 @@ module Fizzy
114
114
  say " #{i + 1}. #{b["name"]} (#{b["id"]})"
115
115
  end
116
116
 
117
- board_idx = ask("Select board number:").strip.to_i - 1
117
+ board_idx = ask("Select board number:").to_s.strip.to_i - 1
118
118
  return boards[board_idx]["id"] if board_idx >= 0 && board_idx < boards.size
119
119
 
120
120
  say "Invalid selection, skipping board."
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.6.0"
4
+ VERSION = "0.6.2"
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.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Paluy