inspec-core 4.17.7 → 4.17.11

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: 353c4d150560f02cf75373bbb1389cbdb147d13dd12628d2060342393f1e2937
4
- data.tar.gz: 95754aea44d3f38def5176f7811b5ef63e03feae21903d217ead5441656ba346
3
+ metadata.gz: 1a0430da18ea0345f49ee81f579ead5a1516dccd964f01e71562ce524ed97e6d
4
+ data.tar.gz: 6ec730f8c3491b701e62f13aa604ec122b27913fdba50c5729cd0304b330b8c2
5
5
  SHA512:
6
- metadata.gz: 005a55cfb392666cbea9133b63cc26fc20e3e0ab4301ea90b076816b360d156ab7c137a0ff51a5f179dfd4b0135ae4e5556998e04e0b9715d8753c9bbcd04e68
7
- data.tar.gz: 6dbb31259d5ea18b3b61f3dddc57ba320ed84689d00b4e20d5ff219aea2bbab30302acecb81c4e1ed24c6ea2b669d6ba36b6e775114f1a0d628fa2f13ffb902a
6
+ metadata.gz: 950e2e402f73b1b179ea839c97df4d27f47a17288a71fdc81e60ded4b5f87c5ec5e9fa02e3ff1085299859d7a2306186d793ce71917e54b4bf8912e9c0a71240
7
+ data.tar.gz: 21a0d3275f7df68408d2f6a62e62e9f143092a8332ec2df5ebabf3a9dbba6ad03495229eab06f36503ca086463b0a8b4a5dd61d59c26ad08c19d34a654574481
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/service"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/etc_hosts_allow_deny"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/etc_hosts_allow_deny"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/iis_website.rb"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/service"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/kernel_parameter"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/parse_config"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/apt.rb"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/rabbitmq_config.rb"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/service"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/service"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/service"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/service"
@@ -0,0 +1,2 @@
1
+ # This is just here to make the dynamic loader happy.
2
+ require "inspec/resources/registry_key.rb"
@@ -10,6 +10,15 @@ module Inspec
10
10
  module DescribeDslLazyLoader
11
11
  # Support for Describe DSL plugins
12
12
  def method_missing(method_name, *arguments, &block)
13
+ # TODO: need a backend available at the describe level... class method somewhere?
14
+ # # see if it is a resource first
15
+ # begin
16
+ # resource = Inspec::DSL.method_missing_resource(:where_is_backend?, method_name, *arguments)
17
+ # return resource if resource
18
+ # rescue LoadError
19
+ # # pass through
20
+ # end
21
+
13
22
  # Check to see if there is a describe_dsl plugin activator hook with the method name
14
23
  registry = Inspec::Plugin::V2::Registry.instance
15
24
  hook = registry.find_activators(plugin_type: :describe_dsl, activator_name: method_name).first
@@ -39,6 +48,14 @@ module Inspec
39
48
  module TestDslLazyLoader
40
49
  # Support for test DSL plugins
41
50
  def method_missing(method_name, *arguments, &block)
51
+ # see if it is a resource first
52
+ begin
53
+ resource = Inspec::DSL.method_missing_resource(inspec, method_name, *arguments)
54
+ return resource if resource
55
+ rescue LoadError
56
+ # pass through
57
+ end
58
+
42
59
  # Check to see if there is a test_dsl plugin activator hook with the method name
43
60
  registry = Inspec::Plugin::V2::Registry.instance
44
61
  hook = registry.find_activators(plugin_type: :test_dsl, activator_name: method_name).first
@@ -1,3 +1,3 @@
1
1
  module Inspec
2
- VERSION = "4.17.7".freeze
2
+ VERSION = "4.17.11".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspec-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.17.7
4
+ version: 4.17.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
@@ -475,6 +475,7 @@ files:
475
475
  - lib/inspec/resources/bash.rb
476
476
  - lib/inspec/resources/bond.rb
477
477
  - lib/inspec/resources/bridge.rb
478
+ - lib/inspec/resources/bsd_service.rb
478
479
  - lib/inspec/resources/chocolatey_package.rb
