llmed 0.1.12 → 0.1.14

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/llmed.rb +19 -1
  3. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8849e2c64fd853a6dae5a742e10de8f9f24e762887e55c4996b7c3465d7d2403
4
- data.tar.gz: ab8d292686c034067997384f088b1450c3ff94963a9f24f87f3669c05b218017
3
+ metadata.gz: f9a72f5adba83a14146323330f7c97636982a0c4b1c0572743d4df1a2880ecc8
4
+ data.tar.gz: 47eb82716df32a3f44ca34e5cfb04265a47646a4decd32264ca4144b90118d12
5
5
  SHA512:
6
- metadata.gz: aa0256b4d9ffc17a8ed36563eb3479cb71a0418bb1cb8fbc15825a87553625f18da93d5180d8739ed97c0c48810c385d01e24252b6d5db59cbd807ac24133732
7
- data.tar.gz: 95a50d243b0b24ff3f3a6084d02d765b4833616a37e8d21e2d10950434a45b1a6dfeffcaf90eefb4084c8c6b11023b1e1f34a0e2b77a9e2e560b0de9d0bf82f9
6
+ metadata.gz: d4dae07f84ef2679397688cafbfe32995f50d8af3ff3e3f792ad6f469258b1d13f2163d5741f6d0857332d6a7549a50d35220494c42c58939c77fc93cfed5b01
7
+ data.tar.gz: e84827166b379ec1e80cd7b2a7f5a70ece603ec025684fcb8c7afa8e4eb85770baa6c685cc29019157c38fdb17105bea05b7e833cdd7f9f87bfdd0dafd124388
data/lib/llmed.rb CHANGED
@@ -6,6 +6,7 @@ require 'csv'
6
6
  require 'pathname'
7
7
  require 'fileutils'
8
8
  require 'forwardable'
9
+ require 'notify'
9
10
 
10
11
  class LLMed
11
12
  extend Forwardable
@@ -186,6 +187,10 @@ You must only modify the following source code:
186
187
  end
187
188
  @logger.info("APPLICATION #{@name} WROTE STATISTICS FILE #{statistics_file}")
188
189
  end
190
+
191
+ def notify(message)
192
+ Notify.notify("APPLICATION #{@name}", message)
193
+ end
189
194
  end
190
195
 
191
196
  def initialize(logger:)
@@ -212,7 +217,13 @@ You must only modify the following source code:
212
217
  end
213
218
 
214
219
  def compile(output_dir:, release_dir: nil)
215
- @applications.each { |app| compile_application(app, output_dir, release_dir) }
220
+ @applications.each { |app|
221
+ app.notify("COMPILE START")
222
+ _, elapsed_seconds = measure do
223
+ compile_application(app, output_dir, release_dir)
224
+ end
225
+ app.notify("COMPILE DONE #{elapsed_seconds}")
226
+ }
216
227
  end
217
228
 
218
229
  private
@@ -256,6 +267,13 @@ You must only modify the following source code:
256
267
  file.write(output)
257
268
  end
258
269
  end
270
+
271
+ def measure
272
+ start = Time.now
273
+ result = yield
274
+ stop = Time.now
275
+ [result, stop - start]
276
+ end
259
277
  end
260
278
 
261
279
  require_relative 'llm'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llmed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jovany Leandro G.C
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-06-06 00:00:00.000000000 Z
11
+ date: 2025-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: langchainrb
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '8.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: notify
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.5.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.5.2
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement