buffalo-logs 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0cf764bb34766a0454a4626ead97db51034b9d04
4
- data.tar.gz: 3da1011bc824c44985a71f54e9c46a84750e6dc4
3
+ metadata.gz: 6a669884de26051898983e766739b6c64514c9d7
4
+ data.tar.gz: 4a6e398d414ab579543cba086ae8194a1cdbd7b0
5
5
  SHA512:
6
- metadata.gz: 53acd0a5d45d9f0e3af40a59c3f149f4256f64e1a3e74846a3b85eb2d4882cd0ac0b54b538f03f1e74e2929391591cb37a3c820788b50d5fa8b0634152b58e95
7
- data.tar.gz: 25dea9819672bfb3a7a266db6d459d1047365b7ec53d40575739e031f26a53ee2d91a983099c248f024eead6d4ffd73b17d25d65a93f8631ad6bb6a6698ffd35
6
+ metadata.gz: 8ad235d814abfdbc7ba820dd12ed64433fa7990064ee39b4e7ec6bed78949c0b5d14ddb3427733e04717bee53646f1b6d7fa4f5691b6c1a1243a527580515b0d
7
+ data.tar.gz: 989e7f5fb4fc4652c4296cfe74ee394e7dc80afda3b7704f74b3816f33cca75c1da45a3686e51c457ffbc4d8ce2745ce0e88219cbfb3a95228db4266a88eca74
Binary file
@@ -1,5 +1,5 @@
1
1
  module Buffalo
2
2
  module Logs
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
data/lib/buffalo/logs.rb CHANGED
@@ -4,19 +4,15 @@ require "logger"
4
4
  module Buffalo
5
5
  module Logs
6
6
  class Extraction < Logger
7
- LOG_LEVEL = %i(debug info warn error fatal unknown)
8
- LOG_LEVEL_SPECIAL = %i(error fatal unknown)
7
+ LOG_LEVEL = %i(debug info warn error fatal unknown).freeze
8
+ LOG_LEVEL_SPECIAL = %i(error fatal unknown).freeze
9
9
 
10
10
  def initialize path
11
11
  @logger_file = {}
12
12
  @special_logger_file = {}
13
13
  @logger_stdout = {}
14
14
  @path = path
15
- end
16
-
17
- attr_reader :logger_file, :logger_stdout, :special_logger_file, :path
18
15
 
19
- def process
20
16
  LOG_LEVEL.each do |level|
21
17
  @logger_file[level] = Logger.new "#{path}/#{Rails.env}.log"
22
18
  @logger_stdout[level] = ActiveSupport::Logger.new STDOUT
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buffalo-logs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - oTranQuangTrung
@@ -70,6 +70,7 @@ files:
70
70
  - bin/console
71
71
  - bin/setup
72
72
  - buffalo-logs-0.0.1.gem
73
+ - buffalo-logs-0.0.2.gem
73
74
  - buffalo-logs.gemspec
74
75
  - lib/buffalo/logs.rb
75
76
  - lib/buffalo/logs/version.rb