arql 0.3.13 → 0.3.15

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: 70ab2de541e2a048fbf91c2f0d21fc35e0f37e8809ecef968eb79602b243bd62
4
- data.tar.gz: 103827e81fbf736836e13c7b74332cf27ff5b9774df6dee7e6b1ae6326a55c9d
3
+ metadata.gz: 4505e62b7ee37221d298bd6ebd628ca387e3d3bb82ce39b3e295a8778b015a26
4
+ data.tar.gz: 03fc525c9116c9cc6fa16f83154277d3e5f35a9b2c081bcccc61214004c65042
5
5
  SHA512:
6
- metadata.gz: 62abab6fa4163782249b3e260dd675f9cae2de04bb1911b071a4126a1cdcdcc95c7fcb9e2f587e80ff1a9a10ea33d1485a00efb383da536c06aebb23f7ec9254
7
- data.tar.gz: fc71a711e1b1ee993fdf9704ddf62fca568ddb26e70325cd055ca1c7c74a879371f02d92f1de613855f719354ccceda95061cdbeaed2e51980f5941059f6934e
6
+ metadata.gz: 0d7228d218272fedc72fb20d8190a0179f9e779dc61ee505282810d3af0fe8efea5bc4d1e186017e233d7e13aee8f119e71a2e8a6dfd3b508488d9d8218b18bd
7
+ data.tar.gz: c160bd6c97a37a483ed6ae3bcfedaca77a00802b015dd5a8b782471fd6ef1d9b8e9643e4856773893f0265d4dc8a2ce495d6873ce253a6cb523968193d31b9d2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.3.13)
4
+ arql (0.3.15)
5
5
  activerecord (>= 6.1.5, < 7.1.0)
6
6
  activesupport (>= 6.1.5, < 7.1.0)
7
7
  caxlsx (~> 3.0.2)
data/lib/arql/app.rb CHANGED
@@ -104,7 +104,7 @@ module Arql
104
104
  if effective_config[:code].present?
105
105
  eval(effective_config[:code])
106
106
  elsif effective_config[:args].present?
107
- effective_config[:args].each { |rb| load(rb) }
107
+ effective_config[:args].first.tap { |file| load(file) }
108
108
  elsif STDIN.isatty
109
109
  run_repl!
110
110
  else
@@ -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.
data/lib/arql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Arql
2
- VERSION = "0.3.13"
2
+ VERSION = "0.3.15"
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.13
4
+ version: 0.3.15
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-01 00:00:00.000000000 Z
11
+ date: 2022-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2