dorian-git-ls-ruby-files 0.2.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/git-ls-ruby-files +7 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea7099bd27dea6d58e31cf5b3cfea5652a9e39257be5bdbc6958d777d0b4af03
4
- data.tar.gz: '0348ba4f7a6a85263d18df0cf343897fc25756b84a727d94e5e5ed7079f4db5e'
3
+ metadata.gz: 27d92c5dece7839846ef2b6dcd7fefe52ecae4491d7907e6e94426bfebba209d
4
+ data.tar.gz: a66609e3d11ff8f2600b8553c07edfe0b70e811ffbeab02717bd3e336c141692
5
5
  SHA512:
6
- metadata.gz: 55d2695e6f1846400968107c32a8a166c465d7afda48a3128d301ced9ebc76b5d4e288299a8b9a49a8958a33dac5f8ae30d4be9b8b5e9ca46a208e367209a8c6
7
- data.tar.gz: d5e5ff38fba9a0f2e49fde47ba611cbfd01c26bdf3623c91a6fa744f44c70c53733ed6f5829d1b0cf63808badf12f81b833671dd987309b923748e096b0bf555
6
+ metadata.gz: 2084b3f921c219fa9de1f178ac5f30d6540fd9cba7df5e94616788cecc4a14318d3834b92343b8a8577f36c5ea8bff4616c5bc2eb9117135c125994062c4ebdf
7
+ data.tar.gz: f1b67b676f2660b1adb4918320f9ef7937860a0bc427af7db24cfbc9bcb13b498d64f513b8b35449fab8262273a8223f4b49521d29cd7fcd8e68b542f61142b8
@@ -2,10 +2,14 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "git"
5
+ require "dorian/arguments"
5
6
 
6
- unless ARGV.empty?
7
- puts "USAGE: git ls-ruby-files"
8
- exit
7
+ parsed = Dorian::Arguments.parse(version: { alias: :v }, help: { alias: :h })
8
+
9
+ abort parsed.help if parsed.options.help
10
+
11
+ if parsed.options.version
12
+ abort File.read(File.expand_path("../../VERSION", __FILE__))
9
13
  end
10
14
 
11
15
  ruby_extensions = %w[
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-git-ls-ruby-files
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git