dorian-dir 0.5.1 → 0.5.2

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/dir +9 -0
  3. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c114a3f06a002b406c6220334fd57fee1ff3c44ad1977b1a25bf2df7f059d928
4
- data.tar.gz: aaa31552d3e3b8d6e8879ca35b177cde79a7590ba6d5a979f7003934276ca446
3
+ metadata.gz: 1ced9a084ef7cc062bbfd7af65578ba762108ebac8e6f43ae650b3890f9105c9
4
+ data.tar.gz: c864cf6293402b3fcefed47d780f7a970d962e99f1367bc13ebec45d300c4882
5
5
  SHA512:
6
- metadata.gz: 4960f67fd328395f40a6bdc4a4555389eba723b419fe2b477d2feffaa1e020114f6c468fa25d59d10679bd08b03e379e7f4490f8f297a7a3c71cb847d24f3b82
7
- data.tar.gz: c3271e1f4d69095c04936ba499319561bdf7147894a33bb440eb24095aedd4ea40abe30a676d5dca46aa506d36e7e73a641df10053c1d43d137d5131b4fad2e3
6
+ metadata.gz: e3ec0b7b7806ce871286b9a5febf2779e3334505e8dac78175c5e4d10be3ffa72fba45216628c60e0d28df67ba3dd76450c79cb7b4b40f0032c0730fe03e8a29
7
+ data.tar.gz: 843da68d5c1884933eb51d54398ccb5b5d0f5aefaea020ca7565e7298119fbb427aa1518fac47ee0dfea86a708b4ee725c676c13d93df1deea9932364887a86e
data/bin/dir CHANGED
@@ -2,6 +2,15 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "git"
5
+ require "dorian/arguments"
6
+
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__))
13
+ end
5
14
 
6
15
  puts(
7
16
  Git
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-dir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
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-22 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 directories
28
42
  email: dorian@dorianmarie.com
29
43
  executables: