wolf_core 0.1.46 → 0.1.47

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: 24a38fbd3bf0c7ea37e0dbc325fbf0bd60e919b407b78be15a304df8e0d32ae5
4
- data.tar.gz: 493f91f7a744554a71431f7c8b0bd08ba4515c448d01607ac6b6f7567cc4eb93
3
+ metadata.gz: 2d50df908eb73594298247664b0ba46f33a2a8ada9562ae7d8fd952158398c4a
4
+ data.tar.gz: 9e2c95b958350dab98f0d497e3157c7d784a60b138019f54b170f8e9e1ea8569
5
5
  SHA512:
6
- metadata.gz: 7a32614d5b86c00d6deaf0c3615bd7b350cfa70d7f7336e5d242b8ffc7fbc7ddd439529701a5d687fbc69e3f3526f3ea466d3ce6e659660d881f189b8083ed63
7
- data.tar.gz: a13c04ff70b497a9331b22bd948532bc0755270000b380b2d755904b7abfa97538d10b06ece2e84dde011b1b143ec6a2cf883a70fb1cf27802d0fd425bfd13c6
6
+ metadata.gz: bd35e27e31da3b43cbe8cb7701a1516d8fe99c0f2daae0d2e4ca037d546e014f7bfd1dd95b7a31aa1ca227197598e10ba5a51263e05149ce854e2ec1cf613280
7
+ data.tar.gz: f5b3fe115024162a70ed46b433db963ceb959890df8ee13f84b54c348ef1b9ecf77e056b293853e12e421e328cc678c3d96d6c20732c2b9f4a46eaf2148d676e
@@ -1,5 +1,9 @@
1
+ require_relative 'logging_utils'
2
+
1
3
  module WolfCore
2
4
  module FileUtils
5
+ extend WolfCore::LoggingUtils
6
+
3
7
  module_function
4
8
 
5
9
  def require_relative_folder(*folders)
@@ -14,8 +18,10 @@ module WolfCore
14
18
  missing_files = []
15
19
  files_to_require.each do |file|
16
20
  begin
21
+ log_object "Requiring file: #{file}"
17
22
  require_relative file
18
23
  rescue NameError
24
+ log_object "Error requiring file: #{file}"
19
25
  missing_files << file
20
26
  end
21
27
  end
@@ -27,10 +33,10 @@ module WolfCore
27
33
  files_to_delete = Dir.glob(pattern)
28
34
  files_to_delete.each do |file|
29
35
  File.delete(file)
30
- puts "File deleted: #{file}"
36
+ log_object "File deleted: #{file}"
31
37
  end
32
38
 
33
- puts "File Deleting Process Finished! (#{files_to_delete.size} files deleted)"
39
+ log_object "File Deleting Process Finished! (#{files_to_delete.size} files deleted)"
34
40
  end
35
41
  end
36
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.46"
4
+ VERSION = "0.1.47"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.46
4
+ version: 0.1.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo