smartcloud 0.0.180 → 0.0.181

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: d99f52b901768f9b2f528e164dd7b73193639062faca90bf85afe5c39530ea59
4
- data.tar.gz: ba422d333a7bdbd6b4462afd54316dc5e76b7bdab5ecd1c22924dca5204e509e
3
+ metadata.gz: b95dd47f68ddf685c8c56f1c63187b4cb5f8892b368bf9cf7329691afa368628
4
+ data.tar.gz: 271ce00ce642aa5b8034e51aa7eeb35631c90f16093bc4a604629e1e19d2d81b
5
5
  SHA512:
6
- metadata.gz: 44700ca49b1c8bfae9b8c58db309cb48229905ea62c8d4305d0fad3c8c5d306ba244caa44ca5df2f0059240452aa0faadcaf6ff604572607c520e35a120d66ed
7
- data.tar.gz: dbec0cdc6106064832ba60dfdf3528e48aa6e6d3293b5ca1b079c94cbfeb76a761c1378b8bcfa235de33aaa3313ad71ffcfb6d618a60c06c262a8c83c245ebf8
6
+ metadata.gz: cd72ec4f0b625698b36e59445bb26847fc7122d2fd341cddd20ca00726dad0711889b50707cbf7ce07218b6780f2b79bca73333348ffe9007cc9ce460833395d
7
+ data.tar.gz: f82a4aa1fa7fd4086e86b06051b47355a69996cf7275fa1c11e0c7ffdd1426372c52c193e8209977d7f8069e9c40e1687ae3a5c5912d99772bcc619ba62f16d8
@@ -85,13 +85,11 @@ module Smartcloud
85
85
  def set_logger_formatter_arrow
86
86
  logger.formatter = proc do |severity, datetime, progname, message|
87
87
  severity_text = (severity == 'INFO') ? "" : "#{severity}: "
88
-
89
- SYMBOL_DEBUG = "\u{1f527}"
90
- SYMBOL_INFO = "\u{1f604}"
91
- SYMBOL_WARN = "\u{2753}"
92
- SYMBOL_ERROR, SYMBOL_FATAL = "\u{274c}"
93
- symbol_text = (message == "") ? "" : Object.const_get("SYMBOL_#{severity}")
94
-
88
+ severity_symbols = { "DEBUG" => "\u{1f527}", "INFO" => "\u{1f604}",
89
+ "WARN" => "\u{2757}", "ERROR" => "\u{274c}", "FATAL" => "\u{274c}",
90
+ "UNKNOWN" => "\u{2753}"
91
+ }
92
+ symbol_text = (message == "") ? "" : severity_symbols[severity]
95
93
  "\t\t\t\t#{symbol_text} #{severity_text}#{message}\n"
96
94
  end
97
95
  end
@@ -221,13 +221,11 @@ module Smartcloud
221
221
  def self.prereceive_app(appname, username, oldrev, newrev, refname)
222
222
  logger.formatter = proc do |severity, datetime, progname, message|
223
223
  severity_text = (severity == 'INFO') ? "" : "#{severity}: "
224
-
225
- SYMBOL_DEBUG = "\u{1f527}"
226
- SYMBOL_INFO = "\u{1f604}"
227
- SYMBOL_WARN = "\u{2753}"
228
- SYMBOL_ERROR, SYMBOL_FATAL = "\u{274c}"
229
- symbol_text = (message == "") ? "" : Object.const_get("SYMBOL_#{severity}")
230
-
224
+ severity_symbols = { "DEBUG" => "\u{1f527}", "INFO" => "\u{1f604}",
225
+ "WARN" => "\u{2757}", "ERROR" => "\u{274c}", "FATAL" => "\u{274c}",
226
+ "UNKNOWN" => "\u{2753}"
227
+ }
228
+ symbol_text = (message == "") ? "" : severity_symbols[severity]
231
229
  "\t\t\t\t#{symbol_text} #{severity_text}#{message}\n"
232
230
  end
233
231
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.180
4
+ version: 0.0.181
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard