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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9eae5cbc9d5adc1c34d24ce196c89a2416c104efc9e96409f926859897922519
4
- data.tar.gz: 2bce047f0ef6a6ca0a77dd503da59cd524178543d052c91c840c04a672aff31b
3
+ metadata.gz: 304d8e00d19ca3e16206694c2fd1c582644e52141a5540ee12446a795b1bb30b
4
+ data.tar.gz: 465250bfd65188a0afaec5377a218c1df5af6c43af629fffb924b7cc08d92982
5
5
  SHA512:
6
- metadata.gz: db05bb0068416291e9dd9ac7990de432e57963d2c7372e51782c5a2d5a46ceb091cb87ca70b4258beb176f3fac17f46f25a3a7e34a54f3a50eb65dbf299df3bd
7
- data.tar.gz: 74c4179b7174f31e8249404127490bd29bc88fbeb08bc793ffec73aef84453203aa72dc8eb9fb1dad8d1b2e5064c77568079684d42165f345e6beb072bb5be3d
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Makit
4
- VERSION = "0.0.65"
4
+ VERSION = "0.0.66"
5
5
 
6
6
  class Version
7
7
  # given an array of version strings, return the highest version
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.65
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-17 00:00:00.000000000 Z
11
+ date: 2025-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp