onlyoffice_logger_helper 1.0.3 → 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: a5f72f0a40abbe0a580acf29123700f626d4575a3df12a441835a1fab00e5a24
4
- data.tar.gz: 86bd1828c4fc3ca3513d888b74794693657bf7fa766239ef28d6e8a214f4e5d2
3
+ metadata.gz: 6d2cb6c000ad7ea59d099e3f8a6fbb1ad62baaf04616d6e27b3eba8c689abf94
4
+ data.tar.gz: bc77efda0d6aba096ed94cf188b73c9e711ab3078876f797bd4c12e6a7a1a556
5
5
  SHA512:
6
- metadata.gz: 92f067e1bdfc48fb40f59ba8dfdb97719b37f8c84d2f3dcf70a898b171fe8cf563fbe8bae21fe45d274649ce13f25215ce2ab47b3b102d80cc01e1bbd4690a02
7
- data.tar.gz: 8953b53a1f2e9c8324ec63c22fbb42d518716a7994eeee9fcc1682a3bf5494d9ac057980639476f88a9f437b4a58a7ddaa5745e55281f08e8368225fe1d03fa7
6
+ metadata.gz: ede339960d3c5060264bb79616fdc56de99e9c98cbe97a58a90802851fe4db41a461a7f8bc4eb8a36d059d86b95383bc06819c247918e8215959f5b888ab235f
7
+ data.tar.gz: a5cd75b48880db08bbab6f3414d7ad9f5ea16a991ab2c4b30013d042227d6c90139e1a2e6c57cb14868b8d90941adaae2c99040f68ca478c09ab578bf618cf35
@@ -2,6 +2,11 @@
2
2
 
3
3
  # Module for output stuff in console
4
4
  module OnlyofficeLoggerHelper
5
+ # Green color code
6
+ GREEN_COLOR_CODE = 32
7
+ # Red color code
8
+ RED_COLOR_CODE = 31
9
+
5
10
  # Output log entry to terminal
6
11
  # @param entry [String] line to output
7
12
  # @param color_code [Integer] code of color
@@ -18,4 +23,28 @@ module OnlyofficeLoggerHelper
18
23
  def self.colorize(text, color_code)
19
24
  "\e[#{color_code}m#{text}\e[0m"
20
25
  end
26
+
27
+ # Colorize log in green
28
+ # @param entry [String] line to output
29
+ # @return [void]
30
+ def self.green_log(entry)
31
+ log(entry, GREEN_COLOR_CODE)
32
+ end
33
+
34
+ # Colorize log in red
35
+ # @param entry [String] line to output
36
+ # @return [void]
37
+ def self.red_log(entry)
38
+ log(entry, RED_COLOR_CODE)
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
21
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.0.3'
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.0.3
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -10,64 +10,148 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-05-29 00:00:00.000000000 Z
13
+ date: 2022-04-08 00:00:00.000000000 Z
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: overcommit
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
29
+ - !ruby/object:Gem::Dependency
30
+ name: rake
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: '13'
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '13'
43
+ - !ruby/object:Gem::Dependency
44
+ name: rspec
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '3'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '3'
15
57
  - !ruby/object:Gem::Dependency
16
58
  name: rubocop
17
59
  requirement: !ruby/object:Gem::Requirement
18
60
  requirements:
19
- - - '='
61
+ - - "~>"
20
62
  - !ruby/object:Gem::Version
21
- version: 0.84.0
63
+ version: '1'
22
64
  type: :development
23
65
  prerelease: false
24
66
  version_requirements: !ruby/object:Gem::Requirement
25
67
  requirements:
26
- - - '='
68
+ - - "~>"
27
69
  - !ruby/object:Gem::Version
28
- version: 0.84.0
70
+ version: '1'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rubocop-packaging
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
29
85
  - !ruby/object:Gem::Dependency
30
86
  name: rubocop-performance
31
87
  requirement: !ruby/object:Gem::Requirement
32
88
  requirements:
