querylicious 0.4.1 → 0.5.0

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: c7184b4227c98c1d78d5f54eabc1764ad7d39bfccaacc343eaf3b66c12bbc36b
4
- data.tar.gz: 4219288dd5c2adf845c7295883f00b9312da3c85d8b5a224a603428623c6980e
3
+ metadata.gz: 95b2b36712c5a7185092d24b99647a1cfb0fc3ef7ab66351f5574fdd16277d1e
4
+ data.tar.gz: cd71d48a4b5103df65d3679a1bb77e26c7051b3078fc5bf545312705f4d885d4
5
5
  SHA512:
6
- metadata.gz: ae1e231cf481c1285c75055bd1fe1d7ee3c6f0c70faf19f5de938c84b4dac4f2719132ac282bb3911e4e57305fc87a58d08e7452e2a38afe9ef8258fe3d1e422
7
- data.tar.gz: e666f8691d3e6e471f58be9efb96c933993b8f174342beeff701a8c62f757673a686e94293d02bbe17dd62da389f2f50205c345cf3320709bfc50225b9879db6
6
+ metadata.gz: c3a4d5adf3182f19db97c0fa1c2240fbf5a91e877fcf7023d33f38fb8681008d3c2ad6efdbd04a1d624a0214d8be3498bab9cb0892381a23eee9dfae18ba2dd6
7
+ data.tar.gz: c3d5f7f0ce962d134ddcdeec3811fb230ae1f982cae597c8ee1e030cc8d292b75f0f1acf2981835bc9d6a423c45793df68b7d432a19e1bf90ff84c128dcdda84
@@ -0,0 +1,3 @@
1
+ exclude_paths:
2
+ - 'spec/**/*.rb'
3
+ - 'vendor/**/*.rb'
@@ -1,7 +1,7 @@
1
1
  # This file is a template, and might need editing before it works on your project.
2
2
  # Official language image. Look for the different tagged releases at:
3
3
  # https://hub.docker.com/r/library/ruby/tags/
4
- image: "ruby:2.5"
4
+ image: "ruby:2.6"
5
5
 
6
6
  # Cache gems in between builds
7
7
  cache:
@@ -15,7 +15,7 @@ before_script:
15
15
  - ruby -v # Print out ruby version for debugging
16
16
  - apt update
17
17
  - apt install git build-essential -y
18
- - gem install bundler --no-ri --no-rdoc # Bundler is not installed with the image
18
+ - gem install bundler --no-document # Bundler is not installed with the image
19
19
  - bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
20
20
 
21
21
  # Optional - Delete if not using `rubocop`
@@ -24,23 +24,33 @@ rubocop:
24
24
  - bundle exec rubocop --version
25
25
  - bundle exec rubocop --extra-details --display-style-guide --format clang
26
26
  allow_failure: true
27
-
27
+
28
28
  reek:
29
29
  script:
30
30
  - bundle exec reek --version
31
31
  - bundle exec reek
32
32
  allow_failure: true
33
33
 
34
+ fasterer:
35
+ script:
36
+ - bundle exec fasterer
37
+ allow_failure: true
38
+
34
39
  rspec:2.3:
35
40
  image: "ruby:2.3"
36
41
  script:
37
42
  - bundle exec rspec spec
38
-
43
+
39
44
  rspec:2.4:
40
45
  image: "ruby:2.4"
41
46
  script:
42
47
  - bundle exec rspec spec
43
-
48
+
49
+ rspec:2.5:
50
+ image: "ruby:2.5"
51
+ script:
52
+ - bundle exec rspec spec
53
+
44
54
  rspec:
45
55
  script:
46
56
  - bundle exec rspec spec
@@ -48,18 +58,12 @@ rspec:
48
58
  paths:
49
59
  - coverage/
50
60
  expire_in: 30 days
51
-
52
- rspec:2.6-rc:
53
- image: "ruby:2.6-rc"
54
- script:
55
- - bundle exec rspec spec
56
- allow_failure: true
57
-
61
+
58
62
  rspec:jruby:9.1:
