fizzy-cli 0.6.1 → 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: 89a8e39c28c7a8d49b3af1f3b163c2a261bd858a2d4f4f86a593b69250d59959
4
- data.tar.gz: dec53af4aa9bed136735432f17422fd62d50a4070639b6234757afde2e944a0b
3
+ metadata.gz: efe749ed1dc92baf36b4697b83f86994ae34ead9c4a158f98a6cf608b33114ad
4
+ data.tar.gz: 3adee01c37ca5939762c0199d54a8e7749779e2d2c29f9d1b07668ddb5512e49
5
5
  SHA512:
6
- metadata.gz: 7ecf54d250641fa05e79d9424158cd838c668b15dfd90a687501509ab6cba901bb813fb42d411b626a260a0e2d412a268315ebd4b0cd6febacc7d7a74f820779
7
- data.tar.gz: edcdf11b52adf3968454aa0e8838e9ad6227510c49853ffb7ece7b53d01d11600bd1f1848c86b913f6e8349127fc625aa8ac5e90bc8ce5e9bf78554e606caf6f
6
+ metadata.gz: 7aafef3d823f393aa066694f7e9bb3105bdb6393f36e38de1f08b07d64bfd31754bbce0d8b441c64c57d36b61e23ac3221d32a005d550d413f6b9e8246e5eb51
7
+ data.tar.gz: 4a7a464768cc0602c453a3ee1e66c0440d54d3d4db32eddf47a979096b2be8d9688f81a801fdc540bbc81f60f228295c51de71b8d5a80be9a57eef79b4d9ef89
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/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fizzy
4
- VERSION = "0.6.1"
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.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Paluy