llmed 0.1.12 → 0.1.13
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/llmed.rb +18 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e06eed66c39c0318968325bcf9f6944bedbfd26a87632e20e966074577a604e
|
4
|
+
data.tar.gz: 1945b477675140491e785fccd7aa4356cb67ae6703080235636218c05abf4fc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e865a55a15fa686cf4abe87e8494c8b179f0da8070c15b77c7e556eea59841e501ec454f0ccd3e124ceeeebedc8c2aefb7ea7ec31e1d9b6a818e73b054c1061
|
7
|
+
data.tar.gz: 535fd43f7594c0a5fbc9df4a31a679f33ade139dd1b09f7ef63be1d6305a59c3ebe320aeeed1e47aac87520e5cbb90050d3ab22ff51166915faefd6c1c6a1f7a
|
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,12 @@ 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|
|
220
|
+
@applications.each { |app|
|
221
|
+
_, elapsed_seconds = measure do
|
222
|
+
compile_application(app, output_dir, release_dir)
|
223
|
+
end
|
224
|
+
app.notify("COMPILE DONE #{elapsed_seconds}")
|
225
|
+
}
|
216
226
|
end
|
217
227
|
|
218
228
|
private
|
@@ -256,6 +266,13 @@ You must only modify the following source code:
|
|
256
266
|
file.write(output)
|
257
267
|
end
|
258
268
|
end
|
269
|
+
|
270
|
+
def measure
|
271
|
+
start = Time.now
|
272
|
+
result = yield
|
273
|
+
stop = Time.now
|
274
|
+
[result, stop - start]
|
275
|
+
end
|
259
276
|
end
|
260
277
|
|
261
278
|
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.
|
4
|
+
version: 0.1.13
|
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-
|
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
|