octostat 0.4.1 → 0.4.2

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: da2005b56adfaf8ca9bb935014dc81652541e6ec5d95b61797dd21e19cb2932a
4
- data.tar.gz: d308b1fcda48af4006a4d69e6282af158273c852e0c7b9a8090e34a316140dfe
3
+ metadata.gz: 58b1ac73ef05f08cfa685900797998e55c3873a6ab8bd48dd5bb69504a2767fd
4
+ data.tar.gz: f36d8d9dc3b051332216d35a88373d853181e9212992e6ed29e561457d9d528b
5
5
  SHA512:
6
- metadata.gz: 90eb0b7bd727dd300c3329b28f58f70c5e5dcc3460e0c8b36476212fad4112c14753a3e1a6a3b8761ac15fa0baac5b4a9bba368814981452846ed414af5038ef
7
- data.tar.gz: 71bef1bcad902a94e879b6cec4345557578b5a9b266ff6bc6c529f94ac5000dde42b0fa64347c8665f23b43020b3fb4232d7f079d118889fbdf2553d147ad247
6
+ metadata.gz: cd0682ccf500ab22463b5c42fa65c8d7d646d606bfeb6f739ff588a0584deb499043cd61787a0ae5434668cc704be6d3a5fc46571ac54ba8f3433d4a5f64516c
7
+ data.tar.gz: 7cebd4c675e228910bc48a1117be8e52aab418f9640fb7f1ca05c61dd0393de592570ad9b75995386bd7ed4c41c0fcd01f108c822556e6d1e03e0b0fd3edab1c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.2] 2025-03-15
4
+
5
+ - Better help
6
+
3
7
  ## [0.4.1] 2025-03-15
4
8
 
5
9
  - Better error on missing repo
@@ -34,7 +34,24 @@ module Octostat
34
34
 
35
35
  def parser
36
36
  OptionParser.new do |opts|
37
- opts.on("-dDB", "--db=DB", "Path to the SQLite db") { |db| @db_path = db }
37
+ opts.banner = <<~HELP
38
+ Usage: octostat [options] [REPO]
39
+
40
+ REPO:
41
+ - A local path to a Git repository, or
42
+ - A Git URL (e.g., https://github.com/user/repo.git)
43
+
44
+ If REPO is a URL, octostat will clone it into a temporary directory.
45
+ If REPO is omitted, octostat will use the current directory.
46
+
47
+ Output:
48
+ - Octostat stores repository statistics in an SQLite database.
49
+ - By default, it writes to `./octostat.sqlite`.
50
+ - Use `--db` to specify a custom database path.
51
+
52
+ HELP
53
+
54
+ opts.on("-dDB", "--db=DB", "Path to the SQLite db (default: ./octostat.sqlite)") { |db| @db_path = db }
38
55
  end
39
56
  end
40
57
  end
@@ -1,3 +1,3 @@
1
1
  module Octostat
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
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.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joé Dupuis