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 +4 -4
- data/.solargraph.yml +1 -0
- data/.vscode/launch.json +23 -0
- data/Gemfile.lock +1 -1
- data/lib/arql/definition.rb +35 -1
- data/lib/arql/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 842dfef91be12a7bbb486d459c28709c1bce5efdecb215f88b4294645e783786
|
4
|
+
data.tar.gz: fc44509bda37d955a5a63de815ce980600050f03bc596c58f71f770d81c1c845
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bbb2bc61dedb8d1dde8fee328c4e646ae1e6cb1535ca17703851583c8cc52fe154618842e603ee5688ef144c52c12115340a510ba2dee9bc71f55efb2700315
|
7
|
+
data.tar.gz: e62d284ad3e70d8844f36c236ba66bff5fce92b3d234f3f6ead452b53ca24f30019f8f2764fc25fa7538f25f16227bc56dd4f3d6e0d28910ca31cdc12304d19f
|
data/.solargraph.yml
CHANGED
data/.vscode/launch.json
ADDED
@@ -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
data/lib/arql/definition.rb
CHANGED
@@ -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
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.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
|
+
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
|