git_ownership_insights 1.0.2 → 1.0.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/Gemfile.lock +1 -3
- data/bin/git_ownership_insights +8 -1
- data/lib/git_ownership_insights/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eed900c5cbbf25ebae6d25b453a5d994518875986a5fd757d7554b546d9a7dbe
|
|
4
|
+
data.tar.gz: c63e8d5565b97f970bc80c0b311f131116a619fa93743270e08395d99a3d8cf3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7229e4d3b818bd48dc85dd88aada8f259f7d2ea0bb4e96e0947700e367d9d3d87250e4cb5107c30fe71bc34543085e675c9f30028c87eb6d5b43b575ac0a4957
|
|
7
|
+
data.tar.gz: 2b061059f5ff9b61ec3ee80b71df8e54cb8b6ed157c5e49c175e6c72f3c2cac40b59ebc7d78fc1b9202b108eb546f188dee3ed61a71bef8a39953fa56c8573dd
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
git_ownership_insights (0.
|
|
5
|
-
awesome_print
|
|
4
|
+
git_ownership_insights (1.0.4)
|
|
6
5
|
date
|
|
7
6
|
pry
|
|
8
7
|
|
|
@@ -10,7 +9,6 @@ GEM
|
|
|
10
9
|
remote: https://rubygems.org/
|
|
11
10
|
specs:
|
|
12
11
|
ast (2.4.2)
|
|
13
|
-
awesome_print (1.9.2)
|
|
14
12
|
coderay (1.1.3)
|
|
15
13
|
date (3.3.4)
|
|
16
14
|
diff-lcs (1.5.0)
|
data/bin/git_ownership_insights
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
require 'date'
|
|
5
5
|
require 'optparse'
|
|
6
6
|
require 'pry'
|
|
7
|
+
require_relative '../lib/git_ownership_insights/version'
|
|
7
8
|
|
|
8
9
|
options = {}
|
|
9
10
|
OptionParser.new do |opts|
|
|
@@ -74,6 +75,11 @@ OptionParser.new do |opts|
|
|
|
74
75
|
options[:code_extension] = code_extension
|
|
75
76
|
end
|
|
76
77
|
|
|
78
|
+
opts.on('-v', '--version', 'Display the version of the gem') do
|
|
79
|
+
puts "git_ownership_insights version #{GitOwnershipInsights::VERSION}"
|
|
80
|
+
exit
|
|
81
|
+
end
|
|
82
|
+
|
|
77
83
|
opts.on('-h', '--help', 'Display this help message') do
|
|
78
84
|
puts opts
|
|
79
85
|
puts <<~EXAMPLES
|
|
@@ -139,6 +145,7 @@ def find_owners(file_path, codeowners)
|
|
|
139
145
|
end
|
|
140
146
|
|
|
141
147
|
def count_big_files(directory_path, size: BIG_FILE_SIZE)
|
|
148
|
+
size = size.to_i
|
|
142
149
|
# Get a list of all files in the specified directory
|
|
143
150
|
files = Dir.glob(File.join(directory_path, '**', '*')).select { |file| File.file?(file) }
|
|
144
151
|
|
|
@@ -307,7 +314,7 @@ unless CI
|
|
|
307
314
|
end
|
|
308
315
|
|
|
309
316
|
system("git checkout #{DEFAULT_BRANCH}", [ :out ] => File::NULL)
|
|
310
|
-
system("git pull", [ :out ] => File::NULL)
|
|
317
|
+
system("git pull", [ :out, :err ] => File::NULL)
|
|
311
318
|
|
|
312
319
|
contribution_message(duration_in_days: options[:duration_in_days] || 30, directory_path: REPO_PATH,
|
|
313
320
|
begin_time: DateTime.now, steps: options[:steps].to_i, debug: options[:debug])
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git_ownership_insights
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Serghei Moret
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-01-
|
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: date
|