snap_cli 0.3.0 → 0.4.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: a4dea797771e77d4902f244cf76f72c23e7cfb7f43e18ab98408a370d63baab9
4
- data.tar.gz: 62fa7a8f400ca8e6ab32ce81b57fd782c92a6b1fa634aecf6d604703d97fbcaf
3
+ metadata.gz: 05e06bf6f06058cd8bfb017ba279880b696059b7e98984e4ea5bf60f394f9915
4
+ data.tar.gz: efdffb25755fef5ce571f23ed72d1729cab19a3a2b4a67eb149815b98b53a1a0
5
5
  SHA512:
6
- metadata.gz: fef0fc825a4ecc62efccae335d14b4621e56da00edb05c3224c8379d1ee715e34476b86c5b8998e7ae57e4fd76bff9d52ef61ad85ce9635c0c80feb810b1f91e
7
- data.tar.gz: 8352a4a68f35aaba75f62d36c6c3e309affb857ab59f15e5c243c453d63e5f655e1bb4d9b24efc7973d00e932e248ebe4516e36a22007aab1d6f5cbe03ac55cb
6
+ metadata.gz: 1496145ec74cb29b30cf7e152b205647d263a51b9f953b51ae9b62367dcf1dfa483f8d292a389e46e0cf94b9a545382285759f1abfe3924d06a4aabf00b2586f
7
+ data.tar.gz: 4f7351a1dfc169f97b346a801bad142210e142c61a7d0a9856b345ff27737195c3d633561086179420d40911b0e8be53d78b02ab19f5a052e6bcfe7bce356faa
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snap_cli (0.2.0)
5
- snap_api_client (~> 0.3)
4
+ snap_cli (0.3.0)
5
+ snap_api_client (~> 0.4)
6
6
  thor (~> 1.1)
7
7
 
8
8
  GEM
@@ -14,7 +14,7 @@ GEM
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.3)
17
+ ffi (1.15.4)
18
18
  ffi-compiler (1.0.1)
19
19
  ffi (>= 1.0.0)
20
20
  rake
@@ -61,13 +61,13 @@ 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.3.0)
64
+ snap_api_client (0.4.0)
65
65
  http (~> 4.4)
66
66
  thor (~> 1.1)
67
67
  thor (1.1.0)
68
68
  unf (0.1.4)
69
69
  unf_ext
70
- unf_ext (0.0.7.7)
70
+ unf_ext (0.0.8)
71
71
  unicode-display_width (1.7.0)
72
72
 
73
73
  PLATFORMS
@@ -80,4 +80,4 @@ DEPENDENCIES
80
80
  snap_cli!
81
81
 
82
82
  BUNDLED WITH
83
- 2.2.15
83
+ 2.2.22
@@ -17,5 +17,9 @@ module SnapCLI
17
17
  desc 'project',
18
18
  'Perform actions on a specific project'
19
19
  subcommand 'project', Project
20
+
21
+ desc 'pull_request',
22
+ 'Perform actions on a specific pull request'
23
+ subcommand 'pull_request', PullRequest
20
24
  end
21
25
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapCLI
4
+ class PullRequest < Thor
5
+ desc 'create_import_request REPOSITORY_NAME NUMBER',
6
+ 'Requests that a pull request be imported'
7
+
8
+ def create_import_request(repository_name, number)
9
+ SnapCLI.api_client.pull_request.create_import_request(repository_name, number)
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.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
data/lib/snap_cli.rb CHANGED
@@ -7,6 +7,7 @@ require_relative 'snap_cli/errors'
7
7
  require_relative 'snap_cli/task'
8
8
  require_relative 'snap_cli/effort'
9
9
  require_relative 'snap_cli/project'
10
+ require_relative 'snap_cli/pull_request'
10
11
  require_relative 'snap_cli/application'
11
12
  require_relative 'snap_cli/version'
12
13
 
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.3'
30
+ spec.add_dependency 'snap_api_client', '~> 0.4'
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.3.0
4
+ version: 0.4.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-08-17 00:00:00.000000000 Z
11
+ date: 2021-12-20 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.3'
19
+ version: '0.4'
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.3'
26
+ version: '0.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -107,6 +107,7 @@ files:
107
107
  - lib/snap_cli/effort.rb
108
108
  - lib/snap_cli/errors.rb
109
109
  - lib/snap_cli/project.rb
110
+ - lib/snap_cli/pull_request.rb
110
111
  - lib/snap_cli/task.rb
111
112
  - lib/snap_cli/version.rb
112
113
  - snap_cli.gemspec
@@ -131,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  - !ruby/object:Gem::Version
132
133
  version: '0'
133
134
  requirements: []
134
- rubygems_version: 3.2.15
135
+ rubygems_version: 3.2.22
135
136
  signing_key:
136
137
  specification_version: 4
137
138
  summary: Snap CLI