istox 0.2.17 → 0.2.20.pre.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: 2bb366596fe8f9d32466b7b2f128f3f254d4bf21d85860f19ccbb70aacf6d9d6
4
- data.tar.gz: 86347798b3f88ed5a0841d67724d8c6a31343022b7d97acee45183ff1e749168
3
+ metadata.gz: 1bc771f789c8a2910b4eff12d2bab54667d4e8e6fd225707b3696c4507cb5047
4
+ data.tar.gz: e042a160dd23f4b217beedf2cb0ca90f443ab76b3cc9b597ee66fbd2c8b81a70
5
5
  SHA512:
6
- metadata.gz: f23208024a894a2faf7ad5165b442b2f1c24e43943409fd0df84eeb87bcaefd3f2b5fd6871e27f20c2872a07be560ea115d009b6636f18ea916769c586f1a3fc
7
- data.tar.gz: c924441ebf62cb571fbfb2adf706bc0ac3f373e40a1b6878a3c3de437cd859db0c4dcebaec46e7b07b56ffc30305cec0c0df14e0ef4272978ffcd1dac720088b
6
+ metadata.gz: afdd192f8c949f0b0747d067b02f9299dd1797437697964dea7f46ff22bca26f7f56407bb8dff8a12475506eb2c386af1e3d134f592491f91822afc9808338f9
7
+ data.tar.gz: de82e3127b07f4fe2dcaa2aeddd02a28a5d69834db79030a9d4855cce2db086d0af6fc968ee30a2f239ab8389022085c8b7771f66808419a5893f1de498e1c4d
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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.2.15)
4
+ istox (0.2.20.pre.1)
5
5
  amazing_print
6
6
  awesome_print
7
7
  aws-sdk-sns (~> 1)
@@ -63,7 +63,7 @@ GEM
63
63
  i18n (>= 0.7, < 2)
64
64
  minitest (~> 5.1)
65
65
  tzinfo (~> 1.1)
66
- amazing_print (1.3.0)
66
+ amazing_print (1.4.0)
67
67
  amq-protocol (2.3.2)
68
68
  arel (9.0.0)
69
69
  awesome_print (1.9.2)
@@ -74,8 +74,8 @@ GEM
74
74
  aws-partitions (~> 1, >= 1.239.0)
75
75
  aws-sigv4 (~> 1.1)
76
76
  jmespath (~> 1.0)
77
- aws-sdk-sns (1.42.0)
78
- aws-sdk-core (~> 3, >= 3.112.0)
77
+ aws-sdk-sns (1.37.0)
78
+ aws-sdk-core (~> 3, >= 3.109.0)
79
79
  aws-sigv4 (~> 1.1)
80
80
  aws-sdk-xray (1.4.0)
81
81
  aws-sdk-core (~> 3)
@@ -112,7 +112,7 @@ GEM
112
112
  i18n (~> 0.5)
113
113
  fakeredis (0.7.0)
114
114
  redis (>= 3.2, < 5.0)
115
- faraday (1.5.1)
115
+ faraday (1.8.0)
116
116
  faraday-em_http (~> 1.0)
117
117
  faraday-em_synchrony (~> 1.0)
118
118
  faraday-excon (~> 1.1)
@@ -120,6 +120,7 @@ GEM
120
120
  faraday-net_http (~> 1.0)
121
121
  faraday-net_http_persistent (~> 1.1)
122
122
  faraday-patron (~> 1.0)
123
+ faraday-rack (~> 1.0)
123
124
  multipart-post (>= 1.2, < 3)
124
125
  ruby2_keywords (>= 0.0.4)
125
126
  faraday-em_http (1.0.0)
@@ -129,26 +130,27 @@ GEM
129
130
  faraday-net_http (1.0.1)
130
131
  faraday-net_http_persistent (1.2.0)
131
132
  faraday-patron (1.0.0)
132
- faraday_middleware (1.0.0)
133
+ faraday-rack (1.0.0)
134
+ faraday_middleware (1.2.0)
133
135
  faraday (~> 1.0)
134
- ffi (1.15.3)
136
+ ffi (1.15.4)
135
137
  globalid (0.4.2)
136
138
  activesupport (>= 4.2.0)
137
- google-protobuf (3.17.3-universal-darwin)
138
- googleapis-common-protos-types (1.1.0)
139
+ google-protobuf (3.19.1-x86_64-darwin)
140
+ googleapis-common-protos-types (1.3.0)
139
141
  google-protobuf (~> 3.14)
140
142
  graphlient (0.5.0)
141
143
  faraday (>= 1.0)
142
144
  faraday_middleware
143
145
  graphql-client
144
- graphql (1.12.14)
145
- graphql-client (0.16.0)
146
+ graphql (1.13.0)
147
+ graphql-client (0.17.0)
146
148
  activesupport (>= 3.0)
147
- graphql (~> 1.8)
148
- grpc (1.38.0-universal-darwin)
149
- google-protobuf (~> 3.15)
149
+ graphql (~> 1.10)
150
+ grpc (1.42.0-x86_64-darwin)
151
+ google-protobuf (~> 3.18)
150
152
  googleapis-common-protos-types (~> 1.0)
151
- grpc-tools (1.38.0)
153
+ grpc-tools (1.42.0)
152
154
  hashie (3.5.7)
153
155
  i18n (0.9.5)
154
156
  concurrent-ruby (~> 1.0)
@@ -178,7 +180,7 @@ GEM
178
180
  nokogiri (1.11.7)
179
181
  mini_portile2 (~> 2.5.0)
180
182
  racc (~> 1.4)
181
- oj (3.12.2)
183
+ oj (3.13.9)
182
184
  ougai (2.0.0)
183
185
  oj (~> 3.10)
184
186
  paranoia (2.4.3)
@@ -265,7 +267,7 @@ GEM
265
267
  rspec-support (~> 3.8.0)
266
268
  rspec-support (3.8.0)
267
269
  ruby2_keywords (0.0.5)
268
- set (1.0.1)
270
+ set (1.0.2)
269
271
  slop (4.9.1)
270
272
  sorted_set (1.0.3)
271
273
  rbtree
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -80,11 +80,11 @@ module Istox
80
80
  ::BigDecimal.new(x.to_s).round(digits).to_s
81
81
  end
82
82
 
83
- # rounding mechanism can be :down, :up, or :natural
83
+ # rounding mechanism can be 'down', 'up', or 'natural'
84
84
  # by default will be :down
85
- def round(x, digits, rounding_mechanism: :down)
86
- return round_up(x, digits) if rounding_mechanism == :up
87
- return round_half_up(x, digits) if rounding_mechanism == :natural
85
+ def round(x, digits, rounding_mechanism: 'down')
86
+ return round_up(x, digits) if rounding_mechanism == 'up'
87
+ return round_half_up(x, digits) if rounding_mechanism == 'natural'
88
88
 
89
89
  round_down(x, digits)
90
90
  end
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.17'.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.17
4
+ version: 0.2.20.pre.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
@@ -530,12 +530,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
530
530
  version: '0'
531
531
  required_rubygems_version: !ruby/object:Gem::Requirement
532
532
  requirements:
533
- - - ">="
533
+ - - ">"
534
534
  - !ruby/object:Gem::Version
535
- version: '0'
535
+ version: 1.3.1
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: []