parelation 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemfiles/6.0.gemfile +1 -1
- data/.gemfiles/6.1.gemfile +4 -0
- data/.github/workflows/test.yml +2 -3
- data/README.md +3 -4
- data/lib/parelation/version.rb +1 -1
- data/parelation.gemspec +7 -7
- metadata +24 -26
- data/.gemfiles/5.0.gemfile +0 -4
- data/.gemfiles/5.1.gemfile +0 -4
- data/.gemfiles/5.2.gemfile +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a8e2c5cac723364b766452b6acf10ec0358a6e6c9ce069d11a2835f4352c30f
|
4
|
+
data.tar.gz: 80df93730f6fcab76c72dec180f8ac788804cfe1f5deb8f92aad21bd6b429117
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abfe2c8ca72f4a0c1f99fe957d54197795eb7d8f056ee0d581b3d23dcd6a52216bb2cea93703184f681e9abd3da4783dcb913be8d003bef92c0009881f2dfed6
|
7
|
+
data.tar.gz: 8803cca49b8abf5ae578ec7ee1cdd97583a6f2ea0a3a9f70b7d51e4d2ec07fb5d7e183a3d576e99ae966aa2f61290d102e1691c55bf90ca71829fd1ddd55c705
|
data/.gemfiles/6.0.gemfile
CHANGED
data/.github/workflows/test.yml
CHANGED
@@ -12,11 +12,10 @@ jobs:
|
|
12
12
|
- 2.5
|
13
13
|
- 2.6
|
14
14
|
- 2.7
|
15
|
+
- 3.0
|
15
16
|
gemfile:
|
16
|
-
- .gemfiles/5.0.gemfile
|
17
|
-
- .gemfiles/5.1.gemfile
|
18
|
-
- .gemfiles/5.2.gemfile
|
19
17
|
- .gemfiles/6.0.gemfile
|
18
|
+
- .gemfiles/6.1.gemfile
|
20
19
|
steps:
|
21
20
|
- uses: actions/checkout@v2
|
22
21
|
- name: Use Ruby ${{ matrix.ruby }}
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[![Code Climate](https://codeclimate.com/github/mrrooijen/parelation.png)](https://codeclimate.com/github/mrrooijen/parelation)
|
5
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 6.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,7 +12,7 @@ The documentation can be found on [RubyDoc].
|
|
12
12
|
|
13
13
|
### Compatibility
|
14
14
|
|
15
|
-
- Rails/ActiveRecord
|
15
|
+
- Rails/ActiveRecord 6.0+
|
16
16
|
- Ruby (MRI) 2.5+
|
17
17
|
|
18
18
|
### Installation
|
@@ -242,7 +242,7 @@ This will tell client developers what parameter failed in the HTTP response. Thi
|
|
242
242
|
Contributions are welcome, but please conform to these requirements:
|
243
243
|
|
244
244
|
- Ruby (MRI) 2.5+
|
245
|
-
- ActiveRecord
|
245
|
+
- ActiveRecord 6.0+
|
246
246
|
- 100% Spec Coverage
|
247
247
|
- Generated by when running the test suite
|
248
248
|
- 100% [Passing Specs]
|
@@ -292,4 +292,3 @@ Released under the [MIT License] by [Michael van Rooijen].
|
|
292
292
|
[Code Climate Score]: https://codeclimate.com/github/mrrooijen/parelation
|
293
293
|
[RubyDoc]: http://rubydoc.info/github/mrrooijen/parelation/master/frames
|
294
294
|
[MIT License]: https://github.com/mrrooijen/parelation/blob/master/LICENSE
|
295
|
-
|
data/lib/parelation/version.rb
CHANGED
data/parelation.gemspec
CHANGED
@@ -16,12 +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", ">= 6.0.0", "< 6.2.0"
|
20
20
|
spec.add_development_dependency "bundler"
|
21
|
-
spec.add_development_dependency "rake", "~> 13.0.
|
22
|
-
spec.add_development_dependency "rspec", "~> 3.
|
23
|
-
spec.add_development_dependency "database_cleaner", "~>
|
24
|
-
spec.add_development_dependency "pry", "~> 0.
|
25
|
-
spec.add_development_dependency "simplecov", "~> 0.
|
26
|
-
spec.add_development_dependency "yard", "~> 0.9.
|
21
|
+
spec.add_development_dependency "rake", "~> 13.0.3"
|
22
|
+
spec.add_development_dependency "rspec", "~> 3.10.0"
|
23
|
+
spec.add_development_dependency "database_cleaner", "~> 2.0.1"
|
24
|
+
spec.add_development_dependency "pry", "~> 0.14.1"
|
25
|
+
spec.add_development_dependency "simplecov", "~> 0.21.2"
|
26
|
+
spec.add_development_dependency "yard", "~> 0.9.26"
|
27
27
|
end
|
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: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.0.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 6.
|
22
|
+
version: 6.2.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 6.0.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 6.
|
32
|
+
version: 6.2.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,95 +50,93 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 13.0.
|
53
|
+
version: 13.0.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 13.0.
|
60
|
+
version: 13.0.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rspec
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 3.
|
67
|
+
version: 3.10.0
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 3.
|
74
|
+
version: 3.10.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: database_cleaner
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: 2.0.1
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: 2.0.1
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: pry
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.
|
95
|
+
version: 0.14.1
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0.
|
102
|
+
version: 0.14.1
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: simplecov
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.
|
109
|
+
version: 0.21.2
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: 0.
|
116
|
+
version: 0.21.2
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: yard
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: 0.9.
|
123
|
+
version: 0.9.26
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.9.
|
131
|
-
description:
|
130
|
+
version: 0.9.26
|
131
|
+
description:
|
132
132
|
email:
|
133
133
|
- michael@vanrooijen.io
|
134
134
|
executables: []
|
135
135
|
extensions: []
|
136
136
|
extra_rdoc_files: []
|
137
137
|
files:
|
138
|
-
- ".gemfiles/5.0.gemfile"
|
139
|
-
- ".gemfiles/5.1.gemfile"
|
140
|
-
- ".gemfiles/5.2.gemfile"
|
141
138
|
- ".gemfiles/6.0.gemfile"
|
139
|
+
- ".gemfiles/6.1.gemfile"
|
142
140
|
- ".github/workflows/test.yml"
|
143
141
|
- ".gitignore"
|
144
142
|
- ".rspec"
|
@@ -178,7 +176,7 @@ homepage: http://mrrooijen.github.io/store_schema/
|
|
178
176
|
licenses:
|
179
177
|
- MIT
|
180
178
|
metadata: {}
|
181
|
-
post_install_message:
|
179
|
+
post_install_message:
|
182
180
|
rdoc_options: []
|
183
181
|
require_paths:
|
184
182
|
- lib
|
@@ -193,8 +191,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
191
|
- !ruby/object:Gem::Version
|
194
192
|
version: '0'
|
195
193
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
197
|
-
signing_key:
|
194
|
+
rubygems_version: 3.2.3
|
195
|
+
signing_key:
|
198
196
|
specification_version: 4
|
199
197
|
summary: Translates HTTP parameters to ActiveRecord queries.
|
200
198
|
test_files:
|
data/.gemfiles/5.0.gemfile
DELETED
data/.gemfiles/5.1.gemfile
DELETED
data/.gemfiles/5.2.gemfile
DELETED