snap_cli 0.1.0 → 0.2.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: 51ea361d02467d566bd6d703672a840e6426744f0ec1e22d9f1060194243bf04
4
- data.tar.gz: c85ac7066029ed13c05316eeefb707a5bf75794065ac1f24471f13583d6f1667
3
+ metadata.gz: cfe6c0d4dfb5110929fbde383c5bf85d8c8aac65da8aeb8f52a0d141cc6839a3
4
+ data.tar.gz: c2b873280e94210259b1a3612a06cbebfdfbda2f49e4e041887b39769aaa5d4e
5
5
  SHA512:
6
- metadata.gz: 9d2bcfee865acb3e093f8be9b493863d34425e40141f7883d3c9ee28045b467d20398a0396dc90a69b714871c0560c0b92282adcaf91debf254d9d5972de79fd
7
- data.tar.gz: 2936495e90d64e99df58b46341c4dc375ccd8bbec8802218e2220ef5bb70201a39324ac62f0e68fa5b4ace39739d5cc3c0ddd629d3693f3b28c377ed56548758
6
+ metadata.gz: c80699e764042ace98cb644ceadabbe98ebb366331a4e60cceae36b31bbd226ee508301033cb472685e8d678f7f10b503e78a46f85b8bb59fa41ac649cf52da4
7
+ data.tar.gz: 77f665608c0f05c2b0998bbd2a48ba76b42f414f38b29293b95b4e130fab3a133b4ee2fd251fca0325cd02ef3ce3bdf36eab37147fd9da44cb70298d591f0e87
data/Gemfile.lock CHANGED
@@ -2,19 +2,19 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  snap_cli (0.1.0)
5
- snap_api_client (~> 0.2)
5
+ snap_api_client (~> 0.3)
6
6
  thor (~> 1.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.7.0)
11
+ addressable (2.8.0)
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
13
  ast (2.4.2)
14
14
  diff-lcs (1.4.4)
15
15
  domain_name (0.5.20190701)
16
16
  unf (>= 0.0.5, < 1.0.0)
17
- ffi (1.15.0)
17
+ ffi (1.15.3)
18
18
  ffi-compiler (1.0.1)
19
19
  ffi (>= 1.0.0)
20
20
  rake
@@ -23,7 +23,7 @@ GEM
23
23
  http-cookie (~> 1.0)
24
24
  http-form_data (~> 2.2)
25
25
  http-parser (~> 1.2.0)
26
- http-cookie (1.0.3)
26
+ http-cookie (1.0.4)
27
27
  domain_name (~> 0.5)
28
28
  http-form_data (2.3.0)
29
29
  http-parser (1.2.3)
@@ -61,7 +61,7 @@ GEM
61
61
  rubocop-ast (1.4.1)
62
62
  parser (>= 2.7.1.5)
63
63
  ruby-progressbar (1.11.0)
64
- snap_api_client (0.2.0)
64
+ snap_api_client (0.3.0)
65
65
  http (~> 4.4)
66
66
  thor (~> 1.1)
67
67
  thor (1.1.0)
data/lib/snap_cli.rb CHANGED
@@ -5,6 +5,8 @@ require 'snap_api_client'
5
5
 
6
6
  require_relative 'snap_cli/errors'
7
7
  require_relative 'snap_cli/card'
8
+ require_relative 'snap_cli/effort'
9
+ require_relative 'snap_cli/project'
8
10
  require_relative 'snap_cli/application'
9
11
  require_relative 'snap_cli/version'
10
12
 
@@ -9,5 +9,13 @@ module SnapCLI
9
9
  desc 'card',
10
10
  'Perform actions on a specific card'
11
11
  subcommand 'card', Card
12
+
13
+ desc 'effort',
14
+ 'Perform actions on a specific effort'
15
+ subcommand 'effort', Effort
16
+
17
+ desc 'project',
18
+ 'Perform actions on a specific project'
19
+ subcommand 'project', Project
12
20
  end
13
21
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapCLI
4
+ class Effort < Thor
5
+ desc 'update_review_url EFFORT_ID URL',
6
+ 'Updates the review URL for a given effort'
7
+
8
+ def update_review_url(effort_id, url)
9
+ SnapCLI.api_client.effort_resource.update_review_url(effort_id, url)
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapCLI
4
+ class Project < Thor
5
+ desc 'update_review_url PROJECT_ID URL',
6
+ 'Updates the review URL for a given project'
7
+
8
+ def update_review_url(project_id, url)
9
+ SnapCLI.api_client.project_resource.update_review_url(project_id, url)
10
+ end
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapCLI
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
data/snap_cli.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.add_dependency 'snap_api_client', '~> 0.2'
30
+ spec.add_dependency 'snap_api_client', '~> 0.3'
31
31
  spec.add_dependency 'thor', '~> 1.1'
32
32
 
33
33
  spec.add_development_dependency 'rake', '~> 13.0'
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.1.0
4
+ version: 0.2.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-04-18 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: snap_api_client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -105,7 +105,9 @@ files:
105
105
  - lib/snap_cli.rb
106
106
  - lib/snap_cli/application.rb
107
107
  - lib/snap_cli/card.rb
108
+ - lib/snap_cli/effort.rb
108
109
  - lib/snap_cli/errors.rb
110
+ - lib/snap_cli/project.rb
109
111
  - lib/snap_cli/version.rb
110
112
  - snap_cli.gemspec
111
113
  homepage: https://github.com/collcoll/snap-cli