logical_query_parser 0.3.1 → 0.3.2

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: f5f35cb942ce106b76c221515c541fe5000984951951027aed0c65bbaaeda661
4
- data.tar.gz: 106c7a62724f8133aec5ee701c36944fffb3d7f7dd5cdf56a0513d880b347c58
3
+ metadata.gz: 8e7fa60e047b07a796cd00f9a2b817427dd37aa7c40aa67b73e257797b6a28e6
4
+ data.tar.gz: 874f90016ed7a3bb98f139814f28c6313c8a3cb8ed100975544b12848a0490c3
5
5
  SHA512:
6
- metadata.gz: 1d1009c089fe2d3ff11c825980a60a6268fbddde922539b11cbe16b65072b538d549976a5ef143a2a38ebdd8f1d24fec5fdd480787dd3768f1a1b1a5e3c7496b
7
- data.tar.gz: 9bd7e88f599ed9ae61f145de30f6d699b9a0428a80c8e81b60c3ce192d00c606485a5b0f49bda7642beddec5ad01b412fe04fc6bfb5a12bb43d9aeb3f1a572e9
6
+ metadata.gz: e9430c271cf8ac96df8138c7202b8a09731f00223b9ce614b3bd963ca026be57d5fd6e5853ab0eece71466cd60288fe00d825998d4c47269d1c322991d278438
7
+ data.tar.gz: 12992aa855da870a87403a9d061b9e92a2f3da9f8bec48230f45fda72d7245dfae8d576cb06de4b210fd41ce86271a156fb5de66bdf7c9a47749bf75de64ea4e
@@ -0,0 +1,46 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-16.04
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0]
12
+ gemfile: ['rails42', 'rails50', 'rails51', 'rails52', 'rails60', 'rails61']
13
+ exclude:
14
+ - ruby: 2.3
15
+ gemfile: rails60
16
+ - ruby: 2.3
17
+ gemfile: rails61
18
+ - ruby: 2.4
19
+ gemfile: rails60
20
+ - ruby: 2.4
21
+ gemfile: rails61
22
+ - ruby: 2.7
23
+ gemfile: rails42
24
+ - ruby: 3.0
25
+ gemfile: rails42
26
+ - ruby: 3.0
27
+ gemfile: rails50
28
+ - ruby: 3.0
29
+ gemfile: rails51
30
+ - ruby: 3.0
31
+ gemfile: rails52
32
+
33
+ name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
34
+
35
+ env:
36
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
37
+
38
+ steps:
39
+ - uses: actions/checkout@v2
40
+ - uses: ruby/setup-ruby@v1
41
+ with:
42
+ ruby-version: ${{ matrix.ruby }}
43
+ bundler-cache: true
44
+ - name: Run test
45
+ run: |
46
+ bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ # 0.3.2
4
+
5
+ * Force text search for activerecord's serialized column.
6
+
3
7
  ## 0.3.1
4
8
 
5
9
  * Fix to support array of columns.
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 6.1.0"
4
+
5
+ gemspec path: "../"
@@ -97,7 +97,7 @@ module LogicalQueryParser
97
97
  end
98
98
 
99
99
  def build_arel_from_columns(klass, columns, operator, text)
100
- columns.map { |column| klass.arel_table[column].send(operator, "%#{text}%") }
100
+ columns.map { |column| klass.arel_table[column].send(operator, Arel.sql(klass.connection.quote("%#{text}%"))) }
101
101
  end
102
102
 
103
103
  def build_arel_from_hash(klass, hash, operator, text)
@@ -1,3 +1,3 @@
1
1
  module LogicalQueryParser
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logical_query_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-18 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: treetop
@@ -116,9 +116,9 @@ executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
+ - ".github/workflows/ci.yml"
119
120
  - ".gitignore"
120
121
  - ".rspec"
121
- - ".travis.yml"
122
122
  - CHANGELOG.md
123
123
  - CODE_OF_CONDUCT.md
124
124
  - Gemfile
@@ -132,6 +132,7 @@ files:
132
132
  - gemfiles/rails51.gemfile
133
133
  - gemfiles/rails52.gemfile
134
134
  - gemfiles/rails60.gemfile
135
+ - gemfiles/rails61.gemfile
135
136
  - lib/logical_query_parser.rb
136
137
  - lib/logical_query_parser.treetop
137
138
  - lib/logical_query_parser/assoc.rb
@@ -159,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
160
  - !ruby/object:Gem::Version
160
161
  version: '0'
161
162
  requirements: []
162
- rubygems_version: 3.0.3
163
+ rubygems_version: 3.1.2
163
164
  signing_key:
164
165
  specification_version: 4
165
166
  summary: A parser for a logical query string.
data/.travis.yml DELETED
@@ -1,21 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3
5
- - 2.4
6
- - 2.5
7
- - 2.6
8
- gemfile:
9
- - gemfiles/rails42.gemfile
10
- - gemfiles/rails50.gemfile
11
- - gemfiles/rails51.gemfile
12
- - gemfiles/rails52.gemfile
13
- - gemfiles/rails60.gemfile
14
- matrix:
15
- exclude:
16
- - rvm: 2.3
17
- gemfile: gemfiles/rails60.gemfile
18
- - rvm: 2.4
19
- gemfile: gemfiles/rails60.gemfile
20
- script:
21
- - bundle exec rspec