easy_ml 0.1.2 → 0.1.4

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: b8bf32b84b8e3991a5c9f2f25355dda8e8b685a6016c659f0ec169e509054e80
4
- data.tar.gz: 27141e14e2b7aab481decb0e2a0189973ae18d86635bd9a586a9083fdb22312d
3
+ metadata.gz: 194dfdb77406b2509c29056d821804bbf388552d675d2fb08ee5bad296119c58
4
+ data.tar.gz: e456e94893d3f51f2432355f3b6ce94feda95066f7258f57499122549bebfbe5
5
5
  SHA512:
6
- metadata.gz: eb876892ad129afe383aa74acfbae05d75ecd98e6564369ac55b3ab82d6b9703cb3c5f6d7764315092dd13cc644df95fbba6ab21390f667273fec2aa2eb56cad
7
- data.tar.gz: 866195fa9983ffce3ff08eaf7832df758aeccc0d8f6faef1fc93faa2c06fe6d78a9d4a4742370b50e7710e48b86d08d0b7af98fd16d14812d39b92cc95e8e355
6
+ metadata.gz: 279ca003173f2acdd2dcc802cc96fb479658edfd86e6c773dca7615fe550aa3e80999c2c2c8e665ee5affe5fa5b10c888e78c0e426688dc2ce1978d420773722
7
+ data.tar.gz: 6443bb0f2e3560a0b9f28fe5d657b58bae75a56756db3193dd86bfa0772c19a66350d46d595b4ce133ab328dfdc3893ab1b06ae78c54330ae1a3174e9fc390a7
@@ -1,9 +1,18 @@
1
1
  require_relative "../../../lib/easy_ml/core/model"
2
2
  module EasyML
3
3
  class Model < ActiveRecord::Base
4
- include EasyML::Core::ModelCore
4
+ if ActiveRecord::Base.connection.data_source_exists?("easy_ml_models")
5
+ include EasyML::Core::ModelCore
5
6
 
6
- self.table_name = "easy_ml_models"
7
+ self.table_name = "easy_ml_models"
8
+ else
9
+ # Placeholder if the table doesn't exist (keeps the file quiet)
10
+ def self.table_ready?
11
+ false
12
+ end
13
+
14
+ Rails.logger.info("Skipping EasyML::Model definition as the 'easy_ml_models' table doesn't exist.")
15
+ end
7
16
 
8
17
  scope :live, -> { where(is_live: true) }
9
18
  attribute :root_dir, :string
@@ -3,6 +3,7 @@ require_relative "../model"
3
3
  module EasyML
4
4
  module Models
5
5
  class XGBoost < EasyML::Model
6
+ include GlueGun::DSL
6
7
  include EasyML::Core::Models::XGBoostCore
7
8
  end
8
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EasyML
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
5
5
  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.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Shollenberger