makit 0.0.65 → 0.0.66
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/lib/makit/logging.rb +10 -0
- data/lib/makit/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: 304d8e00d19ca3e16206694c2fd1c582644e52141a5540ee12446a795b1bb30b
|
4
|
+
data.tar.gz: 465250bfd65188a0afaec5377a218c1df5af6c43af629fffb924b7cc08d92982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee1a2721800bb33d0d512da0ee86e326c87dbc40a7e56c3a4719dcb74b5d0f7544523aa43d5609b82b9c64dcbeb39b6cb04c2a6e4d85ca163be631e83f52ae9e
|
7
|
+
data.tar.gz: cb742d30022927b6da577a817e86f177fd7cca80f3ad38442114b3855ef7ad15c96b06bef9a71f96fa84081c76c3797dd87c7cf7064c03d14dd702fae70f3eff
|
data/lib/makit/logging.rb
CHANGED
@@ -9,6 +9,16 @@ module Makit
|
|
9
9
|
module Logging
|
10
10
|
ANSI_COLOR_REGEX = /\e\[[0-9;]*m/
|
11
11
|
|
12
|
+
def self.log_rake_duration
|
13
|
+
# use the STARTTIME constant to log the duration of the rake task
|
14
|
+
# to the log/rake.duration.txt file
|
15
|
+
duration = Time.now - STARTTIME
|
16
|
+
FileUtils.mkdir_p("log") unless Dir.exist?("log")
|
17
|
+
File.open("log/rake.duration.txt", "a") do |file|
|
18
|
+
file.puts "Rake task duration: #{duration} seconds"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
12
22
|
class PlainFormatter < Logger::Formatter
|
13
23
|
def call(_severity, _time, _progname, msg)
|
14
24
|
stripped_msg = msg.gsub(ANSI_COLOR_REGEX, "") # Remove ANSI color codes
|
data/lib/makit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: makit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.66
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|