479
480
  - lib/inspec/resources/command.rb
480
481
  - lib/inspec/resources/cpan.rb
@@ -493,7 +494,9 @@ files:
493
494
  - lib/inspec/resources/etc_fstab.rb
494
495
  - lib/inspec/resources/etc_group.rb
495
496
  - lib/inspec/resources/etc_hosts.rb
497
+ - lib/inspec/resources/etc_hosts_allow.rb
496
498
  - lib/inspec/resources/etc_hosts_allow_deny.rb
499
+ - lib/inspec/resources/etc_hosts_deny.rb
497
500
  - lib/inspec/resources/file.rb
498
501
  - lib/inspec/resources/filesystem.rb
499
502
  - lib/inspec/resources/firewalld.rb
@@ -505,6 +508,7 @@ files:
505
508
  - lib/inspec/resources/iis_app.rb
506
509
  - lib/inspec/resources/iis_app_pool.rb
507
510
  - lib/inspec/resources/iis_site.rb
511
+ - lib/inspec/resources/iis_website.rb
508
512
  - lib/inspec/resources/inetd_conf.rb
509
513
  - lib/inspec/resources/ini.rb
510
514
  - lib/inspec/resources/interface.rb
@@ -515,7 +519,9 @@ files:
515
519
  - lib/inspec/resources/kernel_parameter.rb
516
520
  - lib/inspec/resources/key_rsa.rb
517
521
  - lib/inspec/resources/ksh.rb
522
+ - lib/inspec/resources/launchd_service.rb
518
523
  - lib/inspec/resources/limits_conf.rb
524
+ - lib/inspec/resources/linux_kernel_parameter.rb
519
525
  - lib/inspec/resources/login_defs.rb
520
526
  - lib/inspec/resources/mount.rb
521
527
  - lib/inspec/resources/mssql_session.rb
@@ -533,6 +539,7 @@ files:
533
539
  - lib/inspec/resources/package.rb
534
540
  - lib/inspec/resources/packages.rb
535
541
  - lib/inspec/resources/parse_config.rb
542
+ - lib/inspec/resources/parse_config_file.rb
536
543
  - lib/inspec/resources/passwd.rb
537
544
  - lib/inspec/resources/pip.rb
538
545
  - lib/inspec/resources/platform.rb
@@ -544,9 +551,12 @@ files:
544
551
  - lib/inspec/resources/postgres_ident_conf.rb
545
552
  - lib/inspec/resources/postgres_session.rb
546
553
  - lib/inspec/resources/powershell.rb
554
+ - lib/inspec/resources/ppa.rb
547
555
  - lib/inspec/resources/processes.rb
556
+ - lib/inspec/resources/rabbitmq_conf.rb
548
557
  - lib/inspec/resources/rabbitmq_config.rb
549
558
  - lib/inspec/resources/registry_key.rb
559
+ - lib/inspec/resources/runit_service.rb
550
560
  - lib/inspec/resources/script.rb
551
561
  - lib/inspec/resources/security_identifier.rb
552
562
  - lib/inspec/resources/security_policy.rb
@@ -555,13 +565,17 @@ files:
555
565
  - lib/inspec/resources/ssh_config.rb
556
566
  - lib/inspec/resources/ssl.rb
557
567
  - lib/inspec/resources/sys_info.rb
568
+ - lib/inspec/resources/systemd_service.rb
569
+ - lib/inspec/resources/sysv_service.rb
558
570
  - lib/inspec/resources/toml.rb
571
+ - lib/inspec/resources/upstart_service.rb
559
572
  - lib/inspec/resources/user.rb
560
573
  - lib/inspec/resources/users.rb
561
574
  - lib/inspec/resources/vbscript.rb
562
575
  - lib/inspec/resources/virtualization.rb
563
576
  - lib/inspec/resources/windows_feature.rb
564
577
  - lib/inspec/resources/windows_hotfix.rb
578
+ - lib/inspec/resources/windows_registry_key.rb
565
579
  - lib/inspec/resources/windows_task.rb
566
580
  - lib/inspec/resources/wmi.rb
567
581
  - lib/inspec/resources/x509_certificate.rb