cp8_cli 8.0.0 → 8.0.1

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
  SHA1:
3
- metadata.gz: 1f89f5cef49c8003d4e122a20839552d4f2f9356
4
- data.tar.gz: cb65a62d4e2106f1c257fb975f2e153eeb23bb71
3
+ metadata.gz: 05fe3179164c7a89590d9eae1a9da83d3325be4e
4
+ data.tar.gz: 982b9f0bb24d84953c72e7df5e05f3176b8d1fb6
5
5
  SHA512:
6
- metadata.gz: ea264e71c5e44e09b69497ea494b8ae841361cfa97809238d2877d837efbcb9abf1f9a28da777d91e9f779fd53adc514364fbde7e12021137bb7e85e7af2b7b1
7
- data.tar.gz: 21de39da770d3d3cd563fc606a1552b10328aec458e5475d14f4bc47cc4d618e67d8f568366835d3bfe33150a5df4aa43941317bde3c6ecc3c8ab33827b51d22
6
+ metadata.gz: 221e52824a34658654b6dcf36b1790ec0da93d6d295bd86684e7393ea68fc55c629a852c2336f0e7620953ec1c18599e85b2bf891a6511ab8d976c541f21a1da
7
+ data.tar.gz: '096c5d554eed92fefd3a5d0e182034dbccd658cbd5d1fe5283fdc3c4bb06f721262ac3742c695015512df9ed348f713854c9c31c1dbf04086af6b9f17da7f1b0'
@@ -66,7 +66,7 @@ module Cp8Cli
66
66
  end
67
67
 
68
68
  def existing_pull_request
69
- Github::PullRequest.find_by(branch: name, repo: repo.shorthand)
69
+ Github::PullRequest.find_by(branch: name, repo: repo)
70
70
  end
71
71
 
72
72
  def new_pull_request
@@ -11,7 +11,7 @@ module Cp8Cli
11
11
  end
12
12
 
13
13
  def self.find_by(repo:, branch:)
14
- client.pull_requests(repo, head: branch).map do |data|
14
+ client.pull_requests(repo.shorthand, head: "#{repo.user}:#{branch}").map do |data|
15
15
  new(data)
16
16
  end.first
17
17
  end
@@ -17,14 +17,14 @@ module Cp8Cli
17
17
  "https://github.com/#{shorthand}"
18
18
  end
19
19
 
20
+ def user
21
+ path.split('/').first
22
+ end
23
+
20
24
  private
21
25
 
22
26
  attr_reader :path
23
27
 
24
- def user
25
- path.split('/').first
26
- end
27
-
28
28
  def name
29
29
  path.split('/').last
30
30
  end
@@ -1,5 +1,5 @@
1
1
  module Cp8Cli
2
- VERSION = "8.0.0"
2
+ VERSION = "8.0.1"
3
3
 
4
4
  class Version
5
5
  def self.latest?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cp8_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0
4
+ version: 8.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-05 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -303,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
303
  version: '0'
304
304
  requirements: []
305
305
  rubyforge_project:
306
- rubygems_version: 2.6.14.1
306
+ rubygems_version: 2.6.13
307
307
  signing_key:
308
308
  specification_version: 4
309
309
  summary: Cookpad Global CLI.