dorian-git-ls-ruby-files 1.0.0 → 1.1.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/git-ls-ruby-files +2 -2
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27d92c5dece7839846ef2b6dcd7fefe52ecae4491d7907e6e94426bfebba209d
4
- data.tar.gz: a66609e3d11ff8f2600b8553c07edfe0b70e811ffbeab02717bd3e336c141692
3
+ metadata.gz: a07fcc9473272de42aaf0c7d81221166b5f7cddeb0239f9d27a3f1aaf20c820b
4
+ data.tar.gz: 67ab1d9f92424fb6210150e5cf4811ea92e86cc27aa965271323a1c94ef0b395
5
5
  SHA512:
6
- metadata.gz: 2084b3f921c219fa9de1f178ac5f30d6540fd9cba7df5e94616788cecc4a14318d3834b92343b8a8577f36c5ea8bff4616c5bc2eb9117135c125994062c4ebdf
7
- data.tar.gz: f1b67b676f2660b1adb4918320f9ef7937860a0bc427af7db24cfbc9bcb13b498d64f513b8b35449fab8262273a8223f4b49521d29cd7fcd8e68b542f61142b8
6
+ metadata.gz: fd952494f37faeb5b5b5a58fcdc19d6b7a7aca15222bc3b560670ce27fc6e089d509501a1d797fafc02e98b0072adb20459df7940bceed896a8436397f3aaa89
7
+ data.tar.gz: 9130387747027e0a75abad4da4a8f0d80b9b2158bcd92e49ee6a217a01902c645daf8d61f72ab7e3ce68a4ca2d297e674216795b4a8102fe37830b5b3173c1cc
@@ -9,7 +9,7 @@ parsed = Dorian::Arguments.parse(version: { alias: :v }, help: { alias: :h })
9
9
  abort parsed.help if parsed.options.help
10
10
 
11
11
  if parsed.options.version
12
- abort File.read(File.expand_path("../../VERSION", __FILE__))
12
+ abort File.read(File.expand_path("../VERSION", __dir__))
13
13
  end
14
14
 
15
15
  ruby_extensions = %w[
@@ -83,7 +83,7 @@ puts(
83
83
 
84
84
  first_line =
85
85
  File.open(path, &:gets).to_s.encode("UTF-8", invalid: :replace)
86
- next true if first_line =~ /#!.*ruby/
86
+ next true if /#!.*ruby/.match?(first_line)
87
87
 
88
88
  false
89
89
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-git-ls-ruby-files
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
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-24 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: git
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: dorian-arguments
28
+ name: git
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -57,9 +57,9 @@ require_paths:
57
57
  - lib
58
58
  required_ruby_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: '0'
62
+ version: 3.3.4
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="