dorian-pretty 0.3.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/pretty +7 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdee0f71e946db444ede15ce992e7419f8756b007a9c225aa537db251377311f
4
- data.tar.gz: 10b57b94e51c4ba48e76d8568f3478cd6335b17e81e131788123d88cf945cbf8
3
+ metadata.gz: 141ab7435f5bcb3ec57f38ec555752bd7beccd783ea090cdd72ffd6e73148ae7
4
+ data.tar.gz: de3817ff7b2023c2ca4e47acc76be4f878dd777bc157f551d145d249c6621a80
5
5
  SHA512:
6
- metadata.gz: 030b70e5e41fdfc1af4edd8f44da1d91231b79d55f4ceb176739f11d5fc1cbd0f24709a5f74df55f71f49969a745cb9e2b83853ea07144633e2c28bc4a3212a0
7
- data.tar.gz: a228af15ba05123d3d5b1fb8464f9d5dc20a9b61c8a402f40ebed72f7ffa07c35c6d37136a45a5f7a689e17d37fc3bb55a83ebe916940096e36b62a69c17f737
6
+ metadata.gz: 44931b59995eaa8603221060fdcb6ebf54ee778da1dd5423ae940ba5a9c2f947fdbc92229d8de2c59bd4c7f26240039d18ed394e1cb4a10750d4e9008351f671
7
+ data.tar.gz: 4403827a7a4aa13127d196d21504c51d09b69f36c27e4126853d010aa126e2e6536951c982612190ece0ff672369702c148828be5dfa60aefdf3d360bd5676cf
data/bin/pretty CHANGED
@@ -1,13 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require "shellwords"
4
+ require "dorian/arguments"
5
5
  require "git"
6
6
  require "syntax_tree"
7
7
 
8
- unless ARGV.empty?
9
- puts "USAGE: pretty"
10
- exit
8
+ parsed = Dorian::Arguments.parse(version: { alias: :v }, help: { alias: :h })
9
+
10
+ abort parsed.help if parsed.options.help
11
+
12
+ if parsed.options.version
13
+ abort File.read(File.expand_path("../../VERSION", __FILE__))
11
14
  end
12
15
 
13
16
  ruby_extensions = %w[
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-pretty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.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