arql 0.3.15 → 0.3.17

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: 4505e62b7ee37221d298bd6ebd628ca387e3d3bb82ce39b3e295a8778b015a26
4
- data.tar.gz: 03fc525c9116c9cc6fa16f83154277d3e5f35a9b2c081bcccc61214004c65042
3
+ metadata.gz: be74caac16010ee2ce8aa722475e9c499cef85b7de46c88bc7220de503b9c1d2
4
+ data.tar.gz: 9bec24d64d8449540d39e4ec2f63d676e14d3672d8f35235c2961b5acffaa1bf
5
5
  SHA512:
6
- metadata.gz: 0d7228d218272fedc72fb20d8190a0179f9e779dc61ee505282810d3af0fe8efea5bc4d1e186017e233d7e13aee8f119e71a2e8a6dfd3b508488d9d8218b18bd
7
- data.tar.gz: c160bd6c97a37a483ed6ae3bcfedaca77a00802b015dd5a8b782471fd6ef1d9b8e9643e4856773893f0265d4dc8a2ce495d6873ce253a6cb523968193d31b9d2
6
+ metadata.gz: 41c3efec85394feb6f20eaf18a3250e4c4144be9dc19cb2efb2b89d059044f203c2cfb525f9671dd3075a442dd7b9a14a015b7bf35ebf612f1a2a137f488f207
7
+ data.tar.gz: b1e8d3028e57eac6eda67426851b727385bac424a23d58e5fe10e3d909bc4b9918ad4fada49857378ae76012c68bb4828e658136491884bebd571b986ebb3db0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.3.15)
4
+ arql (0.3.17)
5
5
  activerecord (>= 6.1.5, < 7.1.0)
6
6
  activesupport (>= 6.1.5, < 7.1.0)
7
7
  caxlsx (~> 3.0.2)
@@ -22,12 +22,12 @@ PATH
22
22
  GEM
23
23
  remote: https://rubygems.org/
24
24
  specs:
25
- activemodel (7.0.3.1)
26
- activesupport (= 7.0.3.1)
27
- activerecord (7.0.3.1)
28
- activemodel (= 7.0.3.1)
29
- activesupport (= 7.0.3.1)
30
- activesupport (7.0.3.1)
25
+ activemodel (7.0.4)
26
+ activesupport (= 7.0.4)
27
+ activerecord (7.0.4)
28
+ activemodel (= 7.0.4)
29
+ activesupport (= 7.0.4)
30
+ activesupport (7.0.4)
31
31
  concurrent-ruby (~> 1.0, >= 1.0.2)
32
32
  i18n (>= 1.6, < 2)
33
33
  minitest (>= 5.1)
@@ -41,4 +41,12 @@ module Kernel
41
41
  def tables
42
42
  models
43
43
  end
44
+
45
+ def model_classes
46
+ ::ArqlModel.subclasses
47
+ end
48
+
49
+ def table_names
50
+ models[2..-1].map(&:first)
51
+ end
44
52
  end
@@ -4,7 +4,7 @@ module Kernel
4
4
 
5
5
  include ::Arql::Concerns::GlobalDataDefinition
6
6
 
7
- def sql(sql)
7
+ def q(sql)
8
8
  ActiveRecord::Base.connection.exec_query(sql)
9
9
  end
10
10
 
data/lib/arql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Arql
2
- VERSION = "0.3.15"
2
+ VERSION = "0.3.17"
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.15
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-15 00:00:00.000000000 Z
11
+ date: 2022-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2