scout-essentials 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: a6c2774d7bf55f2336b53d962d7f471a18d415bf4c8734c32abe669d0214d6c8
4
- data.tar.gz: ded38f35d4277f86af691c301113c464587093db4925294bdb46c76c9ff16b3b
3
+ metadata.gz: a848d630e2eeffecaf053c2cd4a531e526edd32117fafd71c35833abdb41cc3b
4
+ data.tar.gz: 8b18cd5f7c4819814aee3edbabcb88975b7cb635ae2e0b7c0fc87cf37fc3bd6d
5
5
  SHA512:
6
- metadata.gz: '0128a95c09d025382f373b3aef9ceaba29845eccac7270bfcf9ac9513b90a2d22b5fc3a096a3e0f516748c03e201d91f6969a79c6fd2fcecb2000ab2eae9f6bc'
7
- data.tar.gz: a76999c366fc0e18c95d2874c19067472eeb6801199afb276a07887f94ab2cbe4b0ad20a457d475264cd4bca01ad8efa5bac167ebfa5b3ac20e6f074c0a6304d
6
+ metadata.gz: 52ef4a13bd1950d21dcad55fa0b5811521388b276ba11908f88e1e2bd13cd9658320591eb83aa689c7d62f724104c28706449c38e1dd79877882268893fe3cea
7
+ data.tar.gz: b412f4e6b21198aaaaaabdb87908e9e5222fab838d32f4666d33e336b497b23990ac5db1e7236cc89c0a6b79fab4d9435c21f0d5202537620d1bcb66089c136a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
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
- eval "#{ name } = #{ i }"
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
@@ -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.0.0 ruby lib
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.0.0"
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-04"
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.0.0
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-04 00:00:00.000000000 Z
11
+ date: 2023-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda