logical_query_parser 0.3.2 → 0.3.3

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: 8e7fa60e047b07a796cd00f9a2b817427dd37aa7c40aa67b73e257797b6a28e6
4
- data.tar.gz: 874f90016ed7a3bb98f139814f28c6313c8a3cb8ed100975544b12848a0490c3
3
+ metadata.gz: 633738053640edcf7db6ea3e81cb905145b8f7e40c11059971075c9cbb22c583
4
+ data.tar.gz: b8831c8189ab803c5a8f64afdac792edf6e3ffbbd589dbf5625b095138650f1c
5
5
  SHA512:
6
- metadata.gz: e9430c271cf8ac96df8138c7202b8a09731f00223b9ce614b3bd963ca026be57d5fd6e5853ab0eece71466cd60288fe00d825998d4c47269d1c322991d278438
7
- data.tar.gz: 12992aa855da870a87403a9d061b9e92a2f3da9f8bec48230f45fda72d7245dfae8d576cb06de4b210fd41ce86271a156fb5de66bdf7c9a47749bf75de64ea4e
6
+ metadata.gz: c3662633dc156b54e6af5db7a7744ea6c019f8bb4ef9558ab524349574c9a0888108c432e05e2ff13264ec5f0e32d44764a2e86155dd1ffe47d86212e351363f
7
+ data.tar.gz: e5408c71d250dfdc3e9da7f2c7c28011fe149f850079cb878be9eb23a06fd858fc984cc5cd31954a7e2b3eac849456b107509da16ddb7b2bb620e8c74d1376eb
@@ -4,21 +4,29 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  test:
7
- runs-on: ubuntu-16.04
7
+ runs-on: ubuntu-20.04
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0]
12
- gemfile: ['rails42', 'rails50', 'rails51', 'rails52', 'rails60', 'rails61']
11
+ ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2]
12
+ gemfile: ['rails42', 'rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70']
13
13
  exclude:
14
14
  - ruby: 2.3
15
15
  gemfile: rails60
16
16
  - ruby: 2.3
17
17
  gemfile: rails61
18
+ - ruby: 2.3
19
+ gemfile: rails70
18
20
  - ruby: 2.4
19
21
  gemfile: rails60
20
22
  - ruby: 2.4
21
23
  gemfile: rails61
24
+ - ruby: 2.4
25
+ gemfile: rails70
26
+ - ruby: 2.5
27
+ gemfile: rails70
28
+ - ruby: 2.6
29
+ gemfile: rails70
22
30
  - ruby: 2.7
23
31
  gemfile: rails42
24
32
  - ruby: 3.0
@@ -29,6 +37,22 @@ jobs:
29
37
  gemfile: rails51
30
38
  - ruby: 3.0
31
39
  gemfile: rails52
40
+ - ruby: 3.1
41
+ gemfile: rails42
42
+ - ruby: 3.1
43
+ gemfile: rails50
44
+ - ruby: 3.1
45
+ gemfile: rails51
46
+ - ruby: 3.1
47
+ gemfile: rails52
48
+ - ruby: 3.2
49
+ gemfile: rails42
50
+ - ruby: 3.2
51
+ gemfile: rails50
52
+ - ruby: 3.2
53
+ gemfile: rails51
54
+ - ruby: 3.2
55
+ gemfile: rails52
32
56
 
33
57
  name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
34
58
 
@@ -36,7 +60,7 @@ jobs:
36
60
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
37
61
 
38
62
  steps:
39
- - uses: actions/checkout@v2
63
+ - uses: actions/checkout@v3
40
64
  - uses: ruby/setup-ruby@v1
41
65
  with:
42
66
  ruby-version: ${{ matrix.ruby }}
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
- # 0.3.2
3
+ ## 0.3.3
4
+
5
+ * Fix parsing literals which contains a logical operator. (#7 by scambra)
6
+
7
+ ## 0.3.2
4
8
 
5
9
  * Force text search for activerecord's serialized column.
6
10
 
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "activerecord", "~> 6.0.0"
4
+ gem "psych", "~> 3.3.0"
4
5
 
5
6
  gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.0.1"
4
+
5
+ gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module LogicalQueryParser
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -28,7 +28,7 @@ grammar LogicalQueryParser
28
28
  end
29
29
 
30
30
  rule unquoted_word
31
- atom+
31
+ !ope atom+ / ope atom+
32
32
  end
33
33
 
34
34
  rule lparen
@@ -51,6 +51,10 @@ grammar LogicalQueryParser
51
51
  (not_ope sp+ / not_sym sp*) <NotNode>
52
52
  end
53
53
 
54
+ rule ope
55
+ and_ope / or_ope / not_ope
56
+ end
57
+
54
58
  rule and_ope
55
59
  'AND' / 'and' / '&&' / '&'
56
60
  end
@@ -72,6 +76,6 @@ grammar LogicalQueryParser
72
76
  end
73
77
 
74
78
  rule atom
75
- !(lparen / rparen /and_ope / or_ope / not_ope / not_sym / sp) .
79
+ !(lparen / rparen / sp) .
76
80
  end
77
81
  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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-25 00:00:00.000000000 Z
11
+ date: 2023-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: treetop
@@ -133,6 +133,7 @@ files:
133
133
  - gemfiles/rails52.gemfile
134
134
  - gemfiles/rails60.gemfile
135
135
  - gemfiles/rails61.gemfile
136
+ - gemfiles/rails70.gemfile
136
137
  - lib/logical_query_parser.rb
137
138
  - lib/logical_query_parser.treetop
138
139
  - lib/logical_query_parser/assoc.rb
@@ -145,7 +146,7 @@ homepage: https://github.com/kanety/logical_query_parser
145
146
  licenses:
146
147
  - MIT
147
148
  metadata: {}
148
- post_install_message:
149
+ post_install_message:
149
150
  rdoc_options: []
150
151
  require_paths:
151
152
  - lib
@@ -160,8 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
161
  - !ruby/object:Gem::Version
161
162
  version: '0'
162
163
  requirements: []
163
- rubygems_version: 3.1.2
164
- signing_key:
164
+ rubygems_version: 3.3.3
165
+ signing_key:
165
166
  specification_version: 4
166
167
  summary: A parser for a logical query string.
167
168
  test_files: []