pantheios-ruby 0.22.0.1 → 0.22.0.2
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 +4 -4
- data/examples/threshold_front_end.rb +48 -0
- data/lib/pantheios/version.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b4b84aba54a30288da8506f1db3d62b520f625
|
4
|
+
data.tar.gz: 65e38782fc02b4c2bc45bfb474432e9ac913e466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1e1a0530c83902190f82492b6d6115236f3f56800e0074d246183b8c3938d97a361807b668e668e804f41a25e3dc3f51403f26cea0a44a6aa7ec9c24f7ac83c
|
7
|
+
data.tar.gz: 232b60f62072eae4244c0cd8c737589f2bfbf9be27edbeb06a7e1c50214675dc714e77e0bcc3b91f650cb03297fe262a28f99d20de0bcd6a81b50ffd33077532
|
@@ -0,0 +1,48 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
|
3
|
+
$:.unshift File.join(File.dirname(__FILE__), *(['..'] * 1), 'lib')
|
4
|
+
|
5
|
+
# requires (0)
|
6
|
+
|
7
|
+
require 'pantheios/globals'
|
8
|
+
require 'pantheios/front_ends/threshold_front_end'
|
9
|
+
require 'pantheios/services/coloured_console_log_service'
|
10
|
+
|
11
|
+
# globals
|
12
|
+
|
13
|
+
Pantheios::Globals.INITIAL_SERVICE_CLASSES = [ Pantheios::Services::ColouredConsoleLogService ]
|
14
|
+
Pantheios::Globals.MAIN_THREAD_NAME = [ Thread.current, 'main' ]
|
15
|
+
Pantheios::Globals.PROCESS_NAME = :script_stem
|
16
|
+
|
17
|
+
# requires (1)
|
18
|
+
|
19
|
+
require 'pantheios'
|
20
|
+
|
21
|
+
# includes
|
22
|
+
|
23
|
+
include ::Pantheios
|
24
|
+
|
25
|
+
# constants
|
26
|
+
|
27
|
+
LEVELS = %i{ violation alert critical failure warning notice informational debug0 debug1 debug2 debug3 debug4 debug5 trace }
|
28
|
+
|
29
|
+
# command-line
|
30
|
+
|
31
|
+
abort "USAGE: #$0 <threshold>" unless 1 == ARGV.size
|
32
|
+
|
33
|
+
threshold = ARGV[0].to_sym
|
34
|
+
|
35
|
+
puts "threshold: :#{threshold}"
|
36
|
+
|
37
|
+
Pantheios::Core.set_front_end Pantheios::FrontEnds::ThresholdFrontEnd.new threshold
|
38
|
+
|
39
|
+
# main
|
40
|
+
|
41
|
+
LEVELS.each do |level|
|
42
|
+
|
43
|
+
log(level, "logging level #{level}")
|
44
|
+
end
|
45
|
+
|
46
|
+
# ############################## end of file ############################# #
|
47
|
+
|
48
|
+
|
data/lib/pantheios/version.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# Purpose: Version for Pantheios.Ruby library
|
6
6
|
#
|
7
7
|
# Created: 2nd April 2011
|
8
|
-
# Updated:
|
8
|
+
# Updated: 5th June 2020
|
9
9
|
#
|
10
10
|
# Home: http://github.com/synesissoftware/Pantheios-Ruby
|
11
11
|
#
|
@@ -51,7 +51,7 @@
|
|
51
51
|
module Pantheios
|
52
52
|
|
53
53
|
# Current version of the Pantheios.Ruby library
|
54
|
-
VERSION = '0.22.0.
|
54
|
+
VERSION = '0.22.0.2'
|
55
55
|
|
56
56
|
private
|
57
57
|
VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pantheios-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.22.0.
|
4
|
+
version: 0.22.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xqsr3
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- examples/multiple_modules.rb
|
40
40
|
- examples/simple_logging.md
|
41
41
|
- examples/simple_logging.rb
|
42
|
+
- examples/threshold_front_end.rb
|
42
43
|
- lib/pantheios.rb
|
43
44
|
- lib/pantheios/api.rb
|
44
45
|
- lib/pantheios/application_layer.rb
|