pantheios-ruby 0.19.2 → 0.20.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: c08cdda0f4237044c0b2681d2b1a5cf47ff2315f
4
- data.tar.gz: b06b7ac4f43eead0c66d1253b72198ae1b63b28a
3
+ metadata.gz: d0fed1c5c659ac8b8c76d7df86bfda5c2296ded7
4
+ data.tar.gz: 5adbe87a9ba0beed3ba48556dbff1382f485aead
5
5
  SHA512:
6
- metadata.gz: 8650e0cad32dcb92b16e677da6e7a09def7302c52465460fe431890827d074cd11d009ba22d06f85a2f0de9b5003f902882085ffc206233dd47dda0de9e65e69
7
- data.tar.gz: 3ccbdfd84bf0b5ba7ada60754bd40e3a4361637da3f0c07e8ee225fd4fe1125c26f8bffcddbd8bcab58bd1ed37a97b1c02fd99a68a3e8eb9e2e5090e1ed5e940
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: 6th January 2018
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 => [ 13, 'Trace' ],
75
- :benchmark => [ 14, 'Benchmark' ],
74
+ :trace => [ 15, 'Trace' ],
75
+ :benchmark => [ 16, 'Benchmark' ],
76
76
  }
77
77
 
78
78
  def self.create_level_keys m
@@ -506,7 +506,7 @@ module Core
506
506
 
507
507
  if block_given?
508
508
 
509
- br = get_block_value_ &block
509
+ br = get_block_value_(&block)
510
510
 
511
511
  if ApplicationLayer::ParamNameList === br
512
512
 
@@ -6,7 +6,7 @@
6
6
  # ::Pantheios::Services::SimpleConsoleLogService class
7
7
  #
8
8
  # Created: 14th June 2015
9
- # Updated: 6th January 2018
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
- sev = ::Pantheios::ApplicationLayer::StockSeverityLevels::STOCK_SEVERITY_LEVEL_VALUES[sev] if ::Symbol === sev
79
-
80
- (sev.to_i < 6) ? $stderr : $stdout
81
+ $stderr
81
82
  end
82
83
  end
83
84
 
@@ -5,13 +5,13 @@
5
5
  # Purpose: Version for Pantheios.Ruby library
6
6
  #
7
7
  # Created: 2nd April 2011
8
- # Updated: 8th February 2018
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-2018, Matthew Wilson and Synesis Software
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.19.2'
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
- 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,35 +1,29 @@
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.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: 2018-02-08 00:00:00.000000000 Z
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.21.1
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: '1.0'
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://www.pantheios.org/
77
+ homepage: http://github.com/synesissoftware/Pantheios.Ruby
84
78
  licenses:
85
- - Modified BSD
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: '0'
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.4.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: