lib/inspec_tools/pdf.rb in inspec_tools-1.4.2 vs lib/inspec_tools/pdf.rb in inspec_tools-1.7.1

- old
+ new

@@ -1,7 +1,6 @@ require 'digest' -require 'inspec' require_relative '../utilities/inspec_util' require_relative '../utilities/extract_pdf_text' require_relative '../utilities/extract_nist_cis_mapping' require_relative '../utilities/parser' @@ -90,11 +89,11 @@ @profile['summary'] = 'An InSpec Compliance Profile' @profile['version'] = '0.1.0' @profile['supports'] = [] @profile['attributes'] = [] @profile['generator'] = { - 'name': 'inspec', - 'version': Gem.loaded_specs['inspec'].version + 'name': 'inspec_tools', + 'version': VERSION } end def extract_title @pdf_text.match(/([^\n]*)\n/).captures[0]