rql-parser 1.1.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '095b70c0d1deea29834083481ea144f6c4df2d146616bca56858209e81940193'
4
+ data.tar.gz: 96902b99b811b494924395da9201f006dd4b4c893126ac17a1f067c316799d9e
5
+ SHA512:
6
+ metadata.gz: 26fc39f3faecd46265950cfdb0b1c3aab25061597e1b1bf4e96cc0a37f71eed5dc5b857c566fc8bf6b566b9c49fa4229d83df8504cab3f2d21e00b24cbdd63f4
7
+ data.tar.gz: a7598751cc016ad508cacddad4f4cf9f04e0b1d022066a26ad401e82e391041b4d52182d7bbd5b4fbda1f4ff453b631e297a74766a5c8d7f60807825490926fe
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ Metrics/BlockLength:
2
+ Exclude:
3
+ - 'spec/**/*'
4
+ Max: 40
5
+ Metrics/LineLength:
6
+ Max: 120
7
+ Metrics/AbcSize:
8
+ Max: 20
data/CHANGELOG.md ADDED
@@ -0,0 +1,52 @@
1
+ # Changelog
2
+
3
+ #### 1.1.1
4
+
5
+ - Change name from `rql_parser` to 'rql-parser' for consistency
6
+
7
+ ---
8
+
9
+ #### 1.1.0
10
+
11
+ - Transfer ownership
12
+
13
+ ---
14
+
15
+ #### 1.0.3
16
+
17
+ - Fix typos
18
+
19
+ ---
20
+
21
+ #### 1.0.2
22
+
23
+ - Fix typos
24
+
25
+ ---
26
+
27
+ #### 1.0.1
28
+
29
+ - Fix critical bug
30
+
31
+ ---
32
+
33
+ #### 1.0.0
34
+
35
+ - Make function identifiers symbols instead of strings
36
+ - Remove binary tree `group` node
37
+ - Prettify parser code
38
+ - Tweak grammar
39
+
40
+ ---
41
+
42
+ #### 0.0.1alpha4
43
+
44
+ - Restructure gem files
45
+ - Fix some code style issues
46
+ - Rework gem endpoints
47
+
48
+ ---
49
+
50
+ #### 0.0.1alpha3
51
+
52
+ - Release a first working version of a gem
@@ -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 Aliaksei.Kharkou@itechart-group.com. 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,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in rql_parser.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Aliaksei Kharkou
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,81 @@
1
+ # RqlParser
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'rql-parser'
9
+ ```
10
+
11
+ And then execute:
12
+
13
+ ```
14
+ $ bundle
15
+ ```
16
+
17
+ Or install it yourself as:
18
+
19
+ ```
20
+ $ gem install rql-parser
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ See [ActiveInteraction](https://github.com/AaronLasseigne/active_interaction), as it is used as a base for the gem
26
+
27
+ ```ruby
28
+ # In controller:
29
+ output = RqlParser.from_params(params.to_unsafe_hash)
30
+
31
+ # Parse RQL instead of params:
32
+ rql = 'eq(hello,world)&ruby=eq=awesome' # your RQL query here
33
+ output = RqlParser.parse(rql)
34
+ ```
35
+
36
+ `output.result` yields a binary tree representing the query:
37
+
38
+ ```ruby
39
+ rql = 'eq(hello,world)&ruby=eq=awesome' # your RQL query here
40
+ output = RqlParser.parse(rql)
41
+ output.valid?
42
+ #=> true
43
+ output.result
44
+ #=> { type: :function,
45
+ # identifier: :and,
46
+ # args: [{ type: :function,
47
+ # identifier: :eq,
48
+ # args: [{ arg: 'hello' },
49
+ # { arg: 'world' }] },
50
+ # { type: :function,
51
+ # identifier: :eq,
52
+ # args: [{ arg: 'ruby' },
53
+ # { arg: 'awesome' }] }] }
54
+ ```
55
+
56
+ `output.errors` yields an `ActiveModel::Errors`-like object (if any):
57
+ ```ruby
58
+ rql = 'i=have=errors' # your invalid RQL query here
59
+ output = RqlParser.parse(rql)
60
+ output.valid?
61
+ #=> false
62
+ output.errors.full_messages
63
+ #=> 'Rql has invalid shorthands'
64
+ ```
65
+ ## Development
66
+
67
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
68
+
69
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, 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).
70
+
71
+ ## Contributing
72
+
73
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hacky-gems/rql-parser. 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.
74
+
75
+ ## License
76
+
77
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
78
+
79
+ ## Code of Conduct
80
+
81
+ Everyone interacting in the RqlParser project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hacky-gems/rql-parser/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler/gem_tasks'
2
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'rql_parser'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start(__FILE__)
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
data/lib/rql_parser.rb ADDED
@@ -0,0 +1,26 @@
1
+ require 'active_interaction'
2
+
3
+ # Base module of the parser
4
+ module RqlParser
5
+ def self.from_params(params)
6
+ Services::FromParams.run(params: params)
7
+ end
8
+
9
+ def self.from_params!(params)
10
+ Services::FromParams.run!(params: params)
11
+ end
12
+
13
+ def self.parse(rql)
14
+ Services::Parse.run(rql: rql)
15
+ end
16
+
17
+ def self.parse!(rql)
18
+ Services::Parse.run!(rql: rql)
19
+ end
20
+ end
21
+
22
+ require 'rql_parser/version'
23
+ require 'rql_parser/base_interaction'
24
+ require 'rql_parser/services/from_params'
25
+ require 'rql_parser/services/format'
26
+ require 'rql_parser/services/parse'
@@ -0,0 +1,21 @@
1
+ exp = group | or_exp ;
2
+
3
+ group = '(', or_exp, ')' ;
4
+
5
+ or_exp = and_exp, { or_delim, and_exp } ;
6
+
7
+ or_delim = '|' | ';' ;
8
+
9
+ and_exp = (function | group | and_strict), { ',', (function | group | and_strict) } ;
10
+
11
+ function = identifier, '(', [arg, { ',', arg }], ')' ;
12
+
13
+ and_strict = (function | group), { '&', (function | group) } ;
14
+
15
+ identifier = /[a-z]+/
16
+
17
+ arg = and_exp | arg_array | value ;
18
+
19
+ value = /[_0-9a-zA-Z]+/ ;
20
+
21
+ arg_array = '(', value, { ',', value }, ')' ;
@@ -0,0 +1,14 @@
1
+ module RqlParser
2
+ # Parent class for all objects
3
+ class BaseInteraction < ActiveInteraction::Base
4
+ private
5
+
6
+ def perform(outcome)
7
+ if outcome.valid?
8
+ outcome.result
9
+ else
10
+ errors.merge!(outcome.errors)
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,46 @@
1
+ module RqlParser
2
+ module Services
3
+ # Formats input into parser-understandable string
4
+ class Format < BaseInteraction
5
+ string :rql
6
+
7
+ RQL_FORMAT = /\A[0-9A-Za-z_()|;&,+\-!=<> ]+\z/.freeze
8
+
9
+ validates :rql, format: { with: RQL_FORMAT, message: 'has invalid format' }
10
+
11
+ def execute
12
+ res = remove_whitespace(rql)
13
+ replace_shorthands(res) unless errors.any?
14
+ end
15
+
16
+ private
17
+
18
+ def remove_whitespace(rql)
19
+ if /[0-9a-zA-Z] [0-9a-zA-Z(]/.match?(rql)
20
+ errors.add(:rql, 'has invalid whitespace')
21
+ else
22
+ rql.delete(' ')
23
+ end
24
+ end
25
+
26
+ def replace_shorthands(rql)
27
+ res = without_shorthands(rql)
28
+ if /[!<>=]/.match?(res)
29
+ errors.add(:rql, 'has invalid shorthands')
30
+ else
31
+ res
32
+ end
33
+ end
34
+
35
+ def without_shorthands(rql)
36
+ rql.gsub(/([0-9A-Za-z_]+)=(eq|ne|lt|le|gt|ge)=([0-9A-Za-z_]+)/, '\2(\1,\3)')
37
+ .gsub(/([0-9A-Za-z_]+)!=([0-9A-Za-z_]+)/, 'ne(\1,\2)')
38
+ .gsub(/([0-9A-Za-z_]+)<([0-9A-Za-z_]+)/, 'lt(\1,\2)')
39
+ .gsub(/([0-9A-Za-z_]+)<=([0-9A-Za-z_]+)/, 'le(\1,\2)')
40
+ .gsub(/([0-9A-Za-z_]+)>([0-9A-Za-z_]+)/, 'gt(\1,\2)')
41
+ .gsub(/([0-9A-Za-z_]+)>=([0-9A-Za-z_]+)/, 'ge(\1,\2)')
42
+ .gsub(/([0-9A-Za-z_]+)=([0-9A-Za-z_]+)/, 'eq(\1,\2)')
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RqlParser
4
+ module Services
5
+ # Creates a RQL binary tree directly from params hash
6
+ class FromParams < BaseInteraction
7
+ hash :params, strip: false
8
+
9
+ def execute
10
+ perform(Parse.run(rql: rql))
11
+ end
12
+
13
+ private
14
+
15
+ def rql
16
+ params.except(:controller, :action).map do |k, v|
17
+ [k, v].compact.join('=')
18
+ end.join('&')
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,113 @@
1
+ module RqlParser
2
+ module Services
3
+ # Service that performs the parse operation
4
+ class Parse < BaseInteraction
5
+ string :rql
6
+
7
+ DELIMITERS = '&,;'.freeze
8
+ OR_DELIMITERS = /[;|]/.freeze
9
+ COMMA_DELIMITER = /,/.freeze
10
+ AND_STRICT_DELIMITERS = /&/.freeze
11
+ BRACES_REGEX = /\A\(.+\)\z/.freeze
12
+ FUNCTION_REGEX = /\A[a-z]+\(.+\)\z/.freeze
13
+ FUNCTION_IDENTIFIER = /\A([a-z]+)/.freeze
14
+ FUNCTION_ARGS = /\A[a-z]+\((.+)\)\z/.freeze
15
+ VALUE_REGEX = /\A[_0-9a-zA-Z]+\z/.freeze
16
+
17
+ def execute
18
+ formatted = perform(Format.run(inputs))
19
+ expression(formatted) || errors.add(:rql) unless errors.any?
20
+ end
21
+
22
+ private
23
+
24
+ def expression(str)
25
+ group(str) || or_expression(str)
26
+ end
27
+
28
+ def group(str)
29
+ return false unless BRACES_REGEX.match?(str)
30
+
31
+ or_expression(str[1..-2]) || false
32
+ end
33
+
34
+ def or_expression(str)
35
+ result = repeat_pattern(str, OR_DELIMITERS) { |s| and_expression(s) }
36
+ return false unless result
37
+
38
+ result.size > 1 ? { type: :function, identifier: :or, args: result } : result.first
39
+ end
40
+
41
+ def and_expression(str)
42
+ result = repeat_pattern(str, COMMA_DELIMITER) { |s| function(s) || group(s) || and_strict(s) }
43
+ return false unless result
44
+
45
+ result.size > 1 ? { type: :function, identifier: :and, args: result } : result.first
46
+ end
47
+
48
+ def and_strict(str)
49
+ result = repeat_pattern(str, AND_STRICT_DELIMITERS) { |s| function(s) || group(s) }
50
+ return false unless result
51
+
52
+ result.size > 1 ? { type: :function, identifier: :and, args: result } : result.first
53
+ end
54
+
55
+ def function(str)
56
+ return false unless FUNCTION_REGEX.match?(str)
57
+
58
+ identifier = str.match(FUNCTION_IDENTIFIER)[1]
59
+ args = args(str.match(FUNCTION_ARGS)[1])
60
+
61
+ return false unless args
62
+
63
+ { type: :function, identifier: identifier.to_sym, args: args }
64
+ end
65
+
66
+ def args(str)
67
+ repeat_pattern(str, COMMA_DELIMITER) { |s| arg(s) }
68
+ end
69
+
70
+ def arg(str)
71
+ expression(str) || array_of_values(str) || value(str)
72
+ end
73
+
74
+ def array_of_values(str)
75
+ return false unless BRACES_REGEX.match?(str)
76
+
77
+ result = repeat_pattern(str[1..-2], COMMA_DELIMITER) { |s| value(s) }
78
+ return false unless result
79
+
80
+ { arg_array: result }
81
+ end
82
+
83
+ def value(str)
84
+ if str.match?(VALUE_REGEX)
85
+ { arg: str }
86
+ else
87
+ false
88
+ end
89
+ end
90
+
91
+ def repeat_pattern(str, split_regex)
92
+ split = str.split(split_regex)
93
+ result = []
94
+ expression = ''
95
+ while split.any?
96
+ expression += split.shift
97
+ bin_tree = yield(expression)
98
+ if bin_tree
99
+ result.push(bin_tree)
100
+ expression = ''
101
+ else
102
+ expression += compose_char(split_regex)
103
+ end
104
+ end
105
+ expression.blank? && result
106
+ end
107
+
108
+ def compose_char(regex)
109
+ DELIMITERS.match(regex)[0]
110
+ end
111
+ end
112
+ end
113
+ end
@@ -0,0 +1,3 @@
1
+ module RqlParser
2
+ VERSION = '1.1.1'.freeze
3
+ end
@@ -0,0 +1,37 @@
1
+ lib = File.expand_path('lib', __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'rql_parser/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'rql-parser'
7
+ spec.version = RqlParser::VERSION
8
+ spec.authors = ['Deorigosa']
9
+ spec.email = ['Deorigosa@users.noreply.github.com']
10
+
11
+ spec.summary = 'RqlParser is a gem for using RQL as valid params'
12
+ spec.description = 'RqlParser is a gem for using RQL as valid params'
13
+ spec.homepage = 'https://github.com/hacky-gems/rql-parser'
14
+ spec.license = 'MIT'
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.' unless spec.respond_to?(:metadata)
19
+
20
+ spec.metadata['homepage_uri'] = spec.homepage
21
+ spec.metadata['source_code_uri'] = 'https://github.com/hacky-gems/rql-parser'
22
+ spec.metadata['changelog_uri'] = 'https://github.com/hacky-gems/rql-parser/blob/master/CHANGELOG.md'
23
+
24
+ # Specify which files should be added to the gem when it is released.
25
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
27
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ end
29
+ spec.bindir = 'exe'
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ['lib']
32
+
33
+ spec.add_dependency 'active_interaction', '~> 3.6.0'
34
+ spec.add_development_dependency 'bundler', '~> 1.17'
35
+ spec.add_development_dependency 'rake', '~> 10.0'
36
+ spec.add_development_dependency 'rspec', '~> 3.8.0'
37
+ end
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rql-parser
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Deorigosa
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-12-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: active_interaction
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.6.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.6.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.17'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.17'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.8.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.8.0
69
+ description: RqlParser is a gem for using RQL as valid params
70
+ email:
71
+ - Deorigosa@users.noreply.github.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rubocop.yml"
78
+ - CHANGELOG.md
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - bin/console
85
+ - bin/setup
86
+ - lib/rql_parser.rb
87
+ - lib/rql_parser/_grammar.ebnf
88
+ - lib/rql_parser/base_interaction.rb
89
+ - lib/rql_parser/services/format.rb
90
+ - lib/rql_parser/services/from_params.rb
91
+ - lib/rql_parser/services/parse.rb
92
+ - lib/rql_parser/version.rb
93
+ - rql_parser.gemspec
94
+ homepage: https://github.com/hacky-gems/rql-parser
95
+ licenses:
96
+ - MIT
97
+ metadata:
98
+ homepage_uri: https://github.com/hacky-gems/rql-parser
99
+ source_code_uri: https://github.com/hacky-gems/rql-parser
100
+ changelog_uri: https://github.com/hacky-gems/rql-parser/blob/master/CHANGELOG.md
101
+ post_install_message:
102
+ rdoc_options: []
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ requirements: []
116
+ rubyforge_project:
117
+ rubygems_version: 2.7.6
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: RqlParser is a gem for using RQL as valid params
121
+ test_files: []