fcom 0.6.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af711bd1ee1e42d28bfbca9d812d62e9cb9fa2a137b1906a5170bf161a2934fe
4
- data.tar.gz: dfcb91c2b5c48283261812eb7b1b1f315ecfe9ed7dfa3b97f823efb628609636
3
+ metadata.gz: 35db81d247c5989cf180a8e865f2bae40e4d7a306beff9689a68fd04029ad72e
4
+ data.tar.gz: a9eea81557036e91ca1d13f232393509d84ddc1b232c083f53b16977b4ab08db
5
5
  SHA512:
6
- metadata.gz: 85c1150893fa4854b44dc208f9aa99d1bd512cd5831162a6748f81513883985f4a42744d1fa1336dee4dcc628a66100f73d7cc440e83b97760ff9711ae5399c4
7
- data.tar.gz: 1826c9da3bda290cc291ea58b0c1bf4d01f1f33c8009db0c47031502f7e46335d219fedd2f6a3cf982717d72d012dcfb28cc413b5c87262ea8fe2ba97b015a9a
6
+ metadata.gz: 02766b69f09721803ee1baa53f913aeb5789f173830dcd6efcaa34daca5479fb905d0444fffd836dc3aec10b7114c7b25bbdcf1a8a97e9f7ab246cf1c0e69f2b
7
+ data.tar.gz: 9cd5afe2a8ef8ee3d7cfd9d7f869b1a08244e9e3bd61287336eea377e3fda68d11545ba0fec43f488f002228a111a53bb04c72048133086784c40b98ff12484c
@@ -1,19 +1,22 @@
1
- name: Run Rspec Tests
1
+ name: Run tests, linters, etc
2
2
 
3
3
  on:
4
4
  pull_request:
5
5
  branches:
6
- - master
6
+ - '*'
7
+ push:
8
+ branches:
9
+ - main
7
10
 
8
11
  jobs:
9
12
  build:
10
13
  runs-on: ubuntu-latest
11
14
  steps:
12
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v4
13
16
  - uses: ruby/setup-ruby@v1
14
17
  with:
15
18
  bundler-cache: true
16
- - name: Run Rubocop
19
+ - name: Run RuboCop
17
20
  run: bin/rubocop --format clang
18
21
  - name: Run RSpec tests
19
22
  run: bin/rspec --format progress
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.3.3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v0.7.1 (2024-06-28)
2
+ - Don't error if path option is a deleted file
3
+
4
+ ## v0.7.0 (2024-06-15)
5
+ - Change primary branch name from `master` to `main`
6
+
1
7
  ## v0.6.0 (2024-02-02)
2
8
  - Source Ruby version from `.ruby-version` file
3
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fcom (0.6.0)
4
+ fcom (0.7.1)
5
5
  activesupport (>= 6, < 8)
6
6
  memo_wise (>= 1.7, < 2)
7
7
  rainbow (>= 3.0, < 4)
@@ -10,7 +10,7 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (7.1.3)
13
+ activesupport (7.1.3.4)
14
14
  base64
15
15
  bigdecimal
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -22,51 +22,52 @@ GEM
22
22
  tzinfo (~> 2.0)
23
23
  ast (2.4.2)
24
24
  base64 (0.2.0)
25
- bigdecimal (3.1.5)
25
+ bigdecimal (3.1.8)
26
26
  byebug (11.1.3)
27
27
  coderay (1.1.3)
28
- concurrent-ruby (1.2.3)
28
+ concurrent-ruby (1.3.3)
29
29
  connection_pool (2.4.1)
30
- diff-lcs (1.5.0)
31
- drb (2.2.0)
32
- ruby2_keywords
33
- i18n (1.14.1)
30
+ diff-lcs (1.5.1)
31
+ drb (2.2.1)
32
+ i18n (1.14.5)
34
33
  concurrent-ruby (~> 1.0)
35
- json (2.7.1)
34
+ json (2.7.2)
36
35
  language_server-protocol (3.17.0.3)
37
- memo_wise (1.8.0)
38
- method_source (1.0.0)
39
- minitest (5.21.1)
36
+ memo_wise (1.9.0)
37
+ method_source (1.1.0)
38
+ minitest (5.24.0)
40
39
  mutex_m (0.2.0)
41
- parallel (1.24.0)
42
- parser (3.3.0.5)
40
+ parallel (1.25.1)
41
+ parser (3.3.3.0)
43
42
  ast (~> 2.4.1)
44
43
  racc
