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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/fizzy/cli/steps.rb +7 -5
- data/lib/fizzy/cli.rb +2 -2
- data/lib/fizzy/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: efe749ed1dc92baf36b4697b83f86994ae34ead9c4a158f98a6cf608b33114ad
|
|
4
|
+
data.tar.gz: 3adee01c37ca5939762c0199d54a8e7749779e2d2c29f9d1b07668ddb5512e49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
data/lib/fizzy/cli/steps.rb
CHANGED
|
@@ -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["
|
|
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: {
|
|
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["
|
|
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 =
|
|
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["
|
|
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