eco-helpers 2.7.18 → 2.7.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -1
- data/eco-helpers.gemspec +2 -2
- data/lib/eco/api/common/version_patches/exception.rb +10 -4
- data/lib/eco/api/microcases/people_search.rb +2 -0
- data/lib/eco/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3980da36d6d236bdd2ff26448cd639af2bc415717d0c1cdabfc9cc13b6ca9996
|
4
|
+
data.tar.gz: d9d1b60a3ff632a244974c6109416ccfa7feee6fd7ce81327596d11367bd3edb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff36802a7a6c40dd68bce5389d33b3b525d3233f45e2be91bceac1cbf7678aa70bd89bffd7fa936489c5a57f141c19b7f2f45e0a116c85d2d37a5b03f8830786
|
7
|
+
data.tar.gz: 94a5170171d53c8ca580d8baf85dc370ce7d8e37eb06e1ee79f7bb6947417ca7f6438e2530da5f8ead77c80a52fb27ed086232895a26b089bf0cd285e1f38489
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
## [2.7.
|
5
|
+
## [2.7.21] - 2024-07-xx
|
6
6
|
|
7
7
|
### Added
|
8
8
|
|
@@ -10,6 +10,22 @@ All notable changes to this project will be documented in this file.
|
|
10
10
|
|
11
11
|
### Fixed
|
12
12
|
|
13
|
+
## [2.7.20] - 2024-07-11
|
14
|
+
|
15
|
+
### Added
|
16
|
+
|
17
|
+
### Changed
|
18
|
+
|
19
|
+
### Fixed
|
20
|
+
|
21
|
+
- Patch on exception
|
22
|
+
|
23
|
+
## [2.7.19] - 2024-07-10
|
24
|
+
|
25
|
+
### Fixed
|
26
|
+
|
27
|
+
- Patch on exception
|
28
|
+
|
13
29
|
## [2.7.18] - 2024-07-01
|
14
30
|
|
15
31
|
### Changed
|
data/eco-helpers.gemspec
CHANGED
@@ -35,13 +35,13 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_dependency 'amatch', '>= 0.4.1', '< 0.5'
|
36
36
|
spec.add_dependency 'aws-sdk-s3', '>= 1.142.0', '< 2'
|
37
37
|
spec.add_dependency 'aws-sdk-ses', '>= 1.58.0', '< 2'
|
38
|
-
spec.add_dependency 'bcrypt_pbkdf', '
|
38
|
+
spec.add_dependency 'bcrypt_pbkdf', '~> 1.0'
|
39
39
|
spec.add_dependency 'docx', '>= 0.8.0', '< 0.9'
|
40
40
|
spec.add_dependency 'dotenv', '>= 2.8.1', '< 3'
|
41
41
|
spec.add_dependency 'ecoportal-api', '>= 0.9.8', '< 0.10'
|
42
42
|
spec.add_dependency 'ecoportal-api-graphql', '>= 0.3.18', '< 0.4'
|
43
43
|
spec.add_dependency 'ecoportal-api-v2', '>= 1.1.8', '< 1.2'
|
44
|
-
spec.add_dependency 'ed25519',
|
44
|
+
spec.add_dependency 'ed25519', '~> 1.2'
|
45
45
|
spec.add_dependency 'fast_excel', '>= 0.5.0', '< 0.6'
|
46
46
|
spec.add_dependency 'fuzzy_match', '>= 2.1.0', '< 2.2'
|
47
47
|
spec.add_dependency 'hashdiff', '>= 1.1.0', '< 1.2'
|
@@ -1,11 +1,17 @@
|
|
1
1
|
class ::Exception
|
2
2
|
def patch_full_message(trace_count: -1)
|
3
|
-
msg = []
|
4
3
|
tracing = backtrace || []
|
5
|
-
|
4
|
+
first_ln = tracing[0]
|
5
|
+
tracing = tracing[1..trace_count]
|
6
|
+
tracing = tracing[1..30] if instance_of?(SystemStackError)
|
6
7
|
tracing ||= []
|
7
|
-
|
8
|
-
|
8
|
+
|
9
|
+
msg = []
|
10
|
+
msg << "\n#{first_ln} \n#{message} (#{self.class})"
|
11
|
+
tracing.each_with_index do |bt, i|
|
12
|
+
msg << "#{" " * 8}#{i + 1}: from #{bt}"
|
13
|
+
end
|
14
|
+
|
9
15
|
msg.join("\n")
|
10
16
|
rescue StandardError => e
|
11
17
|
puts "Something is wrong with 'patch_full_message': #{e}"
|
@@ -13,6 +13,8 @@ module Eco
|
|
13
13
|
def people_search(data, options: {}, silent: true) # rubocop:disable Metrics/AbcSize
|
14
14
|
session.logger.info("Going to api get #{data.length} entries...")
|
15
15
|
|
16
|
+
silent = silent && data.count <= 500
|
17
|
+
|
16
18
|
start = Time.now
|
17
19
|
people = session.batch.search(data, silent: silent).then do |status|
|
18
20
|
secs = (Time.now - start).round(3)
|
data/lib/eco/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eco-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oscar Segura
|
@@ -202,14 +202,14 @@ dependencies:
|
|
202
202
|
name: bcrypt_pbkdf
|
203
203
|
requirement: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
|
-
- - "
|
205
|
+
- - "~>"
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '1.0'
|
208
208
|
type: :runtime
|
209
209
|
prerelease: false
|
210
210
|
version_requirements: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
|
-
- - "
|
212
|
+
- - "~>"
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '1.0'
|
215
215
|
- !ruby/object:Gem::Dependency
|
@@ -316,14 +316,14 @@ dependencies:
|
|
316
316
|
name: ed25519
|
317
317
|
requirement: !ruby/object:Gem::Requirement
|
318
318
|
requirements:
|
319
|
-
- - "
|
319
|
+
- - "~>"
|
320
320
|
- !ruby/object:Gem::Version
|
321
321
|
version: '1.2'
|
322
322
|
type: :runtime
|
323
323
|
prerelease: false
|
324
324
|
version_requirements: !ruby/object:Gem::Requirement
|
325
325
|
requirements:
|
326
|
-
- - "
|
326
|
+
- - "~>"
|
327
327
|
- !ruby/object:Gem::Version
|
328
328
|
version: '1.2'
|
329
329
|
- !ruby/object:Gem::Dependency
|