istox 0.2.18 → 0.2.20.1

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: e744a42229dc85a16fba77b03ac23b602c990e887468b26cad8d1918027bd590
4
- data.tar.gz: 36919909f41cfc6dc4c49f8c2295e2712d654220c05675136231746daf78fca3
3
+ metadata.gz: '087b18a78bcee83586782746d2dbc8030fa7fb9ca89eae97285ad819531d16b5'
4
+ data.tar.gz: 5744c4a9bb367ec95411b4c3b7df43b88dd04c53120f09c0a2426c3276b1daca
5
5
  SHA512:
6
- metadata.gz: 42c9c0b13d5ab66674162cd23248c0211f3101727118fd658464ca1d3513bdee25bb81679675186043e4e75b8cb98e344406a4d2fb5d73de1730ff41c15e2f72
7
- data.tar.gz: cc87304361314598728938cf1649f7afd1436944fa8dba2f7e581084eecc8899f70f881519bd52a3fe2b4f19df7f8a2cbec71f4c56654503ecbc4c1ff44cab95
6
+ metadata.gz: 121e8b426bd8c565c4554c9ae75839f9fa427dc1e7d518d8b3723f81ad1fa25eb7cba114d556bb3850774875ed003a405a9c199b7c360559f214952ee6139b98
7
+ data.tar.gz: 6c1885067ce6d978f992ed47a07622cd4b41f98c2afe0d4afeee3f96226882364ebbb20ca77ab2ca63c56a13dd082f251ff3dbce80b5384cdd9403d724eea966
data/.gitignore CHANGED
File without changes
data/.rubocop.yml CHANGED
File without changes
data/.solargraph.yml CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -24,6 +24,14 @@ module Istox
24
24
  db: 6
25
25
  ))
26
26
  end
27
+
28
+ # for send_grid email templates cache
29
+ def sendgrid_email_templates
30
+ @sendgrid_email_templates ||= Redis::Namespace.new(:sendgrid_email_templates, redis: Redis.new(
31
+ url: ENV['REDIS_URL'] || 'redis://127.0.0.1:16379',
32
+ db: 6
33
+ ))
34
+ end
27
35
  end
28
36
  end
29
37
  end
File without changes
@@ -32,7 +32,7 @@ module Istox
32
32
  current_page = 1 if current_page <= 0
33
33
 
34
34
  offset = (current_page - 1) * meta.limit
35
- total = query.count
35
+ total = query.count(:all)
36
36
  data = query.limit(meta.limit).offset(offset)
37
37
 
38
38
  page_count = (total + meta.limit - 1) / meta.limit
File without changes
File without changes
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.2.18'.freeze
2
+ VERSION = '0.2.20.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-25 00:00:00.000000000 Z
11
+ date: 2022-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amazing_print
@@ -519,7 +519,7 @@ files:
519
519
  homepage: http://www.abc.com
520
520
  licenses: []
521
521
  metadata: {}
522
- post_install_message:
522
+ post_install_message:
523
523
  rdoc_options: []
524
524
  require_paths:
525
525
  - lib
@@ -534,8 +534,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
534
534
  - !ruby/object:Gem::Version
535
535
  version: '0'
536
536
  requirements: []
537
- rubygems_version: 3.2.11
538
- signing_key:
537
+ rubygems_version: 3.0.8
538
+ signing_key:
539
539
  specification_version: 4
540
540
  summary: istox backend shared gem
541
541
  test_files: []