59
63
  image: "jruby:9.1"
60
64
  script:
61
65
  - bundle exec rspec spec
62
-
66
+
63
67
  rspec:jruby:9.2:
64
68
  image: "jruby:9.2"
65
69
  script:
@@ -77,4 +81,4 @@ pages:
77
81
  - public
78
82
  expire_in: 30 days
79
83
  only:
80
- - master
84
+ - master
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.5.0] - 2019-05-15
11
+
12
+ ### Changed
13
+
14
+ - Updated required versions of `dry-struct` and `dry-types`.
15
+ These gems now require a minimum of Ruby 2.3, which `querylicious` already did.
16
+
10
17
  ## [0.4.1] - 2018-09-16
11
18
 
12
19
  ### Changed
@@ -68,7 +75,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
68
75
 
69
76
  [gitlab-repo]: https://gitlab.com/huyderman/querylicious
70
77
 
71
- [Unreleased]: https://gitlab.com/huyderman/querylicious/compare/v0.4.1...HEAD
78
+ [Unreleased]: https://gitlab.com/huyderman/querylicious/compare/v0.5.0...HEAD
79
+ [0.5.0]: https://gitlab.com/huyderman/querylicious/compare/v0.4.1...v0.5.0
72
80
  [0.4.1]: https://gitlab.com/huyderman/querylicious/compare/v0.4.0...v0.4.1
73
81
  [0.4.0]: https://gitlab.com/huyderman/querylicious/compare/v0.3.2...v0.4.0
74
82
  [0.3.2]: https://gitlab.com/huyderman/querylicious/compare/v0.3.1...v0.3.2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.5.0
@@ -23,8 +23,8 @@ module Querylicious
23
23
  end
24
24
 
