raykit 0.0.541 → 0.0.542

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/git/directory.rb +5 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bddb2c97063bd86d173ed73495bcbb9e015784790563f654faff106cb174378
4
- data.tar.gz: cc5e2f34b70a72a41ab356ab5ab4ad9a03c2fb945dde9e75ab7e7ddf5bf0d6a5
3
+ metadata.gz: 64c75cbb239ad5c3d3a2b9837028f23f7002b02f61195fc5ed4f8e364f5e9a61
4
+ data.tar.gz: 9787ee130f795f5004c70b66d3b9865877b2e724e3d5b1dc95015bb3a0305fc5
5
5
  SHA512:
6
- metadata.gz: c1c14d602a9c751f7df8ffd726a25ec3e727a110d336c3562a27ffcd1fdcf18de15cfcaa9ed15c5c833f9a1bc42708377e2df06409a0116395e0eeff1f91740a
7
- data.tar.gz: dae31d357ef3e6e75ab31a53edabde051def520ed07bc5b1684b320518f2e539dfef98412bf5b951ff03b9f744d20a3650b2f4e1d48bbe031015fef9a5c99425
6
+ metadata.gz: 040ec4774247b42c0b6dd2233dac25ad0f6042f7a401de48ccc06d26a07405d48d6a18b2deaf9d41a5609e2dcc4da0e10082ddea42f381dcf1a8a74fbd91f133
7
+ data.tar.gz: 9181020d152aaef58ce1b1dfa197810859876f6983a20c6a355a56268eaae8f654507386b4669de0770ade3060fe7110602fa5fd84bd211e51b16fdab3f930eb
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.541
4
+ version: 0.0.542
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow