fcom 0.8.0 → 0.10.0

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: 00e2945ad5d5d45095c42b6382d00ffc81c74bfb4cff8645f30cf4aeed48c046
4
- data.tar.gz: 7f8390b856b985bff3bd10a7ea836255b02fa441b6aaf71607510926f02acb3c
3
+ metadata.gz: 68129781aa3cc8ae384295332a34c05c270d2c9dbbb60a415783e4e5305100b0
4
+ data.tar.gz: 5629104bbb23e2a2c196b3f39bed19403ced76bac870572a170ea659d5b1fd49
5
5
  SHA512:
6
- metadata.gz: 10334df1c93ad23de084600ef0a3da231ccea87484191a55c4351c7bfc99f6442981b6ab404c10027febdbd29d239298ba4c9b839c476060b2e6b6d933cc7761
7
- data.tar.gz: 9e4290d61757d78f9747b5dbfc47bc655a298476824903a7a0707ed46ca462df62aa6926fe4f5b07c7450571ec7ec59e20e5b4b80ce8f8fc89f0cdd649dc0c0b
6
+ metadata.gz: d749e928e35e8d967d24405f4003fec4493317c003d046ee394f0e7daf3ec01acd3eb3d2542ead6df1fa3fe8aebbc19297807aeab9ca198ffea2e698d3adf144
7
+ data.tar.gz: af623c1d0bec21086dd67e3b6641cb042610a5e19bc9c0cce524eebe16903b2f4b835cc03ca444bd1c243a3233d7363b299595b9a75de5306fa1069f7cee6bf4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v0.10.0 (2024-06-28)
2
+ - Enforce only major and minor parts of required Ruby version (loosening the
3
+ required Ruby version from 3.3.3 to 3.3.0)
4
+
5
+ ## v0.9.0 (2024-06-28)
6
+ - Print first 8 characters of commit SHA (not 7)
7
+
1
8
  ## v0.8.0 (2024-06-28)
2
9
  - Print a helpful error message if ripgrep is not installed
3
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fcom (0.8.0)
4
+ fcom (0.10.0)
5
5
  activesupport (>= 6, < 8)
6
6
  memo_wise (>= 1.7, < 2)
7
7
  rainbow (>= 3.0, < 4)
data/fcom.gemspec CHANGED
@@ -37,5 +37,6 @@ 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 = ">= #{File.read('.ruby-version').rstrip}"
40
+ required_ruby_version = File.read('.ruby-version').rstrip.sub(/\A(\d+\.\d+)\.\d+\z/, '\1.0')
41
+ spec.required_ruby_version = ">= #{required_ruby_version}"
41
42
  end
data/lib/fcom/parser.rb CHANGED
@@ -39,7 +39,8 @@ class Fcom::Parser
39
39
  elsif line.match?(regex) && (filename.blank? || path_match?(filename))
40
40
  if previous_commit
41
41
  title, sha, author, date = previous_commit.split('|')
42
- sha_with_url = "#{sha[0, 7]} ( https://github.com/#{repo}/commit/#{sha[0, 7]} )"
42
+ short_sha = sha[0, 8]
43
+ sha_with_url = "#{short_sha} ( https://github.com/#{repo}/commit/#{short_sha} )"
43
44
 
44
45
  puts("\n\n") if a_commit_has_matched # print commit separator, if needed
45
46
  puts([title, sha_with_url, author, date])
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.8.0'
5
+ VERSION = '0.10.0'
6
6
  end
7
7
  # rubocop:enable Style/StaticClass
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: 0.8.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
@@ -138,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
139
  - - ">="
140
140
  - !ruby/object:Gem::Version
141
- version: 3.3.3
141
+ version: 3.3.0
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - ">="