dorian-dir 0.5.1 → 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/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: 1fee9981e9896ddf9c114502466103d6a0db365687d3303486a6ad43432d7e13
4
+ data.tar.gz: 6f0da3e92d874c47f597a68aa845b9e0a9cefb23d7fb75bb243fbb733b98def1
5
5
  SHA512:
6
- metadata.gz: 4960f67fd328395f40a6bdc4a4555389eba723b419fe2b477d2feffaa1e020114f6c468fa25d59d10679bd08b03e379e7f4490f8f297a7a3c71cb847d24f3b82
7
- data.tar.gz: c3271e1f4d69095c04936ba499319561bdf7147894a33bb440eb24095aedd4ea40abe30a676d5dca46aa506d36e7e73a641df10053c1d43d137d5131b4fad2e3
6
+ metadata.gz: 2bed41b2bd103f9ebeeff9005c7050e02ced2f5f86b665a3e5127173ffb9c767c67065f0c09d966ec75882c2df9f01f84f4090bee356ebbe4b5cccdf2bb73245
7
+ data.tar.gz: 57b342d0db34303e5dc55b9844098c333b839d1ea39a8a042284ec818603c08e0ee6d0be1837914a87459a1b929e922b4e5dc6d95f496d9a19286761be1e071d
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: 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 directories
28
42
  email: dorian@dorianmarie.com
29
43
  executables: