onlyoffice_logger_helper 1.0.2 → 1.0.3

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: 163811f7d6879b48858931479db18fee96efb29b9e0fa995c618b7f31419c5f1
4
- data.tar.gz: 79f43ff558e8625309bf595bd1e488a7c2e858b0d4c552baacf31aa132816931
3
+ metadata.gz: a5f72f0a40abbe0a580acf29123700f626d4575a3df12a441835a1fab00e5a24
4
+ data.tar.gz: 86bd1828c4fc3ca3513d888b74794693657bf7fa766239ef28d6e8a214f4e5d2
5
5
  SHA512:
6
- metadata.gz: 86402f56633adbbcdaea60304122dbf8d4a1bcef88b89c4cda60312e6e07e9393edcd66a252e1fe0050c60ec1ddb0f2be415ef5d0c4807fb99e9b81109db20a6
7
- data.tar.gz: e5c6d21f5b803b4195d75feca84e53114596849b60ccc12a82e22d5fdf9292febeb1e5fb7361f59b22185bd8489f1d6ca379d74679f99fda00336b7ea59c2913
6
+ metadata.gz: 92f067e1bdfc48fb40f59ba8dfdb97719b37f8c84d2f3dcf70a898b171fe8cf563fbe8bae21fe45d274649ce13f25215ce2ab47b3b102d80cc01e1bbd4690a02
7
+ data.tar.gz: 8953b53a1f2e9c8324ec63c22fbb42d518716a7994eeee9fcc1682a3bf5494d9ac057980639476f88a9f437b4a58a7ddaa5745e55281f08e8368225fe1d03fa7
@@ -2,6 +2,9 @@
2
2
 
3
3
  # Module for output stuff in console
4
4
  module OnlyofficeLoggerHelper
5
+ # Output log entry to terminal
6
+ # @param entry [String] line to output
7
+ # @param color_code [Integer] code of color
5
8
  def self.log(entry, color_code = nil)
6
9
  caller_name = caller(1..1).first.to_s[/\w+.rb/].chomp('.rb')
7
10
  time_stamp = Time.now.strftime('%T/%d.%m.%y')
@@ -9,6 +12,9 @@ module OnlyofficeLoggerHelper
9
12
  color_code ? puts(colorize(message, color_code)) : puts(message)
10
13
  end
11
14
 
15
+ # Add color code to text
16
+ # @param text [String] text to add color
17
+ # @param color_code [Integer] code of color
12
18
  def self.colorize(text, color_code)
13
19
  "\e[#{color_code}m#{text}\e[0m"
14
20
  end
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnlyofficeLoggerHelper
4
+ # @return [String] name of gem
4
5
  NAME = 'onlyoffice_logger_helper'
5
- VERSION = '1.0.2'
6
+ # @return [String] version of gem
7
+ VERSION = '1.0.3'
6
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -10,22 +10,64 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-03-17 00:00:00.000000000 Z
13
+ date: 2020-05-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rake
16
+ name: rubocop
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: '13.0'
21
+ version: 0.84.0
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: '13.0'
28
+ version: 0.84.0
29
+ - !ruby/object:Gem::Dependency
30
+ name: rubocop-performance
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - '='
34
+ - !ruby/object:Gem::Version
35
+ version: 1.6.0
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '='
41
+ - !ruby/object:Gem::Version
42
+ version: 1.6.0
43
+ - !ruby/object:Gem::Dependency
44
+ name: rubocop-rake
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - '='
48
+ - !ruby/object:Gem::Version
49
+ version: 0.5.1
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '='
55
+ - !ruby/object:Gem::Version
56
+ version: 0.5.1
57
+ - !ruby/object:Gem::Dependency
58
+ name: rubocop-rspec
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '='
62
+ - !ruby/object:Gem::Version
63
+ version: 1.39.0
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '='
69
+ - !ruby/object:Gem::Version
70
+ version: 1.39.0
29
71
  description: Simple logging gem for ONLYOFFICE projects. Used in QA
30
72
  email:
31
73
  - shockwavenn@gmail.com
@@ -61,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
103
  - !ruby/object:Gem::Version
62
104
  version: '0'
63
105
  requirements: []
64
- rubygems_version: 3.0.6
106
+ rubygems_version: 3.1.2
65
107
  signing_key:
66
108
  specification_version: 4
67
109
  summary: Simple logging gem for ONLYOFFICE projects