fcom 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54c08eaf4c06c0d65d9b829cf88206a0d25688a0397437a7836d1cfc638cd80c
4
- data.tar.gz: c27ea916068ede38ac90fb4edcabd69a56c5a05021c4f62f63fc1dfab03451c8
3
+ metadata.gz: e65d9caf74b1e93ed107925a8e601991eea9e93852015fa9d70b6f4f22852689
4
+ data.tar.gz: 361e48b4cd8174078afd0c2e278efbe366119cb5dfd4fcfb3324440b8080f5f5
5
5
  SHA512:
6
- metadata.gz: 403933bb82c011b46e7f37e23b95ae574186d8caf8e5ba568303648974e99a48b3adec5db3573e26e060e1c25ed746084312edc74d52c39ccc05bf4233262866
7
- data.tar.gz: 71b7c9699ac233c2d648fe46af0b00f507605ed78be6e1e9880edb93f20d91162c751e8405ef85d75b1e392b70a95ee5baec196c6bc5ad9df97687c045b03bfb
6
+ metadata.gz: d5c2b6e11a0c0eea3949ec3108233f589f8b3dc36b6e4db046aa1293e190476e86666195b672845cc975e89bf1b3686a5bb5e55b2373ea0d3f47c2b71f433a1f
7
+ data.tar.gz: '096901b32e4d02674839c3817eb67292b1182d2331a5fa71a7916e9b9fdf22a82404630cde1129bd9db23e1a53da0b82cd957e49662567bd280c9d2bb1c2dfc3'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  ## Unreleased
2
2
  [no unreleased changes yet]
3
3
 
4
+ ## v1.0.1 (2026-08-28)
5
+ - Don't include commits or files whose matches are only in diff context lines.
6
+
4
7
  ## v1.0.0 (2026-08-28)
5
8
  - **BREAKING CHANGE:** interpret search strings as regular expressions by default. Use `-F`/`--fixed-strings` to search for fixed strings.
6
9
 
data/Gemfile.lock CHANGED
@@ -10,7 +10,7 @@ GIT
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- fcom (1.0.0)
13
+ fcom (1.0.1)
14
14
  activesupport (>= 6)
15
15
  memo_wise (>= 1.7)
16
16
  rainbow (>= 3.0)
@@ -177,7 +177,7 @@ CHECKSUMS
177
177
  diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
178
178
  drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
179
179
  erb (6.0.7) sha256=c5ca6dc25b0ef974a44dc8f59fe847577122483b1968a38dec305c60bf91ee92
180
- fcom (1.0.0)
180
+ fcom (1.0.1)
181
181
  i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
182
182
  io-console (0.9.2) sha256=efa74f891dd03c0939a931dfc6e74c2813d904763d456ea9762b0525e748db08
183
183
  irb (1.18.0) sha256=de9454a0703a54704b9811a5ef31a60c86949fbf4013fcf244fabc7c775248e3
data/lib/fcom/parser.rb CHANGED
@@ -14,10 +14,12 @@ class Fcom::Parser
14
14
  end
15
15
 
16
16
  def parse
17
- expression_to_match = search_string
18
- if fixed_strings?
19
- expression_to_match = Regexp.escape(expression_to_match).gsub('\\ ', ' ')
20
- end
17
+ expression_to_match =
18
+ if fixed_strings?
19
+ Regexp.escape(search_string).gsub('\\ ', ' ')
20
+ else
21
+ search_string
22
+ end
21
23
  regex =
22
24
  Regexp.new(
23
25
  "((\\+|-)\\s?.*#{expression_to_match}.*|Omitted long (matching )?line)",
data/lib/fcom/querier.rb CHANGED
@@ -16,10 +16,12 @@ class Fcom::Querier
16
16
  end
17
17
 
18
18
  def query
19
- expression_to_match = search_string
20
- if fixed_strings?
21
- expression_to_match = Regexp.escape(expression_to_match).gsub('\\ ', ' ')
22
- end
19
+ expression_to_match =
20
+ if fixed_strings?
21
+ Regexp.escape(search_string).gsub('\\ ', ' ')
22
+ else
23
+ search_string
24
+ end
23
25
 
24
26
  if expression_to_match.nil? || expression_to_match.empty?
25
27
  puts('provide expression to match as first argument')
@@ -92,6 +94,7 @@ class Fcom::Querier
92
94
  git log
93
95
  --format="commit %s|%H|%an|%cr (%ci)"
94
96
  --patch
97
+ --unified=0
95
98
  --full-diff
96
99
  --diff-algorithm=default
97
100
  --topo-order
data/lib/fcom/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  # rubocop:disable-next Style/StaticClass
4
4
  class Fcom
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger