pantheios-ruby 0.19.2 → 0.22.0.1

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +31 -0
  3. data/README.md +5 -0
  4. data/examples/coloured_console_log_service.rb +37 -0
  5. data/examples/multiple_modules.md +204 -0
  6. data/examples/multiple_modules.rb +132 -0
  7. data/examples/simple_logging.md +65 -0
  8. data/examples/simple_logging.rb +37 -0
  9. data/lib/pantheios.rb +3 -2
  10. data/lib/pantheios/api.rb +23 -6
  11. data/lib/pantheios/application_layer.rb +2 -1
  12. data/lib/pantheios/application_layer/param_name_list.rb +9 -0
  13. data/lib/pantheios/application_layer/stock_severity_levels.rb +99 -31
  14. data/lib/pantheios/core.rb +56 -25
  15. data/lib/pantheios/front_ends/threshold_front_end.rb +148 -0
  16. data/lib/pantheios/globals.rb +20 -9
  17. data/lib/pantheios/services/coloured_console_log_service.rb +204 -0
  18. data/lib/pantheios/services/common/console.rb +92 -0
  19. data/lib/pantheios/services/multiplexing_log_service.rb +42 -3
  20. data/lib/pantheios/services/null_log_service.rb +3 -2
  21. data/lib/pantheios/services/simple_console_log_service.rb +10 -8
  22. data/lib/pantheios/services/simple_file_log_service.rb +3 -4
  23. data/lib/pantheios/services/standard_log_service_adapter.rb +3 -2
  24. data/lib/pantheios/util/process_util.rb +3 -3
  25. data/lib/pantheios/util/reflection_util.rb +3 -0
  26. data/lib/pantheios/util/thread_util.rb +2 -0
  27. data/lib/pantheios/util/version_util.rb +1 -0
  28. data/lib/pantheios/version.rb +4 -3
  29. data/test/unit/application_layer/tc_stock_severity_levels.rb +67 -0
  30. data/test/unit/front_ends/tc_threshold_front_end.rb +102 -0
  31. data/test/unit/front_ends/ts_all.rb +12 -0
  32. data/test/unit/services/tc_multiplexing_log_service.rb +4 -4
  33. data/test/unit/services/tc_simple_console_log_service.rb +3 -3
  34. metadata +27 -21
@@ -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 11, svc_0.items.size
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 11, svc_0.items.size
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 11, svc_0.items.size
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 11, svc_0.items.size
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
@@ -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
- assert_not_empty stdout_s, "SimpleConsoleLogService has not written to $stdout!"
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
- assert_not_empty r[0], "SimpleConsoleLogService failed to write to $stdout for severity #{sev}"
127
- assert_empty r[1], "SimpleConsoleLogService wrote unexpectedly to $stderr for severity #{sev}"
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,50 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pantheios-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.2
4
+ version: 0.22.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wilson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2020-06-04 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.21.1
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: '1.0'
33
- description: |
34
- A Ruby version of the popular C++ (and .NET) logging API library
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/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
40
42
  - lib/pantheios.rb
41
43
  - lib/pantheios/api.rb
42
44
  - lib/pantheios/application_layer.rb
43
45
  - lib/pantheios/application_layer/param_name_list.rb
44
46
  - lib/pantheios/application_layer/stock_severity_levels.rb
45
47
  - lib/pantheios/core.rb
48
+ - lib/pantheios/front_ends/threshold_front_end.rb
46
49
  - lib/pantheios/globals.rb
47
50
  - lib/pantheios/services.rb
51
+ - lib/pantheios/services/coloured_console_log_service.rb
52
+ - lib/pantheios/services/common/console.rb
48
53
  - lib/pantheios/services/multiplexing_log_service.rb
49
54
  - lib/pantheios/services/null_log_service.rb
50
55
  - lib/pantheios/services/simple_console_log_service.rb
@@ -68,6 +73,8 @@ files:
68
73
  - test/unit/application_layer/ts_all.rb
69
74
  - test/unit/core/tc_core_1.rb
70
75
  - test/unit/core/ts_all.rb
76
+ - test/unit/front_ends/tc_threshold_front_end.rb
77
+ - test/unit/front_ends/ts_all.rb
71
78
  - test/unit/services/tc_multiplexing_log_service.rb
72
79
  - test/unit/services/tc_null_log_service.rb
73
80
  - test/unit/services/tc_simple_console_log_service.rb
@@ -80,9 +87,9 @@ files:
80
87
  - test/unit/util/tc_thread_util.rb
81
88
  - test/unit/util/tc_version_util.rb
82
89
  - test/unit/util/ts_all.rb
83
- homepage: http://www.pantheios.org/
90
+ homepage: http://github.com/synesissoftware/Pantheios.Ruby
84
91
  licenses:
85
- - Modified BSD
92
+ - BSD-3-Clause
86
93
  metadata: {}
87
94
  post_install_message:
88
95
  rdoc_options: []
@@ -90,19 +97,18 @@ require_paths:
90
97
  - lib
91
98
  required_ruby_version: !ruby/object:Gem::Requirement
92
99
  requirements:
93
- - - '>='
100
+ - - ">="
94
101
  - !ruby/object:Gem::Version
95
- version: '0'
102
+ version: '2'
96
103
  required_rubygems_version: !ruby/object:Gem::Requirement
97
104
  requirements:
98
- - - '>='
105
+ - - ">="
99
106
  - !ruby/object:Gem::Version
100
107
  version: '0'
101
108
  requirements: []
102
109
  rubyforge_project:
103
- rubygems_version: 2.4.2
110
+ rubygems_version: 2.5.2.3
104
111
  signing_key:
105
112
  specification_version: 4
106
113
  summary: Pantheios.Ruby
107
114
  test_files: []
108
- has_rdoc: