pantheios-ruby 0.22.0.1 → 0.22.0.2

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: ad32385bd72202625243bd53a0bb8016939ccc38
4
- data.tar.gz: a96bedc8fa2604cf562ce2daa376ceaf929414c4
3
+ metadata.gz: 44b4b84aba54a30288da8506f1db3d62b520f625
4
+ data.tar.gz: 65e38782fc02b4c2bc45bfb474432e9ac913e466
5
5
  SHA512:
6
- metadata.gz: da221cb043bf8a6639497a913e219328e4c68abc53fc73cd76b1e80b0483a07dbecc11c5a36bb8bb2cccd5cbc5c6407c3fc3161e81a12651c46f2e6b9270aa74
7
- data.tar.gz: 31182596ce8e65269a7ac3d64ca510d7430874208de1c81e94fce4db8722f30f52dcc0fabfe9792ee70194ab6ea2d7bea49cd739f68424be74fc5543d9eaa169
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
+
@@ -5,7 +5,7 @@
5
5
  # Purpose: Version for Pantheios.Ruby library
6
6
  #
7
7
  # Created: 2nd April 2011
8
- # Updated: 4th June 2020
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.1'
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.1
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-04 00:00:00.000000000 Z
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