arql 0.3.26 → 0.3.28

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: 63c3e28e59b9846a5c457b2dc658b32caf4e5c285f22ea143f62f4581c099058
4
+ data.tar.gz: d6811a7fa086b1cff54a17f36d37e62dcca787adfe5693203a823e0adbb2fc57
5
5
  SHA512:
6
- metadata.gz: eb3efcc609db5cab4e91072ddf9b6acc2364bb211c79791b5bbbd2ecb2afdd702ea865fe9aec919bee5f0d810a8e2329dfa7917985556da7f7a4bf955ba7db39
7
- data.tar.gz: 748c8d9dac0b672c6a11d62ff7cd53d674baeb58530882b090f8c187e632339638a907a8ca40e91968c608cc40725962b37dac609159d764aaf4bf4d13718ce0
6
+ metadata.gz: 3cc80ff15bcae285cdfd2b8a16c2b1a740eb25424603574a29d2f6d636250c3dc240b7945428d28b1b1c4d973b2f803512bc5b2d2d82c2ac24785bb93847153f
7
+ data.tar.gz: ca6849fb5f39a1b36986fb0387d6d52db658b1d074704a351f98f1d3f60a1f6fe1d5a9f18afe0f834bc1a8d0ca931d154a759bf06043d077014db9bdef7ea72b
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.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
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ ENV['RAILS_DISABLE_DEPRECATED_TO_S_CONVERSION'] = 'true'
4
+
3
5
  ArqlSetsidWrrapper = File.dirname(File.absolute_path(__FILE__)) + '/arql_setsid_wrapper'
4
6
 
5
7
  require "arql"
@@ -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.28"
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.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: 2023-11-15 00:00:00.000000000 Z
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