25
25
  CASES = {
26
- key: Dry::Matcher::Case.new(
27
- match: lambda do |pair, key, op: :eql, type: Types::Any|
26
+ key: Dry::Matcher::Case.new(
27
+ match: lambda do |pair, key, op: :eql, type: Types::Any|
28
28
  pair.key == key && pair.op == op && type.valid?(pair.value)
29
29
  end,
30
30
  resolve: ->(pair) { pair.value }
@@ -92,11 +92,11 @@ module Querylicious
92
92
 
93
93
  NEGATIONS = {
94
94
  not_eql: :eql,
95
- eql: :not_eql,
96
- gt: :lteq,
97
- gteq: :lt,
98
- lt: :gteq,
99
- lteq: :gt
95
+ eql: :not_eql,
96
+ gt: :lteq,
97
+ gteq: :lt,
98
+ lt: :gteq,
99
+ lteq: :gt
100
100
  }.freeze
101
101
 
102
102
  rule pair: {
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.license = 'MIT'
15
15
  spec.metadata = {
16
16
  'documentation_uri' => 'https://gitlab.com/huyderman/querylicious/blob/master/README.md',
17
- 'changelog_uri' => 'https://gitlab.com/huyderman/querylicious/blob/master/CHANGELOG.md',
18
- 'bug_tracker_uri' => 'https://gitlab.com/huyderman/querylicious/issues'
17
+ 'changelog_uri' => 'https://gitlab.com/huyderman/querylicious/blob/master/CHANGELOG.md',
18
+ 'bug_tracker_uri' => 'https://gitlab.com/huyderman/querylicious/issues'
19
19
  }
20
20
 
21
21
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -27,18 +27,19 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_runtime_dependency 'dry-initializer', '~> 2.3'
29
29
  spec.add_runtime_dependency 'dry-matcher', '>= 0.6.0', '< 0.8'
30
- spec.add_runtime_dependency 'dry-struct', '~> 0.5.0'
31
- spec.add_runtime_dependency 'dry-types', '~> 0.13.0'
30
+ spec.add_runtime_dependency 'dry-struct', '~> 0.6.0'
31
+ spec.add_runtime_dependency 'dry-types', '~> 0.14.0'
32
32
  spec.add_runtime_dependency 'parslet', '~> 1.8'
33
33
 
34
- spec.add_development_dependency 'bundler', '~> 1.15'
34
+ spec.add_development_dependency 'bundler', '~> 2.0'
35
+ spec.add_development_dependency 'fasterer', '~> 0.4.2'
35
36
  spec.add_development_dependency 'mutant', '~> 0.8.0'
36
37
  spec.add_development_dependency 'mutant-rspec', '~> 0.8.0'
37
38
  spec.add_development_dependency 'pry', '~> 0.11'
38
39
  spec.add_development_dependency 'rake', '~> 12.0'
39
- spec.add_development_dependency 'reek', '~> 4.7'
40
+ spec.add_development_dependency 'reek', '~> 5.0'
40
41
  spec.add_development_dependency 'rspec', '~> 3.0'
41
- spec.add_development_dependency 'rspec-parameterized', '~> 0.4.0'
42
+ spec.add_development_dependency 'rspec-parameterized', '0.4.0'
42
43
  spec.add_development_dependency 'rubocop', '~> 0.52'
43
44
  spec.add_development_dependency 'simplecov', '~> 0.16'
44
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: querylicious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo-Herman Haugholt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-16 00:00:00.000000000 Z
11
+ date: 2019-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-initializer
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 0.5.0
53
+ version: 0.6.0
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 0.5.0
60
+ version: 0.6.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: dry-types
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 0.13.0
67
+ version: 0.14.0
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 0.13.0
74
+ version: 0.14.0
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: parslet
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,28 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '1.15'
95
+ version: '2.0'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '1.15'
102
+ version: '2.0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: fasterer
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: 0.4.2
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: 0.4.2
103
117
  - !ruby/object:Gem::Dependency
104
118
  name: mutant
105
119
  requirement: !ruby/object:Gem::Requirement
@@ -162,14 +176,14 @@ dependencies:
162
176
  requirements:
163
177
  - - "~>"
164
178
  - !ruby/object:Gem::Version
165
- version: '4.7'
179
+ version: '5.0'
166
180
  type: :development
167
181
  prerelease: false
168
182
  version_requirements: !ruby/object:Gem::Requirement
169
183
  requirements:
170
184
  - - "~>"
171
185
  - !ruby/object:Gem::Version
172
- version: '4.7'
186
+ version: '5.0'
173
187
  - !ruby/object:Gem::Dependency
174
188
  name: rspec
175
189
  requirement: !ruby/object:Gem::Requirement
@@ -188,14 +202,14 @@ dependencies:
188
202
  name: rspec-parameterized
189
203
  requirement: !ruby/object:Gem::Requirement
190
204
  requirements:
191
- - - "~>"
205
+ - - '='
192
206
  - !ruby/object:Gem::Version
193
207
  version: 0.4.0
194
208
  type: :development
195
209
  prerelease: false
196
210
  version_requirements: !ruby/object:Gem::Requirement
197
211
  requirements:
198
- - - "~>"
212
+ - - '='
199
213
  - !ruby/object:Gem::Version
200
214
  version: 0.4.0
201
215
  - !ruby/object:Gem::Dependency
@@ -234,6 +248,7 @@ extensions: []
234
248
  extra_rdoc_files: []
235
249
  files:
236
250
  - ".editorconfig"
251
+ - ".fasterer.yml"
237
252
  - ".gitlab-ci.yml"
238
253
  - ".mdlrc"
239
254
  - ".reek"
@@ -279,8 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
294
  - !ruby/object:Gem::Version
280
295
  version: '0'
281
296
  requirements: []
282
- rubyforge_project:
283
- rubygems_version: 2.7.7
297
+ rubygems_version: 3.0.2
284
298
  signing_key:
285
299
  specification_version: 4
286
300
  summary: An opinionated search query parser