arql 0.3.14 → 0.3.16

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: 0b7b80bac4f7fe8bf9737f6ffc0ebdc2bb4fd8d625b3fe7b7f7ae67eb50689d4
4
- data.tar.gz: ab7997edb5c4af0c851b406645a4a92ace046a92712a0925e6e682523c558c10
3
+ metadata.gz: a1aaed9faa141e9402bd563d16aa89e038b333673276c336a2d2006f948b03cd
4
+ data.tar.gz: 59e4e74627a5635612e8803fcda2d5d1869412d1bdb5d5c1198163f1be84e25d
5
5
  SHA512:
6
- metadata.gz: 8d1e73b94f0c66063ec8d4308514801e59afd7cd89bc9298d5da986a998acee7403cf557e2c0d7429a86837befc0f9c86974cb2b83504733a776726130789ef2
7
- data.tar.gz: b99e6f58ee77b5e483a34feac68c26da8c71c7fcc7a18b7690dcb21bd67e1f3c6b47938af1f88a086979e12916345a2e1706bfb0f9175ca1359165d9450d6646
6
+ metadata.gz: 3186ab79eec8f6cf8fafa68e55ccc4501a7eef7b45c528e07bbaa02741bd08c819de3418ba48e89870d333ad02a403c417311b1b519bff14f8f35a447d09dedb
7
+ data.tar.gz: 41f869e41dfab5fba01fbc51520c42078332e97ecfca03f42708b0e971843fe2de6cf372015bb39b790b70171bd57cebc5339503d27fa2a61ee067b72a854ea2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.3.14)
4
+ arql (0.3.16)
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)
@@ -101,7 +101,7 @@ module Arql
101
101
  # Post.change_column(:description, :text)
102
102
  #
103
103
  def change_column(column_name, type, options = {})
104
- ActiveRecord::Base.connection.change_column(table_name, column_name, type, options)
104
+ ActiveRecord::Base.connection.change_column(table_name, column_name, type, **options)
105
105
  end
106
106
 
107
107
  # Removes the column from the table definition.
@@ -229,7 +229,7 @@ module Arql
229
229
  #
230
230
  # For more information see the {"Transactional Migrations" section}[rdoc-ref:Migration].
231
231
  def add_index(column_name, options = {})
232
- ActiveRecord::Base.connection.add_index(table_name, column_name, options)
232
+ ActiveRecord::Base.connection.add_index(table_name, column_name, **options)
233
233
  end
234
234
 
235
235
  # Adds a new foreign key.
@@ -518,7 +518,7 @@ module Arql
518
518
  #
519
519
  # For more information see the {"Transactional Migrations" section}[rdoc-ref:Migration].
520
520
  def remove_index(options = {})
521
- ActiveRecord::Base.connection.remove_index(table_name, options)
521
+ ActiveRecord::Base.connection.remove_index(table_name, **options)
522
522
  end
523
523
 
524
524
  # Removes the timestamp columns (+created_at+ and +updated_at+) from the table definition.
@@ -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.14"
2
+ VERSION = "0.3.16"
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.14
4
+ version: 0.3.16
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-08 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