rql 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b12840bc8c62d856292ad37398531c76cb8ff422
4
+ data.tar.gz: ab75b04337811bfff13a03a25f568bf30f7f49a8
5
+ SHA512:
6
+ metadata.gz: f4a85a36bd4190cc0938d1ccf59ee68d3d7a3386d36059a037fd7d7308f6876cfc07b03481e8e32fbbbd6b46baf606f87ce9197d367cdbd9960d9e167c438cbb
7
+ data.tar.gz: 604923887ce5168558fce6a30d39b56cf66d727a8862e9ae59299ace1f8851ec1f340ddc9783054bcb34c05435c6f7c5ce6b78dc3098302793adf4f08a9d249e
@@ -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.3.1
5
+ before_install: gem install bundler -v 1.16.0
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.gemspec
6
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Lief Nikkel
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,39 @@
1
+ # Rql
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rql`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'rql'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rql
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rql.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://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 "rql"
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,9 @@
1
+ require "rql/version"
2
+ require "rql/path_builder"
3
+ require "rql/queryable"
4
+ require "rql/dsl"
5
+ require "rql/scope"
6
+
7
+ module Rql
8
+
9
+ end
@@ -0,0 +1,13 @@
1
+ require "rql/dsl/aggregations"
2
+ require "rql/dsl/comparisons"
3
+ require "rql/dsl/logic"
4
+ require "rql/dsl/maths"
5
+ require "rql/dsl/orders"
6
+ require "rql/dsl/base"
7
+ require "rql/dsl/context"
8
+
9
+ module Rql
10
+ module Scope
11
+
12
+ end
13
+ end
@@ -0,0 +1,33 @@
1
+ module Rql
2
+ module Dsl
3
+ module Aggregations
4
+ def calculate(attribute, operation)
5
+ association = @name.to_s.classify.constantize
6
+ sum_table_name = "#{@model.name.underscore}_#{attribute}_#{operation.to_s.pluralize}"
7
+ subquery = @scope.joins(@name).group(:id).select(:id, association.arel_table[attribute].send(operation)).arel.as(sum_table_name)
8
+ query = Arel.sql("COALESCE((#{@model.from(subquery).where(@model.arel_table[:id].eq(subquery[:id])).select(subquery[operation]).to_sql}), 0)")
9
+ Context.new(@model, query)
10
+ end
11
+
12
+ def sum(attribute)
13
+ calculate(attribute, :sum)
14
+ end
15
+
16
+ def average(attribute)
17
+ calculate(attribute, :average)
18
+ end
19
+
20
+ def minimum(attribute)
21
+ calculate(attribute, :minimum)
22
+ end
23
+
24
+ def maximum(attribute)
25
+ calculate(attribute, :maximum)
26
+ end
27
+
28
+ def count(attribute = :id)
29
+ calculate(attribute, :count)
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,45 @@
1
+ module Rql
2
+ module Dsl
3
+ class Base
4
+ def initialize(model, alias_derived_attr = false)
5
+ @model = model
6
+ @alias_derived_attr = alias_derived_attr
7
+ end
8
+
9
+ def respond_to_missing?(method_name, include_private = false)
10
+ derived(method_name) || model?(method_name) || attribute?(method_name) || super
11
+ end
12
+
13
+ def method_missing(method_name, *params)
14
+ if respond_to_missing?(method_name)
15
+ raise ArgumentError.new("wrong number of arguments for `#{method_name}' (given #{params.length}, expected 0)") if (params.length > 0)
16
+
17
+ derived(method_name) || build_context(method_name)
18
+ else
19
+ super
20
+ end
21
+ end
22
+
23
+ def build_context(name)
24
+ Context.new(@model, @model.arel_table[name], name)
25
+ end
26
+
27
+ def derived(attribute)
28
+ derived = @model.try(:derived_attributes)&.fetch(attribute, nil)
29
+ if derived
30
+ derived = instance_eval(&derived)
31
+ derived = derived.as(attribute.to_s) if derived && @alias_derived_attr
32
+ end
33
+ derived
34
+ end
35
+
36
+ def model?(attribute)
37
+ (attribute.to_s.classify.constantize rescue nil)&.ancestors&.include?(ActiveRecord::Base)
38
+ end
39
+
40
+ def attribute?(attribute)
41
+ @model.column_names.include?(attribute.to_s)
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,54 @@
1
+ module Rql
2
+ module Dsl
3
+ module Comparisons
4
+ def ==(value)
5
+ Context.new(@model, arel.eq(value))
6
+ end
7
+
8
+ def ===(range)
9
+ min_query = (range.min != -Float::INFINITY) ? arel.gt(range.min) : Arel.sql('1').eq(1)
10
+ max_query = (range.max != Float::INFINITY) ? arel.lt(range.max) : Arel.sql('1').eq(1)
11
+ Context.new(@model, min_query.and(max_query))
12
+ end
13
+
14
+ def <(value)
15
+ Context.new(@model, arel.lt(value))
16
+ end
17
+
18
+ def >(value)
19
+ Context.new(@model, arel.gt(value))
20
+ end
21
+
22
+ def <=(value)
23
+ Context.new(@model, arel.lteq(value))
24
+ end
25
+
26
+ def >=(value)
27
+ Context.new(@model, arel.gteq(value))
28
+ end
29
+
30
+ def starts_with?(value)
31
+ Context.new(@model, arel.matches("#{value}%"))
32
+ end
33
+
34
+ def ends_with?(value)
35
+ Context.new(@model, arel.matches("%#{value}"))
36
+ end
37
+
38
+ def include?(value)
39
+ Context.new(@model, arel.matches("%#{value}%"))
40
+ end
41
+
42
+ def in?(collection)
43
+ collection = collection.is_a?(Array) ? collection : collection.arel
44
+ Context.new(@model, arel.in(collection))
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ class Object
51
+ def in?(collection)
52
+ collection.include?(self)
53
+ end
54
+ end
@@ -0,0 +1,39 @@
1
+ module Rql
2
+ module Dsl
3
+ class Context < Base
4
+ include Aggregations
5
+ include Comparisons
6
+ include Maths
7
+ include Orders
8
+ include Logic
9
+
10
+ def initialize(model, arel, name = nil, scope = nil)
11
+ @model = model
12
+ @arel = arel
13
+ @name = name
14
+ @scope = scope || model
15
+ end
16
+
17
+ def arel
18
+ @arel
19
+ end
20
+
21
+ def build_context(name)
22
+ model = @name.to_s.classify.constantize
23
+ Context.new(model, model.arel_table[name], name)
24
+ end
25
+
26
+ def as(name)
27
+ Context.new(@model, arel.as(name.to_s))
28
+ end
29
+
30
+ def rql
31
+ Context.new(@model, @arel, @name, @scope.rql)
32
+ end
33
+
34
+ def where(*attributes, &block)
35
+ Context.new(@model, @arel, @name, @scope.where(*attributes, &block))
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,13 @@
1
+ module Rql
2
+ module Dsl
3
+ module Logic
4
+ def |(value)
5
+ Context.new(@model, arel.or(value.arel))
6
+ end
7
+
8
+ def &(value)
9
+ Context.new(@model, arel.and(value.arel))
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,21 @@
1
+ module Rql
2
+ module Dsl
3
+ module Maths
4
+ def +(value)
5
+ Context.new(@model, arel + (value.is_a?(Context) ? value.arel : value))
6
+ end
7
+
8
+ def -(value)
9
+ Context.new(@model, arel - (value.is_a?(Context) ? value.arel : value))
10
+ end
11
+
12
+ def *(value)
13
+ Context.new(@model, arel * (value.is_a?(Context) ? value.arel : value))
14
+ end
15
+
16
+ def /(value)
17
+ Context.new(@model, arel / (value.is_a?(Context) ? value.arel : value))
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,13 @@
1
+ module Rql
2
+ module Dsl
3
+ module Orders
4
+ def desc(flag = true)
5
+ Context.new(@model, flag ? arel.desc : arel.asc)
6
+ end
7
+
8
+ def asc(flag = true)
9
+ Context.new(@model, flag ? arel.asc : arel.desc)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,19 @@
1
+ module Rql
2
+ class PathBuilder
3
+ def initialize(path = nil)
4
+ @path = path || []
5
+ end
6
+
7
+ def to_h
8
+ path_hash = nil
9
+ @path.reverse_each do |name|
10
+ path_hash = path_hash ? {name.to_sym => path_hash} : name.to_sym
11
+ end
12
+ path_hash
13
+ end
14
+
15
+ def method_missing(name)
16
+ PathBuilder.new(@path.concat([name.to_sym]))
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,33 @@
1
+ require "active_support/concern"
2
+
3
+ module Rql
4
+ module Queryable
5
+ extend ActiveSupport::Concern
6
+
7
+ class_methods do
8
+ def rql
9
+ return Scope::RqlScope.new(all)
10
+ end
11
+
12
+ def eval_rql(&query)
13
+ Dsl::Base.new(self).instance_eval(&query)
14
+ end
15
+
16
+ def derive_attr(name, &query)
17
+ define_method(name) do
18
+ attributes.has_key?(name.to_s) ? attributes[name.to_s] : instance_eval(&query)
19
+ end
20
+
21
+ derived_attributes[name] = query
22
+ end
23
+
24
+ def derive(*attributes)
25
+ rql.select(self.arel_table[Arel.star], *attributes).all
26
+ end
27
+
28
+ def derived_attributes
29
+ @derive_attribute ||= {}
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,10 @@
1
+ require "rql/scope/method_group"
2
+ require "rql/scope/block_methods"
3
+ require "rql/scope/param_methods"
4
+ require "rql/scope/rql_scope"
5
+
6
+ module Rql
7
+ module Scope
8
+
9
+ end
10
+ end
@@ -0,0 +1,38 @@
1
+ module Rql
2
+ module Scope
3
+ class BlockMethods < MethodGroup
4
+ def where(&block)
5
+ scope.where(scope.eval_rql(&block).arel)
6
+ end
7
+
8
+ def select(&block)
9
+ scope.select(*build_attributes(&block))
10
+ end
11
+
12
+ def order(&block)
13
+ scope.order(*build_attributes(&block))
14
+ end
15
+
16
+ def joins(&block)
17
+ scope.joins(*build_join_path(&block))
18
+ end
19
+
20
+ def includes(&block)
21
+ scope.includes(*build_join_path(&block))
22
+ end
23
+
24
+ private
25
+ def build_join_path(&block)
26
+ joins = PathBuilder.new.instance_eval(&block)
27
+ joins = [joins] unless joins.is_a?(Array)
28
+ joins.map(&:to_h)
29
+ end
30
+
31
+ def build_attributes(&block)
32
+ attributes = scope.eval_rql(&block)
33
+ attributes = [attributes] unless attributes.is_a?(Array)
34
+ attributes.map(&:arel)
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,13 @@
1
+ module Rql
2
+ module Scope
3
+ class MethodGroup
4
+ def initialize(scope)
5
+ @scope = scope
6
+ end
7
+
8
+ def scope
9
+ @scope
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,58 @@
1
+ module Rql
2
+ module Scope
3
+ class ParamMethods < MethodGroup
4
+ def where(**conditions)
5
+ scope.where(build_conditions(conditions))
6
+ end
7
+
8
+ def select(*attributes)
9
+ scope.select(*attributes.map{|attr| scope.derived_attributes[attr]&.arel&.as(attr.to_s) || attr})
10
+ end
11
+
12
+ def order(*attributes)
13
+ scope.order(*build_order(attributes))
14
+ end
15
+
16
+ def joins(*attributes)
17
+ scope.joins(*attributes)
18
+ end
19
+
20
+ def includes(*attributes)
21
+ scope.includes(*attributes)
22
+ end
23
+
24
+ private
25
+ def build_conditions(conditions, table = scope.name.underscore)
26
+ result = nil
27
+ conditions.each do |key, value|
28
+ condition =
29
+ if value.is_a?(Hash)
30
+ build_conditions(value, key)
31
+ elsif value.is_a?(Range)
32
+ scope.eval_rql{send(table).send(key) === value}.arel
33
+ elsif value.is_a?(Array) || value.methods.include?(:arel)
34
+ scope.eval_rql{send(table).send(key).in?(value)}.arel
35
+ else
36
+ scope.eval_rql{send(table).send(key) == value}.arel
37
+ end
38
+ result = result ? result.and(condition) : condition
39
+ end
40
+ result
41
+ end
42
+
43
+ def build_order(attributes)
44
+ order_by =
45
+ attributes.map do |attr|
46
+ if attr.is_a?(Symbol)
47
+ scope.eval_rql{send(attr)}.arel
48
+ elsif attr.is_a?(Hash)
49
+ attr.map {|(key, value)| scope.eval_rql{send(key).desc(value.to_sym == :desc)}.arel}
50
+ else
51
+ attr
52
+ end
53
+ end
54
+ order_by.flatten
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,32 @@
1
+ module Rql
2
+ module Scope
3
+ class RqlScope
4
+ def initialize(scope)
5
+ @block_methods = BlockMethods.new(scope)
6
+ @param_methods = ParamMethods.new(scope)
7
+ @scope = scope
8
+ end
9
+
10
+ def scope
11
+ @scope
12
+ end
13
+
14
+ def method_missing(method_name, *params, &block)
15
+ if block && @block_methods.respond_to?(method_name)
16
+ RqlScope.new(@block_methods.send(method_name, &block))
17
+ elsif @param_methods.respond_to?(method_name)
18
+ RqlScope.new(@param_methods.send(method_name, *params))
19
+ else
20
+ scope.send(method_name, *params)
21
+ end
22
+ end
23
+
24
+ def respond_to_missing?(method_name, include_private = false)
25
+ @block_methods.respond_to?(method_name, include_private) ||
26
+ @param_methods.send(method_name, include_private) ||
27
+ super.respond_to?(method_name, include_private) ||
28
+ super
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,3 @@
1
+ module Rql
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,30 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "rql/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rql"
8
+ spec.version = Rql::VERSION
9
+ spec.authors = ["Lief Nikkel"]
10
+ spec.email = ["lief.nikkel@youdo.co.nz"]
11
+
12
+ spec.summary = "A DSL for Active Record Queries"
13
+ spec.description = "RQL is a DSL that allows derived attributes in Active Record models to be used in database queries"
14
+ spec.homepage = "https://github.com/liefni/rql"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.16"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec", "~> 3.0"
27
+ spec.add_development_dependency "sqlite3"
28
+
29
+ spec.add_runtime_dependency "activerecord", "> 5.0"
30
+ end
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rql
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Lief Nikkel
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-06-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sqlite3
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activerecord
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">"
74
+ - !ruby/object:Gem::Version
75
+ version: '5.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">"
81
+ - !ruby/object:Gem::Version
82
+ version: '5.0'
83
+ description: RQL is a DSL that allows derived attributes in Active Record models to
84
+ be used in database queries
85
+ email:
86
+ - lief.nikkel@youdo.co.nz
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".travis.yml"
94
+ - Gemfile
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/setup
100
+ - lib/rql.rb
101
+ - lib/rql/dsl.rb
102
+ - lib/rql/dsl/aggregations.rb
103
+ - lib/rql/dsl/base.rb
104
+ - lib/rql/dsl/comparisons.rb
105
+ - lib/rql/dsl/context.rb
106
+ - lib/rql/dsl/logic.rb
107
+ - lib/rql/dsl/maths.rb
108
+ - lib/rql/dsl/orders.rb
109
+ - lib/rql/path_builder.rb
110
+ - lib/rql/queryable.rb
111
+ - lib/rql/scope.rb
112
+ - lib/rql/scope/block_methods.rb
113
+ - lib/rql/scope/method_group.rb
114
+ - lib/rql/scope/param_methods.rb
115
+ - lib/rql/scope/rql_scope.rb
116
+ - lib/rql/version.rb
117
+ - rql.gemspec
118
+ homepage: https://github.com/liefni/rql
119
+ licenses:
120
+ - MIT
121
+ metadata: {}
122
+ post_install_message:
123
+ rdoc_options: []
124
+ require_paths:
125
+ - lib
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ required_rubygems_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ requirements: []
137
+ rubyforge_project:
138
+ rubygems_version: 2.5.1
139
+ signing_key:
140
+ specification_version: 4
141
+ summary: A DSL for Active Record Queries
142
+ test_files: []