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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0367d12137f6d3506e60e1f4a69546abdbf8524bef6c205754eddf30abb69c94
4
- data.tar.gz: 05334be9021a5c0bd5cc372a981e9146632b2c4a9811329256de7b7f22db1cbf
3
+ metadata.gz: d9a3910358a08a9989a8b6530c63be686a66ddfbcc8ea851eaf7c2523ae6cb03
4
+ data.tar.gz: 1e560b5b1dfd10150da4c54e57076a788fc9103725e08825c3a95564ab620e95
5
5
  SHA512:
6
- metadata.gz: 1d47d5b96a8e6a065912d13377594658613b5f63eef936e1d0b7b89f2227c146ebd718604b983e1aba1dc6f2783a50b6815173e876f5acbf23d7f2db111d224b
7
- data.tar.gz: c52f6bf90857fcf57753f04904f34cf73dd3fd4559dee14a6d32aae4b8a91b2a077380a16f85a10b97693d9e48b6ebf52f67e61114ca79f3eea7aae0ef81176f
6
+ metadata.gz: 9bd90891a4a4be562dfb7606cc8a9f1c291a896e28cb3bffa46788efc52fffe36a761247f42efb64050731d33614133c47ee91345f48b62be9e62b99dfb7070d
7
+ data.tar.gz: 79a0334452968c255642a820314fc1303f7742a3ce837ea9179cca3585c72f7a3e447db02906418c064d7c2a34a78ce55fc361d9a6a7263f3fcd17f5c4e00e72
@@ -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/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}" }
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EasyML
4
- VERSION = "0.2.0-rc4"
4
+ VERSION = "0.2.0-rc5"
5
5
 
6
6
  module Version
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_ml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.rc4
4
+ version: 0.2.0.pre.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Shollenberger