elocal_api_support 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 50a9bf2c53d039466212d2d7388c0d19f4a67c9f360762c86c86da234d832803
|
4
|
+
data.tar.gz: c529b8649a189b3726fcf378dd615ca46bc91ff6a944656f1985b30d97c528e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be124f16c1acfcad5cbf9378c0cfcb49a6fee49e0fc45204424883e6c3438048e1cce4c2975f4da1ce6eb887cb8a72762ad240efb8ee54be6041c6ff96a89492
|
7
|
+
data.tar.gz: 33b71c0ffd51bf8af9a4fe8c3a313cad1b569edbdc389ec63b8fae8f4f452f95794d0f808677828d18b28c4e30efda2a10509f67837d6d1129eafd493d047f36
|
data/elocal_api_support.gemspec
CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'activesupport', '>=
|
22
|
-
spec.add_dependency 'actionpack', '>=
|
23
|
-
spec.add_dependency 'activerecord', '>=
|
21
|
+
spec.add_dependency 'activesupport', '>= 5.2.0'
|
22
|
+
spec.add_dependency 'actionpack', '>= 5.2.0'
|
23
|
+
spec.add_dependency 'activerecord', '>= 5.2.0'
|
24
24
|
spec.add_dependency 'kaminari'
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
26
|
spec.add_development_dependency "rspec-rails", '>= 3.5.0.beta4'
|
@@ -46,7 +46,7 @@ module ElocalApiSupport::ModelFromParams
|
|
46
46
|
elsif associated_model.respond_to?(:"order_by_#{filter_sort_col}", true)
|
47
47
|
rel = rel.send(:"order_by_#{filter_sort_col}", params[filter_sort_col], filter_sort_direction)
|
48
48
|
else
|
49
|
-
rel = rel.order("#{associated_model.table_name}.#{filter_sort_col} #{filter_sort_direction}")
|
49
|
+
rel = rel.order(Arel.sql("#{associated_model.table_name}.#{filter_sort_col} #{filter_sort_direction}"))
|
50
50
|
end
|
51
51
|
end
|
52
52
|
rel
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elocal_api_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Di Marco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 5.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 5.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activerecord
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 5.2.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 5.2.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: kaminari
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.7.7
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: Utilities for controllers when creating a JSON API
|