onlyoffice_logger_helper 1.2.0 → 1.3.0

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: 4a5ea7b7c854fb4b7384eeb75a63ed196266fc8322bd36de75f7b70857f9fddd
4
- data.tar.gz: 1519140ed4d45d3f60027048b95a163427c9168963c56c8ae64cd7adb7189cfe
3
+ metadata.gz: 6d2cb6c000ad7ea59d099e3f8a6fbb1ad62baaf04616d6e27b3eba8c689abf94
4
+ data.tar.gz: bc77efda0d6aba096ed94cf188b73c9e711ab3078876f797bd4c12e6a7a1a556
5
5
  SHA512:
6
- metadata.gz: 711cdd59588011d03b0ed76119459db7fb58458e72a86c87249eb514cf3c1a9da87e77083b7c2448504bc6efcc732758a40ae9f6fb3c2ad8ce348c78c579696e
7
- data.tar.gz: 70ecfe115742a096bad5d500aef2aac3c528d6c6a4a6cb465f19ed46e6689c93d62910fa5dc3379c6eecb8ebffdae29e6a65203d72afc3f461979bb2c3a01da7
6
+ metadata.gz: ede339960d3c5060264bb79616fdc56de99e9c98cbe97a58a90802851fe4db41a461a7f8bc4eb8a36d059d86b95383bc06819c247918e8215959f5b888ab235f
7
+ data.tar.gz: a5cd75b48880db08bbab6f3414d7ad9f5ea16a991ab2c4b30013d042227d6c90139e1a2e6c57cb14868b8d90941adaae2c99040f68ca478c09ab578bf618cf35
@@ -37,4 +37,14 @@ module OnlyofficeLoggerHelper
37
37
  def self.red_log(entry)
38
38
  log(entry, RED_COLOR_CODE)
39
39
  end
40
+
41
+ # Sleep for some time and output log
42
+ # @param [String] reason message to output
43
+ # @param [Integer] seconds time to sleep
44
+ # @return [void]
45
+ def self.sleep_and_log(reason, seconds)
46
+ log("Start sleeping for #{seconds} seconds because of `#{reason}`")
47
+ sleep(seconds)
48
+ log("Stopped sleeping for #{seconds} seconds because of `#{reason}`")
49
+ end
40
50
  end
@@ -4,5 +4,5 @@ module OnlyofficeLoggerHelper
4
4
  # @return [String] name of gem
5
5
  NAME = 'onlyoffice_logger_helper'
6
6
  # @return [String] version of gem
7
- VERSION = '1.2.0'
7
+ VERSION = '1.3.0'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_logger_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-09-08 00:00:00.000000000 Z
13
+ date: 2022-04-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: overcommit
@@ -172,6 +172,7 @@ metadata:
172
172
  documentation_uri: https://www.rubydoc.info/gems/onlyoffice_logger_helper
173
173
  homepage_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_logger_helper
174
174
  source_code_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_logger_helper
175
+ rubygems_mfa_required: 'true'
175
176
  post_install_message:
176
177
  rdoc_options: []
177
178
  require_paths:
@@ -187,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
188
  - !ruby/object:Gem::Version
188
189
  version: '0'
189
190
  requirements: []
190
- rubygems_version: 3.2.26
191
+ rubygems_version: 3.3.11
191
192
  signing_key:
192
193
  specification_version: 4
193
194
  summary: Simple logging gem for ONLYOFFICE projects