44
+ prism (0.30.0)
45
45
  pry (0.14.2)
46
46
  coderay (~> 1.1)
47
47
  method_source (~> 1.0)
48
48
  pry-byebug (3.10.1)
49
49
  byebug (~> 11.0)
50
50
  pry (>= 0.13, < 0.15)
51
- racc (1.7.3)
51
+ racc (1.8.0)
52
52
  rainbow (3.1.1)
53
- rake (13.1.0)
54
- regexp_parser (2.9.0)
55
- rexml (3.2.6)
56
- rspec (3.12.0)
57
- rspec-core (~> 3.12.0)
58
- rspec-expectations (~> 3.12.0)
59
- rspec-mocks (~> 3.12.0)
60
- rspec-core (3.12.2)
61
- rspec-support (~> 3.12.0)
62
- rspec-expectations (3.12.3)
53
+ rake (13.2.1)
54
+ regexp_parser (2.9.2)
55
+ rexml (3.3.1)
56
+ strscan
57
+ rspec (3.13.0)
58
+ rspec-core (~> 3.13.0)
59
+ rspec-expectations (~> 3.13.0)
60
+ rspec-mocks (~> 3.13.0)
61
+ rspec-core (3.13.0)
62
+ rspec-support (~> 3.13.0)
63
+ rspec-expectations (3.13.1)
63
64
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.12.0)
65
- rspec-mocks (3.12.6)
65
+ rspec-support (~> 3.13.0)
66
+ rspec-mocks (3.13.1)
66
67
  diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.12.0)
68
- rspec-support (3.12.1)
69
- rubocop (1.60.2)
68
+ rspec-support (~> 3.13.0)
69
+ rspec-support (3.13.1)
70
+ rubocop (1.64.1)
70
71
  json (~> 2.3)
71
72
  language_server-protocol (>= 3.17.0)
72
73
  parallel (~> 1.10)
@@ -74,34 +75,29 @@ GEM
74
75
  rainbow (>= 2.2.2, < 4.0)
75
76
  regexp_parser (>= 1.8, < 3.0)
76
77
  rexml (>= 3.2.5, < 4.0)
77
- rubocop-ast (>= 1.30.0, < 2.0)
78
+ rubocop-ast (>= 1.31.1, < 2.0)
78
79
  ruby-progressbar (~> 1.7)
79
80
  unicode-display_width (>= 2.4.0, < 3.0)
80
- rubocop-ast (1.30.0)
81
- parser (>= 3.2.1.0)
82
- rubocop-capybara (2.20.0)
83
- rubocop (~> 1.41)
84
- rubocop-factory_bot (2.25.1)
85
- rubocop (~> 1.41)
86
- rubocop-performance (1.20.2)
81
+ rubocop-ast (1.31.3)
82
+ parser (>= 3.3.1.0)
83
+ rubocop-performance (1.21.1)
87
84
  rubocop (>= 1.48.1, < 2.0)
88
- rubocop-ast (>= 1.30.0, < 2.0)
85
+ rubocop-ast (>= 1.31.1, < 2.0)
89
86
  rubocop-rake (0.6.0)
90
87
  rubocop (~> 1.0)
91
- rubocop-rspec (2.26.1)
92
- rubocop (~> 1.40)
93
- rubocop-capybara (~> 2.17)
94
- rubocop-factory_bot (~> 2.22)
88
+ rubocop-rspec (3.0.1)
89
+ rubocop (~> 1.61)
95
90
  ruby-progressbar (1.13.0)
96
- ruby2_keywords (0.0.5)
97
- runger_release_assistant (0.5.0)
91
+ runger_release_assistant (0.8.0)
98
92
  activesupport (>= 6, < 8)
99
93
  memo_wise (>= 1.7, < 2)
100
94
  rainbow (>= 3.0, < 4)
101
95
  slop (~> 4.8)
102
- runger_style (0.6.0)
96
+ runger_style (2.8.0)
97
+ prism (>= 0.24.0)
103
98
  rubocop (>= 1.38.0, < 2)
104
99
  slop (4.10.1)
100
+ strscan (3.1.0)
105
101
  tzinfo (2.0.6)
106
102
  concurrent-ruby (~> 1.0)
107
103
  unicode-display_width (2.5.0)
@@ -124,7 +120,7 @@ DEPENDENCIES
124
120
  runger_style
125
121
 
126
122
  RUBY VERSION
127
- ruby 3.3.0p0
123
+ ruby 3.3.3p89
128
124
 
