snap_cli 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfe6c0d4dfb5110929fbde383c5bf85d8c8aac65da8aeb8f52a0d141cc6839a3
4
- data.tar.gz: c2b873280e94210259b1a3612a06cbebfdfbda2f49e4e041887b39769aaa5d4e
3
+ metadata.gz: a4dea797771e77d4902f244cf76f72c23e7cfb7f43e18ab98408a370d63baab9
4
+ data.tar.gz: 62fa7a8f400ca8e6ab32ce81b57fd782c92a6b1fa634aecf6d604703d97fbcaf
5
5
  SHA512:
6
- metadata.gz: c80699e764042ace98cb644ceadabbe98ebb366331a4e60cceae36b31bbd226ee508301033cb472685e8d678f7f10b503e78a46f85b8bb59fa41ac649cf52da4
7
- data.tar.gz: 77f665608c0f05c2b0998bbd2a48ba76b42f414f38b29293b95b4e130fab3a133b4ee2fd251fca0325cd02ef3ce3bdf36eab37147fd9da44cb70298d591f0e87
6
+ metadata.gz: fef0fc825a4ecc62efccae335d14b4621e56da00edb05c3224c8379d1ee715e34476b86c5b8998e7ae57e4fd76bff9d52ef61ad85ce9635c0c80feb810b1f91e
7
+ data.tar.gz: 8352a4a68f35aaba75f62d36c6c3e309affb857ab59f15e5c243c453d63e5f655e1bb4d9b24efc7973d00e932e248ebe4516e36a22007aab1d6f5cbe03ac55cb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snap_cli (0.1.0)
4
+ snap_cli (0.2.0)
5
5
  snap_api_client (~> 0.3)
6
6
  thor (~> 1.1)
7
7
 
@@ -80,4 +80,4 @@ DEPENDENCIES
80
80
  snap_cli!
81
81
 
82
82
  BUNDLED WITH
83
- 2.2.3
83
+ 2.2.15
data/lib/snap_cli.rb CHANGED
@@ -4,7 +4,7 @@ require 'thor'
4
4
  require 'snap_api_client'
5
5
 
6
6
  require_relative 'snap_cli/errors'
7
- require_relative 'snap_cli/card'
7
+ require_relative 'snap_cli/task'
8
8
  require_relative 'snap_cli/effort'
9
9
  require_relative 'snap_cli/project'
10
10
  require_relative 'snap_cli/application'
@@ -6,9 +6,9 @@ module SnapCLI
6
6
  true
7
7
  end
8
8
 
9
- desc 'card',
10
- 'Perform actions on a specific card'
11
- subcommand 'card', Card
9
+ desc 'task',
10
+ 'Perform actions on a specific task'
11
+ subcommand 'task', Task
12
12
 
13
13
  desc 'effort',
14
14
  'Perform actions on a specific effort'
@@ -8,5 +8,12 @@ module SnapCLI
8
8
  def update_review_url(effort_id, url)
9
9
  SnapCLI.api_client.effort_resource.update_review_url(effort_id, url)
10
10
  end
11
+
12
+ desc 'remove_review_url EFFORT_ID',
13
+ 'Removes the review URL for a given effort'
14
+
15
+ def remove_review_url(effort_id)
16
+ SnapCLI.api_client.effort_resource.update_review_url(effort_id, nil)
17
+ end
11
18
  end
12
19
  end
@@ -8,5 +8,12 @@ module SnapCLI
8
8
  def update_review_url(project_id, url)
9
9
  SnapCLI.api_client.project_resource.update_review_url(project_id, url)
10
10
  end
11
+
12
+ desc 'remove_review_url PROJECT_ID',
13
+ 'Removes the review URL for a given project'
14
+
15
+ def remove_review_url(project_id)
16
+ SnapCLI.api_client.project_resource.update_review_url(project_id, nil)
17
+ end
11
18
  end
12
19
  end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapCLI
4
+ class Task < Thor
5
+ desc 'update_review_url TASK_ID URL',
6
+ 'Updates the review URL for a given task'
7
+
8
+ def update_review_url(task_id, url)
9
+ SnapCLI.api_client.card_resource.update_review_url(task_id, url)
10
+ end
11
+
12
+ desc 'remove_review_url TASK_ID',
13
+ 'Removes the review URL for a given task'
14
+
15
+ def remove_review_url(task_id)
16
+ SnapCLI.api_client.card_resource.update_review_url(task_id, nil)
17
+ end
18
+ end
19
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapCLI
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snap_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lawrance Shepstone
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-07 00:00:00.000000000 Z
11
+ date: 2021-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: snap_api_client
@@ -104,10 +104,10 @@ files:
104
104
  - exe/snap
105
105
  - lib/snap_cli.rb
106
106
  - lib/snap_cli/application.rb
107
- - lib/snap_cli/card.rb
108
107
  - lib/snap_cli/effort.rb
109
108
  - lib/snap_cli/errors.rb
110
109
  - lib/snap_cli/project.rb
110
+ - lib/snap_cli/task.rb
111
111
  - lib/snap_cli/version.rb
112
112
  - snap_cli.gemspec
113
113
  homepage: https://github.com/collcoll/snap-cli
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.2.3
134
+ rubygems_version: 3.2.15
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Snap CLI
data/lib/snap_cli/card.rb DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module SnapCLI
4
- class Card < Thor
5
- desc 'update_review_url CARD_ID URL',
6
- 'Updates the review URL for a given card'
7
-
8
- def update_review_url(card_id, url)
9
- SnapCLI.api_client.card_resource.update_review_url(card_id, url)
10
- end
11
- end
12
- end