raykit 0.0.541 → 0.0.542
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/git/directory.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64c75cbb239ad5c3d3a2b9837028f23f7002b02f61195fc5ed4f8e364f5e9a61
|
4
|
+
data.tar.gz: 9787ee130f795f5004c70b66d3b9865877b2e724e3d5b1dc95015bb3a0305fc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040ec4774247b42c0b6dd2233dac25ad0f6042f7a401de48ccc06d26a07405d48d6a18b2deaf9d41a5609e2dcc4da0e10082ddea42f381dcf1a8a74fbd91f133
|
7
|
+
data.tar.gz: 9181020d152aaef58ce1b1dfa197810859876f6983a20c6a355a56268eaae8f654507386b4669de0770ade3060fe7110602fa5fd84bd211e51b16fdab3f930eb
|
data/lib/raykit/git/directory.rb
CHANGED
@@ -76,6 +76,7 @@ module Raykit
|
|
76
76
|
def last_modified_time
|
77
77
|
Dir.chdir(@directory) do
|
78
78
|
|
79
|
+
begin
|
79
80
|
# Find the most recently modified file
|
80
81
|
most_recent_file = Dir.glob("**/*.*").select { |f| File.file?(f) }.max_by { |f| File.mtime(f) }
|
81
82
|
|
@@ -88,6 +89,10 @@ module Raykit
|
|
88
89
|
# For example, setting last_modified_time to Time.now or raising a custom error.
|
89
90
|
last_modified_time = Time.now # Or any other appropriate action
|
90
91
|
end
|
92
|
+
rescue Errno::ENAMETOOLONG => e
|
93
|
+
puts "Error: #{e.message}"
|
94
|
+
last_modified_time = Time.now # Or any other appropriate action
|
95
|
+
end
|
91
96
|
|
92
97
|
#File.mtime(Dir.glob("**/*.*").select { |f| File.file?(f) }.max_by { |f| File.mtime(f) })
|
93
98
|
end
|