checkson 1.0 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b76e9bdf83ad9a6c86e628c5bdabcac86d07be2ec46c4466ba0f3968c6e28bd
4
- data.tar.gz: 82abf35550e9975fb3541601ab9726bc753e84ccdc309d7f9acf1a38c2f6a88b
3
+ metadata.gz: 487225f9e27bad53cab683c9175d1912624b59a44d93826e8bc660a1c88e1576
4
+ data.tar.gz: eb7a7cb7275ef5f1aa0adbda12db5198bb3e4ad324e7096669bcadece62eb749
5
5
  SHA512:
6
- metadata.gz: 754b5f0c8b01185b4d0c0b938b8d6a6cdae4b4309fee27b6bb825fb9d541fa0d6fbdfe894920579b35d29eb08655eb8f745f0f84a8116347e0396d734e07e69e
7
- data.tar.gz: 8dd7bd04ea760424349955e6560b34242080d0ebdbde899820607d29d64fc96874e5e92dd039a4ec76bdae2155dd594f293288f47a7fb1de73d070e699e11619
6
+ metadata.gz: 9131feeb3d00b6657503db2d745c66f5ccd7ea82ec0406ec3c9ad9d1bcfc1ff5c9cbaffd3e0cb1bae55d7274084e23e0e208d1aa4fc09a27bdc9faffd3ae1bf3
7
+ data.tar.gz: 7fcfdb63354519a6997f5da62479b065abd496329a39c5e18cc6a563638c6798abc3e2906c08552adbeb2608a11d04a3ee3bbd288dd12fb987290859d964369e
data/README.md CHANGED
File without changes
File without changes
@@ -10,8 +10,8 @@ require 'logger'
10
10
 
11
11
  module Checkson
12
12
  class APIClient
13
- attr_reader :apiaddr
14
- attr_reader :outfile
13
+ attr_reader :apiaddr, :outfile
14
+
15
15
  def initialize(apiaddr, outfile)
16
16
  @apiaddr = apiaddr
17
17
  @outfile = outfile
@@ -51,7 +51,7 @@ module Checkson
51
51
  private
52
52
 
53
53
  def remove_empty_lines(string)
54
- regex = /^[\s]*$\n/
54
+ regex = /^\s]$\n/
55
55
  string.gsub(regex, '')
56
56
  end
57
57
 
File without changes
@@ -24,8 +24,8 @@ module Checkson
24
24
 
25
25
  def file_check
26
26
  require 'openssl'
27
- raw = File.read @opts[:certfile] if File.file? @opts[:certfile]
28
27
  begin
28
+ raw = File.read @opts[:certfile] if File.file? @opts[:certfile]
29
29
  certificate = OpenSSL::X509::Certificate.new raw
30
30
  cert_check certificate
31
31
  rescue StandardError
File without changes
File without changes
File without changes
File without changes
@@ -5,6 +5,7 @@ require 'ostruct'
5
5
  module Checkson
6
6
  class Config
7
7
  attr_reader :checks, :name
8
+
8
9
  include Checkson::Check
9
10
 
10
11
  def initialize(file)
@@ -3,6 +3,7 @@
3
3
  module Checkson
4
4
  class Context
5
5
  attr_reader :klass, :params
6
+
6
7
  def initialize(&block)
7
8
  @klass = nil
8
9
  @params = {}
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkson
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-18 00:00:00.000000000 Z
11
+ date: 2020-12-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple framework for checking node facts
14
14
  email: florian@fsrv.xyz
@@ -43,14 +43,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: '0'
46
+ version: '2.4'
47
47
  required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
51
  version: '0'
52
52
  requirements: []
53
- rubygems_version: 3.1.2
53
+ rubygems_version: 3.1.4
54
54
  signing_key:
55
55
  specification_version: 4
56
56
  summary: A simple framework for checking