ntq_tools 0.5.1 → 0.5.2

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
2
  SHA256:
3
- metadata.gz: e852b85c98ac5a88f421e947d452f27c454dd0c6642b90513d312ac0f79bc7b9
4
- data.tar.gz: eb9e04c44a0ed9b046b119eb1a4e6dde0ef57887c7d077687dfb458b5d2300f3
3
+ metadata.gz: 31adc13868bf234dece4f45a91e3f163ef8c9a72fe433a67e890d34efce043e2
4
+ data.tar.gz: b88556d68a75735690128006616bb37e30fec9ae3bbdf39640a3b90b1281d616
5
5
  SHA512:
6
- metadata.gz: 159a98d24dcf9298112f3db9c8e2d399a0a7ebc68e66a1957f6288775825533a40c2559576e502ec6688a9dec20d6d97beb383f8155897d8d1f6e90d7c6b97ae
7
- data.tar.gz: 359ab06d15629daa95a49775838a2e8a5b0a68a5fcc76a260322840e28896c3dfd9f267ebaacbeece3a35d40e613dfcdec4e76a1ce85273c9d2e89e34fdd2db2
6
+ metadata.gz: 5810e19e2b39d8002f5281d242d6dac226fdb20b3b5ad48fb01c51108ee3ea77fdcaf7ee3d6dd5e4431853941f876723e0f95877374937f0d1adc97b380ae17b
7
+ data.tar.gz: c7183009c3c6d2bbe3a784c2bdf13bbb71524a4b6824c29117e2e82c5492fd9f13bb20b0a6731228f5ed7ec7702f6f38a47855936d154fea87b43f4583bc1706
@@ -242,7 +242,7 @@ module #{context_name}
242
242
  class Search#{class_name}
243
243
  include Interactor::Organizer
244
244
 
245
- organize Get#{class_name}, PaginateRecords
245
+ organize Get#{plural_name.camelcase}, PaginateRecords
246
246
  end
247
247
  end
248
248
  FILE
@@ -269,7 +269,7 @@ end
269
269
  argument :per_page, Integer, required: false
270
270
  end
271
271
  def #{plural_name}(search: {}, page: 1, per_page: 25)
272
- ctx = ::#{plural_name.camelcase}::Search#{singular_name.camelcase}.call(search: search, pagination_params: { page: page, per_page: per_page })
272
+ ctx = ::#{plural_name.camelcase}::Search#{plural_name.camelcase}.call(search: search, pagination_params: { page: page, per_page: per_page })
273
273
  {
274
274
  #{plural_name}: ctx.records,
275
275
  pagination: ctx.pagination
@@ -1,3 +1,3 @@
1
1
  module NtqTools
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ntq_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-25 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails