-
Notifications
You must be signed in to change notification settings - Fork 137
undefined method `[]' for nil:NilClass (NoMethodError) #3
Comments
I think this is a regression in site-inspector 1.0.0, which came out Feb 6. I'm looking into the root cause. cc @benbalter |
Ah, and I can see that @benbalter fixed this bug in benbalter/site-inspector@92a93dc and bumped the version to 1.0.1 -- but didn't publish to Rubygems. @benbalter, mind doing a gem publish? 😺 @thecapacity, in the meantime, you can revert to an older version of site-inspector, or pull from @benbalter's repository's |
Thanks all! I was just diving into this again today and was checking up here to tell you I was still having it! |
OK, dumb Q - but where in the https-scan repo can I shim in @benbalter's 'native' site-inspector? e.g. I have ./https-scan and ../site-inspector-ruby but I'm not sure how Ruby even finds 'site-inspector' in the "require" statement since ./https-scan doesn't seem to include it (e.g. as a subdir) #sorryImaPythonGuy |
No worries. I updated this project's The |
I seem to have 'answered' my own question, for anyone that needs.
Ah, @konklone I think maybe I was saved by your fix (which just popped in I think) vs. my own creativity! :) |
Released @thecapacity for next time, simply add the following to your gemfile:
Which instructs Bundler to always use the HEAD of the git repo, rather than the released version. |
Thanks @benbalter someday I'm going to have to get the crash course on GitHub from you - I can't find my +1 (interestingly something almost popped up for that but I couldn't figure out how I almost did that) 👍 Ahh... |
Looks like a few of them ran, but then I got an error.
[acus.gov]
'[acus.gov]
Fetched, cached.
[achp.gov]
[achp.gov]
Fetched, cached.
[preserveamerica.gov]
[preserveamerica.gov]
Fetched, cached.
[adf.gov]
[adf.gov]
Fetched, cached.
[usadf.gov]
[usadf.gov]
Fetched, cached.
[abmc.gov]
[abmc.gov]
Fetched, cached.
[amtrakoig.gov]
[amtrakoig.gov]
Fetched, cached.
[arc.gov]
[arc.gov]
Fetched, cached.
[afrh.gov]
[afrh.gov]
Fetched, cached.
[cia.gov]
[cia.gov]
Fetched, cached.
[ic.gov]
[ic.gov]
/Library/Ruby/Gems/2.0.0/gems/site-inspector-1.0.0/lib/site-inspector/headers.rb:24:in
strict_transport_security': undefined method
[]' for nil:NilClass (NoMethodError)from /Library/Ruby/Gems/2.0.0/gems/site-inspector-1.0.0/lib/site-inspector/headers.rb:10:in
strict_transport_security?' from ./https-scan.rb:137:in
domain_details'from ./https-scan.rb:105:in
check_domain' from ./https-scan.rb:51:in
block (2 levels) in go'from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1716:in
each' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1120:in
block in foreach'from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1266:in
open' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1119:in
foreach'from ./https-scan.rb:31:in
block in go' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1266:in
open'from ./https-scan.rb:17:in
go' from ./https-scan.rb:152:in
The text was updated successfully, but these errors were encountered: