dorian-arguments 0.4.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/arguments +12 -0
  4. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 668fe84b027d1d3a4fc66a36f3cd02eacf278903f684a4640abfc07555c029f1
4
- data.tar.gz: 3d27c3d748ff0a224546c03ee55b650aefb8a50d0a6bbda60f96b28c85610feb
3
+ metadata.gz: e02f141d6bfdd389868a2971a9b0f36ed727fa78ab18b9b4715498ac55818d0b
4
+ data.tar.gz: 83b5ca9c05d4089c553f928bf9f21d86a2d4465bb89d1a448b5261b3dee3c768
5
5
  SHA512:
6
- metadata.gz: 7933ec19ab7a89c2190179dfaeb2185ba83b0e8c6c3ce7965b8d8eb1ced166b7a63c5d0ebe5cac67af7b96df439fd9d60a2415240b44235758739e0495dddb34
7
- data.tar.gz: 5173d7ccbf5d346f05663b4910631fc8db2578e66e3a08bb03af19cd4336e1f54d14a781863202cd946e3bb6d75c5aad80a7efd1d0cd55cd8254f9246e7464f5
6
+ metadata.gz: 92b8cf10de0ea112586d59ee491ccbed78183c3457e60361c4dd9ca76fe7c2cc5400ce5cb209d2e683767d7b7f8ee7326473967b9c169a432d561253192b7449
7
+ data.tar.gz: 165bf376d5bd39c13ca104d32b098bdad23153714ca9c486f3290ddd977b02088bf84f4bfafefe2c80710d55c4bcf94fa11cb8af5841b6dc43e0edff24a3174a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 1.0.0
data/bin/arguments ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "dorian/arguments"
5
+
6
+ parsed = Dorian::Arguments.parse(version: { alias: :v }, help: { alias: :h })
7
+
8
+ if parsed.options.version
9
+ abort File.read(File.expand_path("../../VERSION", __FILE__))
10
+ else
11
+ abort parsed.help
12
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-arguments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.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-23 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: activesupport
@@ -54,11 +54,13 @@ dependencies:
54
54
  version: '0'
55
55
  description: parses arguments
56
56
  email: dorian@dorianmarie.com
57
- executables: []
57
+ executables:
58
+ - arguments
58
59
  extensions: []
59
60
  extra_rdoc_files: []
60
61
  files:
61
62
  - VERSION
63
+ - bin/arguments
62
64
  - lib/dorian-arguments.rb
63
65
  - lib/dorian/arguments.rb
64
66
  homepage: https://github.com/dorianmariecom/dorian-arguments