33
- - - '='
89
+ - - "~>"
34
90
  - !ruby/object:Gem::Version
35
- version: 1.6.0
91
+ version: '1'
36
92
  type: :development
37
93
  prerelease: false
38
94
  version_requirements: !ruby/object:Gem::Requirement
39
95
  requirements:
40
- - - '='
96
+ - - "~>"
41
97
  - !ruby/object:Gem::Version
42
- version: 1.6.0
98
+ version: '1'
43
99
  - !ruby/object:Gem::Dependency
44
100
  name: rubocop-rake
45
101
  requirement: !ruby/object:Gem::Requirement
46
102
  requirements:
47
- - - '='
103
+ - - "~>"
48
104
  - !ruby/object:Gem::Version
49
- version: 0.5.1
105
+ version: '0'
50
106
  type: :development
51
107
  prerelease: false
52
108
  version_requirements: !ruby/object:Gem::Requirement
53
109
  requirements:
54
- - - '='
110
+ - - "~>"
55
111
  - !ruby/object:Gem::Version
56
- version: 0.5.1
112
+ version: '0'
57
113
  - !ruby/object:Gem::Dependency
58
114
  name: rubocop-rspec
59
115
  requirement: !ruby/object:Gem::Requirement
60
116
  requirements:
61
- - - '='
117
+ - - "~>"
62
118
  - !ruby/object:Gem::Version
63
- version: 1.39.0
119
+ version: '2'
64
120
  type: :development
65
121
  prerelease: false
66
122
  version_requirements: !ruby/object:Gem::Requirement
67
123
  requirements:
68
- - - '='
124
+ - - "~>"
69
125
  - !ruby/object:Gem::Version
70
- version: 1.39.0
126
+ version: '2'
127
+ - !ruby/object:Gem::Dependency
128
+ name: simplecov
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - "~>"
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ - !ruby/object:Gem::Dependency
142
+ name: yard
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: 0.9.20
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: 0.9.20
71
155
  description: Simple logging gem for ONLYOFFICE projects. Used in QA
72
156
  email:
73
157
  - shockwavenn@gmail.com
@@ -79,15 +163,16 @@ files:
79
163
  - lib/onlyoffice_logger_helper.rb
80
164
  - lib/onlyoffice_logger_helper/logger_helper.rb
81
165
  - lib/onlyoffice_logger_helper/version.rb
82
- homepage: https://github.com/onlyoffice-testing-robot/onlyoffice_logger_helper
166
+ homepage: https://github.com/ONLYOFFICE-QA/onlyoffice_logger_helper
83
167
  licenses:
84
168
  - AGPL-3.0
85
169
  metadata:
86
- bug_tracker_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_logger_helper/issues
87
- changelog_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_logger_helper/blob/master/CHANGELOG.md
170
+ bug_tracker_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_logger_helper/issues
171
+ changelog_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_logger_helper/blob/master/CHANGELOG.md
88
172
  documentation_uri: https://www.rubydoc.info/gems/onlyoffice_logger_helper
89
- homepage_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_logger_helper
90
- source_code_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_logger_helper
173
+ homepage_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_logger_helper
174
+ source_code_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_logger_helper
175
+ rubygems_mfa_required: 'true'
91
176
  post_install_message:
92
177
  rdoc_options: []
93
178
  require_paths:
@@ -96,14 +181,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
181
  requirements:
97
182
  - - ">="
98
183
  - !ruby/object:Gem::Version
99
- version: '0'
184
+ version: '2.5'
100
185
  required_rubygems_version: !ruby/object:Gem::Requirement
101
186
  requirements:
102
187
  - - ">="
103
188
  - !ruby/object:Gem::Version
104
189
  version: '0'
105
190
  requirements: []
106
- rubygems_version: 3.1.2
191
+ rubygems_version: 3.3.11
107
192
  signing_key:
108
193
  specification_version: 4
109
194
  summary: Simple logging gem for ONLYOFFICE projects