hu 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/lib/hu/deploy.rb +6 -1
  3. data/lib/hu/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 780c747561abe6d229c6f7fc87228cc9a5067086
4
- data.tar.gz: a4175dd63dd06db7805ef2c0a9b047fe12ca525e
2
+ SHA256:
3
+ metadata.gz: f68145bbe0ffe1e9de6949fc0572d10232e15e095f9b212ac458660f0bf82982
4
+ data.tar.gz: 4a08b9f6d1c9448d681f42b192c2248e00ec0fad9d4d1c8b39e9db4210739361
5
5
  SHA512:
6
- metadata.gz: 21262291026d32213965436071bc88e40099699b21f71766b50ecaf233d7cdefb7ee720e29d4f72134fe1c59afa8650ea838257c6384349ea1995a86164cd715
7
- data.tar.gz: 6fef51fbe5cde3138e6e339d108248cd064cd001c4e311ca8198af88edf525a99a1b32cdee1eef3922b3f04af471f4809be9a5215fca80f666dfd1764737fc72
6
+ metadata.gz: c406d0e29c6c151eb982e07b38de58dae5e954c7f2a549557c97b8fdc48b6ce55a5cdb39a4b27fa113c4cdace99842c520c3d5639f6677b06e0d2f3587dee48a
7
+ data.tar.gz: 062febcf56f2da774ccdf685dad0e0762ef1b623a9e065da907365f72b1651759723b451264ec89e44beb2b6e2af7a11477ae788915b4855d5b3899d904cfa43
@@ -581,7 +581,12 @@ EOF
581
581
  def ci_status(release_branch_exists=true)
582
582
  okit = Octokit::Client.new(access_token: ENV['HU_GITHUB_ACCESS_TOKEN'])
583
583
 
584
- repo_name = @git.remotes['origin'].url.split(':')[1].gsub('.git', '')
584
+ origin_url = @git.remotes['origin'].url
585
+ if origin_url.downcase.start_with? 'http'
586
+ repo_name = origin_url.split('/')[3..-1].join('/').gsub('.git', '')
587
+ else
588
+ repo_name = origin_url.split(':')[1].gsub('.git', '')
589
+ end
585
590
 
586
591
  begin
587
592
  raw_status_develop = status_develop = okit.status(repo_name, @git.branches["origin/develop"].target_id)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hu
3
- VERSION = '2.0.5'
3
+ VERSION = '2.0.6'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - moe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2018-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -417,7 +417,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
417
417
  version: '0'
418
418
  requirements: []
419
419
  rubyforge_project:
420
- rubygems_version: 2.6.8
420
+ rubygems_version: 2.7.6
421
421
  signing_key:
422
422
  specification_version: 4
423
423
  summary: Heroku Utility.