queryko 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8c91af5a14ce3447dbd85a0ed6e9d057ade7b9ac
4
+ data.tar.gz: bee0aa72bec7eac273133407caee6849136edc49
5
+ SHA512:
6
+ metadata.gz: a479ff93aba7aed45cfdb72245d0759ae87cc58c835b130be8305ffab51e960f3d1fccd14f786e4db6ce5ec65bf346b32fa6c09fdfde875cbab9a7eab67500b1
7
+ data.tar.gz: d8e93266b61f3cc15f49b53e450f673ff5c16f54004072477baf216e2d3d339f0fa9fc3f429aa2a4de6e4ce89a8165ac59fcdc2f257908100267da7e6935da28
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.3
5
+ before_install: gem install bundler -v 1.16.2
@@ -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 valerosjoseph@gmail.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 queryko.gemspec
6
+ gemspec
@@ -0,0 +1,91 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ queryko (0.1.0)
5
+ activerecord (>= 5.1, < 5.2)
6
+ activesupport
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionview (5.1.6)
12
+ activesupport (= 5.1.6)
13
+ builder (~> 3.1)
14
+ erubi (~> 1.4)
15
+ rails-dom-testing (~> 2.0)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
17
+ activemodel (5.1.6)
18
+ activesupport (= 5.1.6)
19
+ activerecord (5.1.6)
20
+ activemodel (= 5.1.6)
21
+ activesupport (= 5.1.6)
22
+ arel (~> 8.0)
23
+ activesupport (5.1.6)
24
+ concurrent-ruby (~> 1.0, >= 1.0.2)
25
+ i18n (>= 0.7, < 2)
26
+ minitest (~> 5.1)
27
+ tzinfo (~> 1.1)
28
+ arel (8.0.0)
29
+ builder (3.2.3)
30
+ concurrent-ruby (1.0.5)
31
+ crass (1.0.4)
32
+ diff-lcs (1.3)
33
+ erubi (1.7.1)
34
+ i18n (1.1.0)
35
+ concurrent-ruby (~> 1.0)
36
+ kaminari (1.1.1)
37
+ activesupport (>= 4.1.0)
38
+ kaminari-actionview (= 1.1.1)
39
+ kaminari-activerecord (= 1.1.1)
40
+ kaminari-core (= 1.1.1)
41
+ kaminari-actionview (1.1.1)
42
+ actionview
43
+ kaminari-core (= 1.1.1)
44
+ kaminari-activerecord (1.1.1)
45
+ activerecord
46
+ kaminari-core (= 1.1.1)
47
+ kaminari-core (1.1.1)
48
+ loofah (2.2.2)
49
+ crass (~> 1.0.2)
50
+ nokogiri (>= 1.5.9)
51
+ mini_portile2 (2.3.0)
52
+ minitest (5.11.3)
53
+ nokogiri (1.8.4)
54
+ mini_portile2 (~> 2.3.0)
55
+ rails-dom-testing (2.0.3)
56
+ activesupport (>= 4.2.0)
57
+ nokogiri (>= 1.6)
58
+ rails-html-sanitizer (1.0.4)
59
+ loofah (~> 2.2, >= 2.2.2)
60
+ rake (10.5.0)
61
+ rspec (3.8.0)
62
+ rspec-core (~> 3.8.0)
63
+ rspec-expectations (~> 3.8.0)
64
+ rspec-mocks (~> 3.8.0)
65
+ rspec-core (3.8.0)
66
+ rspec-support (~> 3.8.0)
67
+ rspec-expectations (3.8.1)
68
+ diff-lcs (>= 1.2.0, < 2.0)
69
+ rspec-support (~> 3.8.0)
70
+ rspec-mocks (3.8.0)
71
+ diff-lcs (>= 1.2.0, < 2.0)
72
+ rspec-support (~> 3.8.0)
73
+ rspec-support (3.8.0)
74
+ sqlite3 (1.3.13)
75
+ thread_safe (0.3.6)
76
+ tzinfo (1.2.5)
77
+ thread_safe (~> 0.1)
78
+
79
+ PLATFORMS
80
+ ruby
81
+
82
+ DEPENDENCIES
83
+ bundler (~> 1.16)
84
+ kaminari
85
+ queryko!
86
+ rake (~> 10.0)
87
+ rspec (~> 3.0)
88
+ sqlite3
89
+
90
+ BUNDLED WITH
91
+ 1.16.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Joseph Nelson Valeros
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.
@@ -0,0 +1,51 @@
1
+ # Queryko
2
+ This gem provides additional functionality on your query objects. It will filter and paginate your query by supplying an option
3
+
4
+ ## Installation
5
+
6
+ ```ruby
7
+ gem 'queryko'
8
+ ```
9
+
10
+ And then execute:
11
+
12
+ $ bundle
13
+
14
+ Or install it yourself as:
15
+
16
+ $ gem install queryko
17
+
18
+ ## Usage
19
+ ### Create a query object
20
+ ``` ruby
21
+ class ProductsQuery < Queryko::QueryObject
22
+ add_range_attributes :created_at, :price
23
+ add_searchables :name, :vendor
24
+
25
+ def initialize params={}, relation = Product.all
26
+ super(params, relation)
27
+ end
28
+ end
29
+ ```
30
+
31
+ ### Using your query object
32
+ Filter your query by appending `_min` or `_max` on your defined attributes. You can also filter searc3h by attribute.
33
+ As long as you defined it in your query object definition.
34
+ ``` ruby
35
+ products = ProductsQuery.new(price_min: 100, price_max: 150, name: 'Milk').call
36
+ ```
37
+ ### Other available options
38
+ | Option | description |
39
+ |:---------|:-----------------------------|
40
+ | since_id | retrieves records after `id` |
41
+ | page | page to retrieve |
42
+ | limit | number of records per page |
43
+
44
+ ## Contributing
45
+
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/neume/queryko. 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.
47
+
48
+
49
+ ## License
50
+
51
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "queryko"
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__)
@@ -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
+ require "queryko/version"
2
+ require "queryko/query_object"
3
+ module Queryko
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,31 @@
1
+ module Queryko
2
+ module AfterAttributes
3
+ def self.included(base)
4
+ base.extend(ClassMethods)
5
+ base.class_eval do
6
+ class_attribute :after_attributes, default: [], instance_writer: false
7
+ self.after_attributes = []
8
+
9
+ private
10
+
11
+ def filter_after_attributes
12
+ self.after_attributes.each do |attribute|
13
+ if params["after_#{attribute}".to_sym].present?
14
+ filter_after attribute
15
+ end
16
+ end
17
+ end
18
+ def filter_after attribute
19
+ self.relation = relation.where("#{attribute} > ?", params["after_#{attribute}".to_sym])
20
+ end
21
+ end
22
+ end
23
+
24
+ module ClassMethods
25
+ def add_after_attributes(*args)
26
+ self.after_attributes ||= []
27
+ self.after_attributes += args
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,72 @@
1
+ require "active_support/core_ext/class/attribute"
2
+ require "queryko/range_attributes"
3
+ require "queryko/searchables"
4
+ require "queryko/after_attributes"
5
+ module Queryko
6
+ class QueryObject
7
+ include Queryko::RangeAttributes
8
+ include Queryko::Searchables
9
+ # include AfterAttributes
10
+
11
+ def initialize(params = {}, rel)
12
+ @relation = rel
13
+ @params = params
14
+ end
15
+
16
+ def call
17
+ pre_filter
18
+ filter
19
+ filter_by_range_attributes
20
+ filter_by_searchables
21
+ return relation
22
+ end
23
+
24
+ private
25
+
26
+ attr_reader :params, :relation
27
+ attr_writer :relation
28
+
29
+ def config
30
+ @config ||= {
31
+ paginate: true,
32
+ since_id: true,
33
+ ids: true
34
+ }
35
+ end
36
+
37
+ def pre_filter
38
+ self.relation = paginate if config[:paginate]
39
+ self.relation = by_ids if config[:ids] && params[:ids]
40
+ self.relation = since_id if config[:since_id] && params[:since_id]
41
+ end
42
+
43
+ def filter
44
+ end
45
+
46
+ def paginate
47
+ relation.page(page).per(limit)
48
+ end
49
+
50
+ def page
51
+ params[:page] || 1
52
+ end
53
+
54
+ def limit
55
+ @limit ||= get_limit
56
+ end
57
+
58
+ def get_limit
59
+ params[:limit] || 50
60
+ # lim > 100 ? 100 : lim.to_i
61
+ end
62
+
63
+ def by_ids
64
+ relation.where(id: params[:ids])
65
+ end
66
+
67
+ def since_id
68
+ relation.where("id > ?", params[:since_id])
69
+ end
70
+
71
+ end
72
+ end
@@ -0,0 +1,40 @@
1
+ module Queryko
2
+ module RangeAttributes
3
+ def self.included(base)
4
+ base.extend(ClassMethods)
5
+ base.class_eval do
6
+ class_attribute :range_attributes, default: Array.new, instance_writer: false
7
+ self.range_attributes = []
8
+
9
+ private
10
+
11
+ def filter_by_range_attributes
12
+ self.range_attributes.each do |range_attribute|
13
+ self.relation = attribute_max("#{range_attribute}_max") if params["#{range_attribute}_max".to_sym]
14
+ self.relation = attribute_min("#{range_attribute}_min") if params["#{range_attribute}_min".to_sym]
15
+ end
16
+ end
17
+
18
+
19
+ def attribute_min key
20
+ # Calm down. column_name is whitelisted. check #add_range_attributes method
21
+ column_name = key.to_s.gsub(/_min$/, "")
22
+ relation.where("#{column_name} >= ?", params[key.to_sym])
23
+ end
24
+
25
+ def attribute_max key
26
+ # Calm down. column_name is whitelisted. check #add_range_attributes method
27
+ column_name = key.to_s.gsub(/_max$/, "")
28
+ relation.where("#{column_name} <= ?", params[key.to_sym])
29
+ end
30
+ end
31
+ end
32
+
33
+ module ClassMethods
34
+ def add_range_attributes(*args)
35
+ self.range_attributes ||= []
36
+ self.range_attributes += args
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,27 @@
1
+ module Queryko
2
+ module Searchables
3
+ def self.included(base)
4
+ base.extend(ClassMethods)
5
+ base.class_eval do
6
+ class_attribute :searchables, default: Array.new, instance_writer: false
7
+ self.searchables = []
8
+
9
+ private
10
+
11
+ def filter_by_searchables
12
+ self.searchables.each do |searchable|
13
+ column = searchable.to_sym
14
+ self.relation = relation.where(column => params[column]) if params[column].present?
15
+ end
16
+ end
17
+ end
18
+ end
19
+
20
+ module ClassMethods
21
+ def add_searchables(*args)
22
+ self.searchables ||= []
23
+ self.searchables += args
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,3 @@
1
+ module Queryko
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,44 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "queryko/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "queryko"
8
+ spec.version = Queryko::VERSION
9
+ spec.authors = ["Joseph Nelson Valeros"]
10
+ spec.email = ["valerosjoseph@gmail.com"]
11
+
12
+ spec.summary = %q{ A gem that simplifies query objects }
13
+ spec.description = %q{ This gem provides additional functionality on your query objects. It will filter and paginate your query by supplying an option }
14
+ spec.homepage = "https://github.com/neume/queryko"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ # end
25
+
26
+ # Specify which files should be added to the gem when it is released.
27
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
29
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
+ end
31
+ spec.bindir = "exe"
32
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ["lib"]
34
+
35
+ spec.add_dependency 'activerecord', '>= 5.1', "< 5.2"
36
+
37
+ spec.add_development_dependency "bundler", "~> 1.16"
38
+ spec.add_development_dependency "rake", "~> 10.0"
39
+ spec.add_development_dependency "rspec", "~> 3.0"
40
+ spec.add_development_dependency 'sqlite3'
41
+ spec.add_development_dependency 'kaminari'
42
+
43
+ spec.add_dependency "activesupport"
44
+ end
metadata ADDED
@@ -0,0 +1,167 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: queryko
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Joseph Nelson Valeros
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-08-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '5.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.2'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '5.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.2'
33
+ - !ruby/object:Gem::Dependency
34
+ name: bundler
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.16'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.16'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '10.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '10.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: sqlite3
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: kaminari
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: activesupport
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ description: " This gem provides additional functionality on your query objects. It
118
+ will filter and paginate your query by supplying an option "
119
+ email:
120
+ - valerosjoseph@gmail.com
121
+ executables: []
122
+ extensions: []
123
+ extra_rdoc_files: []
124
+ files:
125
+ - ".gitignore"
126
+ - ".rspec"
127
+ - ".travis.yml"
128
+ - CODE_OF_CONDUCT.md
129
+ - Gemfile
130
+ - Gemfile.lock
131
+ - LICENSE.txt
132
+ - README.md
133
+ - Rakefile
134
+ - bin/console
135
+ - bin/setup
136
+ - lib/queryko.rb
137
+ - lib/queryko/after_attributes.rb
138
+ - lib/queryko/query_object.rb
139
+ - lib/queryko/range_attributes.rb
140
+ - lib/queryko/searchables.rb
141
+ - lib/queryko/version.rb
142
+ - queryko.gemspec
143
+ homepage: https://github.com/neume/queryko
144
+ licenses:
145
+ - MIT
146
+ metadata: {}
147
+ post_install_message:
148
+ rdoc_options: []
149
+ require_paths:
150
+ - lib
151
+ required_ruby_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ requirements: []
162
+ rubyforge_project:
163
+ rubygems_version: 2.6.14
164
+ signing_key:
165
+ specification_version: 4
166
+ summary: A gem that simplifies query objects
167
+ test_files: []