docgen-adapter 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docgen_adapter.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cb33e5d97725883c6f3da7276f352479e35b14230df58e236c0f9224f18a304
|
4
|
+
data.tar.gz: 17ccfea53c99afd551743ccdc96b3a5049f68d4425c82482fefe7839dbf4a72c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcb6ce720aaa4bcf6293bb42bd253216631ae8833d245e049cabe1e7e70ac48d41f81afa343cbba61eac8d84e92d28bca8c417bd4ba229e51e17da5441e4e085
|
7
|
+
data.tar.gz: d0905ac35e15375f87285128b933918b47e2d582c4941bfced0759d86590b4e65c502fb4d2a785a72328bf8e897a9fe35e238708f5c317ea7a8a6a2947a5167e
|
data/lib/docgen_adapter.rb
CHANGED
@@ -30,6 +30,7 @@ class DocgenAdapter
|
|
30
30
|
# отправка сообщения с заданием
|
31
31
|
redis.publish('TASKS', @task_params)
|
32
32
|
|
33
|
+
# ожидание
|
33
34
|
sleep(0.5)
|
34
35
|
|
35
36
|
# отправка файлов при наличии
|
@@ -59,7 +60,7 @@ class DocgenAdapter
|
|
59
60
|
|
60
61
|
# формирование названия генерируемого файла
|
61
62
|
def filename
|
62
|
-
@filename ||= "#{Dir.mktmpdir}/#{document_class.metadata_opts[:filename]}.#{@type}"
|
63
|
+
@filename ||= "#{Dir.mktmpdir}/#{Time.now.to_i}_#{document_class.metadata_opts[:filename]}.#{@type}"
|
63
64
|
end
|
64
65
|
|
65
66
|
# соединение с микросервисом через Redis
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docgen-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Павел Бабин
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|