parelation 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gemfiles/5.0.gemfile +4 -0
- data/.gemfiles/5.1.gemfile +4 -0
- data/.gemfiles/5.2.gemfile +4 -0
- data/.gemfiles/6.0.gemfile +4 -0
- data/.github/workflows/test.yml +35 -0
- data/.gitignore +1 -0
- data/README.md +13 -12
- data/lib/parelation/applier.rb +1 -1
- data/lib/parelation/criteria/limit.rb +6 -10
- data/lib/parelation/criteria/offset.rb +6 -10
- data/lib/parelation/criteria/order.rb +8 -2
- data/lib/parelation/criteria/order/object.rb +10 -6
- data/lib/parelation/criteria/query.rb +5 -1
- data/lib/parelation/criteria/select.rb +6 -10
- data/lib/parelation/criteria/where.rb +5 -1
- data/lib/parelation/criteria/where/criteria_builder.rb +1 -1
- data/lib/parelation/version.rb +1 -1
- data/parelation.gemspec +8 -9
- data/spec/lib/applier_spec.rb +4 -4
- data/spec/lib/criteria/where_spec.rb +3 -3
- data/spec/support/db.rb +4 -5
- data/spec/support/env.rb +0 -1
- metadata +29 -37
- data/.gemfiles/4.1.gemfile +0 -3
- data/.gemfiles/4.2.gemfile +0 -3
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3651db9977c88f30420fd909134881fe7ef7ba6b3bd3a2cd146e9abe127a35f7
|
4
|
+
data.tar.gz: a0c55adcad2ed07452b61714cd59e332a8cd6aca186f71ebacddc1383281822f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad0c471f8f0ea459c38882755ab7a2a19326433b4097f929d0f8045f3a79735a2dbd01a46a6680ed74bf596342428cff8c2a2e1019db6f4bbdeadd2951326c19
|
7
|
+
data.tar.gz: 1ab3d55b7510484cf932e474b69385ebf0f77784a81d2540ab8c5e679b05c2725a1d03a535109721c5688789cfd544b159ba2725dbe2c75ffc6ec1db0e8a8b67
|
@@ -0,0 +1,35 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
- push
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
build:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
strategy:
|
10
|
+
matrix:
|
11
|
+
ruby:
|
12
|
+
- 2.5
|
13
|
+
- 2.6
|
14
|
+
- 2.7
|
15
|
+
gemfile:
|
16
|
+
- .gemfiles/5.0.gemfile
|
17
|
+
- .gemfiles/5.1.gemfile
|
18
|
+
- .gemfiles/5.2.gemfile
|
19
|
+
- .gemfiles/6.0.gemfile
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v2
|
22
|
+
- name: Use Ruby ${{ matrix.ruby }}
|
23
|
+
uses: actions/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: ${{ matrix.ruby }}
|
26
|
+
- name: Install libsqlite3
|
27
|
+
run: |
|
28
|
+
sudo apt-get install libsqlite3-dev
|
29
|
+
- name: Run tests
|
30
|
+
run: |
|
31
|
+
gem install bundler
|
32
|
+
bundle install --jobs 4 --retry 3
|
33
|
+
bundle exec rake
|
34
|
+
env:
|
35
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# Parelation
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/parelation.svg)](http://badge.fury.io/rb/parelation)
|
4
|
-
[![Code Climate](https://codeclimate.com/github/
|
5
|
-
[![Build Status](https://travis-ci.org/
|
4
|
+
[![Code Climate](https://codeclimate.com/github/mrrooijen/parelation.png)](https://codeclimate.com/github/mrrooijen/parelation)
|
5
|
+
[![Build Status](https://travis-ci.org/mrrooijen/parelation.svg)](https://travis-ci.org/mrrooijen/parelation)
|
6
6
|
|
7
|
-
Parelation, for Rails/ActiveRecord
|
7
|
+
Parelation, for Rails/ActiveRecord 5.0+, allows you to query your ActiveRecord-mapped database easily, securely and quite flexibly using simple GET requests. It's used in your controller layer where it uses HTTP GET parameters to build on the ActiveRecord::Relation chain. This provides the client-side with the out-of-the-box flexibility to perform fairly dynamic queries without having to write boilerplate on the server.
|
8
8
|
|
9
9
|
This library was developed for- and extracted from [HireFire].
|
10
10
|
|
@@ -12,8 +12,8 @@ The documentation can be found on [RubyDoc].
|
|
12
12
|
|
13
13
|
### Compatibility
|
14
14
|
|
15
|
-
- Rails/ActiveRecord
|
16
|
-
- Ruby (MRI) 2.
|
15
|
+
- Rails/ActiveRecord 5.0+
|
16
|
+
- Ruby (MRI) 2.5+
|
17
17
|
|
18
18
|
### Installation
|
19
19
|
|
@@ -241,8 +241,8 @@ This will tell client developers what parameter failed in the HTTP response. Thi
|
|
241
241
|
|
242
242
|
Contributions are welcome, but please conform to these requirements:
|
243
243
|
|
244
|
-
- Ruby (MRI) 2.
|
245
|
-
- ActiveRecord
|
244
|
+
- Ruby (MRI) 2.5+
|
245
|
+
- ActiveRecord 5.0+
|
246
246
|
- 100% Spec Coverage
|
247
247
|
- Generated by when running the test suite
|
248
248
|
- 100% [Passing Specs]
|
@@ -286,9 +286,10 @@ Submit a pull request.
|
|
286
286
|
|
287
287
|
Released under the [MIT License] by [Michael van Rooijen].
|
288
288
|
|
289
|
-
[Michael van Rooijen]: https://twitter.com/
|
289
|
+
[Michael van Rooijen]: https://twitter.com/mrrooijen
|
290
290
|
[HireFire]: http://hirefire.io
|
291
|
-
[Passing Specs]: https://travis-ci.org/
|
292
|
-
[Code Climate Score]: https://codeclimate.com/github/
|
293
|
-
[RubyDoc]: http://rubydoc.info/github/
|
294
|
-
[MIT License]: https://github.com/
|
291
|
+
[Passing Specs]: https://travis-ci.org/mrrooijen/parelation
|
292
|
+
[Code Climate Score]: https://codeclimate.com/github/mrrooijen/parelation
|
293
|
+
[RubyDoc]: http://rubydoc.info/github/mrrooijen/parelation/master/frames
|
294
|
+
[MIT License]: https://github.com/mrrooijen/parelation/blob/master/LICENSE
|
295
|
+
|
data/lib/parelation/applier.rb
CHANGED
@@ -1,23 +1,19 @@
|
|
1
1
|
class Parelation::Criteria::Limit < Parelation::Criteria
|
2
2
|
|
3
|
+
# @return [Regexp] the limit format.
|
4
|
+
#
|
5
|
+
LIMIT_FORMAT = /^limit$/
|
6
|
+
|
3
7
|
# @param param [String]
|
4
8
|
# @return [TrueClass, FalseClass]
|
5
9
|
#
|
6
10
|
def self.match?(param)
|
7
|
-
!!(
|
11
|
+
!!param.match(LIMIT_FORMAT)
|
8
12
|
end
|
9
13
|
|
10
14
|
# @return [ActiveRecord::Relation]
|
11
15
|
#
|
12
16
|
def call
|
13
|
-
chain.limit(
|
14
|
-
end
|
15
|
-
|
16
|
-
private
|
17
|
-
|
18
|
-
# Alias for {#value}.
|
19
|
-
#
|
20
|
-
def limit
|
21
|
-
value
|
17
|
+
chain.limit(value)
|
22
18
|
end
|
23
19
|
end
|
@@ -1,23 +1,19 @@
|
|
1
1
|
class Parelation::Criteria::Offset < Parelation::Criteria
|
2
2
|
|
3
|
+
# @return [Regexp] the offset format.
|
4
|
+
#
|
5
|
+
OFFSET_FORMAT = /^offset$/
|
6
|
+
|
3
7
|
# @param param [String]
|
4
8
|
# @return [TrueClass, FalseClass]
|
5
9
|
#
|
6
10
|
def self.match?(param)
|
7
|
-
!!(
|
11
|
+
!!param.match(OFFSET_FORMAT)
|
8
12
|
end
|
9
13
|
|
10
14
|
# @return [ActiveRecord::Relation]
|
11
15
|
#
|
12
16
|
def call
|
13
|
-
chain.offset(
|
14
|
-
end
|
15
|
-
|
16
|
-
private
|
17
|
-
|
18
|
-
# Alias for {#value}.
|
19
|
-
#
|
20
|
-
def offset
|
21
|
-
value
|
17
|
+
chain.offset(value)
|
22
18
|
end
|
23
19
|
end
|
@@ -2,11 +2,15 @@ class Parelation::Criteria::Order < Parelation::Criteria
|
|
2
2
|
|
3
3
|
require_relative "order/object"
|
4
4
|
|
5
|
+
# @return [Regexp] The order format.
|
6
|
+
#
|
7
|
+
ORDER_FORMAT = /^order$/
|
8
|
+
|
5
9
|
# @param param [String]
|
6
10
|
# @return [TrueClass, FalseClass]
|
7
11
|
#
|
8
12
|
def self.match?(param)
|
9
|
-
!!(
|
13
|
+
!!param.match(ORDER_FORMAT)
|
10
14
|
end
|
11
15
|
|
12
16
|
# Applies the specified orderings to {#chain}.
|
@@ -25,6 +29,8 @@ class Parelation::Criteria::Order < Parelation::Criteria
|
|
25
29
|
# array of attributes to order.
|
26
30
|
#
|
27
31
|
def orders
|
28
|
-
@orders ||= [value].flatten.map
|
32
|
+
@orders ||= [value].flatten.map do |order|
|
33
|
+
Object.new(order)
|
34
|
+
end
|
29
35
|
end
|
30
36
|
end
|
@@ -1,5 +1,13 @@
|
|
1
1
|
class Parelation::Criteria::Order::Object
|
2
2
|
|
3
|
+
# @return [Hash] the possible directions (asc, desc)
|
4
|
+
# for database queries.
|
5
|
+
#
|
6
|
+
DIRECTIONS = {
|
7
|
+
"asc" => :asc,
|
8
|
+
"desc" => :desc,
|
9
|
+
}
|
10
|
+
|
3
11
|
# @return [String]
|
4
12
|
#
|
5
13
|
attr_reader :order
|
@@ -28,14 +36,10 @@ class Parelation::Criteria::Order::Object
|
|
28
36
|
end
|
29
37
|
|
30
38
|
# @return [Symbol, nil] the direction to order {#field},
|
31
|
-
#
|
39
|
+
# either :asc or :desc.
|
32
40
|
#
|
33
41
|
def direction
|
34
|
-
|
35
|
-
when "asc" then :asc
|
36
|
-
when "desc" then :desc
|
37
|
-
else nil
|
38
|
-
end
|
42
|
+
DIRECTIONS[parts.last]
|
39
43
|
end
|
40
44
|
|
41
45
|
# @return [Array<String, nil>] the criteria chunks (separated by +:+).
|
@@ -1,10 +1,14 @@
|
|
1
1
|
class Parelation::Criteria::Query < Parelation::Criteria
|
2
2
|
|
3
|
+
# @return [Regexp] the query format.
|
4
|
+
#
|
5
|
+
QUERY_FORMAT = /^query$/
|
6
|
+
|
3
7
|
# @param param [String]
|
4
8
|
# @return [TrueClass, FalseClass]
|
5
9
|
#
|
6
10
|
def self.match?(param)
|
7
|
-
!!(
|
11
|
+
!!param.match(QUERY_FORMAT)
|
8
12
|
end
|
9
13
|
|
10
14
|
# @return [ActiveRecord::Relation]
|
@@ -1,23 +1,19 @@
|
|
1
1
|
class Parelation::Criteria::Select < Parelation::Criteria
|
2
2
|
|
3
|
+
# @return [Regexp] the select format.
|
4
|
+
#
|
5
|
+
SELECT_FORMAT = /^select$/
|
6
|
+
|
3
7
|
# @param param [String]
|
4
8
|
# @return [TrueClass, FalseClass]
|
5
9
|
#
|
6
10
|
def self.match?(param)
|
7
|
-
!!(
|
11
|
+
!!param.match(SELECT_FORMAT)
|
8
12
|
end
|
9
13
|
|
10
14
|
# @return [ActiveRecord::Relation]
|
11
15
|
#
|
12
16
|
def call
|
13
|
-
chain.select(*
|
14
|
-
end
|
15
|
-
|
16
|
-
private
|
17
|
-
|
18
|
-
# Alias for {#value}.
|
19
|
-
#
|
20
|
-
def attributes
|
21
|
-
value
|
17
|
+
chain.select(*value)
|
22
18
|
end
|
23
19
|
end
|
@@ -4,11 +4,15 @@ class Parelation::Criteria::Where < Parelation::Criteria
|
|
4
4
|
require_relative "where/directional_query_applier"
|
5
5
|
require_relative "where/criteria_builder"
|
6
6
|
|
7
|
+
# @return [Regexp] the "where" format.
|
8
|
+
#
|
9
|
+
WHERE_FORMAT = /^(where|where_(not|gt|gte|lt|lte))$/
|
10
|
+
|
7
11
|
# @param param [String]
|
8
12
|
# @return [true, false]
|
9
13
|
#
|
10
14
|
def self.match?(param)
|
11
|
-
!!
|
15
|
+
!!param.match(WHERE_FORMAT)
|
12
16
|
end
|
13
17
|
|
14
18
|
# @return [ActiveRecord::Relation]
|
data/lib/parelation/version.rb
CHANGED
data/parelation.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Michael van Rooijen"]
|
9
9
|
spec.email = ["michael@vanrooijen.io"]
|
10
10
|
spec.summary = %q{Translates HTTP parameters to ActiveRecord queries.}
|
11
|
-
spec.homepage = "http://
|
11
|
+
spec.homepage = "http://mrrooijen.github.io/store_schema/"
|
12
12
|
spec.license = "MIT"
|
13
13
|
|
14
14
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -16,13 +16,12 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
|
-
spec.add_dependency "activerecord", ">=
|
19
|
+
spec.add_dependency "activerecord", ">= 5.0.0", "< 6.1.0"
|
20
20
|
spec.add_development_dependency "bundler"
|
21
|
-
spec.add_development_dependency "rake", "~>
|
22
|
-
spec.add_development_dependency "rspec", "~> 3.
|
23
|
-
spec.add_development_dependency "
|
24
|
-
spec.add_development_dependency "
|
25
|
-
spec.add_development_dependency "
|
26
|
-
spec.add_development_dependency "
|
27
|
-
spec.add_development_dependency "yard", "~> 0.8.7.6"
|
21
|
+
spec.add_development_dependency "rake", "~> 13.0.0"
|
22
|
+
spec.add_development_dependency "rspec", "~> 3.9.0"
|
23
|
+
spec.add_development_dependency "database_cleaner", "~> 1.8.0"
|
24
|
+
spec.add_development_dependency "pry", "~> 0.12.0"
|
25
|
+
spec.add_development_dependency "simplecov", "~> 0.18.0"
|
26
|
+
spec.add_development_dependency "yard", "~> 0.9.0"
|
28
27
|
end
|
data/spec/lib/applier_spec.rb
CHANGED
@@ -28,10 +28,10 @@ describe Parelation::Applier do
|
|
28
28
|
.select(:id, :name, :state, :message)
|
29
29
|
.where(state: ["open", "pending"])
|
30
30
|
.where.not(state: "closed")
|
31
|
-
.where(%Q{"tickets".'created_at' > ?}, "2014-01-01 00:00:00
|
32
|
-
.where(%Q{"tickets".'updated_at' >= ?}, "2014-01-01 00:00:00
|
33
|
-
.where(%Q{"tickets".'created_at' < ?}, "2014-01-01 01:00:00
|
34
|
-
.where(%Q{"tickets".'updated_at' <= ?}, "2014-01-01 01:00:00
|
31
|
+
.where(%Q{"tickets".'created_at' > ?}, "2014-01-01 00:00:00")
|
32
|
+
.where(%Q{"tickets".'updated_at' >= ?}, "2014-01-01 00:00:00")
|
33
|
+
.where(%Q{"tickets".'created_at' < ?}, "2014-01-01 01:00:00")
|
34
|
+
.where(%Q{"tickets".'updated_at' <= ?}, "2014-01-01 01:00:00")
|
35
35
|
.where(
|
36
36
|
%Q{"tickets"."name" LIKE ? OR "tickets"."message" LIKE ?},
|
37
37
|
"%ruby on rails%", "%ruby on rails%"
|
@@ -61,7 +61,7 @@ describe Parelation::Criteria::Where do
|
|
61
61
|
it "should add #{symbol} criteria to the chain" do
|
62
62
|
criteria = klass.new(Ticket.all, operator, created_at: "2014-08-26T19:20:44Z").call
|
63
63
|
ar_query = Ticket.where(
|
64
|
-
%Q{"tickets".'created_at' #{symbol} ?}, "2014-08-26 19:20:44
|
64
|
+
%Q{"tickets".'created_at' #{symbol} ?}, "2014-08-26 19:20:44"
|
65
65
|
)
|
66
66
|
|
67
67
|
expect(criteria.to_sql).to eq(ar_query.to_sql)
|
@@ -69,7 +69,7 @@ describe Parelation::Criteria::Where do
|
|
69
69
|
|
70
70
|
it "should add multiple #{symbol} criteria to the chain" do
|
71
71
|
criteria = klass.new(Ticket.all, operator, created_at: "2014-08-26T19:20:44Z", position: "5").call
|
72
|
-
ar_query = Ticket.where(%Q{"tickets".'created_at' #{symbol} ?}, "2014-08-26 19:20:44
|
72
|
+
ar_query = Ticket.where(%Q{"tickets".'created_at' #{symbol} ?}, "2014-08-26 19:20:44")
|
73
73
|
.where(%Q{"tickets".'position' #{symbol} ?}, 5)
|
74
74
|
|
75
75
|
expect(criteria.to_sql).to eq(ar_query.to_sql)
|
@@ -149,7 +149,7 @@ describe Parelation::Criteria::Where do
|
|
149
149
|
|
150
150
|
it "should cast a string to time" do
|
151
151
|
criteria = klass.new(Ticket.all, "where", created_at: "2014-01-01T00:00:00Z").call
|
152
|
-
ar_query = Ticket.where(created_at:
|
152
|
+
ar_query = Ticket.where(created_at: "2014-01-01 00:00:00")
|
153
153
|
|
154
154
|
expect(criteria.to_sql).to eq(ar_query.to_sql)
|
155
155
|
end
|
data/spec/support/db.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
ActiveRecord::Base.establish_connection(
|
2
|
-
adapter
|
2
|
+
:adapter => "sqlite3",
|
3
|
+
:database => ":memory:",
|
3
4
|
)
|
4
5
|
|
5
|
-
class Schema < ActiveRecord::Migration
|
6
|
+
class Schema < ActiveRecord::Migration[5.0]
|
6
7
|
|
7
8
|
def change
|
8
9
|
create_table :projects do |t|
|
@@ -23,9 +24,7 @@ class Schema < ActiveRecord::Migration
|
|
23
24
|
end
|
24
25
|
end
|
25
26
|
|
26
|
-
|
27
|
-
Schema.new.change
|
28
|
-
end
|
27
|
+
Schema.new.change
|
29
28
|
|
30
29
|
class Project < ActiveRecord::Base
|
31
30
|
has_many :tickets
|
data/spec/support/env.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parelation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 6.1.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 5.0.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 6.1.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,98 +50,84 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
53
|
+
version: 13.0.0
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
60
|
+
version: 13.0.0
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rspec
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 3.1.0
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: sqlite3
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 1.3.10
|
67
|
+
version: 3.9.0
|
76
68
|
type: :development
|
77
69
|
prerelease: false
|
78
70
|
version_requirements: !ruby/object:Gem::Requirement
|
79
71
|
requirements:
|
80
72
|
- - "~>"
|
81
73
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
74
|
+
version: 3.9.0
|
83
75
|
- !ruby/object:Gem::Dependency
|
84
76
|
name: database_cleaner
|
85
77
|
requirement: !ruby/object:Gem::Requirement
|
86
78
|
requirements:
|
87
79
|
- - "~>"
|
88
80
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
81
|
+
version: 1.8.0
|
90
82
|
type: :development
|
91
83
|
prerelease: false
|
92
84
|
version_requirements: !ruby/object:Gem::Requirement
|
93
85
|
requirements:
|
94
86
|
- - "~>"
|
95
87
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
88
|
+
version: 1.8.0
|
97
89
|
- !ruby/object:Gem::Dependency
|
98
90
|
name: pry
|
99
91
|
requirement: !ruby/object:Gem::Requirement
|
100
92
|
requirements:
|
101
93
|
- - "~>"
|
102
94
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
95
|
+
version: 0.12.0
|
104
96
|
type: :development
|
105
97
|
prerelease: false
|
106
98
|
version_requirements: !ruby/object:Gem::Requirement
|
107
99
|
requirements:
|
108
100
|
- - "~>"
|
109
101
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
102
|
+
version: 0.12.0
|
111
103
|
- !ruby/object:Gem::Dependency
|
112
104
|
name: simplecov
|
113
105
|
requirement: !ruby/object:Gem::Requirement
|
114
106
|
requirements:
|
115
107
|
- - "~>"
|
116
108
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
109
|
+
version: 0.18.0
|
118
110
|
type: :development
|
119
111
|
prerelease: false
|
120
112
|
version_requirements: !ruby/object:Gem::Requirement
|
121
113
|
requirements:
|
122
114
|
- - "~>"
|
123
115
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
116
|
+
version: 0.18.0
|
125
117
|
- !ruby/object:Gem::Dependency
|
126
118
|
name: yard
|
127
119
|
requirement: !ruby/object:Gem::Requirement
|
128
120
|
requirements:
|
129
121
|
- - "~>"
|
130
122
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
123
|
+
version: 0.9.0
|
132
124
|
type: :development
|
133
125
|
prerelease: false
|
134
126
|
version_requirements: !ruby/object:Gem::Requirement
|
135
127
|
requirements:
|
136
128
|
- - "~>"
|
137
129
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
130
|
+
version: 0.9.0
|
139
131
|
description:
|
140
132
|
email:
|
141
133
|
- michael@vanrooijen.io
|
@@ -143,11 +135,13 @@ executables: []
|
|
143
135
|
extensions: []
|
144
136
|
extra_rdoc_files: []
|
145
137
|
files:
|
146
|
-
- ".gemfiles/
|
147
|
-
- ".gemfiles/
|
138
|
+
- ".gemfiles/5.0.gemfile"
|
139
|
+
- ".gemfiles/5.1.gemfile"
|
140
|
+
- ".gemfiles/5.2.gemfile"
|
141
|
+
- ".gemfiles/6.0.gemfile"
|
142
|
+
- ".github/workflows/test.yml"
|
148
143
|
- ".gitignore"
|
149
144
|
- ".rspec"
|
150
|
-
- ".travis.yml"
|
151
145
|
- Gemfile
|
152
146
|
- LICENSE
|
153
147
|
- README.md
|
@@ -180,7 +174,7 @@ files:
|
|
180
174
|
- spec/spec_helper.rb
|
181
175
|
- spec/support/db.rb
|
182
176
|
- spec/support/env.rb
|
183
|
-
homepage: http://
|
177
|
+
homepage: http://mrrooijen.github.io/store_schema/
|
184
178
|
licenses:
|
185
179
|
- MIT
|
186
180
|
metadata: {}
|
@@ -199,8 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
193
|
- !ruby/object:Gem::Version
|
200
194
|
version: '0'
|
201
195
|
requirements: []
|
202
|
-
|
203
|
-
rubygems_version: 2.4.5
|
196
|
+
rubygems_version: 3.0.3
|
204
197
|
signing_key:
|
205
198
|
specification_version: 4
|
206
199
|
summary: Translates HTTP parameters to ActiveRecord queries.
|
@@ -216,4 +209,3 @@ test_files:
|
|
216
209
|
- spec/spec_helper.rb
|
217
210
|
- spec/support/db.rb
|
218
211
|
- spec/support/env.rb
|
219
|
-
has_rdoc:
|
data/.gemfiles/4.1.gemfile
DELETED
data/.gemfiles/4.2.gemfile
DELETED