fcom 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +28 -22
- data/lib/fcom/parser.rb +2 -2
- data/lib/fcom/querier.rb +4 -16
- data/lib/fcom/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb287de1d4165f913e1164806982cf092cb1c110af986b9e3f100856ac5ad9e2
|
4
|
+
data.tar.gz: 3e2f553dd2e8bde3d85a33aa83916cc9aec7d566340829a13addc536374c8bec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b007d4c195eb37806bb7bd20dcb9b45d0d5d92274116fd0aef3adbc268eb21c3510204377d4ec649f0ac6dfe53c675f02777504fa1d8f17f9d301fd0d1ad6210
|
7
|
+
data.tar.gz: b07b91caf00f8f35c1d644a0df6f6386755059624e9ef345e68d9ddf46b8f8a5218dee3dffe60f7e256d7c8a36bc403d97129836d42e9c114bab45e88edb524c
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.4.
|
1
|
+
3.4.2
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## v0.14.4 (2025-02-25)
|
2
|
+
- Fix bug where output might not be spaced after following a rename.
|
3
|
+
|
1
4
|
## v0.14.3 (2025-02-14)
|
2
5
|
- Use absolute path for parser in `--development` mode. This makes it possible not only to test queries within the `fcom` repo, but also in other repos.
|
3
6
|
- Stop printing two extra newlines after completion.
|
data/Gemfile.lock
CHANGED
@@ -9,7 +9,7 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: .
|
11
11
|
specs:
|
12
|
-
fcom (0.14.
|
12
|
+
fcom (0.14.4)
|
13
13
|
activesupport (>= 6)
|
14
14
|
memo_wise (>= 1.7)
|
15
15
|
rainbow (>= 3.0)
|
@@ -50,6 +50,7 @@ GEM
|
|
50
50
|
reline (>= 0.4.2)
|
51
51
|
json (2.10.1)
|
52
52
|
language_server-protocol (3.17.0.4)
|
53
|
+
lint_roller (1.1.0)
|
53
54
|
logger (1.6.6)
|
54
55
|
memo_wise (1.10.0)
|
55
56
|
method_source (1.1.0)
|
@@ -89,9 +90,10 @@ GEM
|
|
89
90
|
diff-lcs (>= 1.2.0, < 2.0)
|
90
91
|
rspec-support (~> 3.13.0)
|
91
92
|
rspec-support (3.13.2)
|
92
|
-
rubocop (1.
|
93
|
+
rubocop (1.72.2)
|
93
94
|
json (~> 2.3)
|
94
|
-
language_server-protocol (
|
95
|
+
language_server-protocol (~> 3.17.0.2)
|
96
|
+
lint_roller (~> 1.1.0)
|
95
97
|
parallel (~> 1.10)
|
96
98
|
parser (>= 3.3.0.2)
|
97
99
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -101,13 +103,16 @@ GEM
|
|
101
103
|
unicode-display_width (>= 2.4.0, < 4.0)
|
102
104
|
rubocop-ast (1.38.0)
|
103
105
|
parser (>= 3.3.1.0)
|
104
|
-
rubocop-performance (1.
|
105
|
-
|
106
|
-
rubocop
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
rubocop (
|
106
|
+
rubocop-performance (1.24.0)
|
107
|
+
lint_roller (~> 1.1)
|
108
|
+
rubocop (>= 1.72.1, < 2.0)
|
109
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
110
|
+
rubocop-rake (0.7.1)
|
111
|
+
lint_roller (~> 1.1)
|
112
|
+
rubocop (>= 1.72.1)
|
113
|
+
rubocop-rspec (3.5.0)
|
114
|
+
lint_roller (~> 1.1)
|
115
|
+
rubocop (~> 1.72, >= 1.72.1)
|
111
116
|
ruby-progressbar (1.13.0)
|
112
117
|
runger_byebug (11.4.0)
|
113
118
|
irb
|
@@ -117,12 +122,12 @@ GEM
|
|
117
122
|
memo_wise (>= 1.7)
|
118
123
|
rainbow (>= 3.0)
|
119
124
|
slop (~> 4.8)
|
120
|
-
runger_style (5.
|
125
|
+
runger_style (5.4.0)
|
121
126
|
prism (>= 0.24.0)
|
122
|
-
rubocop (>= 1.
|
127
|
+
rubocop (>= 1.72.0)
|
123
128
|
securerandom (0.4.1)
|
124
129
|
slop (4.10.1)
|
125
|
-
stringio (3.1.
|
130
|
+
stringio (3.1.5)
|
126
131
|
tzinfo (2.0.6)
|
127
132
|
concurrent-ruby (~> 1.0)
|
128
133
|
unicode-display_width (3.1.4)
|
@@ -159,12 +164,13 @@ CHECKSUMS
|
|
159
164
|
date (3.4.1) sha256=bf268e14ef7158009bfeaec40b5fa3c7271906e88b196d958a89d4b408abe64f
|
160
165
|
diff-lcs (1.6.0) sha256=a1e7f7b272962f8fc769358ad00001b87cdcf32ba349d6c70c6b544613d2da2e
|
161
166
|
drb (2.2.1) sha256=e9d472bf785f558b96b25358bae115646da0dbfd45107ad858b0bc0d935cb340
|
162
|
-
fcom (0.14.
|
167
|
+
fcom (0.14.4)
|
163
168
|
i18n (1.14.7) sha256=ceba573f8138ff2c0915427f1fc5bdf4aa3ab8ae88c8ce255eb3ecf0a11a5d0f
|
164
169
|
io-console (0.8.0) sha256=cd6a9facbc69871d69b2cb8b926fc6ea7ef06f06e505e81a64f14a470fddefa2
|
165
170
|
irb (1.15.1) sha256=d9bca745ac4207a8b728a52b98b766ca909b86ff1a504bcde3d6f8c84faae890
|
166
171
|
json (2.10.1) sha256=ddc88ad91a1baf3f0038c174f253af3b086d30dc74db17ca4259bbde982f94dc
|
167
172
|
language_server-protocol (3.17.0.4) sha256=c484626478664fd13482d8180947c50a8590484b1258b99b7aedb3b69df89669
|
173
|
+
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
168
174
|
logger (1.6.6) sha256=dd618d24e637715472732e7eed02e33cfbdf56deaad225edd0f1f89d38024017
|
169
175
|
memo_wise (1.10.0) sha256=ae40ff8e7799697ff5d59d739b8766f76be22eba69c7c8468edb42ab83c94c3f
|
170
176
|
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
@@ -188,25 +194,25 @@ CHECKSUMS
|
|
188
194
|
rspec-expectations (3.13.3) sha256=0e6b5af59b900147698ea0ff80456c4f2e69cac4394fbd392fbd1ca561f66c58
|
189
195
|
rspec-mocks (3.13.2) sha256=2327335def0e1665325a9b617e3af9ae20272741d80ac550336309a7c59abdef
|
190
196
|
rspec-support (3.13.2) sha256=cea3a2463fd9b84b9dcc9685efd80ea701aa8f7b3decb3b3ce795ed67737dbec
|
191
|
-
rubocop (1.
|
197
|
+
rubocop (1.72.2) sha256=0259a32d89fee60882bf4c4d8847e696357719c9db4971839da742bf053ae96b
|
192
198
|
rubocop-ast (1.38.0) sha256=4fdf6792fe443a9a18acb12dbc8225d0d64cd1654e41fedb30e79c18edbb26ae
|
193
|
-
rubocop-performance (1.
|
194
|
-
rubocop-rake (0.
|
195
|
-
rubocop-rspec (3.
|
199
|
+
rubocop-performance (1.24.0) sha256=e5bd39ff3e368395b9af886927cc37f5892f43db4bd6c8526594352d5b4440b5
|
200
|
+
rubocop-rake (0.7.1) sha256=3797f2b6810c3e9df7376c26d5f44f3475eda59eb1adc38e6f62ecf027cbae4d
|
201
|
+
rubocop-rspec (3.5.0) sha256=710c942fe1af884ba8eea75cbb8bdbb051929a2208880a6fc2e2dce1eed5304c
|
196
202
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
197
203
|
runger_byebug (11.4.0) sha256=569e22ba2215f57e7f69e145fcb63be401e29fcd312f7936d813e12d0c7bbee6
|
198
204
|
runger_release_assistant (2.0.0) sha256=f4f5708291eaeef1b881208f87a494877fe768739d6e96b7293fc335b28a3865
|
199
|
-
runger_style (5.
|
205
|
+
runger_style (5.4.0) sha256=96a575ff2ca8d4ee61d52bc135e1893e67bab7ea7f850e262781aa1a5849eee3
|
200
206
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
201
207
|
slop (4.10.1) sha256=844322b5ffcf17ed4815fdb173b04a20dd82b4fd93e3744c88c8fafea696d9c7
|
202
|
-
stringio (3.1.
|
208
|
+
stringio (3.1.5) sha256=bca92461515a131535743bc81d5559fa1de7d80cff9a654d6c0af6f9f27e35c8
|
203
209
|
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
204
210
|
unicode-display_width (3.1.4) sha256=8caf2af1c0f2f07ec89ef9e18c7d88c2790e217c482bfc78aaa65eadd5415ac1
|
205
211
|
unicode-emoji (4.0.4) sha256=2c2c4ef7f353e5809497126285a50b23056cc6e61b64433764a35eff6c36532a
|
206
212
|
uri (1.0.2) sha256=b303504ceb7e5905771fa7fa14b649652fa949df18b5880d69cfb12494791e27
|
207
213
|
|
208
214
|
RUBY VERSION
|
209
|
-
ruby 3.4.
|
215
|
+
ruby 3.4.2p28
|
210
216
|
|
211
217
|
BUNDLED WITH
|
212
|
-
2.6.
|
218
|
+
2.6.3
|
data/lib/fcom/parser.rb
CHANGED
@@ -10,7 +10,7 @@ class Fcom::Parser
|
|
10
10
|
@options = options
|
11
11
|
end
|
12
12
|
|
13
|
-
# rubocop:disable Metrics/
|
13
|
+
# rubocop:disable Metrics/PerceivedComplexity
|
14
14
|
# rubocop:disable Metrics/MethodLength
|
15
15
|
def parse
|
16
16
|
expression_to_match = search_string
|
@@ -66,7 +66,7 @@ class Fcom::Parser
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
# rubocop:enable Metrics/MethodLength
|
69
|
-
# rubocop:enable Metrics/
|
69
|
+
# rubocop:enable Metrics/PerceivedComplexity
|
70
70
|
|
71
71
|
private
|
72
72
|
|
data/lib/fcom/querier.rb
CHANGED
@@ -15,7 +15,6 @@ class Fcom::Querier
|
|
15
15
|
@options = options
|
16
16
|
end
|
17
17
|
|
18
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
19
18
|
# rubocop:disable Metrics/PerceivedComplexity
|
20
19
|
# rubocop:disable Metrics/MethodLength
|
21
20
|
def query
|
@@ -73,44 +72,35 @@ class Fcom::Querier
|
|
73
72
|
COMMAND
|
74
73
|
end
|
75
74
|
|
76
|
-
|
75
|
+
a_previous_command_generated_output_not_yet_spaced = false
|
77
76
|
|
78
77
|
commands.each do |command|
|
79
78
|
Fcom.logger.debug("Executing command: #{command}")
|
80
79
|
|
81
80
|
PTY.spawn(command) do |stdout, _stdin, _pid|
|
82
|
-
any_bytes_seen_for_command = false
|
83
|
-
|
84
81
|
# Read first byte to detect any output
|
85
82
|
first_byte = stdout.read(1)
|
86
83
|
|
87
|
-
any_bytes_seen_for_command = true
|
88
|
-
|
89
84
|
if first_byte
|
90
85
|
# Add spacing if needed
|
91
|
-
if
|
86
|
+
if a_previous_command_generated_output_not_yet_spaced
|
92
87
|
print "\n\n"
|
93
88
|
end
|
94
89
|
|
95
|
-
|
90
|
+
a_previous_command_generated_output_not_yet_spaced = true
|
96
91
|
|
97
92
|
print(first_byte)
|
98
93
|
|
99
94
|
# Now read the rest line by line
|
100
95
|
stdout.each_line { puts(it) }
|
101
|
-
else
|
102
|
-
previous_command_generated_output = false
|
103
96
|
end
|
104
97
|
rescue Errno::EIO
|
105
|
-
|
106
|
-
previous_command_generated_output = false
|
107
|
-
end
|
98
|
+
# The command produced no output.
|
108
99
|
end
|
109
100
|
end
|
110
101
|
end
|
111
102
|
# rubocop:enable Metrics/MethodLength
|
112
103
|
# rubocop:enable Metrics/PerceivedComplexity
|
113
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
114
104
|
|
115
105
|
private
|
116
106
|
|
@@ -132,7 +122,6 @@ class Fcom::Querier
|
|
132
122
|
end
|
133
123
|
end
|
134
124
|
|
135
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
136
125
|
# rubocop:disable Metrics/PerceivedComplexity
|
137
126
|
memo_wise \
|
138
127
|
def filtered_renames
|
@@ -172,7 +161,6 @@ class Fcom::Querier
|
|
172
161
|
filtered_renames
|
173
162
|
end
|
174
163
|
# rubocop:enable Metrics/PerceivedComplexity
|
175
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
176
164
|
|
177
165
|
def traced_back_renames(new_file_names)
|
178
166
|
new_file_names_of_interest = Set.new(new_file_names)
|
data/lib/fcom/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fcom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Runger
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activesupport
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
|
-
rubygems_version: 3.6.
|
129
|
+
rubygems_version: 3.6.3
|
130
130
|
specification_version: 4
|
131
131
|
summary: CLI tool for parsing git history
|
132
132
|
test_files: []
|