querylicious 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d647b4ba6c6965abc5ceae3ad74e1d98f236d7fd
4
+ data.tar.gz: c2d9974ae1a66561d63eca13d08a521734b878c9
5
+ SHA512:
6
+ metadata.gz: fc6d9de5929616c3c87a780b7d45d3ce8f08ff1f382936868965c6beb992496858377c71e098d8f9936b9751258eea109b0c4b385b9e815162e0ce7ea0b5087c
7
+ data.tar.gz: 661a448b214094dee8f0835054817b8121de497c255e02121b72ac58c3aa31dc1b6fbf00696b946810035c36491bdbe617436478edad1e7dbb948d2693a2433a
data/.reek ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ UtilityFunction:
3
+ public_methods_only: true
4
+ NestedIterators:
5
+ ignore_iterators:
6
+ - tap
7
+ - is
8
+ - on
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,10 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+ DisplayCopNames: true
4
+ DisplayStyleGuide: true
5
+ Style/Alias:
6
+ # Prefer `alias_method :foo, :bar` over `alias foo bar`
7
+ EnforcedStyle: prefer_alias_method
8
+ Metrics/BlockLength:
9
+ Exclude:
10
+ - spec/**/*_spec.rb
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at jo-herman@sonans.no. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in querylicious.gemspec
8
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Jo-Herman Haugholt
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Querylicious
2
+
3
+ Querylicious is an opinionated search query parser.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'querylicious'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install querylicious
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Development
26
+
27
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+
29
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in the `VERSION` file, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Sonans/querylicious. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
34
+
35
+ ## License
36
+
37
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
38
+
39
+ ## Code of Conduct
40
+
41
+ Everyone interacting in the Querylicious project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/querylicious/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
data/bin/console ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'querylicious'
6
+
7
+ require 'pry'
8
+ Pry.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'querylicious/parser'
4
+ require 'querylicious/transform'
5
+ require 'querylicious/query_reducer'
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dry-struct'
4
+ require 'querylicious/types'
5
+
6
+ module Querylicious
7
+ # A search-query key-value, with optional operator
8
+ class KeyValuePair < Dry::Struct::Value
9
+ constructor_type :strict_with_defaults
10
+
11
+ Operators = Types::Strict::Symbol.enum(
12
+ :eql, :not_eql, :gt, :gteq, :lt, :lteq
13
+ )
14
+
15
+ attribute :key, Types::Strict::String
16
+ attribute :value,
17
+ Types::Strict::String |
18
+ Types::Strict::Int |
19
+ Types::Strict::Date |
20
+ Types::Strict::DateTime |
21
+ Types::Strict::Range
22
+ attribute :op, Operators.optional.default(:eql)
23
+ end
24
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dry-matcher'
4
+
5
+ module Querylicious
6
+ # A matcher for query key-value pairs
7
+ class Matcher
8
+ # Subclass of Dry::Matcher::Evalutator which provides aliases for common
9
+ # matchers
10
+ class Evaluator < Dry::Matcher::Evaluator
11
+ def phrase(&block)
12
+ key('phrase', op: :eql, type: ::String, &block)
13
+ end
14
+
15
+ def not_phrase(&block)
16
+ key('phrase', op: :not_eql, type: ::String, &block)
17
+ end
18
+ end
19
+
20
+ CASES = {
21
+ key: Dry::Matcher::Case.new(
22
+ match: lambda do |pair, key, op: :eql, type: Object|
23
+ pair.key == key && pair.op == op && pair.value.is_a?(type)
24
+ end,
25
+ resolve: ->(pair) { pair.value }
26
+ ),
27
+ default: Dry::Matcher::Case.new(match: ->(_pair) { true })
28
+ }.freeze
29
+
30
+ def self.call(result, &block)
31
+ Evaluator.new(result, CASES).call(&block)
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,68 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'parslet'
4
+
5
+ module Querylicious
6
+ # Parser for Querylicious search queries
7
+ class Parser < Parslet::Parser
8
+ rule(:expression) do
9
+ (kv_pair | phrase) >> (space >> expression).repeat
10
+ end
11
+
12
+ rule(:phrase) do
13
+ (
14
+ (str('NOT').as(:symbol).as(:op) >> space).maybe >> (word | string)
15
+ ).as(:phrase)
16
+ end
17
+
18
+ rule(:kv_pair) do
19
+ (str('-').as(:symbol).as(:op).maybe >> key.as(:key) >>
20
+ str(':') >> value.as(:value)).as(:pair)
21
+ end
22
+
23
+ rule(:key) { word }
24
+ rule(:value) do
25
+ range | (kv_op.as(:op).maybe >> (datetime | integer | word | string))
26
+ end
27
+
28
+ rule(:kv_op) { (str('>=') | str('>') | str('<=') | str('<')).as(:symbol) }
29
+
30
+ rule(:word) { match('[[:graph:]&&[^":.]]').repeat(1).as(:string) }
31
+ rule(:string) do
32
+ quotemark >> match('[[^"]&&[:print:]]').repeat(0).as(:string) >> quotemark
33
+ end
34
+ rule(:integer) { match('\d').repeat(1).as(:integer) }
35
+
36
+ rule(:range) do
37
+ ((star | datetime | integer | word).as(:start) >>
38
+ dotdot >>
39
+ (star | datetime | integer | word).as(:end)
40
+ ).as(:range)
41
+ end
42
+ rule(:datetime) do
43
+ (date >> str('T') >> time).as(:datetime) | date.as(:date)
44
+ end
45
+ rule(:date) do
46
+ digits4 >> str('-') >> digits2 >> str('-') >> digits2
47
+ end
48
+ rule(:time) do
49
+ digits2 >> str(':') >> digits2 >> str(':') >> digits2 >> timezone
50
+ end
51
+
52
+ rule(:timezone) do
53
+ str('Z') | (str('+') >> digits2 >> str(':') >> digits2)
54
+ end
55
+
56
+ rule(:quotemark) { match('"') }
57
+ rule(:star) { str('*').as(:symbol) }
58
+ rule(:dotdot) { str('..') }
59
+
60
+ rule(:space) { match('[[:space:]]').repeat(1) }
61
+ rule(:space?) { space.maybe }
62
+
63
+ rule(:digits2) { match('\d').repeat(2, 2) }
64
+ rule(:digits4) { match('\d').repeat(4, 4) }
65
+
66
+ root(:expression)
67
+ end
68
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'querylicious/types'
4
+ require 'querylicious/parser'
5
+ require 'querylicious/transform'
6
+ require 'querylicious/matcher'
7
+
8
+ require 'dry-initializer'
9
+
10
+ module Querylicious
11
+ # Reducer
12
+ class QueryReducer
13
+ extend Dry::Initializer
14
+
15
+ param :reducer, Types::Any.constrained(attr: :to_proc)
16
+
17
+ def self.call(reducable, query, &block)
18
+ new(block).call(reducable, query)
19
+ end
20
+
21
+ def call(reducable, query)
22
+ parse_query(query).reduce(reducable) do |memo, rule|
23
+ Matcher.call(rule, &reducer.to_proc.curry.call(memo))
24
+ end
25
+ end
26
+
27
+ def curry(*args)
28
+ to_proc.curry(*args)
29
+ end
30
+
31
+ def to_proc
32
+ method(:call)
33
+ end
34
+
35
+ private
36
+
37
+ def transformer
38
+ @transformer ||= Transform.new
39
+ end
40
+
41
+ def parser
42
+ @parser ||= Parser.new
43
+ end
44
+
45
+ def parse_query(query)
46
+ Array(transformer.apply(parser.parse(query.strip)))
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,97 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'parslet'
4
+ require 'date'
5
+ require 'querylicious/types'
6
+ require 'querylicious/key_value_pair'
7
+
8
+ module Querylicious
9
+ # Transformer for turning a parsed query string into a list of KeyValuePair
10
+ class Transform < Parslet::Transform
11
+ rule(string: simple(:it)) { Types::Coercible::String[it] }
12
+ rule(integer: simple(:it)) { Types::Form::Int[it] }
13
+ rule(date: simple(:it)) { Types::Form::Date[it] }
14
+ rule(datetime: simple(:it)) { Types::Form::DateTime[it] }
15
+
16
+ rule(symbol: simple(:it)) do
17
+ symbol = Types::Form::Symbol[it.to_s.downcase]
18
+
19
+ # Symbol normalization
20
+ case symbol
21
+ when :not then :not_eql
22
+ when :- then :not_eql
23
+ when :> then :gt
24
+ when :>= then :gteq
25
+ when :< then :lt
26
+ when :<= then :lteq
27
+ else symbol
28
+ end
29
+ end
30
+
31
+ rule(range: { start: simple(:first), end: simple(:last) }) do
32
+ if first == :* && last == :*
33
+ :*
34
+ elsif first == :*
35
+ { object: last, op: :lteq }
36
+ elsif last == :*
37
+ { object: first, op: :gteq }
38
+ else
39
+ Range.new(first, last)
40
+ end
41
+ end
42
+
43
+ rule(phrase: simple(:text)) do
44
+ KeyValuePair.new(key: 'phrase', value: text)
45
+ end
46
+ rule(phrase: { object: simple(:text), op: simple(:op) }) do
47
+ KeyValuePair.new(
48
+ key: 'phrase',
49
+ value: Types::Coercible::String[text],
50
+ op: op
51
+ )
52
+ end
53
+
54
+ rule(pair: { key: simple(:key), value: simple(:value) }) do
55
+ KeyValuePair.new(key: key, value: value)
56
+ end
57
+ rule(pair: { key: simple(:key), value: simple(:value), op: simple(:op) }) do
58
+ KeyValuePair.new(key: key, value: value, op: op)
59
+ end
60
+
61
+ rule(op: simple(:op), string: simple(:it)) do
62
+ { object: Types::Coercible::String[it], op: op }
63
+ end
64
+ rule(op: simple(:op), integer: simple(:it)) do
65
+ { object: Types::Form::Int[it], op: op }
66
+ end
67
+ rule(op: simple(:op), date: simple(:it)) do
68
+ { object: Types::Form::Date[it], op: op }
69
+ end
70
+ rule(op: simple(:op), datetime: simple(:it)) do
71
+ { object: Types::Form::DateTime[it], op: op }
72
+ end
73
+ rule(pair: {
74
+ key: simple(:key),
75
+ value: { op: simple(:op), object: simple(:it) }
76
+ }) do
77
+ KeyValuePair.new(key: key, value: it, op: op)
78
+ end
79
+
80
+ NEGATIONS = {
81
+ not_eql: :eql,
82
+ eql: :not_eql,
83
+ gt: :lteq,
84
+ gteq: :lt,
85
+ lt: :gteq,
86
+ lteq: :gt
87
+ }.freeze
88
+
89
+ rule pair: {
90
+ key: simple(:key),
91
+ op: :not_eql,
92
+ value: { object: simple(:obj), op: simple(:op) }
93
+ } do
94
+ KeyValuePair.new(key: key, value: obj, op: NEGATIONS[op])
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dry-types'
4
+
5
+ module Querylicious
6
+ # Types for Querylicious
7
+ module Types
8
+ include Dry::Types.module
9
+
10
+ Range = Dry::Types::Definition[::Range].new(::Range)
11
+ Strict::Range = Range.constrained(type: ::Range)
12
+
13
+ Form::Symbol = Symbol.constructor(&:to_sym)
14
+ end
15
+ end
@@ -0,0 +1,33 @@
1
+ # frozen-string-literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ version_file = File.expand_path('VERSION', __dir__)
5
+ version = File.read(version_file).lines.first.chomp
6
+
7
+ spec.name = 'querylicious'
8
+ spec.version = version.split('+').first
9
+ spec.authors = ['Jo-Herman Haugholt']
10
+ spec.email = ['jo-herman@sonans.no']
11
+
12
+ spec.summary = 'An opinionated search query parser'
13
+ spec.homepage = 'https://github.com/Sonans/querylicious'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.require_paths = %w[lib]
20
+
21
+ spec.add_runtime_dependency 'parslet', '~> 1.8'
22
+ spec.add_runtime_dependency 'dry-matcher', '~> 0.6.0'
23
+ spec.add_runtime_dependency 'dry-types', '~> 0.11.0'
24
+ spec.add_runtime_dependency 'dry-struct', '~> 0.3.1'
25
+ spec.add_runtime_dependency 'dry-initializer', '~> 1.4'
26
+
27
+ spec.add_development_dependency 'bundler', '~> 1.15'
28
+ spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'rspec', '~> 3.0'
30
+ spec.add_development_dependency 'rspec-parameterized', '~> 0.4.0'
31
+ spec.add_development_dependency 'pry', '~> 0.10.4'
32
+ spec.add_development_dependency 'simplecov', '~> 0.14.1'
33
+ end
metadata ADDED
@@ -0,0 +1,217 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: querylicious
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jo-Herman Haugholt
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: parslet
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dry-matcher
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: dry-types
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.11.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.11.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: dry-struct
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.3.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.3.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: dry-initializer
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.4'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.15'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.15'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '10.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '10.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec-parameterized
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.4.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.4.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.10.4
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.10.4
153
+ - !ruby/object:Gem::Dependency
154
+ name: simplecov
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.14.1
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.14.1
167
+ description:
168
+ email:
169
+ - jo-herman@sonans.no
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - ".reek"
175
+ - ".rspec"
176
+ - ".rubocop.yml"
177
+ - CODE_OF_CONDUCT.md
178
+ - Gemfile
179
+ - LICENSE.txt
180
+ - README.md
181
+ - Rakefile
182
+ - VERSION
183
+ - bin/console
184
+ - bin/setup
185
+ - lib/querylicious.rb
186
+ - lib/querylicious/key_value_pair.rb
187
+ - lib/querylicious/matcher.rb
188
+ - lib/querylicious/parser.rb
189
+ - lib/querylicious/query_reducer.rb
190
+ - lib/querylicious/transform.rb
191
+ - lib/querylicious/types.rb
192
+ - querylicious.gemspec
193
+ homepage: https://github.com/Sonans/querylicious
194
+ licenses:
195
+ - MIT
196
+ metadata: {}
197
+ post_install_message:
198
+ rdoc_options: []
199
+ require_paths:
200
+ - lib
201
+ required_ruby_version: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ required_rubygems_version: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ requirements: []
212
+ rubyforge_project:
213
+ rubygems_version: 2.6.11
214
+ signing_key:
215
+ specification_version: 4
216
+ summary: An opinionated search query parser
217
+ test_files: []