inspec 4.17.7 → 4.17.11

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: a2c29f41f20501e3eb5820dd06a6ff60cec6f4c5af386f820c819f8e58651a81
4
- data.tar.gz: b7eb018efcf58fcc215e5188f29c3207be4cc3046da1683bef3f58de3fb42c1d
3
+ metadata.gz: 20d59877b4d033a1134bc9f541d1b04e6f839b930556d076f818e3bf620de7cf
4
+ data.tar.gz: 18bdd2979790a8e7b1be4c688cc044bff1504c3c28d555775630935780e5494e
5
5
  SHA512:
6
- metadata.gz: 0b7b9738ff7701f7a4d1a61797c2353c06fc437102b5202f7e83857c4ba40189c2ab0d2b17ec34649bb18fa4a6b851040b6f0be6f3c719cfc62f01bfe67af111
7
- data.tar.gz: c291eae358770b3af3ebca51acaf38105c609867084ed94262b1079f3a903ce6365d6e3e60c446ef51b1e74d8b23351ba9056dea18b3f421e78223b82ea55718
6
+ metadata.gz: 9f3389b274f05f5716ef5ef89f41df5635a3384563a017743a1f870ffd527b325b0ea980c789080d8b8441c31268e971ce12ba50deae0930d632ef629abb43ed
7
+ data.tar.gz: 1d9cb2e549374a7a200a647a5adc635dc2f6b1ae6ee8f304c4b987ce43b86caa96eae2419646aaff257d9e660a4f577b8238573fc6290740653b5eed7fd5176d
@@ -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
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
  - Chef InSpec Team
@@ -528,6 +528,7 @@ files:
528
528
  - lib/inspec/resources/bash.rb
529
529
  - lib/inspec/resources/bond.rb
530
530
  - lib/inspec/resources/bridge.rb
531
+ - lib/inspec/resources/bsd_service.rb
531
532
  - lib/inspec/resources/chocolatey_package.rb
532
533
  - lib/inspec/resources/command.rb
533
534
  - lib/inspec/resources/cpan.rb
@@ -546,7 +547,9 @@ files:
546
547
  - lib/inspec/resources/etc_fstab.rb
547
548
  - lib/inspec/resources/etc_group.rb
548
549
  - lib/inspec/resources/etc_hosts.rb
550
+ - lib/inspec/resources/etc_hosts_allow.rb
549
551
  - lib/inspec/resources/etc_hosts_allow_deny.rb
552
+ - lib/inspec/resources/etc_hosts_deny.rb
550
553
  - lib/inspec/resources/file.rb
551
554
  - lib/inspec/resources/filesystem.rb
552
555
  - lib/inspec/resources/firewalld.rb
@@ -558,6 +561,7 @@ files:
558
561
  - lib/inspec/resources/iis_app.rb
559
562
  - lib/inspec/resources/iis_app_pool.rb
560
563
  - lib/inspec/resources/iis_site.rb
564
+ - lib/inspec/resources/iis_website.rb
561
565
  - lib/inspec/resources/inetd_conf.rb
562
566
  - lib/inspec/resources/ini.rb
563
567
  - lib/inspec/resources/interface.rb
@@ -568,7 +572,9 @@ files:
568
572
  - lib/inspec/resources/kernel_parameter.rb
569
573
  - lib/inspec/resources/key_rsa.rb
570
574
  - lib/inspec/resources/ksh.rb
575
+ - lib/inspec/resources/launchd_service.rb
571
576
  - lib/inspec/resources/limits_conf.rb
577
+ - lib/inspec/resources/linux_kernel_parameter.rb
572
578
  - lib/inspec/resources/login_defs.rb
573
579
  - lib/inspec/resources/mount.rb
574
580
  - lib/inspec/resources/mssql_session.rb
@@ -586,6 +592,7 @@ files:
586
592
  - lib/inspec/resources/package.rb
587
593
  - lib/inspec/resources/packages.rb
588
594
  - lib/inspec/resources/parse_config.rb
595
+ - lib/inspec/resources/parse_config_file.rb
589
596
  - lib/inspec/resources/passwd.rb
590
597
  - lib/inspec/resources/pip.rb
591
598
  - lib/inspec/resources/platform.rb
@@ -597,9 +604,12 @@ files:
597
604
  - lib/inspec/resources/postgres_ident_conf.rb
598
605
  - lib/inspec/resources/postgres_session.rb
599
606
  - lib/inspec/resources/powershell.rb
607
+ - lib/inspec/resources/ppa.rb
600
608
  - lib/inspec/resources/processes.rb
609
+ - lib/inspec/resources/rabbitmq_conf.rb
601
610
  - lib/inspec/resources/rabbitmq_config.rb
602
611
  - lib/inspec/resources/registry_key.rb
612
+ - lib/inspec/resources/runit_service.rb
603
613
  - lib/inspec/resources/script.rb
604
614
  - lib/inspec/resources/security_identifier.rb
605
615
  - lib/inspec/resources/security_policy.rb
@@ -608,13 +618,17 @@ files:
608
618
  - lib/inspec/resources/ssh_config.rb
609
619
  - lib/inspec/resources/ssl.rb
610
620
  - lib/inspec/resources/sys_info.rb
621
+ - lib/inspec/resources/systemd_service.rb
622
+ - lib/inspec/resources/sysv_service.rb
611
623
  - lib/inspec/resources/toml.rb
624
+ - lib/inspec/resources/upstart_service.rb
612
625
  - lib/inspec/resources/user.rb
613
626
  - lib/inspec/resources/users.rb
614
627
  - lib/inspec/resources/vbscript.rb
615
628
  - lib/inspec/resources/virtualization.rb
616
629
  - lib/inspec/resources/windows_feature.rb
617
630
  - lib/inspec/resources/windows_hotfix.rb
631
+ - lib/inspec/resources/windows_registry_key.rb
618
632
  - lib/inspec/resources/windows_task.rb
619
633
  - lib/inspec/resources/wmi.rb
620
634
  - lib/inspec/resources/x509_certificate.rb