pantheios-ruby 0.18.1 → 0.21.0
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/LICENSE +31 -0
- data/README.md +5 -0
- data/examples/multiple_modules.md +204 -0
- data/examples/multiple_modules.rb +132 -0
- data/examples/simple_logging.md +65 -0
- data/examples/simple_logging.rb +35 -0
- data/lib/pantheios/application_layer/stock_severity_levels.rb +79 -22
- data/lib/pantheios/core.rb +9 -8
- data/lib/pantheios/front_ends/threshold_front_end.rb +135 -0
- data/lib/pantheios/globals.rb +14 -6
- data/lib/pantheios/services.rb +3 -0
- data/lib/pantheios/services/multiplexing_log_service.rb +239 -0
- data/lib/pantheios/services/null_log_service.rb +2 -2
- data/lib/pantheios/services/simple_console_log_service.rb +7 -6
- data/lib/pantheios/util/reflection_util.rb +2 -0
- data/lib/pantheios/util/thread_util.rb +1 -0
- data/lib/pantheios/version.rb +4 -3
- data/test/scratch/multiplexing_log_service.rb +109 -0
- data/test/unit/application_layer/tc_stock_severity_levels.rb +67 -0
- data/test/unit/front_ends/tc_threshold_front_end.rb +102 -0
- data/test/unit/front_ends/ts_all.rb +12 -0
- data/test/unit/services/tc_multiplexing_log_service.rb +144 -0
- data/test/unit/services/tc_simple_console_log_service.rb +3 -3
- metadata +28 -21
@@ -96,7 +96,7 @@ class Test_SimpleConsoleLogservice < Test::Unit::TestCase
|
|
96
96
|
stdout_s = $stdout.string
|
97
97
|
stderr_s = $stderr.string
|
98
98
|
|
99
|
-
|
99
|
+
assert_empty stdout_s, "SimpleConsoleLogService has written to $stdout!"
|
100
100
|
assert_not_empty stderr_s, "SimpleConsoleLogService has not written to $stderr!"
|
101
101
|
ensure
|
102
102
|
|
@@ -123,8 +123,8 @@ class Test_SimpleConsoleLogservice < Test::Unit::TestCase
|
|
123
123
|
|
124
124
|
r = self.class.log_and_get_streams sev, 'msg'
|
125
125
|
|
126
|
-
|
127
|
-
|
126
|
+
assert_empty r[0], "SimpleConsoleLogService wrote to $stdout for severity #{sev}"
|
127
|
+
assert_not_empty r[1], "SimpleConsoleLogService failed to write to $stderr for severity #{sev}"
|
128
128
|
end
|
129
129
|
end
|
130
130
|
end
|
metadata
CHANGED
@@ -1,49 +1,53 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pantheios-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xqsr3
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
20
|
-
- - <
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '1.0'
|
19
|
+
version: '0.36'
|
23
20
|
type: :development
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.21.1
|
30
|
-
- - <
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
33
|
-
description:
|
34
|
-
|
26
|
+
version: '0.36'
|
27
|
+
description: 'A Ruby version of the popular C++ (and .NET) logging API library
|
28
|
+
|
29
|
+
'
|
35
30
|
email: matthew@synesis.com.au
|
36
31
|
executables: []
|
37
32
|
extensions: []
|
38
33
|
extra_rdoc_files: []
|
39
34
|
files:
|
35
|
+
- LICENSE
|
36
|
+
- README.md
|
37
|
+
- examples/multiple_modules.md
|
38
|
+
- examples/multiple_modules.rb
|
39
|
+
- examples/simple_logging.md
|
40
|
+
- examples/simple_logging.rb
|
40
41
|
- lib/pantheios.rb
|
41
42
|
- lib/pantheios/api.rb
|
42
43
|
- lib/pantheios/application_layer.rb
|
43
44
|
- lib/pantheios/application_layer/param_name_list.rb
|
44
45
|
- lib/pantheios/application_layer/stock_severity_levels.rb
|
45
46
|
- lib/pantheios/core.rb
|
47
|
+
- lib/pantheios/front_ends/threshold_front_end.rb
|
46
48
|
- lib/pantheios/globals.rb
|
49
|
+
- lib/pantheios/services.rb
|
50
|
+
- lib/pantheios/services/multiplexing_log_service.rb
|
47
51
|
- lib/pantheios/services/null_log_service.rb
|
48
52
|
- lib/pantheios/services/simple_console_log_service.rb
|
49
53
|
- lib/pantheios/services/simple_file_log_service.rb
|
@@ -60,11 +64,15 @@ files:
|
|
60
64
|
- test/scratch/log_rolling_by_period_daily.rb
|
61
65
|
- test/scratch/log_rolling_by_size_and_depth.rb
|
62
66
|
- test/scratch/log_using_blocks.rb
|
67
|
+
- test/scratch/multiplexing_log_service.rb
|
63
68
|
- test/unit/application_layer/tc_param_name_list.rb
|
64
69
|
- test/unit/application_layer/tc_stock_severity_levels.rb
|
65
70
|
- test/unit/application_layer/ts_all.rb
|
66
71
|
- test/unit/core/tc_core_1.rb
|
67
72
|
- test/unit/core/ts_all.rb
|
73
|
+
- test/unit/front_ends/tc_threshold_front_end.rb
|
74
|
+
- test/unit/front_ends/ts_all.rb
|
75
|
+
- test/unit/services/tc_multiplexing_log_service.rb
|
68
76
|
- test/unit/services/tc_null_log_service.rb
|
69
77
|
- test/unit/services/tc_simple_console_log_service.rb
|
70
78
|
- test/unit/services/tc_simple_file_log_service.rb
|
@@ -76,9 +84,9 @@ files:
|
|
76
84
|
- test/unit/util/tc_thread_util.rb
|
77
85
|
- test/unit/util/tc_version_util.rb
|
78
86
|
- test/unit/util/ts_all.rb
|
79
|
-
homepage: http://
|
87
|
+
homepage: http://github.com/synesissoftware/Pantheios.Ruby
|
80
88
|
licenses:
|
81
|
-
-
|
89
|
+
- BSD-3-Clause
|
82
90
|
metadata: {}
|
83
91
|
post_install_message:
|
84
92
|
rdoc_options: []
|
@@ -86,19 +94,18 @@ require_paths:
|
|
86
94
|
- lib
|
87
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
96
|
requirements:
|
89
|
-
- -
|
97
|
+
- - ">="
|
90
98
|
- !ruby/object:Gem::Version
|
91
|
-
version: '
|
99
|
+
version: '2'
|
92
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
101
|
requirements:
|
94
|
-
- -
|
102
|
+
- - ">="
|
95
103
|
- !ruby/object:Gem::Version
|
96
104
|
version: '0'
|
97
105
|
requirements: []
|
98
106
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.5.2.3
|
100
108
|
signing_key:
|
101
109
|
specification_version: 4
|
102
110
|
summary: Pantheios.Ruby
|
103
111
|
test_files: []
|
104
|
-
has_rdoc:
|