arql 0.3.28 → 0.3.29

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: 63c3e28e59b9846a5c457b2dc658b32caf4e5c285f22ea143f62f4581c099058
4
- data.tar.gz: d6811a7fa086b1cff54a17f36d37e62dcca787adfe5693203a823e0adbb2fc57
3
+ metadata.gz: 2711a8766d86f1fedb9ab0d027439160cd3b7b394a2b8ba2f431e2cedbbce7f3
4
+ data.tar.gz: e3a3bb6b369e6df3956c8dac6058dfde2cbdb038165666c1e2e14659728b78d8
5
5
  SHA512:
6
- metadata.gz: 3cc80ff15bcae285cdfd2b8a16c2b1a740eb25424603574a29d2f6d636250c3dc240b7945428d28b1b1c4d973b2f803512bc5b2d2d82c2ac24785bb93847153f
7
- data.tar.gz: ca6849fb5f39a1b36986fb0387d6d52db658b1d074704a351f98f1d3f60a1f6fe1d5a9f18afe0f834bc1a8d0ca931d154a759bf06043d077014db9bdef7ea72b
6
+ metadata.gz: 10cee59f6c8b612f660b433217cf4101623db499264e12a713b12062e526eeee968842b2f9478409b6e94ab899869986985ecbaa60cfab113c925ac6e42af51b
7
+ data.tar.gz: c0106a04241204b7f18ea988b43d1a162c9d3be663f75371f96ab8a5cedf68aab80a4fc8880809df434dd995c4bf47f8bcce5ede2c67b3c2c4860e61cfb1414b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.3.28)
4
+ arql (0.3.29)
5
5
  activerecord (>= 6.1.5, < 7.1.0)
6
6
  activesupport (>= 6.1.5, < 7.1.0)
7
7
  caxlsx (~> 3.3.0)
@@ -216,6 +216,10 @@ module Arql
216
216
  table_name.send(@@classify_method).tap do |const_name|
217
217
  const_name = 'Modul' if const_name == 'Module'
218
218
  const_name = 'Clazz' if const_name == 'Class'
219
+ if const_name !~ /^[A-Z][A-Za-z0-9_]*$/
220
+ puts "Invalid class name: #{const_name}, skipped."
221
+ next
222
+ end
219
223
  Class.new(::ArqlModel) do
220
224
  include Arql::Extension
221
225
  if pkey.is_a?(Array) && pkey.size > 1
data/lib/arql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Arql
2
- VERSION = "0.3.28"
2
+ VERSION = "0.3.29"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.28
4
+ version: 0.3.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-05 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2