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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/arql/definition.rb +4 -0
- data/lib/arql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2711a8766d86f1fedb9ab0d027439160cd3b7b394a2b8ba2f431e2cedbbce7f3
|
4
|
+
data.tar.gz: e3a3bb6b369e6df3956c8dac6058dfde2cbdb038165666c1e2e14659728b78d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10cee59f6c8b612f660b433217cf4101623db499264e12a713b12062e526eeee968842b2f9478409b6e94ab899869986985ecbaa60cfab113c925ac6e42af51b
|
7
|
+
data.tar.gz: c0106a04241204b7f18ea988b43d1a162c9d3be663f75371f96ab8a5cedf68aab80a4fc8880809df434dd995c4bf47f8bcce5ede2c67b3c2c4860e61cfb1414b
|
data/Gemfile.lock
CHANGED
data/lib/arql/definition.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2024-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mysql2
|