arql 0.3.26 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 739dec270236dc74c43a43959d6e5b4c74244f0b5271103cbbf514d3d7e28346
4
- data.tar.gz: 1775b3d75ef215b3552e160b36abb99a4404d9cda7f7c6b6ce89a2e812a13f19
3
+ metadata.gz: 842dfef91be12a7bbb486d459c28709c1bce5efdecb215f88b4294645e783786
4
+ data.tar.gz: fc44509bda37d955a5a63de815ce980600050f03bc596c58f71f770d81c1c845
5
5
  SHA512:
6
- metadata.gz: eb3efcc609db5cab4e91072ddf9b6acc2364bb211c79791b5bbbd2ecb2afdd702ea865fe9aec919bee5f0d810a8e2329dfa7917985556da7f7a4bf955ba7db39
7
- data.tar.gz: 748c8d9dac0b672c6a11d62ff7cd53d674baeb58530882b090f8c187e632339638a907a8ca40e91968c608cc40725962b37dac609159d764aaf4bf4d13718ce0
6
+ metadata.gz: 1bbb2bc61dedb8d1dde8fee328c4e646ae1e6cb1535ca17703851583c8cc52fe154618842e603ee5688ef144c52c12115340a510ba2dee9bc71f55efb2700315
7
+ data.tar.gz: e62d284ad3e70d8844f36c236ba66bff5fce92b3d234f3f6ead452b53ca24f30019f8f2764fc25fa7538f25f16227bc56dd4f3d6e0d28910ca31cdc12304d19f
data/.solargraph.yml CHANGED
@@ -9,3 +9,4 @@ require:
9
9
  - activestorage
10
10
  - activesupport
11
11
  - caxlsx
12
+ - youplot
@@ -0,0 +1,23 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "type": "rdbg",
9
+ "name": "Debug current file with rdbg",
10
+ "request": "launch",
11
+ "script": "exe/arql",
12
+ "command": "bundle exec",
13
+ "useTerminal": true,
14
+ "args": ["-e", "ccpro"],
15
+ "askParameters": false
16
+ },
17
+ {
18
+ "type": "rdbg",
19
+ "name": "Attach with rdbg",
20
+ "request": "attach"
21
+ }
22
+ ]
23
+ }
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.3.26)
4
+ arql (0.3.27)
5
5
  activerecord (>= 6.1.5, < 7.1.0)
6
6
  activesupport (>= 6.1.5, < 7.1.0)
7
7
  caxlsx (~> 3.3.0)
@@ -319,6 +319,40 @@ module Arql
319
319
  def write_excel(filename, *fields, **options)
320
320
  to_a.write_excel(filename, *fields, **options)
321
321
  end
322
+
323
+ def dump(filename, batch_size=500)
324
+ to_a.dump(filename, batch_size)
325
+ end
326
+ end
327
+
328
+ ::Ransack::Search.class_eval do
329
+ def t(*attrs, **options)
330
+ result.t(*attrs, **options)
331
+ end
332
+
333
+ def vd(*attrs, **options)
334
+ result.vd(*attrs, **options)
335
+ end
336
+
337
+ def v
338
+ result.v
339
+ end
340
+
341
+ def a
342
+ result.a
343
+ end
344
+
345
+ def write_csv(filename, *fields, **options)
346
+ result.write_csv(filename, *fields, **options)
347
+ end
348
+
349
+ def write_excel(filename, *fields, **options)
350
+ result.write_excel(filename, *fields, **options)
351
+ end
352
+
353
+ def dump(filename, batch_size=500)
354
+ result.dump(filename, batch_size)
355
+ end
322
356
  end
323
357
  end
324
- end
358
+ end
data/lib/arql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Arql
2
- VERSION = "0.3.26"
2
+ VERSION = "0.3.27"
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.26
4
+ version: 0.3.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-15 00:00:00.000000000 Z
11
+ date: 2023-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2
@@ -299,6 +299,7 @@ extra_rdoc_files: []
299
299
  files:
300
300
  - ".gitignore"
301
301
  - ".solargraph.yml"
302
+ - ".vscode/launch.json"
302
303
  - CODE_OF_CONDUCT.md
303
304
  - Gemfile
304
305
  - Gemfile.lock