pantheios-ruby 0.19.2 → 0.20.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/lib/pantheios/application_layer/stock_severity_levels.rb +3 -3
- data/lib/pantheios/core.rb +1 -1
- data/lib/pantheios/services/simple_console_log_service.rb +7 -6
- data/lib/pantheios/version.rb +3 -3
- data/test/unit/services/tc_simple_console_log_service.rb +3 -3
- metadata +12 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0fed1c5c659ac8b8c76d7df86bfda5c2296ded7
|
4
|
+
data.tar.gz: 5adbe87a9ba0beed3ba48556dbff1382f485aead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4acddc3af6038ea0b35ae2ee5b452207e67ad38d58e7a7931b8698255ef61bdf9d0acbd4087faef6458776d785b9dab3ddfca3db8e8a12c6832f220f5014068
|
7
|
+
data.tar.gz: 311db96480e2e007b6e848e41e1df4ff3d6ecd3670d3f022821d2baf145e7e9c0acffa8e3cf488fd4d77a356feac67d45addfff66268e994b67a16af37150cc5
|
@@ -7,7 +7,7 @@
|
|
7
7
|
# namespace module
|
8
8
|
#
|
9
9
|
# Created: 2nd April 2011
|
10
|
-
# Updated:
|
10
|
+
# Updated: 12th March 2018
|
11
11
|
#
|
12
12
|
# Home: http://github.com/synesissoftware/Pantheios-Ruby
|
13
13
|
#
|
@@ -71,8 +71,8 @@ module StockSeverityLevels
|
|
71
71
|
:debug2 => [ 10, 'Debug-2' ],
|
72
72
|
:debug3 => [ 11, 'Debug-3' ],
|
73
73
|
:debug4 => [ 12, 'Debug-4' ],
|
74
|
-
:trace => [
|
75
|
-
:benchmark => [
|
74
|
+
:trace => [ 15, 'Trace' ],
|
75
|
+
:benchmark => [ 16, 'Benchmark' ],
|
76
76
|
}
|
77
77
|
|
78
78
|
def self.create_level_keys m
|
data/lib/pantheios/core.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# ::Pantheios::Services::SimpleConsoleLogService class
|
7
7
|
#
|
8
8
|
# Created: 14th June 2015
|
9
|
-
# Updated:
|
9
|
+
# Updated: 12th March 2018
|
10
10
|
#
|
11
11
|
# Home: http://github.com/synesissoftware/Pantheios-Ruby
|
12
12
|
#
|
@@ -45,8 +45,6 @@
|
|
45
45
|
# ######################################################################## #
|
46
46
|
|
47
47
|
|
48
|
-
require 'pantheios/application_layer/stock_severity_levels'
|
49
|
-
|
50
48
|
=begin
|
51
49
|
=end
|
52
50
|
|
@@ -73,11 +71,14 @@ class SimpleConsoleLogService
|
|
73
71
|
stm.puts "#{pref}#{msg}"
|
74
72
|
end
|
75
73
|
|
74
|
+
# Overrideable method that determines which stream to write, based on a
|
75
|
+
# severity. This implementation always returns +$stderr+
|
76
|
+
#
|
77
|
+
# Overrides must return an object that supports the +puts(String)+
|
78
|
+
# method
|
76
79
|
def infer_stream sev
|
77
80
|
|
78
|
-
|
79
|
-
|
80
|
-
(sev.to_i < 6) ? $stderr : $stdout
|
81
|
+
$stderr
|
81
82
|
end
|
82
83
|
end
|
83
84
|
|
data/lib/pantheios/version.rb
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
# Purpose: Version for Pantheios.Ruby library
|
6
6
|
#
|
7
7
|
# Created: 2nd April 2011
|
8
|
-
# Updated:
|
8
|
+
# Updated: 11th April 2019
|
9
9
|
#
|
10
10
|
# Home: http://github.com/synesissoftware/Pantheios-Ruby
|
11
11
|
#
|
12
12
|
# Author: Matthew Wilson
|
13
13
|
#
|
14
|
-
# Copyright (c) 2011-
|
14
|
+
# Copyright (c) 2011-2019, Matthew Wilson and Synesis Software
|
15
15
|
# All rights reserved.
|
16
16
|
#
|
17
17
|
# Redistribution and use in source and binary forms, with or without
|
@@ -50,7 +50,7 @@
|
|
50
50
|
module Pantheios
|
51
51
|
|
52
52
|
# Current version of the Pantheios.Ruby library
|
53
|
-
VERSION = '0.
|
53
|
+
VERSION = '0.20.2'
|
54
54
|
|
55
55
|
private
|
56
56
|
VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
|
@@ -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,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pantheios-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.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: 2019-04-11 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.31'
|
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: '
|
26
|
+
version: '0.31'
|
33
27
|
description: |
|
34
28
|
A Ruby version of the popular C++ (and .NET) logging API library
|
35
29
|
email: matthew@synesis.com.au
|
@@ -80,9 +74,9 @@ files:
|
|
80
74
|
- test/unit/util/tc_thread_util.rb
|
81
75
|
- test/unit/util/tc_version_util.rb
|
82
76
|
- test/unit/util/ts_all.rb
|
83
|
-
homepage: http://
|
77
|
+
homepage: http://github.com/synesissoftware/Pantheios.Ruby
|
84
78
|
licenses:
|
85
|
-
-
|
79
|
+
- BSD-3-Clause
|
86
80
|
metadata: {}
|
87
81
|
post_install_message:
|
88
82
|
rdoc_options: []
|
@@ -90,19 +84,18 @@ require_paths:
|
|
90
84
|
- lib
|
91
85
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
86
|
requirements:
|
93
|
-
- -
|
87
|
+
- - ">="
|
94
88
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
89
|
+
version: '2'
|
96
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
91
|
requirements:
|
98
|
-
- -
|
92
|
+
- - ">="
|
99
93
|
- !ruby/object:Gem::Version
|
100
94
|
version: '0'
|
101
95
|
requirements: []
|
102
96
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.2.5
|
104
98
|
signing_key:
|
105
99
|
specification_version: 4
|
106
100
|
summary: Pantheios.Ruby
|
107
101
|
test_files: []
|
108
|
-
has_rdoc:
|