dorian-pretty 1.0.0 → 1.1.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 +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f265ac004f33aeb9fa18c066a2bafe44c51f60b0d827c0af31ab5106c1f3b401
|
4
|
+
data.tar.gz: 697c7fd58a2074c60fc0f65d6070a4f83ea3c573d64f53bae7e5c7b5e90028bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 859d9f216bc8bd1109e182db94949e47ef297fbcc6563d0da3ad119dce69113c7947a37e985052cea32da236b2a20e5498376592298545d4feed8be372fdf121
|
7
|
+
data.tar.gz: 62db7285fccd6b278e58ee2c417600fb3d3b32447096e334db9e695a956465eb5646917d7760e41782e0733a3a375c590602a3106e6b8966a0173f1917e5fcb2
|
data/bin/pretty
CHANGED
@@ -10,7 +10,7 @@ parsed = Dorian::Arguments.parse(version: { alias: :v }, help: { alias: :h })
|
|
10
10
|
abort parsed.help if parsed.options.help
|
11
11
|
|
12
12
|
if parsed.options.version
|
13
|
-
abort File.read(File.expand_path("
|
13
|
+
abort File.read(File.expand_path("../VERSION", __dir__))
|
14
14
|
end
|
15
15
|
|
16
16
|
ruby_extensions = %w[
|
@@ -82,7 +82,7 @@ Git
|
|
82
82
|
next true if ruby_extensions.include?(File.extname(path))
|
83
83
|
|
84
84
|
first_line = File.open(path, &:gets).to_s.encode("UTF-8", invalid: :replace)
|
85
|
-
next true if
|
85
|
+
next true if /#!.*ruby/.match?(first_line)
|
86
86
|
|
87
87
|
false
|
88
88
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dorian-pretty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.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-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: dorian-arguments
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: git
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: syntax_tree
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -71,9 +71,9 @@ require_paths:
|
|
71
71
|
- lib
|
72
72
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 3.3.4
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|