nueca_rails_interfaces 0.2.4 → 0.2.6
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.
- checksums.yaml +4 -4
- data/lib/nueca_rails_interfaces/version.rb +1 -1
- data/lib/v1/query_interface.rb +1 -2
- data/nueca_rails_interfaces.gemspec +1 -1
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31ae17c6c4a1bc6e73e1e0cf9804c160d3cf5faf685b49c594c47c4be6a6e168
|
4
|
+
data.tar.gz: 1fd912144144b1c8a5ee9431dd58f5c416216da361adf8f20d80646597d6f4cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a3fb6374aebdfe04125d0a37b2dbdbc7397bebbe9ca9801bec2991c5355f5b2ee2b649cb24a676ffecf4f4eb7155cb343a0f3047a5836ba1bc837b6b56e4d84
|
7
|
+
data.tar.gz: f1a29e95b7fee07b6a7bef84e34791c0e7f7177eb2ea0336f359dc34b24c893084c4c030cb226632051f3dbff9c72fcea0b704a076eca00e87777d75f9902933
|
data/lib/v1/query_interface.rb
CHANGED
@@ -81,7 +81,6 @@ module V1
|
|
81
81
|
# Always updated alias of sorts.
|
82
82
|
def apply_sorting!
|
83
83
|
sorts
|
84
|
-
@collection = @collection.order(id: :asc) if @pagination_flag
|
85
84
|
end
|
86
85
|
|
87
86
|
# Paginates the collection based on query or settings.
|
@@ -89,7 +88,7 @@ module V1
|
|
89
88
|
raise 'Invalid pagination settings.' unless correct_pagination_settings?
|
90
89
|
return unless @pagination_flag
|
91
90
|
|
92
|
-
@collection = collection.
|
91
|
+
@collection = collection.paginate(page: fetch_page_value, per_page: fetch_per_page_value)
|
93
92
|
end
|
94
93
|
|
95
94
|
# Logic for fetching the page value from the query or settings.
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
26
|
# Uncomment to register a new dependency of your gem
|
27
|
-
spec.add_dependency 'rails', '
|
27
|
+
spec.add_dependency 'rails', '>= 7', '< 9'
|
28
28
|
spec.add_dependency 'to_bool', '~> 2.1'
|
29
29
|
|
30
30
|
# For more information and examples about making a new gem, check out our
|
metadata
CHANGED
@@ -1,29 +1,34 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nueca_rails_interfaces
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tien
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rails
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
|
-
- - "
|
16
|
+
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: '7'
|
19
|
+
- - "<"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '9'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
23
25
|
requirements:
|
24
|
-
- - "
|
26
|
+
- - ">="
|
25
27
|
- !ruby/object:Gem::Version
|
26
28
|
version: '7'
|
29
|
+
- - "<"
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '9'
|
27
32
|
- !ruby/object:Gem::Dependency
|
28
33
|
name: to_bool
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,7 +43,6 @@ dependencies:
|
|
38
43
|
- - "~>"
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '2.1'
|
41
|
-
description:
|
42
46
|
email:
|
43
47
|
- tieeeeen1994@gmail.com
|
44
48
|
executables: []
|
@@ -68,7 +72,6 @@ licenses:
|
|
68
72
|
- MIT
|
69
73
|
metadata:
|
70
74
|
rubygems_mfa_required: 'true'
|
71
|
-
post_install_message:
|
72
75
|
rdoc_options: []
|
73
76
|
require_paths:
|
74
77
|
- lib
|
@@ -83,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
86
|
- !ruby/object:Gem::Version
|
84
87
|
version: '0'
|
85
88
|
requirements: []
|
86
|
-
rubygems_version: 3.5
|
87
|
-
signing_key:
|
89
|
+
rubygems_version: 3.6.5
|
88
90
|
specification_version: 4
|
89
91
|
summary: Interfaces for known object entities in Rails Development at Nueca.
|
90
92
|
test_files: []
|