pantheios-ruby 0.20.2 → 0.22.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +31 -0
- data/README.md +5 -0
- data/examples/coloured_console_log_service.rb +37 -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 +37 -0
- data/examples/threshold_front_end.rb +48 -0
- data/lib/pantheios.rb +3 -2
- data/lib/pantheios/api.rb +23 -6
- data/lib/pantheios/application_layer.rb +2 -1
- data/lib/pantheios/application_layer/param_name_list.rb +9 -0
- data/lib/pantheios/application_layer/stock_severity_levels.rb +99 -31
- data/lib/pantheios/core.rb +55 -24
- data/lib/pantheios/front_ends/threshold_front_end.rb +148 -0
- data/lib/pantheios/globals.rb +20 -9
- data/lib/pantheios/services/coloured_console_log_service.rb +204 -0
- data/lib/pantheios/services/common/console.rb +92 -0
- data/lib/pantheios/services/multiplexing_log_service.rb +42 -3
- data/lib/pantheios/services/null_log_service.rb +3 -2
- data/lib/pantheios/services/simple_console_log_service.rb +4 -3
- data/lib/pantheios/services/simple_file_log_service.rb +3 -4
- data/lib/pantheios/services/standard_log_service_adapter.rb +3 -2
- data/lib/pantheios/util/process_util.rb +3 -3
- data/lib/pantheios/util/reflection_util.rb +3 -0
- data/lib/pantheios/util/thread_util.rb +2 -0
- data/lib/pantheios/util/version_util.rb +1 -0
- data/lib/pantheios/version.rb +3 -2
- 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 +4 -4
- metadata +21 -7
@@ -0,0 +1,12 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# executes all other tests
|
4
|
+
|
5
|
+
this_dir = File.expand_path(File.dirname(__FILE__))
|
6
|
+
|
7
|
+
# all tc_*rb in current directory
|
8
|
+
Dir[File.join(this_dir, 'tc_*rb')].each { |file| require file }
|
9
|
+
|
10
|
+
# all ts_*rb in immediate sub-directories
|
11
|
+
Dir[File.join(this_dir, '*', 'ts_*rb')].each { |file| require file }
|
12
|
+
|
@@ -89,7 +89,7 @@ class Test_MultiplexingLogservice < Test::Unit::TestCase
|
|
89
89
|
|
90
90
|
log_multiple_statements svc
|
91
91
|
|
92
|
-
assert_equal
|
92
|
+
assert_equal 12, svc_0.items.size
|
93
93
|
assert_equal 4, svc_1.items.size
|
94
94
|
assert_equal 6, svc_2.items.size
|
95
95
|
end
|
@@ -104,7 +104,7 @@ class Test_MultiplexingLogservice < Test::Unit::TestCase
|
|
104
104
|
|
105
105
|
log_multiple_statements svc
|
106
106
|
|
107
|
-
assert_equal
|
107
|
+
assert_equal 12, svc_0.items.size
|
108
108
|
assert_equal 4, svc_1.items.size
|
109
109
|
assert_equal 6, svc_2.items.size
|
110
110
|
end
|
@@ -119,7 +119,7 @@ class Test_MultiplexingLogservice < Test::Unit::TestCase
|
|
119
119
|
|
120
120
|
log_multiple_statements svc
|
121
121
|
|
122
|
-
assert_equal
|
122
|
+
assert_equal 12, svc_0.items.size
|
123
123
|
assert_equal 4, svc_1.items.size
|
124
124
|
assert_equal 6, svc_2.items.size
|
125
125
|
end
|
@@ -134,7 +134,7 @@ class Test_MultiplexingLogservice < Test::Unit::TestCase
|
|
134
134
|
|
135
135
|
log_multiple_statements svc
|
136
136
|
|
137
|
-
assert_equal
|
137
|
+
assert_equal 12, svc_0.items.size
|
138
138
|
assert_equal 4, svc_1.items.size
|
139
139
|
assert_equal 6, svc_2.items.size
|
140
140
|
end
|
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.
|
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:
|
11
|
+
date: 2020-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xqsr3
|
@@ -16,29 +16,41 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.36'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
27
|
-
description:
|
28
|
-
|
26
|
+
version: '0.36'
|
27
|
+
description: 'A Ruby version of the popular C++ (and .NET) logging API library
|
28
|
+
|
29
|
+
'
|
29
30
|
email: matthew@synesis.com.au
|
30
31
|
executables: []
|
31
32
|
extensions: []
|
32
33
|
extra_rdoc_files: []
|
33
34
|
files:
|
35
|
+
- LICENSE
|
36
|
+
- README.md
|
37
|
+
- examples/coloured_console_log_service.rb
|
38
|
+
- examples/multiple_modules.md
|
39
|
+
- examples/multiple_modules.rb
|
40
|
+
- examples/simple_logging.md
|
41
|
+
- examples/simple_logging.rb
|
42
|
+
- examples/threshold_front_end.rb
|
34
43
|
- lib/pantheios.rb
|
35
44
|
- lib/pantheios/api.rb
|
36
45
|
- lib/pantheios/application_layer.rb
|
37
46
|
- lib/pantheios/application_layer/param_name_list.rb
|
38
47
|
- lib/pantheios/application_layer/stock_severity_levels.rb
|
39
48
|
- lib/pantheios/core.rb
|
49
|
+
- lib/pantheios/front_ends/threshold_front_end.rb
|
40
50
|
- lib/pantheios/globals.rb
|
41
51
|
- lib/pantheios/services.rb
|
52
|
+
- lib/pantheios/services/coloured_console_log_service.rb
|
53
|
+
- lib/pantheios/services/common/console.rb
|
42
54
|
- lib/pantheios/services/multiplexing_log_service.rb
|
43
55
|
- lib/pantheios/services/null_log_service.rb
|
44
56
|
- lib/pantheios/services/simple_console_log_service.rb
|
@@ -62,6 +74,8 @@ files:
|
|
62
74
|
- test/unit/application_layer/ts_all.rb
|
63
75
|
- test/unit/core/tc_core_1.rb
|
64
76
|
- test/unit/core/ts_all.rb
|
77
|
+
- test/unit/front_ends/tc_threshold_front_end.rb
|
78
|
+
- test/unit/front_ends/ts_all.rb
|
65
79
|
- test/unit/services/tc_multiplexing_log_service.rb
|
66
80
|
- test/unit/services/tc_null_log_service.rb
|
67
81
|
- test/unit/services/tc_simple_console_log_service.rb
|
@@ -94,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
108
|
version: '0'
|
95
109
|
requirements: []
|
96
110
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.2.
|
111
|
+
rubygems_version: 2.5.2.3
|
98
112
|
signing_key:
|
99
113
|
specification_version: 4
|
100
114
|
summary: Pantheios.Ruby
|