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.
- checksums.yaml +4 -4
- data/bin/pretty +7 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 141ab7435f5bcb3ec57f38ec555752bd7beccd783ea090cdd72ffd6e73148ae7
|
4
|
+
data.tar.gz: de3817ff7b2023c2ca4e47acc76be4f878dd777bc157f551d145d249c6621a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 "
|
4
|
+
require "dorian/arguments"
|
5
5
|
require "git"
|
6
6
|
require "syntax_tree"
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
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.
|
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-
|
11
|
+
date: 2024-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|