ows-queries 0.1.5 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47025aa36fab4e5475048c6bc0c3b1102ec6ba88612354268fe54e2bc5f7fa4d
4
- data.tar.gz: '01482bada274d380e2ac651b31eb39e81014a50b8a78f83d8c2071ce8b45e60a'
3
+ metadata.gz: 90d65268fcc28805c84150bb79312b0f690f08f20c292792a0f57591cb694976
4
+ data.tar.gz: a73c32005dba57ecc5967ea77866c236e6a5a47c9c02362c1e4f3ca6cf126ef1
5
5
  SHA512:
6
- metadata.gz: 06b602cce20c640c429eb2257af33ce025a3f76d802837ca483017b945eb375cb95158b5ca1ef11706ec2729680118c1999005ba53a0bf2aaeeb392a06b94ff3
7
- data.tar.gz: 7986b22c8ba33bc5e61906d5bb4d6bbe4c42dbbdd45bfcff01f207e268c903d05d55838afa010549b1edabec362bbfd131ebba2b792653590a5abf411c522dde
6
+ metadata.gz: cd8baad974362a1d0e20b49fbc9eacf051790bcfba04d088c16eb9ee26f06eb00e2005f313202d58085b5717911843151186db09b609514d1ff269a624dcad6f
7
+ data.tar.gz: 6ef9fb256c19ce0df4d80fa0f665469073f5361acf28432632d5ec32a85d0dc77eaa083d33b772be178bf1434c5cd35190d3cf29d2cf33df92e5f7b023a8b4b2
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  .rspec_status
12
12
 
13
13
  *.gem
