onlyoffice_logger_helper 0.0.1 → 1.0.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
  SHA1:
3
- metadata.gz: 3cf509c817303b8a12c9aafbfe88ed79d4b78d0d
4
- data.tar.gz: 19add56f107f21270f96b0eb9c1744bd89e2d4a3
3
+ metadata.gz: e7fbaf05d7ebedfc363344e744ec26d60c4b2588
4
+ data.tar.gz: 6ea64b064670d7eeae6bbb2049c904184a84962a
5
5
  SHA512:
6
- metadata.gz: bd5857892fcfa2f60e99ed7680ab372500fb88b64523edfde17c55f2e5ee519381869572fc85a222ef870370aa0e41d74c94a62c85a5472e9ea6d4fa8249b47a
7
- data.tar.gz: df8942d19c451f0bfd9bbb0d412fd1f75da9d65381038914475ed00639fc06c23869714ae249ac9e58e6fac35b30afb248f95cc7fd89a0c7b411eccfdfc8a7fe
6
+ metadata.gz: 34767acb230e540ff27dfb0d1d9e95f142850dce271a75b012fa98ece50b999af88c5e5d00cd9c6c0ca1e5d2685a51c4b4da7d9d42787ac850c2a4fa1288dc23
7
+ data.tar.gz: 56146cbc95bf3f9d4c146995b3053a18fd66470cee4eb4b9fb9087155d442e18f57ab5e728170747e60339c4f7fdd57c89a20b8321907d9b0d6c65b394662f0f
@@ -1,16 +1,13 @@
1
- require 'logger'
1
+ # Module for output stuff in console
2
2
  module OnlyofficeLoggerHelper
3
- # Class for output stuff to stdout
4
- class LoggerHelper
5
- def self.print_to_log(entry, color_code = nil)
6
- caller_name = caller[0].to_s[/\w+.rb/].chomp('.rb')
7
- time_stamp = Time.now.strftime('%T/%d.%m.%y')
8
- message = "#{time_stamp} [#{caller_name}] #{entry}"
9
- color_code ? puts(colorize(message, color_code)) : puts(message)
10
- end
3
+ def self.log(entry, color_code = nil)
4
+ caller_name = caller[0].to_s[/\w+.rb/].chomp('.rb')
5
+ time_stamp = Time.now.strftime('%T/%d.%m.%y')
6
+ message = "#{time_stamp} [#{caller_name}] #{entry}"
7
+ color_code ? puts(colorize(message, color_code)) : puts(message)
8
+ end
11
9
 
12
- def self.colorize(text, color_code)
13
- "\e[#{color_code}m#{text}\e[0m"
14
- end
10
+ def self.colorize(text, color_code)
11
+ "\e[#{color_code}m#{text}\e[0m"
15
12
  end
16
13
  end
@@ -1,3 +1,3 @@
1
1
  module OnlyofficeLoggerHelper
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  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: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE