aaron868 / security-audit

A set of automated security tests for Red Hat Linux 6.x based systems.
60 stars 16 forks source link

Does not work with Ruby 2 #1

Open datasmid opened 10 years ago

datasmid commented 10 years ago

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -I/Library/Ruby/Gems/2.0.0/gems/rspec-support-3.0.2/lib:/Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib -S /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/exe/rspec spec/stig/stig_spec.rb /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.99.1/lib/rspec/core/hooks.rb:58:in <module:Hooks>': superclass mismatch for class AroundHook (TypeError) from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.99.1/lib/rspec/core/hooks.rb:3:inmodule:Core' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.99.1/lib/rspec/core/hooks.rb:2:in <module:RSpec>' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.99.1/lib/rspec/core/hooks.rb:1:in<top (required)>' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.99.1/lib/rspec/core.rb:3:in require_relative' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.99.1/lib/rspec/core.rb:3:inblock in <top (required)>' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.99.1/lib/rspec/core.rb:26:in []' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.99.1/lib/rspec/core.rb:26:in<top (required)>' from /Library/Ruby/Gems/2.0.0/gems/rspec-2.99.0/lib/rspec.rb:1:in require' from /Library/Ruby/Gems/2.0.0/gems/rspec-2.99.0/lib/rspec.rb:1:in<top (required)>' from /Library/Ruby/Gems/2.0.0/gems/serverspec-1.9.0/lib/serverspec.rb:2:in require' from /Library/Ruby/Gems/2.0.0/gems/serverspec-1.9.0/lib/serverspec.rb:2:in<top (required)>' from /Users/bas/code/security-audit/spec/spec_helper.rb:5:in require' from /Users/bas/code/security-audit/spec/spec_helper.rb:5:in<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/bas/code/security-audit/spec/stig/stig_spec.rb:1:in <top (required)>' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:inload' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in block in load_spec_files' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:ineach' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in load_spec_files' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:97:insetup' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:85:in run' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:70:inrun' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:38:in invoke' from /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/exe/rspec:4:in

' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -I/Library/Ruby/Gems/2.0.0/gems/rspec-support-3.0.2/lib:/Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/lib -S /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.0.2/exe/rspec spec/stig/stig_spec.rb failed

aaron868 commented 10 years ago

I will test with Ruby 2.x and update. It's probably a library issue.