gem-clone 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 836f42b5a4924b0e9d94246ff6d12bb2f39faa30c51647d8443f75a4f1b98656
4
- data.tar.gz: 22c882c0be0897264b54cbf865e9ba234cd7ec05d778ece19431c1158c6e8577
3
+ metadata.gz: f05d7ae51f03ff10466a4db393f7ef54a12bede9bed12c7e1b45a94932334c7a
4
+ data.tar.gz: e88a27ac3b234f8a2111af37ac45797a1f4f1dae4b028fe75a7f45b775ef974b
5
5
  SHA512:
6
- metadata.gz: e911bd7cf6c713b46e3e9ca34da2edd34c2af8e6988e308ace4b403d7526a7722abc009f1b8c655f06f0da76fa5522cafffa82bceeaa8a2995dc2e80f1b60500
7
- data.tar.gz: fb3c3a11745f66da76dc3db82173d3b01c611e5905578a6f3feeddac926bf8faa4208ca0c39ab95e6f5d2e8a1846ddf8dfdc9b16c3f477e6cd260b8c17a1819b
6
+ metadata.gz: 24e912fb1c57eaa8f4c8eeacfddd464da3b59357fd87b613f976e5162ad3990d5dfa3ddcd87027a3614689a290fb58be1a798442f43b542960c9c42e74edeeca
7
+ data.tar.gz: e1f237bf55e5db12a6aa84559dd6431836fa48e7c34bc55f5346c036027a0e34c71c049ca13f488165d7fb71f036aef20e0574bc3659e847b582a43a6afbe927
@@ -5,8 +5,9 @@ require 'uri'
5
5
  require 'open3'
6
6
 
7
7
  class Gem::Commands::CloneCommand < Gem::Command
8
- # git goget answers with this when the repository cannot be reached at all.
9
- GOGET_SKIPPED = 3
8
+ # git goget answers with these for a repository it deliberately left alone.
9
+ GOGET_UNREACHABLE = 3
10
+ GOGET_LOCAL_WORK = 4
10
11
 
11
12
  def initialize
12
13
  super 'clone', 'Clone a gem repository using git goget, ghq, or git'
@@ -145,9 +146,11 @@ Examples:
145
146
  case $?.exitstatus
146
147
  when 0
147
148
  say "Successfully cloned repository: #{url}"
148
- when GOGET_SKIPPED
149
+ when GOGET_UNREACHABLE
149
150
  alert_error "Repository is unreachable: #{url}"
150
151
  terminate_interaction 1
152
+ when GOGET_LOCAL_WORK
153
+ alert_warning "Left the existing checkout alone: #{url}"
151
154
  else
152
155
  alert_error "Failed to clone repository with git goget."
153
156
  terminate_interaction 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-clone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi SHIBATA