easy_ml 0.2.0.pre.rc4 → 0.2.0.pre.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/easy_ml/engine.rb +8 -10
- data/lib/easy_ml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9a3910358a08a9989a8b6530c63be686a66ddfbcc8ea851eaf7c2523ae6cb03
|
4
|
+
data.tar.gz: 1e560b5b1dfd10150da4c54e57076a788fc9103725e08825c3a95564ab620e95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bd90891a4a4be562dfb7606cc8a9f1c291a896e28cb3bffa46788efc52fffe36a761247f42efb64050731d33614133c47ee91345f48b62be9e62b99dfb7070d
|
7
|
+
data.tar.gz: 79a0334452968c255642a820314fc1303f7742a3ce837ea9179cca3585c72f7a3e447db02906418c064d7c2a34a78ce55fc361d9a6a7263f3fcd17f5c4e00e72
|
data/lib/easy_ml/engine.rb
CHANGED
@@ -33,7 +33,8 @@ module EasyML
|
|
33
33
|
config.eager_load_paths += [
|
34
34
|
root.join("app/models"),
|
35
35
|
root.join("app/models/datasources"),
|
36
|
-
root.join("app/models
|
36
|
+
root.join("app/models"),
|
37
|
+
root.join("app/models/**/"),
|
37
38
|
root.join("lib/easy_ml"),
|
38
39
|
]
|
39
40
|
|
@@ -46,6 +47,12 @@ module EasyML
|
|
46
47
|
Polars.enable_string_cache
|
47
48
|
end
|
48
49
|
|
50
|
+
config.after_initialize do
|
51
|
+
Dir[root.join("app/models/**/*.rb")].select { |x| x.match?(/_history.rb/) }.each do |file|
|
52
|
+
require_dependency file
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
49
56
|
unless %w[rake rails bin/rails].include?(File.basename($0)) && %w[generate db:migrate db:drop easy_ml:migration].include?(ARGV.first)
|
50
57
|
config.after_initialize do
|
51
58
|
Dir.glob(File.expand_path("app/models/easy_ml/datasources/*.rb", EasyML::Engine.root)).each do |file|
|
@@ -84,15 +91,6 @@ module EasyML
|
|
84
91
|
urls: ["/easy_ml/assets"],
|
85
92
|
root: EasyML::Engine.root.join("public"),
|
86
93
|
)
|
87
|
-
# delegate :vite_ruby, to: :class
|
88
|
-
|
89
|
-
# def self.vite_ruby
|
90
|
-
# @vite_ruby ||= ViteRuby.new(root: EasyML::Engine.root)
|
91
|
-
# end
|
92
|
-
|
93
|
-
# config.app_middleware.use(Rack::Static,
|
94
|
-
# urls: ["/#{vite_ruby.config.public_output_dir}"],
|
95
|
-
# root: root.join(vite_ruby.config.public_dir))
|
96
94
|
|
97
95
|
def list_routes
|
98
96
|
EasyML::Engine.routes.routes.map { |r| "#{r.name} #{r.path.spec}" }
|
data/lib/easy_ml/version.rb
CHANGED