arql 0.4.7 → 0.4.9

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: 3d1aeb012ee6149da8180c3db8992b3dc1b040e0ec7d7d68516b7c3e28c071f1
4
- data.tar.gz: 9b43084207514b9f3b79a3c06f30ecb5d697d4595a5a788f9f6d9fed5997d327
3
+ metadata.gz: fdeb26e2e135c12c30ed29e68da2ba2a60e99a42791630ff0654b7505beb16fb
4
+ data.tar.gz: 03be20f625c67213122fa441fc12e9ca678aa82b075c0191fe5f943c91c33d54
5
5
  SHA512:
6
- metadata.gz: 9344c8e75373b92da91d1b154c38d8f912977b897cc88ea9886eff9a4e3ca317fb07a15ad0591f09ce1d7ee39ae0e6105bd3980c57a922113118e368d5d977be
7
- data.tar.gz: b0a34d71237b8389f1f0b16bf2928e57996427da48b14cf1a145c69ee65f50ed6972217459e336e8a511cfc305d3fc2aa527f204ffd9bed703c8c74413774620
6
+ metadata.gz: 5372f09ce7d5900d5b90f0d1bf74fe4725896255fd0b6902d4d7070bda0a2148acf5ab9b374410907c59b90b6fc7695a4b8fdb829b8f71cbea79df252558b1fe
7
+ data.tar.gz: 4086b77b2d1d5a7a51b427112baa37d7df30909005f3475810d7d28db6cfe041ba47ddcb5ce9b236d2c2101c1b7f804a9d426e538a62ff06e9a5183bc39d6885
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.4.7)
4
+ arql (0.4.9)
5
5
  activerecord (>= 6.1.5, < 7.1.0)
6
6
  activesupport (>= 6.1.5, < 7.1.0)
7
7
  caxlsx (~> 3.3.0)
@@ -25,7 +25,7 @@ module Arql
25
25
  def self.method_missing(method_name, *args, &block)
26
26
  if method_name.to_s =~ /^(.+)_like$/
27
27
  attr_name = $1.to_sym
28
- return super unless respond_to?(attr_name)
28
+ return super unless has_attribute?(attr_name)
29
29
  send(:like, $1 => args.first)
30
30
  else
31
31
  super
@@ -33,7 +33,6 @@ class Array
33
33
  # attrs = attrs.select { |e| any { |r| r.attributes[e.to_s]&.present? } }
34
34
  # end
35
35
  tbl = Arql::Table.new { |t|
36
- t.style = table_style_for_format(format)
37
36
  t.headers = attrs
38
37
  each do |e|
39
38
  t.body << e.attributes.values_at(*attrs.map(&:to_s))
data/lib/arql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Arql
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.9"
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.4.7
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-30 00:00:00.000000000 Z
11
+ date: 2024-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2