14
+ Gemfile.lock
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.4
1
+ 3.1.1
data/Gemfile.lock CHANGED
@@ -1,23 +1,65 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ows-queries (0.1.5)
5
- kaminari
4
+ ows-queries (0.1.6)
5
+ denki
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
+ actioncable (6.1.4.1)
11
+ actionpack (= 6.1.4.1)
12
+ activesupport (= 6.1.4.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.4.1)
16
+ actionpack (= 6.1.4.1)
17
+ activejob (= 6.1.4.1)
18
+ activerecord (= 6.1.4.1)
19
+ activestorage (= 6.1.4.1)
20
+ activesupport (= 6.1.4.1)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.4.1)
23
+ actionpack (= 6.1.4.1)
24
+ actionview (= 6.1.4.1)
25
+ activejob (= 6.1.4.1)
26
+ activesupport (= 6.1.4.1)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.4.1)
30
+ actionview (= 6.1.4.1)
31
+ activesupport (= 6.1.4.1)
32
+ rack (~> 2.0, >= 2.0.9)
33
+ rack-test (>= 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (6.1.4.1)
37
+ actionpack (= 6.1.4.1)
38
+ activerecord (= 6.1.4.1)
39
+ activestorage (= 6.1.4.1)
40
+ activesupport (= 6.1.4.1)
41
+ nokogiri (>= 1.8.5)
10
42
  actionview (6.1.4.1)
11
43
  activesupport (= 6.1.4.1)
12
44
  builder (~> 3.1)
13
45
  erubi (~> 1.4)
14
46
  rails-dom-testing (~> 2.0)
15
47
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
+ activejob (6.1.4.1)
49
+ activesupport (= 6.1.4.1)
50
+ globalid (>= 0.3.6)
16
51
  activemodel (6.1.4.1)
17
52
  activesupport (= 6.1.4.1)
18
53
  activerecord (6.1.4.1)
19
54
  activemodel (= 6.1.4.1)
20
55
  activesupport (= 6.1.4.1)
56
+ activestorage (6.1.4.1)
57
+ actionpack (= 6.1.4.1)
58
+ activejob (= 6.1.4.1)
59
+ activerecord (= 6.1.4.1)
60
+ activesupport (= 6.1.4.1)
61
+ marcel (~> 1.0.0)
62
+ mini_mime (>= 1.1.0)
21
63
  activesupport (6.1.4.1)
22
64
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
65
  i18n (>= 1.6, < 2)
@@ -30,28 +72,44 @@ GEM
30
72
  coderay (1.1.3)
31
73
  concurrent-ruby (1.1.9)
32
74
  crass (1.0.6)
75
+ denki (0.0.1)
76
+ kaminari (>= 0.13)
77
+ kaminari-i18n (>= 0.5.0)
78
+ rails (>= 3.1)
33
79
  diff-lcs (1.4.4)
34
80
  erubi (1.10.0)
81
+ globalid (1.0.0)
82
+ activesupport (>= 5.0)
35
83
  i18n (1.8.11)
36
84
  concurrent-ruby (~> 1.0)
37
- kaminari (1.2.1)
85
+ kaminari (1.2.2)
38
86
  activesupport (>= 4.1.0)
39
- kaminari-actionview (= 1.2.1)
40
- kaminari-activerecord (= 1.2.1)
41
- kaminari-core (= 1.2.1)
42
- kaminari-actionview (1.2.1)
87
+ kaminari-actionview (= 1.2.2)
88
+ kaminari-activerecord (= 1.2.2)
89
+ kaminari-core (= 1.2.2)
90
+ kaminari-actionview (1.2.2)
43
91
  actionview
44
- kaminari-core (= 1.2.1)
45
- kaminari-activerecord (1.2.1)
92
+ kaminari-core (= 1.2.2)
93
+ kaminari-activerecord (1.2.2)
46
94
  activerecord
47
- kaminari-core (= 1.2.1)
48
- kaminari-core (1.2.1)
49
- loofah (2.12.0)
95
+ kaminari-core (= 1.2.2)
96
+ kaminari-core (1.2.2)
97
+ kaminari-i18n (0.5.0)
98
+ kaminari
99
+ rails
100
+ loofah (2.15.0)
50
101
  crass (~> 1.0.2)
51
102
  nokogiri (>= 1.5.9)
103
+ mail (2.7.1)
104
+ mini_mime (>= 0.1.1)
105
+ marcel (1.0.2)
52
106
  method_source (1.0.0)
107
+ mini_mime (1.1.2)
108
+ mini_portile2 (2.8.0)
53
109
  minitest (5.14.4)
54
- nokogiri (1.12.5-x86_64-darwin)
110
+ nio4r (2.5.8)
111
+ nokogiri (1.13.3)
112
+ mini_portile2 (~> 2.8.0)
55
113
  racc (~> 1.4)
56
114
  parallel (1.21.0)
57
115
  parser (3.0.2.0)
@@ -60,11 +118,35 @@ GEM
60
118
  coderay (~> 1.1)
61
119
  method_source (~> 1.0)
62
120
  racc (1.6.0)
121
+ rack (2.2.3)
122
+ rack-test (1.1.0)
123
+ rack (>= 1.0, < 3)
124
+ rails (6.1.4.1)
125
+ actioncable (= 6.1.4.1)
126
+ actionmailbox (= 6.1.4.1)
127
+ actionmailer (= 6.1.4.1)
128
+ actionpack (= 6.1.4.1)
129
+ actiontext (= 6.1.4.1)
130
+ actionview (= 6.1.4.1)
131
+ activejob (= 6.1.4.1)
132
+ activemodel (= 6.1.4.1)
133
+ activerecord (= 6.1.4.1)
134
+ activestorage (= 6.1.4.1)
135
+ activesupport (= 6.1.4.1)
136
+ bundler (>= 1.15.0)
137
+ railties (= 6.1.4.1)
138
+ sprockets-rails (>= 2.0.0)
63
139
  rails-dom-testing (2.0.3)
64
140
  activesupport (>= 4.2.0)
65
141
  nokogiri (>= 1.6)
66
142
  rails-html-sanitizer (1.4.2)
67
143
  loofah (~> 2.3)
144
+ railties (6.1.4.1)
145
+ actionpack (= 6.1.4.1)
146
+ activesupport (= 6.1.4.1)
147
+ method_source
148
+ rake (>= 0.13)
149
+ thor (~> 1.0)
68
150
  rainbow (3.0.0)
69
151
  rake (13.0.6)
70
152
  regexp_parser (2.1.1)
@@ -101,9 +183,20 @@ GEM
101
183
  rubocop-rspec (2.6.0)
102
184
  rubocop (~> 1.19)
103
185
  ruby-progressbar (1.11.0)
186
+ sprockets (4.0.3)
187
+ concurrent-ruby (~> 1.0)
188
+ rack (> 1, < 3)
189
+ sprockets-rails (3.4.2)
190
+ actionpack (>= 5.2)
191
+ activesupport (>= 5.2)
192
+ sprockets (>= 3.0.0)
193
+ thor (1.2.1)
104
194
  tzinfo (2.0.4)
105
195
  concurrent-ruby (~> 1.0)
106
196
  unicode-display_width (2.1.0)
197
+ websocket-driver (0.7.5)
198
+ websocket-extensions (>= 0.1.0)
199
+ websocket-extensions (0.1.5)
107
200
  zeitwerk (2.5.1)
108
201
 
109
202
  PLATFORMS
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Add this line to your application's Gemfile:
6
6
 
7
7
  ```ruby
8
- gem 'ows-queries', '~> 0.1.5'
8
+ gem 'ows-queries', '~> 0.1.6'
9
9
  ```
10
10
 
11
11
  And then execute:
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class {{QUERY_NAME}}Query < ApplicationQuery
4
- def initialize
5
- @relation = {{MODEL_NAME}}.order(created_at: :desc)
4
+ def init_relation
5
+ @relation = {{MODEL_NAME}}.all
6
6
  end
7
7
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OWS
4
4
  module Queries
5
- VERSION = '0.1.5'
5
+ VERSION = '0.1.6'
6
6
  end
7
7
  end
data/lib/ows/queries.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'ows/queries/version'
4
4
  require 'active_support/core_ext/module'
5
5
 
6
- require 'kaminari'
6
+ require 'denki'
7
7
 
8
8
  module OWS
9
9
  module Queries
data/ows-queries.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
 
13
13
  spec.summary = 'Application Query for OWS'
14
14
  spec.description = 'Classes to encapsulate queries'
15
- spec.homepage = 'https://github.com/ows-apps/queries'
15
+ spec.homepage = 'https://github.com/owalmirneto/queries'
16
16
  spec.licenses = ['MIT']
17
17
 
18
18
  spec.required_ruby_version = '>= 2.7'
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.metadata['homepage_uri'] = spec.homepage
24
24
  spec.metadata['source_code_uri'] = spec.homepage
25
- spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGES"
25
+ spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/main/CHANGES"
26
26
  else
27
27
  raise 'RubyGems 2.0 or newer is required to protect against ' \
28
28
  'public gem pushes.'
@@ -41,5 +41,5 @@ Gem::Specification.new do |spec|
41
41
  spec.add_development_dependency 'rake', '~> 13.0'
42
42
  spec.add_development_dependency 'rspec', '~> 3.0'
43
43
 
44
- spec.add_dependency 'kaminari', '>= 0'
44
+ spec.add_dependency 'denki', '>= 0'
45
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ows-queries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walmir Neto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-08 00:00:00.000000000 Z
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: kaminari
56
+ name: denki
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -101,14 +101,14 @@ files:
101
101
  - lib/ows/queries.rb
102
102
  - lib/ows/queries/version.rb
103
103
  - ows-queries.gemspec
104
- homepage: https://github.com/ows-apps/queries
104
+ homepage: https://github.com/owalmirneto/queries
105
105
  licenses:
106
106
  - MIT
107
107
  metadata:
108
108
  allowed_push_host: https://rubygems.org
109
- homepage_uri: https://github.com/ows-apps/queries
110
- source_code_uri: https://github.com/ows-apps/queries
111
- changelog_uri: https://github.com/ows-apps/queries/blob/master/CHANGES
109
+ homepage_uri: https://github.com/owalmirneto/queries
110
+ source_code_uri: https://github.com/owalmirneto/queries
111
+ changelog_uri: https://github.com/owalmirneto/queries/blob/main/CHANGES
112
112
  post_install_message:
113
113
  rdoc_options: []
114
114
  require_paths:
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.2.28
127
+ rubygems_version: 3.3.8
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Application Query for OWS