octostat 0.4.0 → 0.4.1

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: 5233f9bbf3702251a2914d07093caab07a8aeaf5461f970027237c6c6ea0f301
4
- data.tar.gz: d9171098a6fdc823d91bb7254028f5092ca1c197d14002c69369551554d7c4a1
3
+ metadata.gz: da2005b56adfaf8ca9bb935014dc81652541e6ec5d95b61797dd21e19cb2932a
4
+ data.tar.gz: d308b1fcda48af4006a4d69e6282af158273c852e0c7b9a8090e34a316140dfe
5
5
  SHA512:
6
- metadata.gz: 994ca4fe6a5531b57f22144dfb31eac32be8a05c4fc0b3b14a5ede3de5e15d8e9ab26bb75af6192cf590bc05e9d338a1f70ff295381b6439830344ba14b73a54
7
- data.tar.gz: 5998dcefbd49b274acd2035e8214ecf1e21fa5b5fd05d8ee24d924fe9be7eb01be05bcfcd8703cbe8d3d940de12a01a5e3d3fffcd0ae3a80dce845ae613e9987
6
+ metadata.gz: 90eb0b7bd727dd300c3329b28f58f70c5e5dcc3460e0c8b36476212fad4112c14753a3e1a6a3b8761ac15fa0baac5b4a9bba368814981452846ed414af5038ef
7
+ data.tar.gz: 71bef1bcad902a94e879b6cec4345557578b5a9b266ff6bc6c529f94ac5000dde42b0fa64347c8665f23b43020b3fb4232d7f079d118889fbdf2553d147ad247
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.1] 2025-03-15
4
+
5
+ - Better error on missing repo
6
+
3
7
  ## [0.4.0] 2025-03-15
4
8
 
5
9
  - Display progress
@@ -18,6 +18,9 @@ module Octostat
18
18
  end
19
19
  puts_progress git.count
20
20
  puts "\nDone!"
21
+ rescue Octostat::Error => e
22
+ warn e.message
23
+ exit 1
21
24
  end
22
25
 
23
26
  private
data/lib/octostat/git.rb CHANGED
@@ -54,8 +54,10 @@ module Octostat
54
54
  private
55
55
 
56
56
  def clone_repo upstream
57
+ puts "Cloning #{upstream}"
57
58
  repo_path = Dir.mktmpdir
58
- Open3.capture2(*CLONE_COMMAND, upstream, repo_path)
59
+ status = Open3.capture2(*CLONE_COMMAND, upstream, repo_path)[1]
60
+ raise Octostat::Error.new("Error cloning '#{upstream}'") unless status.success?
59
61
  repo_path
60
62
  end
61
63
 
@@ -1,3 +1,3 @@
1
1
  module Octostat
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octostat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joé Dupuis