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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/snap_cli.rb +1 -1
- data/lib/snap_cli/application.rb +3 -3
- data/lib/snap_cli/effort.rb +7 -0
- data/lib/snap_cli/project.rb +7 -0
- data/lib/snap_cli/task.rb +19 -0
- data/lib/snap_cli/version.rb +1 -1
- metadata +4 -4
- data/lib/snap_cli/card.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4dea797771e77d4902f244cf76f72c23e7cfb7f43e18ab98408a370d63baab9
|
4
|
+
data.tar.gz: 62fa7a8f400ca8e6ab32ce81b57fd782c92a6b1fa634aecf6d604703d97fbcaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fef0fc825a4ecc62efccae335d14b4621e56da00edb05c3224c8379d1ee715e34476b86c5b8998e7ae57e4fd76bff9d52ef61ad85ce9635c0c80feb810b1f91e
|
7
|
+
data.tar.gz: 8352a4a68f35aaba75f62d36c6c3e309affb857ab59f15e5c243c453d63e5f655e1bb4d9b24efc7973d00e932e248ebe4516e36a22007aab1d6f5cbe03ac55cb
|
data/Gemfile.lock
CHANGED
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/
|
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'
|
data/lib/snap_cli/application.rb
CHANGED
data/lib/snap_cli/effort.rb
CHANGED
@@ -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
|
data/lib/snap_cli/project.rb
CHANGED
@@ -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
|
data/lib/snap_cli/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|