arql 0.3.26 → 0.3.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.solargraph.yml +1 -0
- data/.vscode/launch.json +23 -0
- data/Gemfile.lock +3 -1
- data/exe/arql +2 -0
- 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: 63c3e28e59b9846a5c457b2dc658b32caf4e5c285f22ea143f62f4581c099058
|
4
|
+
data.tar.gz: d6811a7fa086b1cff54a17f36d37e62dcca787adfe5693203a823e0adbb2fc57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cc80ff15bcae285cdfd2b8a16c2b1a740eb25424603574a29d2f6d636250c3dc240b7945428d28b1b1c4d973b2f803512bc5b2d2d82c2ac24785bb93847153f
|
7
|
+
data.tar.gz: ca6849fb5f39a1b36986fb0387d6d52db658b1d074704a351f98f1d3f60a1f6fe1d5a9f18afe0f834bc1a8d0ca931d154a759bf06043d077014db9bdef7ea72b
|
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
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
arql (0.3.
|
4
|
+
arql (0.3.28)
|
5
5
|
activerecord (>= 6.1.5, < 7.1.0)
|
6
6
|
activesupport (>= 6.1.5, < 7.1.0)
|
7
7
|
caxlsx (~> 3.3.0)
|
@@ -84,6 +84,7 @@ GEM
|
|
84
84
|
nokogiri (~> 1)
|
85
85
|
rubyzip (>= 1.3.0, < 3.0.0)
|
86
86
|
rubyzip (2.3.2)
|
87
|
+
sqlite3 (1.6.8-arm64-darwin)
|
87
88
|
sqlite3 (1.6.8-x86_64-darwin)
|
88
89
|
table_print (1.5.7)
|
89
90
|
terminal-table (1.8.0)
|
@@ -101,6 +102,7 @@ GEM
|
|
101
102
|
unicode_plot (>= 0.0.5)
|
102
103
|
|
103
104
|
PLATFORMS
|
105
|
+
arm64-darwin-23
|
104
106
|
x86_64-darwin-22
|
105
107
|
|
106
108
|
DEPENDENCIES
|
data/exe/arql
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.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liu Xiang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-05 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
|