129
125
  BUNDLED WITH
130
- 2.5.5
126
+ 2.5.11
data/bin/_guard-core CHANGED
@@ -17,8 +17,8 @@ if File.file?(bundle_binstub)
17
17
  if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
18
18
  load(bundle_binstub)
19
19
  else
20
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
20
+ abort('Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.')
22
22
  end
23
23
  end
24
24
 
data/bin/guard CHANGED
@@ -17,8 +17,8 @@ if File.file?(bundle_binstub)
17
17
  if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
18
18
  load(bundle_binstub)
19
19
  else
20
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
20
+ abort('Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.')
22
22
  end
23
23
  end
24
24
 
data/bin/release CHANGED
@@ -16,8 +16,8 @@ if File.file?(bundle_binstub)
16
16
  if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
17
17
  load(bundle_binstub)
18
18
  else
19
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
19
+ abort('Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.')
21
21
  end
22
22
  end
23
23
 
data/bin/rspec CHANGED
@@ -17,8 +17,8 @@ if File.file?(bundle_binstub)
17
17
  if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
18
18
  load(bundle_binstub)
19
19
  else
20
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
20
+ abort('Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.')
22
22
  end
23
23
  end
24
24
 
data/bin/rubocop CHANGED
@@ -17,8 +17,8 @@ if File.file?(bundle_binstub)
17
17
  if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
18
18
  load(bundle_binstub)
19
19
  else
20
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
20
+ abort('Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.')
22
22
  end
23
23
  end
24
24
 
data/fcom.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.metadata['homepage_uri'] = spec.homepage
19
19
  spec.metadata['source_code_uri'] = 'https://github.com/davidrunger/fcom'
20
- spec.metadata['changelog_uri'] = 'https://github.com/davidrunger/fcom/blob/master/CHANGELOG.md'
20
+ spec.metadata['changelog_uri'] = 'https://github.com/davidrunger/fcom/blob/main/CHANGELOG.md'
21
21
  else
22
22
  raise('RubyGems 2.0 or newer is required to protect against public gem pushes.')
23
23
  end
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
37
37
  spec.add_dependency('rainbow', '>= 3.0', '< 4')
38
38
  spec.add_dependency('slop', '~> 4.8')
39
39
 
40
- spec.required_ruby_version = Gem::Requirement.new(">= #{File.read('.ruby-version').rstrip}")
40
+ spec.required_ruby_version = ">= #{File.read('.ruby-version').rstrip}"
41
41
  end
data/lib/fcom/querier.rb CHANGED
@@ -26,13 +26,14 @@ class Fcom::Querier
26
26
 
27
27
  command = <<~COMMAND.squish
28
28
  git log
29
- #{%(--author="#{author}") if author}
30
- #{"--since=#{days}.day" unless days.nil?}
29
+ --format="commit %s|%H|%an|%cr (%ci)"
30
+ --patch
31
31
  --full-diff
32
32
  --no-textconv
33
- --format="commit %s|%H|%an|%cr (%ci)"
34
- --source
35
- -p #{path}
33
+ #{%(--author="#{author}") if author}
34
+ #{"--since=#{days}.day" unless days.nil?}
35
+ --
36
+ #{path}
36
37
  |
37
38
 
38
39
  rg #{quote}(#{expression_to_match})|(^commit )|(^diff )#{quote}
data/lib/fcom/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  # rubocop:disable Style/StaticClass
4
4
  class Fcom
5
- VERSION = '0.6.0'
5
+ VERSION = '0.7.1'
6
6
  end
7
7
  # rubocop:enable Style/StaticClass
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-03 00:00:00.000000000 Z
11
+ date: 2024-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -129,7 +129,7 @@ metadata:
129
129
  rubygems_mfa_required: 'true'
130
130
  homepage_uri: https://github.com/davidrunger/fcom
131
131
  source_code_uri: https://github.com/davidrunger/fcom
132
- changelog_uri: https://github.com/davidrunger/fcom/blob/master/CHANGELOG.md
132
+ changelog_uri: https://github.com/davidrunger/fcom/blob/main/CHANGELOG.md
133
133
  post_install_message:
134
134
  rdoc_options: []
135
135
  require_paths:
@@ -138,14 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
139
  - - ">="
140
140
  - !ruby/object:Gem::Version
141
- version: 3.3.0
141
+ version: 3.3.3
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.5.3
148
+ rubygems_version: 3.5.14
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: CLI tool for parsing git history