scout-essentials 1.0.0 → 1.1.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/VERSION +1 -1
- data/lib/scout/log.rb +8 -4
- data/scout-essentials.gemspec +3 -3
- data/test/scout/resource/test_software.rb +3 -0
- data/test/scout/resource/test_util.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a848d630e2eeffecaf053c2cd4a531e526edd32117fafd71c35833abdb41cc3b
|
4
|
+
data.tar.gz: 8b18cd5f7c4819814aee3edbabcb88975b7cb635ae2e0b7c0fc87cf37fc3bd6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52ef4a13bd1950d21dcad55fa0b5811521388b276ba11908f88e1e2bd13cd9658320591eb83aa689c7d62f724104c28706449c38e1dd79877882268893fe3cea
|
7
|
+
data.tar.gz: b412f4e6b21198aaaaaabdb87908e9e5222fab838d32f4666d33e336b497b23990ac5db1e7236cc89c0a6b79fab4d9435c21f0d5202537620d1bcb66089c136a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/lib/scout/log.rb
CHANGED
@@ -12,9 +12,9 @@ module Log
|
|
12
12
|
end
|
13
13
|
|
14
14
|
SEVERITY_NAMES ||= begin
|
15
|
-
names = %w(DEBUG LOW MEDIUM HIGH INFO WARN ERROR NONE
|
15
|
+
names = %w(DEBUG LOW MEDIUM HIGH INFO WARN ERROR NONE)
|
16
16
|
names.each_with_index do |name,i|
|
17
|
-
|
17
|
+
Log.const_set name, i
|
18
18
|
end
|
19
19
|
names
|
20
20
|
end
|
@@ -41,14 +41,18 @@ module Log
|
|
41
41
|
self.severity = MEDIUM
|
42
42
|
when 'HIGH'
|
43
43
|
self.severity = HIGH
|
44
|
+
when 'WARN'
|
45
|
+
self.severity = WARN
|
46
|
+
when 'ERROR'
|
47
|
+
self.severity = ERROR
|
48
|
+
when 'NONE'
|
49
|
+
self.severity = NONE
|
44
50
|
when nil
|
45
51
|
self.severity = default_severity
|
46
52
|
else
|
47
53
|
self.severity = default_severity
|
48
54
|
end
|
49
55
|
|
50
|
-
|
51
|
-
|
52
56
|
def self.tty_size
|
53
57
|
@@tty_size ||= Log.ignore_stderr do
|
54
58
|
size = begin
|
data/scout-essentials.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: scout-essentials 1.
|
5
|
+
# stub: scout-essentials 1.1.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "scout-essentials".freeze
|
9
|
-
s.version = "1.
|
9
|
+
s.version = "1.1.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Miguel Vazquez".freeze]
|
14
|
-
s.date = "2023-07-
|
14
|
+
s.date = "2023-07-06"
|
15
15
|
s.description = "Things a scout can use anywhere".freeze
|
16
16
|
s.email = "mikisvaz@gmail.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -1,6 +1,9 @@
|
|
1
1
|
require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
|
2
2
|
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')
|
3
3
|
|
4
|
+
require 'scout/resource'
|
5
|
+
require 'scout/resource/scout'
|
6
|
+
|
4
7
|
class TestResourceSoftware < Test::Unit::TestCase
|
5
8
|
module TestResource
|
6
9
|
extend Resource
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
|
2
2
|
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')
|
3
3
|
|
4
|
+
require 'scout/resource'
|
4
5
|
require 'scout/resource/scout'
|
5
6
|
|
6
7
|
class TestResourceUtil < Test::Unit::TestCase
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout-essentials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|