dynamic-active-model 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dynamic-db-explorer +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80a26c3336b3adc4aeb32e82699b5c6b88fd3ee1722fccdef4b5078a8aef2776
4
- data.tar.gz: 45755211d6c67e8f4646923e1082977e2906ff464ef40c81cd93fbfb6b01c8ff
3
+ metadata.gz: a429b3b45e3768028871c2e93cf4fc3a8db46fe9aec8a54f44eab46ec15583cc
4
+ data.tar.gz: 7df1cd6803c0d3ba797d0cd4fb553c60c61f635eb3de0a3cd7ecce04bb49250d
5
5
  SHA512:
6
- metadata.gz: 2e0cdd29bea6837ade3759c9fb9105784d2a94b4fa2583db7591f598e0b784a8e256809ffafd93f0d4ee01aff8ffcef5fd1064e8bd325b060ee89b9a832b7848
7
- data.tar.gz: 676d3f6c102f9b011cf5bde8a35df44c6e0b45cd9106fdcc2fb1ed794c5b1b40c50f7a6c6b241a07b88f6aa4241487f033419c225e8664f38f64e035441b2b92
6
+ metadata.gz: 691d8a981057bf20a08f8af91c56b72341e55785836fb63b1ec315197a4800e9d968db1577de0b2da8e23d431f10a086e37e795dff6389db7aed275947dbf55e
7
+ data.tar.gz: 25e12296d9cd4069629ff0bb4cd8b62abccc89694e7c16c5fcddf1e4e7efea842f081773be4d3e6054bb3d25d67e4c548da612128db054f077d1e1c09399c725
@@ -96,7 +96,7 @@ if options[:config_file]
96
96
  options[:connection_options] = config.each_with_object({}) { |(name, value), hsh| hsh[name.to_sym] = value }
97
97
  end
98
98
 
99
- database = DynamicActiveModel::Explorer.explore(
99
+ DYNAMIC_DATABASE = DynamicActiveModel::Explorer.explore(
100
100
  options[:base_module],
101
101
  options[:connection_options],
102
102
  options[:skip_tables],
@@ -104,7 +104,7 @@ database = DynamicActiveModel::Explorer.explore(
104
104
  )
105
105
 
106
106
  if options[:class_files_dir]
107
- database.models.each do |model|
107
+ DYNAMIC_DATABASE.models.each do |model|
108
108
  DynamicActiveModel::TemplateClassFile.new(model).create_template!(options[:class_files_dir])
109
109
  end
110
110
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic-active-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-09 00:00:00.000000000 Z
11
+ date: 2022-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord