dorian-git-ls-ruby-files 0.2.2 → 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 +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 111ca97d9c7124111761737435dc83f89093e345bcf95ecddf1fe26551a74ec8
4
- data.tar.gz: deca044dffa614e3e6debabfc3c3f4563dfcea8ef4f1969e22b2e710256fa71e
3
+ metadata.gz: 27d92c5dece7839846ef2b6dcd7fefe52ecae4491d7907e6e94426bfebba209d
4
+ data.tar.gz: a66609e3d11ff8f2600b8553c07edfe0b70e811ffbeab02717bd3e336c141692
5
5
  SHA512:
6
- metadata.gz: 5b502c0f2403b28e034c0b4fcc3b7c9a9ee0ae1d8ab6f2e42827da486bf052eabaac5f25c8365ef2f1447a306165290858f2990dea26fe521e2ec3df36a13fd6
7
- data.tar.gz: 30cea8223edcd71ac204707b2278e1b7f36563b614634abfbf0a21975b22f425ebfbe4b849bc3c96ef49444469a06d3907986d8144d181f8f0f004c830bcce5e
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.2
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-18 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
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dorian-arguments
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description: list ruby files in git
28
42
  email: dorian@dorianmarie.com
29
43
  executables: